/* Design System & Variables */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1a1a1a;
    /* Added for flip cards */

    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-accent: #f97316;
    /* Vibrant Orange */

    --border-color: #262626;

    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

/* Mobile Toggle Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s linear;
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
        /* Allow scrolling on mobile menu */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-item {
        margin-bottom: 20px;
        flex-direction: column;
        /* Stack link and dropdown */
        align-items: center;
        width: 100%;
    }

    .nav-link-wrapper {
        padding: 10px 0;
        width: 100%;
        justify-content: center;
    }

    /* Mobile Mega Menu - Static/Accordion style */
    .mega-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        /* Hidden by default */
        background-color: var(--bg-secondary);
        box-shadow: none;
        padding: 20px;
        border-top: 1px solid var(--border-color);
    }

    /* Open state for JS toggle */
    .mega-menu.open {
        display: flex;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .mega-bottom {
        grid-template-columns: 1fr;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-accent {
    color: var(--text-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    /* Container acts as anchor for Mega Menu */
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--text-accent);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #a3a3a3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-5px);
    background-color: var(--bg-tertiary);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--text-accent);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* About/Stats Section */
.stats-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

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

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--bg-secondary);
    border-radius: 24px;
    padding: 60px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-accent);
}

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

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* .nav-links {
        display: none; 
    } Remove this to fix mobile menu */

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sticky Scroll Section --- */
.sticky-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    position: relative;
}

.sticky-left {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    /* Adjust based on header height */
    width: 40%;
    height: fit-content;
}

.scroll-right {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.diff-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition-medium);
}

.diff-card:hover {
    border-color: var(--text-accent);
}

.diff-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.diff-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .sticky-wrapper {
        flex-direction: column;
    }

    .sticky-left {
        position: static;
        width: 100%;
        margin-bottom: 40px;
    }

    .scroll-right {
        width: 100%;
    }
}

/* --- Animations --- */
@keyframes float-complex {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(1deg);
    }

    67% {
        transform: translateY(-7px) rotate(-1deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.animate-float {
    animation: float-complex 6s ease-in-out infinite;
}

/* Stagger animations for cards */
.diff-card:nth-child(1) {
    animation-delay: 0s;
}

.diff-card:nth-child(2) {
    animation-delay: 1s;
}

.diff-card:nth-child(3) {
    animation-delay: 2s;
}

.diff-card:nth-child(4) {
    animation-delay: 3s;
}

/* --- Mega Menu --- */
.nav-item {
    position: static;
    /* Let Mega Menu size to container */
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 28px 0;
    /* Match header height alignment */
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

.mega-menu {
    position: fixed;
    /* Fixed relative to viewport to guarantee centering */
    top: var(--header-height);
    /* Below header */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    /* Center horizontally + generic slide effect */
    width: 100%;
    max-width: var(--container-width);
    /* Match container width */
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 0 0 16px 16px;
    /* Rounded only at bottom */
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Grid (Top) */
.mega-grid-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.mega-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #1a1a1a;
}

.mega-card:hover {
    background-color: #f5f5f5;
}

.mega-icon {
    font-size: 1.5rem;
    color: var(--text-accent);
    background-color: rgba(249, 115, 22, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mega-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.mega-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Mega Menu Bottom */
.mega-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
}

.mega-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
}

.mega-list-icon {
    color: var(--text-accent);
}

.mega-approach h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 8px;
}

.mega-approach p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.arrow-link {
    font-size: 1.5rem;
    color: var(--text-accent);
    font-weight: 300;
}

/* --- Styled Images --- */
.img-styled {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    border-radius: 12px;
    opacity: 0.8;
}

.img-styled:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

.content-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-top: 24px;
    filter: grayscale(100%);
    transition: var(--transition-medium);
}

.content-img:hover {
    filter: grayscale(0%);
    border-color: var(--text-accent);
}

.content-img-small {
    width: 100%;
    max-width: 350px;
    /* Limit size as requested */
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    filter: grayscale(100%);
    transition: var(--transition-medium);
    display: block;
    margin: 0 auto;
    /* Center if needed */
}

.content-img-small:hover {
    filter: grayscale(0%);
    border-color: var(--text-accent);
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.6);
    /* Darken for text readability */
}

/* --- Flip Cards --- */
/* --- Flip Cards --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 600px;
    /* Increased height to fit all content without scrolling */
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.flip-card-front {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    /* z-index removed to fix flip visibility */
}

/* Background Image via Pseudo-element */
.flip-card-front::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    /* Darker overlay for better text contrast */
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 16px;
}

.flip-card:hover .flip-card-front::before {
    filter: grayscale(0%) brightness(0.9);
    transform: scale(1.05);
}

/* Heading on Front */
.flip-card-front h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 1);
    margin: 0;
    transform: translateZ(60px);
    /* Keep 3D effect on front */
}

/* ... middle content ... */

.flip-card-back {
    background-color: var(--bg-card);
    color: var(--text-primary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    border: 1px solid var(--border-color);
    text-align: left;
    /* z-index removed to fix flip visibility */
}

.flip-card-back h3 {
    color: var(--text-accent);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.flip-card-back p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.flip-card-back ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
    margin-bottom: 16px;
}

.flip-card-back li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Why This Package Section --- */
.why-package-section {
    position: relative;
    background-image: url('assets/bg-why-package.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #ffffff;
}

.why-package-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay for readability */
    z-index: 1;
}

.why-package-content {
    position: relative;
    z-index: 2;
}

.why-package-content h2 {
    color: #ffffff;
    margin-bottom: 24px;
}

.why-package-content p,
.why-package-content li {
    color: #e0e0e0;
}

.why-package-content strong {
    color: var(--text-accent);
}