/* style.css full content here */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* CSS Custom Properties */
:root {
    --color-primary: #0A192F; /* Deep navy blue */
    --color-accent: #00C8C8; /* Electric teal */
    --color-text: #E0E6F0; /* Light grey for general text */
    --color-text-secondary: #A8B2C4; /* Slightly darker grey for muted text */
    --color-bg: #0D1C34; /* Very dark blue/grey background */
    --color-bg-light: #1A2E44; /* A slightly lighter background for cards/sections */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-muted: #999999; /* For "Trusted By" */
    --color-red-error: #EF4444; /* For error messages */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-speed: 0.2s ease-in-out;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Base Styles & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

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

a:hover {
    color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Utility Classes */
.section-padding {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-heading {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-subheading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--color-text-secondary);
    font-size: 1.15rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    font-family: var(--font-heading);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

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

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--color-bg);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

nav {
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

nav.scrolled {
    background-color: rgba(10, 25, 47, 0.95); /* Slightly darker, semi-transparent */
    box-shadow: var(--shadow-light);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    left: 0;
    bottom: -5px;
    transition: width var(--transition-speed);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above mobile nav overlay */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* Mobile Nav Styles */
@media (max-width: 960px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-primary); /* Use primary color as overlay */
        padding-top: 6rem; /* Space for logo/header */
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform var(--transition-speed);
        z-index: 999;
    }

    nav.nav-open .nav-links {
        transform: translateX(0%);
        display: flex; /* Show when open */
    }

    .nav-links a {
        font-size: 1.8rem;
        color: var(--color-white);
    }

    .nav-links a::after {
        height: 3px;
        bottom: -10px;
    }

    .nav-actions .btn-secondary {
        /* Keep portal button visible on mobile outside of hamburger */
        /* display: none; */
    }

    .hamburger {
        display: block;
    }

    nav.nav-open .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    nav.nav-open .hamburger span:nth-child(2) {
        opacity: 0;
    }
    nav.nav-open .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .section-heading { font-size: 2rem; }
    .btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
    nav { padding: 0.8rem 1rem; }
    .logo { font-size: 1.5rem; }
}


/* Hero Section */
.hero-section {
    min-height: 90vh; /* Adjusted for sticky header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1544717297-fa95bda282c0?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1920&h=1080&fit=crop&ixid=Mnw3MjY1OUwwfDF8c2VhcmNofDE2fHxmaW5hbmNpYWwlMjB0ZWNofGVufDB8fHx8MTcwODY0MzU1MHwx') no-repeat center center/cover;
    color: var(--color-white);
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 900px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-text);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section .subtitle {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}


/* Stats Strip */
.stats-strip {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 1rem;
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

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

.service-card {
    background-color: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-card h3 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Trusted By Section */
.clients-strip {
    background-color: var(--color-primary);
    padding: 3rem 1rem;
    text-align: center;
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .client-logo {
        font-size: 1.2rem;
    }
}

/* Work (Case Studies) Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.case-study-tag {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.case-study-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-white);
}

.case-study-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes read more to bottom */
}

.case-study-card .read-more {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
}

.case-study-card .read-more:hover {
    color: var(--color-white);
}

.section-cta {
    text-align: center;
    margin-top: 4rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--color-primary); /* Darker than section bg for contrast */
    padding: 2.5rem;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-card .testimonial-author {
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.95rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member-card {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-avatar {
    width: 96px; 
    height: 96px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem; 
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    flex-shrink: 0;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.team-title {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.insight-card {
    background-color: var(--color-primary); /* Darker than section bg for contrast */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.insight-date {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.insight-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-white);
}

.insight-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.insight-card .read-more {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
}

.insight-card .read-more:hover {
    color: var(--color-white);
}


/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: flex-start;
}

.contact-info p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info a {
    font-weight: 600;
}

.contact-form {
    background-color: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.3); /* Focus ring */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: auto;
    margin-top: 0.5rem;
}

.form-success {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
}


@media (max-width: 960px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--color-primary);
    padding: 4rem 1rem 2rem 1rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-about h4, .footer-nav h4, .footer-legal h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.footer-about p {
    color: var(--color-text-secondary);
}

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

.footer-nav ul li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--color-text-secondary);
    transition: color var(--transition-speed);
}

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

.footer-legal p {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
    .footer-nav ul li {
        margin-bottom: 0;
    }
}


/* Modal Styles */
#portal-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

#portal-modal.open {
    display: flex;
}

.modal-box {
    background-color: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-medium);
    position: relative;
    color: var(--color-text);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color var(--transition-speed);
    padding: 0.5rem;
}

.modal-close-btn:hover {
    color: var(--color-white);
}

.modal-close-btn svg {
    width: 24px;
    height: 24px;
}

.modal-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-white);
}

#portal-form .form-group {
    margin-bottom: 1rem;
}

#portal-form .btn-primary {
    width: 100%;
    margin-top: 1.5rem;
}

.login-error {
    color: var(--color-red-error);
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
}


/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CRITICAL scroll-reveal exclusion: */
#portal-modal, #portal-modal * {
    opacity: 1 !important;
    transform: none !important;
}