:root {
    --bg-main: #ffffff;
    --bg-light: #f4f7f9;
    --bg-dark: #0a192f;
    
    --text-primary: #112240;
    --text-secondary: #4a5568;
    --text-light: #ccd6f6;
    
    --accent-blue: #2b6cee;
    --accent-blue-hover: #1e52ba;
    --accent-cyan: #3fc1c9;
    
    --border-color: #e2e8f0;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: var(--transition);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 108, 238, 0.2);
}

.btn-secondary {
    background-color: rgba(43, 108, 238, 0.1);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background-color: rgba(43, 108, 238, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .active-link {
    color: var(--accent-blue);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 260px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 1rem 0;
    z-index: 1000;
    top: 100%;
    left: -1rem;
    border: 1px solid var(--border-color);
    margin-top: -0.5rem; /* pull up slightly to overlap */
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.15s ease-out forwards;
}

.dropdown-content a {
    color: var(--text-primary) !important;
    padding: 0.6rem 1.5rem !important;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(43, 108, 238, 0.05);
    color: var(--accent-blue) !important;
    padding-left: 2rem !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(180deg, rgba(244,247,249,0.5) 0%, rgba(255,255,255,1) 100%);
    overflow: hidden;
}

.hero-bg-graphic {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43,108,238,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(43, 108, 238, 0.3);
    animation: pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.node {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.main-node {
    width: 100px;
    height: 100px;
    font-size: 2rem;
    color: var(--accent-blue);
    z-index: 10;
}

.sub-node {
    width: 60px;
    height: 60px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.node-1 { top: 10%; right: 20%; animation: float 4s ease-in-out infinite; }
.node-2 { bottom: 20%; left: 10%; animation: float 5s ease-in-out infinite reverse; }
.node-3 { bottom: 10%; right: 10%; animation: float 6s ease-in-out infinite 1s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    margin-bottom: 0;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1.125rem;
}

.about-list .icon {
    color: var(--accent-blue);
    font-weight: bold;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Services */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent-blue);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(43, 108, 238, 0.05);
    border-radius: 0.75rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: 1rem;
}

.learn-more:hover {
    gap: 0.5rem;
}

/* Engineering Deep Dive */
.engineering {
    padding: 6rem 0;
}

.section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.engineering-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.engineering-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.overlay-glass {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.overlay-glass p {
    color: #fff;
    margin-bottom: 0;
}

.cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cap-item h4 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.cap-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact form */
.bg-dark {
    background-color: var(--bg-dark);
}

.contact {
    padding: 6rem 0;
    color: var(--text-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact-text h2 {
    color: #fff;
}

.glass-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-form h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #050d1a;
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: var(--accent-cyan);
}

/* Homepage 6-Pillar Banner */
.pillar-banner {
    position: relative;
    z-index: 10;
    margin-top: -6rem; /* Overlaps the bottom of the hero section */
    padding-bottom: 2rem;
}

.pillar-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem; /* Space for scrollbar */
    padding-top: 1rem;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.pillar-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.pillar-card {
    position: relative;
    flex: 0 0 calc(16.666% - 1.25rem); /* Roughly 1/6th minus gap */
    min-width: 220px;
    height: 300px;
    border-radius: 1rem;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(43, 108, 238, 0.2);
}

.pillar-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.pillar-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.2) 100%);
    z-index: 2;
    transition: var(--transition);
}

.pillar-card:hover .pillar-card-overlay {
    background: linear-gradient(to top, rgba(43, 108, 238, 0.95) 0%, rgba(10, 25, 47, 0.4) 100%);
}

.pillar-card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    color: #fff;
}

.pillar-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.2;
}

.pillar-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pillar-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pillar-card:hover .pillar-card-link {
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .pillar-card {
        flex: 0 0 calc(25% - 1.125rem); /* Show 4 */
    }
}

@media (max-width: 900px) {
    .pillar-card {
        flex: 0 0 calc(33.333% - 1rem); /* Show 3 */
    }
}

@media (max-width: 600px) {
    .pillar-card {
        flex: 0 0 calc(80% - 1.5rem); /* Show 1.2 */
        scroll-snap-align: center;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-content, .section-wrapper, .contact-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin-top: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-list {
        text-align: left;
    }

    .engineering-image {
        margin-bottom: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .form-group {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal a {
        margin: 0 0.75rem;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--bg-dark);
}
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.7) 50%, rgba(10, 25, 47, 0.2) 100%);
    z-index: 1;
}
.slide .hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}
.slide .hero-content {
    max-width: 700px;
    padding-top: 5rem;
}
.slide h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 4rem;
    line-height: 1.1;
}
.slide .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.slide-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(63, 193, 201, 0.2);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}
.prev-btn { left: 2rem; }
.next-btn { right: 2rem; }
.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background: var(--accent-cyan);
    transform: scale(1.2);
}
.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}
@media (max-width: 768px) {
    .slide h1 { font-size: 2.5rem; }
    .slide .hero-content { padding-top: 2rem; text-align: center; }
    .slide-overlay { background: linear-gradient(0deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.8) 100%); }
    .slider-btn { display: none; }
}
