/* ===== CSS VARIABLES ===== */
:root {
    /* Clean Black/Gold/White Theme */
    --color-primary: #d4af37;       /* Gold primary */
    --color-primary-light: #f4d03f;
    --color-primary-dark: #b7950b;
    --color-secondary: #ffd700;     /* Bright gold secondary */
    --color-secondary-light: #ffed4e;
    --color-secondary-dark: #daa520;
    
    --color-accent: #ff6b35;
    --color-accent-light: #ff8c69;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Light Theme: White primary, Gold secondary, Black text */
    --color-bg-primary: #ffffff;
    --color-bg-primary-rgb: 255, 255, 255;
    --color-bg-secondary: #f8f8f8;
    --color-bg-secondary-rgb: 248, 248, 248;
    --color-bg-tertiary: #f0f0f0;
    --color-bg-card: #ffffff;
    --color-bg-overlay: rgba(212, 175, 55, 0.1);
    
    --color-text-primary: #000000;
    --color-text-secondary: #d4af37;
    --color-text-tertiary: #666666;
    --color-text-inverse: #ffffff;
    
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-border-dark: #d0d0d0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Animation */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-base: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;
    
    /* Container */
    --container-max-width: 1280px;
    --container-padding: var(--space-6);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    /* Dark Theme: Black primary, Gold secondary, White text */
    --color-bg-primary: #000000;
    --color-bg-primary-rgb: 0, 0, 0;
    --color-bg-secondary: #111111;
    --color-bg-secondary-rgb: 17, 17, 17;
    --color-bg-tertiary: #222222;
    --color-bg-card: #111111;
    --color-bg-overlay: rgba(212, 175, 55, 0.15);
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #d4af37;
    --color-text-tertiary: #cccccc;
    --color-text-inverse: #000000;
    
    --color-border: #333333;
    --color-border-light: #444444;
    --color-border-dark: #222222;
    
    /* Dark theme shadows with gold tint */
    --shadow-sm: 0 1px 2px 0 rgb(212 175 55 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(212 175 55 / 0.2), 0 2px 4px -2px rgb(212 175 55 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(212 175 55 / 0.2), 0 4px 6px -4px rgb(212 175 55 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(212 175 55 / 0.2), 0 8px 10px -6px rgb(212 175 55 / 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    transition: color var(--transition-base), background-color var(--transition-base);
    overflow-x: hidden;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

/* ===== HEADING STYLES ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
}
.nav__brand a {
    text-decoration: none;
    color: inherit;
}
.nav__logo {
    height: 32px;
    width: auto;
    margin-right: var(--space-2);
    object-fit: contain;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--space-8);
}

.nav__link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-full);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--border-radius-base);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-overlay);
}

.nav__toggle,
.nav__close {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--space-2);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-base);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

.btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
}

.btn--full {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: calc(80px + var(--space-20)) 0 var(--space-20);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(
            135deg, 
            rgba(var(--color-bg-primary-rgb), 0.5) 0%, /* Darkened overlay */
            rgba(var(--color-bg-secondary-rgb), 0.5) 100%
        ),
        url('../images/homeImage.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video Background */
.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__video-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video thumbnail play icons */
.video-thumb, .event-video__thumb {
    position: relative;
    overflow: hidden;
}

.video-thumb__play, .event-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    padding: 0.5rem;
    color: var(--color-white);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-thumb__play i, .event-video__play i {
    font-size: 1.1rem;
}



.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero__title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

.hero__highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-primary); /* Change text color to black */
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
}

.hero__buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
}

.hero__img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.hero__floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-size-xl);
    animation: float 6s ease-in-out infinite;
}

.floating-element--1 {
    top: 20%;
    left: 10%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    animation-delay: 0s;
}

.floating-element--2 {
    top: 40%;
    right: 5%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    animation-delay: 2s;
}

.floating-element--3 {
    bottom: 10%;
    left: 10%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

/* ===== SECTIONS ===== */
.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.section__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
    margin-bottom: var(--space-4);
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===== SERVICES SECTION ===== */
.services-preview {
    padding: var(--space-20) 0;
    background-color: var(--color-bg-secondary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.service__card {
    background-color: var(--color-bg-card);
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--color-white);
    font-size: var(--font-size-2xl);
}

.service__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
    margin-bottom: var(--space-4);
}

.service__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: var(--space-20) 0;
}

.portfolio__filters {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.filter__btn {
    background: none;
    border: 2px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--border-radius-full);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter__btn:hover,
.filter__btn.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-bg-overlay);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.portfolio__item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.portfolio__title {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    text-align: center;
}

.portfolio__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: var(--border-radius-lg);
}

.portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-base);
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 0.95;
}

.portfolio__item:hover .portfolio__image img {
    transform: scale(1.1);
}

.portfolio__content {
    text-align: center;
    color: var(--color-white);
}

.portfolio__content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.portfolio__content p {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.portfolio__buttons {
    display: flex;
    justify-content: center;
}

/* ===== MG MOTORS HORIZONTAL CAROUSEL ===== */
.mg-showcase {
    /* align with about page header: shorter and centered */
    padding: var(--space-8) 0;
    min-height: 50vh; /* match about page header height */
    display: flex;
    align-items: center;
    background: #000;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.mg-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* fill the parent (.mg-showcase) height so background covers consistently */
    height: 100%;
    z-index: 1;
    overflow: hidden;
    /* ensure background-image behaves like cover */
    background-size: stretch !important;
    background-position: center center !important;
}

/* Hide the inline iframe used for autoplay — use the thumbnail as full background instead. If you want autoplay, we can re-enable on interaction */
.mg-background-video .video-embed {
    display: none !important;
}

/* Allow opt-in class to show the iframe when explicitly desired */
.mg-background-video.video-active .video-embed {
    display: block !important;
}

/* Make embedded iframe cover the section (center + scale to ensure full cover) */
.mg-background-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.25);
    transform-origin: center center;
    width: 100%;
    height: 125%;
    min-width: 120%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    border: 0;
}

/* Stronger, inline-style overriding rule for the actual background iframe to ensure centering (overrides inline attributes) */
#mgBackgroundIframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    /* TRUE background-cover math */
    width: 100vw !important;
    height: 56.25vw !important; /* 16:9 */

    min-width: 177.77vh !important;
    min-height: 100% !important;

    transform: translate(-50%, -50%) !important;
    border: 0 !important;
}
/* Smaller screens: use a stronger scale so important center content stays visible */
@media (max-width: 640px) {
    .mg-background-video iframe {
        transform: translate(-50%, -50%) scale(1.45);
        width: auto;
        height: 160%;
    }
    #mgBackgroundIframe {
        transform: translate(-50%, -50%) scale(1.45) !important;
        width: auto !important;
        height: 160% !important;
    }
}

/* Responsive: reduce background video height and header padding on medium/small screens */
@media (max-width: 768px) {
    .mg-background-video {
        height: 240px; /* shorter height on smaller screens */
    }

    .mg-showcase .section__header {
        padding: 8px 12px;
    }

    .mg-showcase .section__title { font-size: 1.3rem; }
    .mg-showcase .section__subtitle { font-size: 0.9rem; }

    .mg-carousel-wrapper { padding: 10px; }
    .mg-carousel-item { height: 150px; min-width: 220px; }
}

/* MG Motors Showcase - Responsive Styles */
@media (max-width: 768px) {
    .mg-showcase {
        padding: 20px;
    }

    .mg-background-video {
        height: 200px;
        background-size: cover;
        background-position: center;
    }

    .mg-carousel-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mg-carousel-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .mg-carousel-item {
        flex: 1 1 calc(100% - 30px);
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }

    .mg-item-media img {
        width: 100%;
        height: auto;
    }

    .mg-item-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .mg-item-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .mg-cta-button {
        display: block;
        margin: 20px auto;
        padding: 10px 20px;
        background-color: var(--color-primary);
        color: var(--color-white);
        text-align: center;
        border-radius: var(--border-radius-base);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mg-carousel-item {
        flex: 1 1 100%;
        max-width: none;
    }

    .mg-item-title {
        font-size: 1rem;
    }

    .mg-item-description {
        font-size: 0.875rem;
    }

    .mg-cta-button {
        font-size: 0.875rem;
        padding: 8px 15px;
    }
}

.mg-background-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
}

.mg-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

.mg-showcase .container {
    position: relative;
    z-index: 3;
}

.mg-showcase .section__header {
    text-align: center;
    margin-bottom: var(--space-10);
    position: relative;
    z-index: 4;
    background: rgba(0, 0, 0, 0.55);
    /* tighter padding */
    padding: 10px 14px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 720px;
    margin: 0 auto var(--space-10);
}

.mg-showcase .section__title {
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    margin-bottom: var(--space-2);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #fff 0%, #dc143c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mg-showcase .section__subtitle {
    font-size: 0.95rem;
    color: #f0f0f0;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.mg-carousel-wrapper {
    position: relative;
    margin: var(--space-12) 0 var(--space-8);
    z-index: 4;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* reduced padding for a tighter layout */
    padding: 12px;
}

.mg-carousel-container {
    overflow: hidden;
    width: 100%;
}

.mg-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: var(--space-6);
}

.mg-carousel-item {
    min-width: 320px;
    height: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    transform: scale(0.9);
    opacity: 0.7;
}

.mg-carousel-item.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
}

.mg-item-media {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.mg-item-media img,
.mg-item-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.mg-carousel-item:hover .mg-item-media video,
.mg-carousel-item:hover .mg-item-media img {
    transform: scale(1.05);
}

.mg-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px 20px 20px;
    color: #fff;
}

.mg-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.mg-item-description {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
    line-height: 1.4;
}

.mg-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    z-index: 10;
    font-size: var(--font-size-lg);
}

.mg-nav-prev {
    left: -30px;
}

.mg-nav-next {
    right: -30px;
}

.mg-nav-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: #ff0000;
    transform: translateY(-50%) scale(1.1);
}

.mg-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background-color: #ff0000;
    color: #ffffff;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--border-radius-base);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 0 auto;
    display: flex;
    max-width: 250px;
}

.mg-cta-button:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

/* MG Play Overlay */
.mg-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(220, 20, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    cursor: pointer;
}

.mg-play-overlay:hover {
    background: rgba(220, 20, 60, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.5);
}

.mg-view-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(60, 179, 113, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    cursor: pointer;
}

.mg-view-overlay:hover {
    background: rgba(60, 179, 113, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(60, 179, 113, 0.5);
}

/* MG Video Modal */
.mg-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.mg-video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(220, 20, 60, 0.3);
}

.mg-video-content .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mg-video-content .close:hover {
    background: rgba(220, 20, 60, 1);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.5);
}

.mg-modal video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: #000;
    display: block;
}

.mg-modal-caption {
    padding: 20px 30px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border-top: 2px solid rgba(220, 20, 60, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mg-carousel-item {
        min-width: 240px;
        height: 160px;
    }
    
    .mg-nav-btn {
        width: 48px;
        height: 48px;
    }
    
    .mg-nav-prev {
        left: 10px;
    }
    
    .mg-nav-next {
        right: 10px;
    }
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--space-20) 0;
    background: 
        linear-gradient(
            135deg, 
            rgba(var(--color-bg-primary-rgb), 0.9) 0%, 
            rgba(var(--color-bg-secondary-rgb), 0.8) 100%
        ),
        url('../images/homeImage.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-primary);
}

.cta__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
}

.cta__description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

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

.cta .btn--primary:hover {
    background-color: var(--color-bg-secondary);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-bg-tertiary);
    padding: var(--space-20) 0 var(--space-8);
    border-top: 1px solid var(--color-border);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 400px;
    text-align: left;
    margin: 0 auto;
}

.footer__logo {
    display: flex;
    align-items: left;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    justify-content: left;
    text-align: left;
}

.footer__logo i {
    color: var(--color-primary);
    font-size: var(--font-size-2xl);
    margin-right: var(--space-2);
}

.footer__description {
    text-align: left;
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-4);
    justify-content: left;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-base);
    background-color: var(--color-bg-overlay);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social__link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: var(--space-3);
}

.footer__list a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer__list i {
    margin-right: var(--space-2);
    color: var(--color-primary);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background-color: var(--color-bg-card);
    margin: 5% auto;
    padding: var(--space-8);
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

.modal__content--small {
    max-width: 500px;
}

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

.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: var(--font-size-2xl);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal__close:hover {
    color: var(--color-primary);
}

.modal__header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.modal__header i {
    font-size: var(--font-size-4xl);
    color: var(--color-success);
    margin-bottom: var(--space-4);
}

.modal__header h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-text-primary);
}

.modal__body {
    text-align: center;
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.modal__footer {
    display: flex;
    justify-content: center;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: calc(80px + var(--space-16)) 0 var(--space-16);
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header .animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.page-header .animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page-header .floating-element {
    position: absolute;
    color: var(--color-primary);
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.page-header .floating-element i {
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.page-header .floating-element--1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.page-header .floating-element--2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.page-header .floating-element--3 {
    top: 60%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.page-header .floating-element--4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.page-header .floating-element--5 {
    top: 40%;
    left: 5%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.page-header .floating-element--6 {
    top: 80%;
    right: 20%;
    animation-delay: 5s;
    animation-duration: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
        opacity: 0.6;
    }
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
    margin-bottom: var(--space-4);
}

.page-header__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb__separator {
    color: var(--color-text-tertiary);
}

.breadcrumb__current {
    color: var(--color-text-secondary);
}

/* ===== SERVICES DETAILED ===== */
.services-detailed {
    padding: var(--space-20) 0;
}

.service-detail {
    margin-bottom: var(--space-24);
}

.service-detail__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.service-detail--reverse .service-detail__content {
    direction: rtl;
}

.service-detail--reverse .service-detail__text {
    direction: ltr;
}

.service-detail__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--color-white);
    font-size: var(--font-size-2xl);
}

.service-detail__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.service-detail__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    font-size: var(--font-size-lg);
}

.service-detail__features {
    margin-bottom: var(--space-8);
}

.service-detail__features h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.service-detail__features ul {
    list-style: none;
}

.service-detail__features li {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
}

.service-detail__features i {
    color: var(--color-success);
    margin-right: var(--space-3);
    font-size: var(--font-size-sm);
}

.service-detail__pricing {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.service-detail__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: var(--space-20) 0;
    background-color: var(--color-bg-secondary);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.process__step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    padding: var(--space-8);
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.process__step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.process__number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.process__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.process__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===== ABOUT PAGE STYLES ===== */
.about-story {
    padding: var(--space-20) 0;
}

.about-story__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-story__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.about-story__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-lg);
}

.about-story__highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.highlight {
    text-align: center;
    padding: var(--space-4);
    border-radius: var(--border-radius-base);
    background-color: var(--color-bg-overlay);
}

.highlight__number {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.highlight__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

.about-story__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-values {
    padding: var(--space-20) 0;
    background-color: var(--color-bg-secondary);
}

.mission-values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.mission-values__item {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.mission-values__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: var(--color-white);
    font-size: var(--font-size-2xl);
}

.mission-values__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.mission-values__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===== TEAM SECTION ===== */
.team {
    padding: var(--space-20) 0;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.team__member {
    text-align: center;
    background-color: var(--color-bg-card);
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.team__member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team__image {
    position: relative;
    margin-bottom: var(--space-6);
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
}

.team__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team__social {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    transition: opacity var(--transition-base);
}

.team__image:hover .team__social {
    opacity: 0.95;
}

.team__link {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.team__link:hover {
    transform: scale(1.2);
}

.team__name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.team__role {
    font-size: var(--font-size-base);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
}

.team__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-sm);
}

/* ===== AWARDS SECTION ===== */
.awards {
    padding: var(--space-20) 0;
    background-color: var(--color-bg-secondary);
}

.awards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.award__item {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.award__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.award__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: var(--color-white);
    font-size: var(--font-size-2xl);
}

.award__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.award__year {
    font-size: var(--font-size-base);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-3);
}

.award__description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--space-20) 0;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.testimonial__item {
    background-color: var(--color-bg-card);
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-base);
}

.testimonial__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial__stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    color: var(--color-accent);
}

.testimonial__text {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial__author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.testimonial__position {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-section {
    padding: var(--space-20) 0;
}

.contact__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
}

.contact__form-wrapper {
    background-color: var(--color-bg-card);
    padding: var(--space-10);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact__form-header {
    margin-bottom: var(--space-8);
}

.contact__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.contact__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-lg);
}

/* ===== FORM STYLES ===== */
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form__group {
    margin-bottom: var(--space-6);
}

.form__label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-base);
    font-size: var(--font-size-base);
    font-family: inherit;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form__check {
    margin: 0;
    accent-color: var(--color-primary);
}

.form__check-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===== CONTACT INFO STYLES ===== */
.contact__info {
    background-color: var(--color-bg-secondary);
    padding: var(--space-10);
    border-radius: var(--border-radius-lg);
    height: fit-content;
}

.contact__info-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.contact__info-item:last-of-type {
    margin-bottom: var(--space-12);
    border-bottom: none;
}

.contact__info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-base);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.contact__info-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.contact__info-text {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-3);
}

.contact__info-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.contact__info-hours {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    font-style: italic;
}

.contact__info-note {
    font-size: var(--font-size-sm);
    color: var(--color-success);
    font-weight: var(--font-weight-medium);
}

.contact__social-section {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-8);
}

.contact__social-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.contact__social {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact__social-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ===== MAP SECTION ===== */
.map-section {
    height: 400px;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    position: relative;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.map-content {
    text-align: center;
    color: var(--color-white);
    max-width: 400px;
}

.map-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
}

.map-content p {
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
    opacity: 0.9;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--space-20) 0;
    background-color: var(--color-bg-secondary);
}

.faq__grid {
    display: grid;
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-base);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq__item:hover {
    box-shadow: var(--shadow-md);
}

.faq__question {
    padding: var(--space-6);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq__question h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.faq__icon {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    transition: transform var(--transition-fast);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq__item.active .faq__answer {
    max-height: 200px;
}

.faq__answer p {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero__container,
    .gallery-hero__container,
    .about-story__content,
    .service-detail__content,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .service-detail--reverse .service-detail__content {
        direction: ltr;
    }
    
    .hero__image,
    .gallery-hero__image {
        order: -1;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg-card);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-20) var(--space-6);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
    }
    
    .nav__menu.show {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--space-6);
        width: 100%;
    }
    
    .nav__link {
        font-size: var(--font-size-lg);
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: var(--space-6);
        right: var(--space-6);
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .section__title {
        font-size: var(--font-size-2xl);
    }
    
    .page-header__title {
        font-size: var(--font-size-3xl);
    }
    
    .form__row {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mg-carousel-item {
        min-width: 300px;
    }
    
    .process__steps {
        grid-template-columns: 1fr;
    }
    
    .process__step {
        flex-direction: column;
        text-align: center;
    }
    
    .about-story__highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(80px + var(--space-12)) 0 var(--space-12);

    }
    
    .hero__title {
        font-size: var(--font-size-2xl);
    }
    
    .section__title {
        font-size: var(--font-size-xl);
    }
    
    .portfolio__grid,
    .services__grid,
    .team__grid {
        grid-template-columns: 1fr;
    }
    
    .mg-carousel-item {
        min-width: 230px;
        height:  160px;
    }
    
    .floating-element {
        display: none;
    }
    
    .about-story__highlights {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: var(--font-size-sm);
        padding: var(--space-3) var(--space-4);
    }
    
    .btn--large {
        font-size: var(--font-size-base);
        padding: var(--space-4) var(--space-6);
    }
    .footer-brand {
        text-align: center;
    }
    .footer__logo {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .footer__description {
        text-align: center;
        font-size: var(--font-size-sm);
    }
    .footer__social {
        justify-content: center;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .service__card,
    .portfolio__item,
    .team__member,
    .testimonial__item {
        opacity: 0;
        transform: translateY(30px);
        transition: all var(--transition-slow);
    }
    
    .service__card.animate,
    .portfolio__item.animate,
    .team__member.animate,
    .testimonial__item.animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILITY ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease-out;
}

/* ===== GALLERY PAGE STYLES ===== */
.gallery-hero {
    padding: calc(80px + var(--space-16)) 0 var(--space-16);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    overflow: hidden;
}

.gallery-hero .hero__background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gallery-hero .hero__background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-hero .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(212, 175, 55, 0.3) 100%
    );
    z-index: 2;
}

.gallery-hero__container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.gallery-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
    color: var(--color-heading);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.gallery-hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-hero__image-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.gallery-hero__img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.gallery-filters {
    padding: var(--space-8) 0 var(--space-4);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-full);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    cursor: pointer;
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.gallery {
    padding: var(--space-12) 0;
}

.gallery__section {
    margin-bottom: var(--space-16);
}

.gallery__section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
    margin-bottom: var(--space-8);
    position: relative;
}

.gallery__section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-2);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--border-radius-sm);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.gallery__item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery__image,
.gallery__video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
}

.gallery__image img,
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover .gallery__image img,
.gallery__item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
    transition: all var(--transition-base);
}

.gallery__item:hover .play-button {
    background-color: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__content {
    color: white;
    text-align: left;
    width: 100%;
}

.gallery__content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
}

.gallery__content p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-3);
}

.gallery__view-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.gallery__view-btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-1px);
}

/* Gallery Responsive Design */
@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-4);
    }
    
    .filter-tabs {
        gap: var(--space-2);
    }
    
    .filter-tab {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
}

/* Gallery Modal Styles */
.modal-media {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 85vh;
}

.modal-image,
.modal-video {
    max-width: 100%;
    max-height: 80vh;
    min-height: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.modal-nav:hover:not(:disabled) {
    background-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav--prev {
    left: -25px;
}

.modal-nav--next {
    right: -25px;
}

.modal-info {
    margin-top: var(--space-4);
    text-align: left;
}

.modal-info h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.modal-info p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Responsive modal navigation */
@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .modal-nav--prev {
        left: -20px;
    }
    
    .modal-nav--next {
        right: -20px;
    }
    
    .modal-image,
    .modal-video {
        max-height: 60vh;
    }
}

.video-placeholder {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: var(--space-16) var(--space-8);
    border-radius: var(--border-radius-lg);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.video-placeholder p {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.video-placeholder small {
    font-size: var(--font-size-base);
    opacity: 0.8;
}

/* Portfolio Carousel Styles */
.portfolio-carousel-container {
    position: relative;
}

.portfolio-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    height: 250px;
}

.portfolio-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.portfolio-carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.portfolio-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 175, 55, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.portfolio-play-overlay i {
    color: white;
    font-size: 24px;
    margin-left: 3px;
}

.portfolio-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(212, 175, 55, 1);
}

.portfolio-slide-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius-base);
    z-index: 2;
}

.portfolio-slide-info h5 {
    color: white;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.portfolio-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    font-size: var(--font-size-base);
}

.portfolio-nav-btn:hover {
    background: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.05);
}

.portfolio-nav-prev {
    left: 10px;
}

.portfolio-nav-next {
    right: 10px;
}

@media (max-width: 768px) {
    .portfolio-carousel-wrapper {
        height: 200px;
    }
    
    .portfolio-play-overlay {
        width: 50px;
        height: 50px;
    }
    
    .portfolio-play-overlay i {
        font-size: 20px;
    }
    
    .portfolio-nav-btn {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-sm);
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-up.animate {
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-left.animate {
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(50px);
}

.fade-in-right.animate {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.8);
}

.scale-in.animate {
    transform: scale(1);
}

.stagger-animation {
    transition-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

/* Hero Section Animations */
.hero__title {
    animation: slideInFromLeft 1s ease-out;
}

.hero__description {
    animation: slideInFromLeft 1.2s ease-out;
}

.hero__buttons {
    animation: slideInFromLeft 1.4s ease-out;
}

.hero__image {
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* MG Section Parallax Effect */
.mg-showcase {
    transition: transform 0.1s ease-out;
}

/* Service Cards Hover Animation */
.service__card {
    transition: all 0.3s ease;
}

.service__card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.service__card:hover .service__icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--color-primary);
}

.service__icon {
    transition: all 0.3s ease;
}

/* Portfolio Cards Animation */
.portfolio__item {
    transition: all 0.4s ease;
}

.portfolio__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
    backdrop-filter: blur(5px);
}

/* MG Carousel Animation Enhancement */
.mg-carousel-item {
    transition: all 0.5s ease;
}

.mg-carousel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Floating Elements Enhanced */
.floating-element {
    animation: advancedFloat 8s ease-in-out infinite;
}

.floating-element--1 {
    animation-delay: 0s;
}

.floating-element--2 {
    animation-delay: 2s;
}

.floating-element--3 {
    animation-delay: 4s;
}

@keyframes advancedFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-30px) translateX(10px) rotate(5deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-20px) translateX(-10px) rotate(-3deg) scale(1.05);
        opacity: 1;
    }
    75% {
        transform: translateY(-40px) translateX(5px) rotate(2deg) scale(1.08);
        opacity: 0.8;
    }
}

/* Section Title Animations */
.section__title {
    position: relative;
    overflow: hidden;
}

.section__title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.8s ease;
}

.section__title.animate::before {
    left: 100%;
}

/* Button Pulse Animation */
.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn--primary:hover::before {
    width: 300px;
    height: 300px;
}

/* CTA Section Animation */
.cta {
    background: linear-gradient(-45deg, var(--color-bg-primary), var(--color-bg-secondary), var(--color-primary), var(--color-bg-primary));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .contact__social {
        align-items: center; /* Center align icons and text on mobile */
    }

    .contact__social-link {
        justify-content: center; /* Center each social link */
    }
}