Files
Nicole/Old/style2.css

824 lines
14 KiB
CSS

/*
* JPM Security & Services - Style 2
* A minimalist design with side navigation
*/
:root {
--primary-dark: #1a1f2c;
--primary-light: #ffffff;
--accent-color: #3498db;
--accent-hover: #2980b9;
--text-dark: #2c3e50;
--text-light: #f8f9fa;
--side-nav-width: 280px;
--gradient-start: #2c3e50;
--gradient-end: #3498db;
}
/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: var(--text-dark);
background-color: var(--primary-light);
overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
margin-bottom: 1rem;
}
a {
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
}
ul {
list-style: none;
}
section {
padding: 100px 0;
position: relative;
}
.btn-primary {
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
border: none;
color: var(--primary-light);
padding: 12px 30px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
transition: all 0.3s ease;
border-radius: 30px;
position: relative;
overflow: hidden;
}
.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: 0.5s;
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover::before {
left: 100%;
}
/* Side Navigation */
.side-nav {
position: fixed;
top: 0;
left: 0;
width: var(--side-nav-width);
height: 100vh;
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
color: var(--primary-light);
padding: 40px 30px;
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 1000;
box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}
.logo-container {
margin-bottom: 60px;
position: relative;
overflow: hidden;
}
.logo-text {
font-size: 2.5rem;
font-weight: 800;
letter-spacing: 5px;
position: relative;
z-index: 1;
}
.logo-subtext {
font-size: 0.8rem;
letter-spacing: 2px;
opacity: 0.8;
position: relative;
z-index: 1;
}
.side-nav nav ul li {
margin-bottom: 20px;
position: relative;
}
.side-nav nav ul li a {
font-size: 1.1rem;
font-weight: 500;
display: block;
padding: 8px 0;
position: relative;
opacity: 0.7;
transition: all 0.3s ease;
}
.side-nav nav ul li a:hover,
.side-nav nav ul li a.active {
opacity: 1;
transform: translateX(10px);
}
.side-nav nav ul li a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: var(--primary-light);
transition: width 0.3s ease;
}
.side-nav nav ul li a:hover::after,
.side-nav nav ul li a.active::after {
width: 30px;
}
.nav-footer {
margin-top: auto;
}
.social-links {
display: flex;
margin-bottom: 20px;
}
.social-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
margin-right: 10px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.social-icon::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: 0.5s;
}
.social-icon:hover {
background-color: var(--primary-light);
color: var(--primary-dark);
transform: translateY(-3px);
}
.social-icon:hover::before {
left: 100%;
}
.nav-footer p {
font-size: 0.8rem;
opacity: 0.7;
}
/* Mobile Navigation */
.mobile-nav {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
color: var(--primary-light);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.mobile-nav-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.menu-toggle {
background: none;
border: none;
width: 30px;
height: 20px;
position: relative;
cursor: pointer;
transition: all 0.3s ease;
}
.menu-toggle span {
display: block;
width: 100%;
height: 2px;
background-color: var(--primary-light);
position: absolute;
left: 0;
transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) {
top: 0;
}
.menu-toggle span:nth-child(2) {
top: 50%;
transform: translateY(-50%);
}
.menu-toggle span:nth-child(3) {
bottom: 0;
}
.menu-toggle.active span:nth-child(1) {
top: 50%;
transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
bottom: 50%;
transform: translateY(50%) rotate(-45deg);
}
.mobile-menu {
display: none;
padding: 20px 0;
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
transform: translateY(-100%);
transition: transform 0.3s ease;
}
.mobile-menu.active {
display: block;
transform: translateY(0);
}
.mobile-menu nav ul li {
margin-bottom: 15px;
opacity: 0;
transform: translateY(20px);
transition: all 0.3s ease;
}
.mobile-menu.active nav ul li {
opacity: 1;
transform: translateY(0);
}
.mobile-menu nav ul li a {
display: block;
padding: 10px 0;
font-size: 1.1rem;
font-weight: 500;
transition: all 0.3s ease;
}
.mobile-menu nav ul li a:hover {
transform: translateX(10px);
}
.mobile-social-links {
display: flex;
margin-top: 20px;
}
/* Main Content */
.main-content {
margin-left: var(--side-nav-width);
overflow-x: hidden;
}
/* Hero Section */
.hero-section {
height: 100vh;
padding: 0;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
z-index: 1;
pointer-events: none;
}
.hero-content {
padding: 60px;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
position: relative;
z-index: 1;
}
.hero-logo {
width: 100px;
height: 100px;
background-image: url('ben-rosett-WdJkXFQ4VHY-unsplash.jpg');
background-size: contain;
background-position: center;
background-repeat: no-repeat;
margin-bottom: 30px;
filter: brightness(0);
}
.hero-content h1 {
font-size: 4rem;
font-weight: 800;
letter-spacing: 5px;
color: var(--primary-dark);
margin-bottom: 0;
}
.hero-content h2 {
font-size: 1.2rem;
letter-spacing: 3px;
color: var(--primary-dark);
font-weight: 400;
margin-bottom: 30px;
}
.hero-text {
font-size: 1.2rem;
margin-bottom: 40px;
max-width: 500px;
}
.hero-image {
height: 100%;
background-image: url('cytonn-photography-n95VMLxqM2I-unsplash.jpg');
background-size: cover;
background-position: center;
position: relative;
min-height: 100vh;
display: block;
z-index: 0;
}
.hero-image .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
}
/* Section Headers */
.section-header {
margin-bottom: 60px;
position: relative;
}
.section-number {
font-size: 5rem;
font-weight: 800;
color: rgba(10, 14, 23, 0.05);
position: absolute;
top: -60px;
left: -20px;
z-index: -1;
}
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 15px;
position: relative;
display: inline-block;
}
.section-header h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
width: 60px;
height: 3px;
background-color: var(--primary-dark);
}
.section-header p {
font-size: 1.1rem;
color: var(--accent-gray);
max-width: 600px;
}
/* Services Section */
.services-section {
background-color: #f8f9fa;
}
.services-grid {
margin-top: 40px;
}
.service-item {
display: flex;
margin-bottom: 40px;
transition: all 0.3s ease;
}
.service-item:hover {
transform: translateY(-5px);
}
.service-icon {
font-size: 2rem;
color: var(--primary-dark);
margin-right: 20px;
min-width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(10, 14, 23, 0.05);
border-radius: 50%;
}
.service-content h3 {
font-size: 1.5rem;
margin-bottom: 10px;
}
/* About Section */
.about-section {
background-color: var(--primary-light);
}
.about-content {
padding-right: 30px;
}
.about-content p {
margin-bottom: 20px;
line-height: 1.8;
}
.values-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-top: 40px;
}
.value-item {
padding: 20px;
background-color: #f8f9fa;
transition: all 0.3s ease;
}
.value-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.value-item h4 {
font-size: 1.2rem;
margin-bottom: 10px;
color: var(--primary-dark);
}
.about-image-container {
position: relative;
height: 100%;
min-height: 500px;
}
.about-image {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background-image: url('ben-rosett-WdJkXFQ4VHY-unsplash.jpg');
background-size: cover;
background-position: center;
}
.about-image-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(10, 14, 23, 0.3);
}
/* Contact Section */
.contact-section {
background-color: #f8f9fa;
}
.contact-info {
margin-bottom: 40px;
}
.contact-item {
display: flex;
margin-bottom: 30px;
}
.contact-icon {
font-size: 1.5rem;
color: var(--primary-dark);
margin-right: 20px;
min-width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(10, 14, 23, 0.05);
border-radius: 50%;
}
.contact-text h4 {
font-size: 1.2rem;
margin-bottom: 5px;
}
.form-group {
margin-bottom: 25px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.form-control {
width: 100%;
padding: 12px 15px;
border: 1px solid #ced4da;
border-radius: 0;
transition: all 0.3s ease;
}
.form-control:focus {
border-color: var(--primary-dark);
outline: none;
box-shadow: none;
}
/* Footer */
.footer {
background-color: var(--primary-dark);
color: var(--primary-light);
padding: 80px 0 30px;
}
.footer-logo {
margin-bottom: 30px;
}
.footer-logo .logo-text {
font-size: 2rem;
}
.footer-logo .logo-subtext {
font-size: 0.7rem;
}
.footer h4 {
font-size: 1.2rem;
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}
.footer h4::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background-color: var(--primary-light);
}
.footer-links ul li {
margin-bottom: 10px;
}
.footer-links ul li a {
opacity: 0.7;
transition: all 0.3s ease;
}
.footer-links ul li a:hover {
opacity: 1;
padding-left: 5px;
}
.footer-contact p {
margin-bottom: 10px;
display: flex;
align-items: center;
}
.footer-contact p i {
margin-right: 10px;
opacity: 0.7;
}
.footer-bottom {
margin-top: 50px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.footer-bottom p {
font-size: 0.9rem;
opacity: 0.7;
}
.footer-legal a {
margin-left: 20px;
font-size: 0.9rem;
opacity: 0.7;
}
.footer-legal a:hover {
opacity: 1;
}
/* Responsive Styles */
@media (max-width: 1199.98px) {
.hero-content {
padding: 40px;
}
.hero-content h1 {
font-size: 3.5rem;
}
}
@media (max-width: 991.98px) {
:root {
--side-nav-width: 240px;
}
.hero-content h1 {
font-size: 3rem;
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: none;
z-index: 1;
pointer-events: none;
}
.section-header h2 {
font-size: 2.2rem;
}
.about-image-container {
min-height: 400px;
margin-top: 40px;
}
}
@media (max-width: 767.98px) {
/* Switch to mobile navigation */
.side-nav {
display: none;
}
.mobile-nav {
display: block;
}
.main-content {
margin-left: 0;
padding-top: 70px;
}
.hero-section {
height: auto;
}
.hero-content {
padding: 60px 20px;
text-align: center;
align-items: center;
}
.hero-image {
height: 50vh;
}
.hero-image .overlay {
background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
}
.section {
padding: 60px 0;
}
.section-number {
font-size: 4rem;
top: -40px;
}
.section-header h2 {
font-size: 2rem;
}
.values-grid {
grid-template-columns: 1fr;
}
.footer-bottom {
flex-direction: column;
text-align: center;
}
.footer-legal {
margin-top: 15px;
}
.footer-legal a {
margin: 0 10px;
}
}
@media (max-width: 575.98px) {
.hero-content h1 {
font-size: 2.5rem;
}
.hero-content h2 {
font-size: 1rem;
}
.service-item {
flex-direction: column;
text-align: center;
}
.service-icon {
margin: 0 auto 20px;
}
.contact-item {
flex-direction: column;
text-align: center;
}
.contact-icon {
margin: 0 auto 15px;
}
}