/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafbfc;
    overflow-x: hidden;
}

/* This is the magic for the sticky header! */
section[id] {
    scroll-margin-top: 100px; /* Adjusted for taller header/logo */
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #2563eb; /* Modern Blue */
    transition: all 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

blockquote {
    font-style: italic;
    color: #6b7280;
    padding: 20px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header nav ul {
    display: flex;
    gap: 30px;
}

header nav li {
    margin-left: 0;
}

header nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

header nav a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

header nav a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Smaller header offset on mobile to match slightly shorter logo */
    section[id] {
        scroll-margin-top: 90px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .hero {
        padding: 60px 0;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .home-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .team-member,
    .home-box {
        padding: 30px 20px;
    }
    
    .contact-info {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .contact-info li strong {
        width: 80px;
        font-size: 1rem;
    }
    
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    header nav.active {
        display: block;
    }
    
    header nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    header nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* Responsive logo size for mobile */
    .logo {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .service-card,
    .team-member,
    .home-box {
        padding: 25px 15px;
    }
    
    .video-promo {
        padding: 30px 20px;
    }
    
    .contact-info {
        padding: 25px 15px;
    }
}


/* --- Footer --- */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* --- Home Page Styles --- */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #5a67d8;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-content {
    padding: 80px 0;
    background: #ffffff;
}

.home-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.home-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.home-box:hover::before {
    transform: scaleX(1);
}

.home-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.home-box h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
}

.home-box ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23667eea" viewBox="0 0 16 16"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>') no-repeat left center;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.6;
}

.video-promo {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    text-align: center;
    padding: 50px 40px;
    border-radius: 16px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.video-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.video-promo h3 {
    color: #1f2937;
    font-weight: 500;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- General Page Styles --- */
.page-content {
    padding: 50px 0; /* Added a bit more padding */
    background: #fff;
    border-top: 1px solid #eee;
}

/* Alternating background color for sections */
.alt-bg {
    background: #f9f9f9;
}


.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.styled-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23667eea" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"/></svg>') no-repeat left 5px;
    color: #374151;
    line-height: 1.6;
}

.values-list li {
    margin-bottom: 10px;
}

.vision-statement {
    font-size: 1.3rem;
    font-weight: 300;
    border-left-width: 5px;
    padding: 15px;
    background: #fdfdfd;
}


/* --- Services Page --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.service-card h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

/* --- Industries Page --- */
.industries-list li {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.industries-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.industries-list li:hover::before {
    transform: scaleX(1);
}

.industries-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.industries-list h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.industries-list p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Team Page --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.team-member h3 {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.team-member h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member blockquote {
    font-style: italic;
    color: #6b7280;
    padding: 20px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    font-size: 1rem;
}

.team-member p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.team-footer {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 50px;
    color: #1f2937;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
}

/* --- Contact Page --- */
.contact-info {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 50px 40px;
    border-radius: 16px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.contact-info li {
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info li:last-child {
    border-bottom: none;
}

.contact-info li:hover {
    background: rgba(102, 126, 234, 0.05);
    padding-left: 20px;
    border-radius: 8px;
}

.contact-info li strong {
    display: inline-block;
    width: 120px;
    color: #1f2937;
    font-weight: 600;
}

.contact-info a {
    color: #667eea;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #5a67d8;
}

/* Contact section logo */
.contact-logo {
    display: block;
    margin: 10px auto 25px;
    max-width: 220px;
    width: 100%;
    height: auto;
}