/* Main Styles */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --background-light: #f9f9f9;
    --background-dark: #34495e;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.button.large {
    padding: 16px 36px;
    font-size: 1.1em;
}

/* Header Styles */
#header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

#header.scrolled, #header.menu-open {
    background-color: var(--dark-color); /* Apply dark background when scrolled or menu is open */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: filter 0.3s ease;
    /* No need to modify the logo since it's already white */
}

#header.scrolled .logo img {
    /* Remove filter inversion since we're using dark background now */
    filter: none;
}

#nav ul {
    display: flex;
    list-style: none;
}

#nav ul li {
    margin-left: 30px;
}

#nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Navigation underline effect */
#nav ul li a:not(.button) {
    position: relative;
    transition: color 0.3s ease;
}

#nav ul li a:not(.button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* #nav ul li a:not(.button):hover::after, */
#nav ul li a:not(.button).active::after {
    width: 100%;
}

/* #nav ul li a.active:not(.button) {
    color: var(--primary-color);
} */

#header.scrolled #nav ul li a {
    color: #fff; /* Keep text white against dark background */
}

#nav ul li a.button {
    background-color: var(--primary-color); /* Changed from #6c63ff to match other buttons */
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#header.scrolled .menu-toggle {
    color: #fff; /* Keep toggle icon white against dark background */
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Section Styling */
.section {
    padding: 100px 0;
}

.section.alt {
    background-color: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* About Section */
#about {
    position: relative;
    background: url('../images/laptop-phone.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

#about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-top: 40px;
}

.about-text {
    flex: 1;
    padding: 50px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-image {
    flex: 1;
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.about-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-text .about-highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Responsive adjustments for About section */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .about-image {
        min-height: 350px;
        order: -1; /* Move image above text on mobile */
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Approach Section */
.approach-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(52, 152, 219, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1;
}

.step h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    position: relative;
}

#team {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('../images/business-poeple-office.jpg');
}
/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}



.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.team-member h3,
.team-member p {
    padding: 0 20px;
}

.team-member h3 {
    margin-top: 20px;
    font-size: 1.5rem;
}

.position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.bio {
    padding-bottom: 20px;
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    text-align: center;
    padding: 30px;
}

.testimonial-content {
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    padding: 30px;
}

.testimonial-content:before,
.testimonial-content:after {
    content: '"';
    font-size: 4rem;
    color: rgba(52, 152, 219, 0.2);
    position: absolute;
    line-height: 1;
}

.testimonial-content:before {
    top: 0;
    left: 0;
}

.testimonial-content:after {
    bottom: -20px;
    right: 0;
    transform: rotate(180deg);
}

.testimonial-author {
    margin-top: 20px;
}

/* Contact Section */

/* #contact {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/world-map-connections.jpg');
} */


.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
#footer {
    background-color: var(--background-dark);
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* Mobile menu styles - completely revised */
    .menu-toggle {
        display: block;
    }
    
    #header.menu-open {
        background-color: var(--dark-color);
    }
    
    #nav {
        display: none; /* Hide by default */
        position: absolute; /* Changed to absolute for better positioning */
        top: 100%; /* Place directly below header */
        left: 0;
        width: 100%; /* Full width on mobile */
        background-color: var(--dark-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 2000; /* Very high z-index */
    }
    
    #nav.active {
        display: block; /* Simply show/hide instead of sliding */
    }
    
    #nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    #nav ul li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #nav ul li a {
        display: block;
        padding: 15px 20px;
        color: white !important; /* Force white color */
        font-size: 16px;
        text-align: center;
    }
    
    #nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    #nav ul li a.button {
        margin: 15px auto;
        width: 80%;
        max-width: 200px;
    }
    
    /* Reset underline effect for mobile */
    #nav ul li a:not(.button)::after {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
