:root {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #475569;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08); /* Lighter border for light bg */
    --header-bg: rgba(248, 250, 252, 0.85); /* Light header */
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Logo Fixed */
.bg-logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0; /* hidden on top */
    transition: opacity 0.8s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.bg-logo-container.visible {
    opacity: 0.20; /* 20% opacity as requested */
}

.bg-logo {
    max-width: 60vw;
    max-height: 70vh;
    object-fit: contain;
}

/* Header & Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 48px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--text-color), #334155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600; /* made bold for light bg */
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
    border-radius: 3px;
}

/* Toggle Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--text-color), #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    flex: 0 0 40vh;
    height: 40vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 5% 10px; /* offset for navbar slightly reduced to ensure it fits */
    background-color: var(--bg-color);
    z-index: 10;
}

.video-container {
    flex: 0 0 60vh;
    height: 60vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-video {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(248, 250, 252, 0) 25%);
    z-index: 1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 5vh, 3.8rem);
    font-weight: 800;
    margin-bottom: min(1rem, 2vh);
    letter-spacing: -1px;
    background: linear-gradient(180deg, var(--text-color), #334155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vh, 1.3rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: min(2rem, 3vh);
    max-width: 800px;
    line-height: 1.4;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 20;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background-color: var(--card-border);
    border-color: var(--text-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08), 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.4;
}

.service-card p {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.05rem;
}

/* About Section */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-text .highlight-text {
    color: var(--text-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.8rem;
    margin-top: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.stat-card:hover {
    transform: scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.stat-card h4 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.stat-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Contact */
.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.back-to-top-container {
    margin-top: 5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text .highlight-text {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 1.8rem;
        text-align: left;
    }
    .about-stats {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    .stat-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        gap: 2.5rem;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .about-stats {
        flex-direction: column;
    }
}
