/* ===========================================================================
   BAJA GARDENS - LANDING PAGE DESIGN SYSTEM (PHASE 1)
   Aesthetic: Ultra-Luxury, Minimalist, Organic Sand & Deep Green
   =========================================================================== */

:root {
    /* Color Palette */
    --deep-forest: #0a1f14;       /* Deep Luxury Green */
    --leaf-green: #1b4d32;        /* Vibrant Botanical Green */
    --earth-sand: #fcfbfa;        /* Clean Sand Background */
    --sand-tint: #f5f2eb;         /* Soft Cream Sand */
    --gold-primary: #c5a059;      /* Sophisticated Gold */
    --gold-hover: #b08d4b;
    --dark-charcoal: #222222;     /* High Contrast Text */
    --muted-gray: #666666;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout & Spacing */
    --container-max: 1400px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================================================================
   1. RESET & BASICS
   =========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--earth-sand);
    color: var(--dark-charcoal);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ===========================================================================
   2. BUTTONS & UTILITIES
   =========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-gold {
    background-color: var(--gold-primary);
    color: #ffffff;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--deep-forest);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-primary-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-primary-glass:hover {
    background: #ffffff;
    color: var(--deep-forest);
    border-color: #ffffff;
}

.btn-full {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.section-tag.light {
    color: var(--gold-primary);
    opacity: 0.9;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--deep-forest);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--muted-gray);
    line-height: 1.6;
    font-weight: 300;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
}

/* ===========================================================================
   3. HEADER & NAVIGATION (Glassmorphism Sticky)
   =========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 31, 20, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(10, 31, 20, 0.9);
    height: 70px;
}

.header-container {
    width: 90%;
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.logo-serif {
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-weight: 600;
    font-style: italic;
}

.logo-sans {
    font-family: var(--font-sans);
    color: #ffffff;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #ffffff;
}

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

/* ===========================================================================
   LANGUAGE TOGGLE BUTTON
   =========================================================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    padding: 7px 14px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.2);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.lang-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

/* Spin animation triggered by JS when switching */
@keyframes langSpin {
    0%   { transform: rotateY(0deg);   opacity: 1; }
    50%  { transform: rotateY(90deg);  opacity: 0; }
    100% { transform: rotateY(0deg);   opacity: 1; }
}

.lang-toggle.lang-switching .lang-flag {
    animation: langSpin 0.3s ease forwards;
}

/* ===========================================================================
   MOBILE MENU TOGGLE
   =========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.mobile-menu-cta {
    display: none;
}

/* ===========================================================================
   4. HERO SECTION (Atmospheric LCP Optimized)
   =========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-image: url('images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 20, 0.85) 40%, rgba(10, 31, 20, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    z-index: 2;
    color: #ffffff;
    max-width: 750px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 24px;
    animation: fadeInDown 1s both;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    animation: fadeInUp 1s 0.2s both;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 1s 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s 0.6s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    cursor: pointer;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 1.8s infinite;
}

/* ===========================================================================
   5. COMPARISON SLIDER (Before & After)
   =========================================================================== */
.comparison-section {
    padding: 120px 0;
    background-color: var(--earth-sand);
}

.comparison-slider-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.image-comparison-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(10, 31, 20, 0.12);
    background-color: var(--sand-tint);
}

.img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-wrapper {
    z-index: 1;
}

.after-wrapper {
    z-index: 2;
    width: 50%; /* Starting position */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Force image inside slider to always be the container width to prevent stretching */
.after-wrapper img {
    width: 1000px; /* Fixed width matching max-width of container */
    max-width: none;
    height: 600px;
}

.slider-badge {
    position: absolute;
    top: 24px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-before {
    left: 24px;
    background-color: #ffffff;
    color: var(--dark-charcoal);
}

.badge-after {
    right: 24px;
    background-color: var(--deep-forest);
    color: #ffffff;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Starting position */
    width: 2px;
    height: 100%;
    background-color: var(--gold-primary);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.handle-line {
    width: 1px;
    height: calc(50% - 24px);
    background-color: var(--gold-primary);
    opacity: 0.7;
}

.handle-btn {
    width: 48px;
    height: 48px;
    background-color: var(--deep-forest);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    box-shadow: 0 10px 20px rgba(10, 31, 20, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 10px;
}

.handle-btn svg {
    width: 20px;
    height: 20px;
    transform: rotate(90deg); /* Make arrows horizontal */
}

.image-comparison-container:hover .handle-btn {
    transform: scale(1.1);
}

/* ===========================================================================
   6. SERVICES SECTION
   =========================================================================== */
.services-section {
    padding: 120px 0;
    background-color: var(--sand-tint);
    border-top: 1px solid rgba(10, 31, 20, 0.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--earth-sand);
    padding: 50px 40px;
    border-radius: 6px;
    border: 1px solid rgba(10, 31, 20, 0.03);
    box-shadow: 0 10px 30px rgba(10, 31, 20, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(10, 31, 20, 0.06);
    border-color: rgba(197, 160, 89, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background-color: rgba(197, 160, 89, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 30px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--deep-forest);
    margin-bottom: 20px;
}

.service-card-description {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--muted-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-list {
    border-top: 1px solid rgba(10, 31, 20, 0.08);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--dark-charcoal);
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-size: 1.1rem;
    line-height: 0.8;
}

/* ===========================================================================
   7. SUCCESS PORTFOLIO SECTION
   =========================================================================== */
.portfolio-section {
    padding: 120px 0;
    background-color: var(--earth-sand);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(10, 31, 20, 0.05);
}

.portfolio-img-box {
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(10, 31, 20, 0.9) 20%, rgba(10, 31, 20, 0) 100%);
    color: #ffffff;
    z-index: 2;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.portfolio-location {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 8px;
}

.portfolio-project-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.3;
}

.portfolio-item:hover .portfolio-img-box img {
    transform: scale(1.06);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* ===========================================================================
   8. PRE-QUALIFIED CAPTURE FORM SECTION (Integrated to ERP)
   =========================================================================== */
.contact-section {
    background-color: var(--deep-forest);
    color: #ffffff;
    padding: 120px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 80px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-heading {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 30px;
}

.contact-description {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.5;
}

.contact-form-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 300;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    transition: var(--transition-smooth);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-primary);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

/* Style select options */
.form-group select option {
    background-color: var(--deep-forest);
    color: #ffffff;
}

.form-group textarea {
    resize: none;
}

#submitBtn {
    position: relative;
    height: 52px;
}

/* Spinner for integration wait */
.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

/* ===========================================================================
   9. ERP SYNCHRONIZATION MODAL (Ultra-Premium Glassmorphism Overlay)
   =========================================================================== */
.erp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 31, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.erp-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.erp-modal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 550px;
    padding: 40px;
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.erp-modal-overlay.active .erp-modal-card {
    transform: translateY(0);
}

.success-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(197, 160, 89, 0.15);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin: 0 auto 24px auto;
}

.success-icon-box svg {
    width: 36px;
    height: 36px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 24px;
}

.erp-payload-display {
    text-align: left;
    margin-bottom: 30px;
}

.payload-header {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.erp-payload-display pre {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #a5d6a7;
    overflow-x: auto;
    max-height: 180px;
}

/* ===========================================================================
   10. FOOTER
   =========================================================================== */
.main-footer {
    background-color: #050e09;
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 500px;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    padding-top: 30px;
}

/* ===========================================================================
   11. ANIMATIONS & RESPONSIVE
   =========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mouseScroll {
    0% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 4K Screens Optimization */
@media (min-width: 2000px) {
    :root {
        font-size: 20px;
    }
    .image-comparison-container {
        height: 800px;
    }
    .after-wrapper img {
        width: 1400px;
        height: 800px;
    }
    .portfolio-img-box {
        height: 600px;
    }
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .portfolio-img-box {
        height: 400px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    .header-container {
        position: relative;
    }
    .header-desktop-cta {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Hamburger Active (X) state */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 31, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 40px;
        box-sizing: border-box;
    }
    .nav-menu.active {
        transform: translateY(0);
    }
    .nav-link {
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.85);
    }
    .mobile-menu-cta {
        display: inline-block;
        margin-top: 15px;
        font-size: 1.1rem;
        padding: 15px 30px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Prevent scrolling when menu is active */
    body.menu-open {
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }
    .image-comparison-container {
        height: 320px;
    }
    .after-wrapper img {
        height: 320px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-heading {
        font-size: 2.2rem;
    }
    .contact-form-panel {
        padding: 30px 20px;
    }
}
