/* =========================================================================
   SSV Global - Professional Main Stylesheet (Nested Mobile Navigation)
   ========================================================================= */

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

:root {
    --primary-color: #D4AF37;
    --primary-dark: #B8941F;
    --primary-light: rgba(212, 175, 55, 0.1);
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --container-padding: 40px;
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding-top: 80px;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Lora', serif;
}

/* =========================================================================
   FLUID TYPOGRAPHY ENGINE (Universally Responsive For All Devices)
   Using clamp(MIN, VAL, MAX) to smoothly scale fonts from Mobile to 4K
   ========================================================================= */
.display-1 { font-size: clamp(2.8rem, 6vw + 1rem, 6rem) !important; }
.display-2 { font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem) !important; }
.display-3 { font-size: clamp(2.2rem, 4.5vw + 1rem, 4.5rem) !important; line-height: 1.2; }
.display-4 { font-size: clamp(1.8rem, 3.5vw + 1rem, 3.5rem) !important; line-height: 1.2; }
.display-5 { font-size: clamp(1.5rem, 2.5vw + 1rem, 3rem) !important; }
.display-6 { font-size: clamp(1.2rem, 2vw + 1rem, 2.5rem) !important; }
/* Universal Responsive Typography */
p { 
    max-width: 650px; /* Avoid too wide lines for better readability */
    margin-left: 0;
    margin-right: auto;
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    line-height: 1.7; /* Optimized for breathing room */
    text-align: justify;
    text-justify: inter-word;
    font-size: 1.05rem;
    hyphens: auto;
}

/* Mobile Alignment Override */
@media (max-width: 991px) {
    p {
        text-align: left; /* Better for small screens */
        max-width: 100%;
    }
}

li { 
    max-width: 100%; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    line-height: 1.6;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-light);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(184, 147, 50, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 2. LAYOUT
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

section {
    padding: 100px 0;
    width: 100%;
}

/* 3. NAVIGATION (Floating Header + Mega Menu)
   ------------------------------------------------------------------------- */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    padding: 20px 0 !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition-base);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.navbar-brand:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    top: 15px;
    background: #fff !important;
    min-height: 70px !important;
    height: 70px !important;
}

.navbar.scrolled .navbar-brand img {
    height: 70px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-muted) !important;
    margin: 0 20px;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    padding: 10px 0 !important;
    position: relative;
    transition: var(--transition-base);
    font-family: 'Inter', sans-serif;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: var(--transition-base);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after, 
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Mega Menu (Desktop) - Modern Design */
.dropdown-menu.mega-menu {
    position: absolute;
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px);
    width: 600px;
    max-width: 90vw;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-base);
    display: block;
}

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

.dropdown-header {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 0 15px 12px;
}

.dropdown-item {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 4. MOBILE NAVIGATION (Nested Accordion)
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
    body { padding-top: 70px; }
    
    .navbar {
        width: auto !important;
        left: 15px;
        right: 15px;
        border-radius: var(--border-radius-lg);
        top: 15px;
        padding: 16px 20px !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
        gap: 8px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .nav-cta {
        display: none;
    }

    .navbar-nav .nav-link {
        margin: 0 12px;
        font-size: 0.9rem;
    }

    /* Mobile Hero Section */
    .hero-section-modern {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        justify-content: center;
        gap: 12px;
    }

    .btn {
        min-width: auto;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-image-wrapper {
        margin: 0 auto;
        max-width: 500px;
    }

    /* Mobile Service Cards */
    .service-card-item {
        padding: 24px;
        margin-bottom: 16px;
    }

    .sc-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .service-card-title {
        font-size: 1.1rem;
    }

    .service-card-desc {
        font-size: 0.95rem;
    }

    /* Mobile Navigation */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        margin-top: 15px;
        border-radius: 24px;
        padding: 20px 15px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        margin: 2px 0;
        border-radius: 12px;
    }

    .navbar-nav .nav-link:hover {
        background: var(--primary-light);
    }

    .navbar-nav .nav-link::after { display: none; }

    .nav-item.dropdown {
        position: static !important;
    }

    /* Fix the overall Mega Menu container for mobile */
    .dropdown-menu.mega-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: none; 
        margin: 5px 0 0 0 !important;
        padding: 10px 0 !important;
        border-radius: 12px !important;
    }

    .dropdown-menu.mega-menu.show {
        display: block !important;
    }

    /* Nested Mobile Layout Styling */
    .mega-menu-column {
        padding: 0;
        border: none !important;
    }

    .mega-menu-group {
        margin-bottom: 5px;
    }

    .mobile-toggle {
        padding: 15px 20px !important;
        cursor: pointer;
        transition: var(--transition-smooth);
        border-radius: 12px;
        background: rgba(0,0,0,0.02);
        margin: 5px 12px;
        user-select: none;
        color: var(--text-dark) !important;
        pointer-events: auto !important;
        display: flex !important;
    }

    .mobile-toggle:hover {
        background: var(--primary-light);
        color: var(--primary-color) !important;
    }

    .mobile-toggle i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .mega-menu-group.active .mobile-toggle {
        color: var(--primary-color) !important;
        background: var(--primary-light);
    }

    .mega-menu-group.active .mobile-toggle i {
        transform: rotate(180deg);
    }

    /* Expanding Sub-list */
    .mega-menu-list {
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-left: 15px;
        border-left: 2px solid rgba(184, 147, 50, 0.15);
        margin-left: 15px;
        margin-bottom: 5px;
    }

    .mega-menu-list .dropdown-item {
        margin: 2px 0;
        padding: 10px 15px;
        font-size: 0.95rem;
        border-radius: 8px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        background: transparent;
    }

    .mega-menu-list .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* 5. MODERN HERO SECTION
   ------------------------------------------------------------------------- */
.hero-section-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .text-dark,
.hero-section h1,
.hero-section p {
    color: var(--text-dark) !important;
}

.hero-section p {
    opacity: 0.75;
}

/* Remove blobs, use elegant geometric lines */
.aurora-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.aurora-blob { display: none !important; }

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 42px !important;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    color: var(--text-dark); /* Crisp dark text for light background */
}

.hero-title .text-bold {
    font-weight: 800; /* Extra bold for the "scalable" parts */
}

.hero-title .text-gold {
    color: var(--primary-color);
}

.reveal-item {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 5px;
}

/* Maintain compatibility with previous reveal system but simplify for the new style */
.hero-title .reveal-line {
    display: block;
    overflow: visible; /* Allow spans to wrap naturally if needed */
    line-height: 1.3;
}

/* Premium Reveal Animation System */
.reveal-line {
    display: block;
    overflow: hidden;
    line-height: 1.25;
}

.reveal-inner {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    animation: revealUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.reveal-line:nth-child(1) .reveal-inner { animation-delay: 0.2s; }
.reveal-line:nth-child(2) .reveal-inner { animation-delay: 0.4s; }
.reveal-line:nth-child(3) .reveal-inner { animation-delay: 0.6s; }

.highlight-gold {
    background: linear-gradient(135deg, #B89332 0%, #AA801E 50%, #B89332 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Added standard property to fix lint */
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: goldShimmer 5s linear infinite;
}

@keyframes revealUp {
    0% { transform: translateY(110%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.reveal-item-fade {
    opacity: 0;
    animation: fadeInSlide 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.4rem, 1.15rem) !important;
    color: var(--text-muted); /* Darker grey for readability */
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 580px;
    text-align: justify;
    text-justify: inter-word;
    font-weight: 400;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .hero-subtitle {
        text-align: left;
        max-width: 100%;
    }
}

/* Refined Reveal Animation */
.premium-text-reveal .reveal-line {
    margin-bottom: 0.15em;
}

.premium-text-reveal .reveal-inner {
    display: inline-block;
    background: linear-gradient(to bottom, #111 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Added standard property */
    -webkit-text-fill-color: transparent;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(184, 147, 50, 0.12) 0%, rgba(255,255,255,0) 75%);
    transform: translate(-50%, -50%);
    z-index: 0;
    border-radius: 50%;
    animation: pulseBlob 8s ease-in-out infinite;
}

@keyframes pulseBlob {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

.hero-main-img {
    border-radius: 4px; /* Sharp corners for modern architecture feel */
    width: 100%; 
    height: auto;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-main-img:hover {
    transform: scale(1.02);
}

/* Minimalist Floating Badge */
.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    padding: 1.5rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 10;
    animation: floatBadge 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 18px;
}

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

.icon-round {
    background: linear-gradient(135deg, #FFDF73 0%, #AA801E 100%) !important;
    color: #fff !important;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(184, 147, 50, 0.3);
}

@media (max-width: 991px) {
    .floating-badge {
        left: 20px;
        bottom: -20px;
        padding: 1rem 1.5rem;
    }
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    min-width: 140px;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-2px);
}

/* Legacy button support */
.btn-primary-custom {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition-base) !important;
}

.btn-primary-custom:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
}

.btn-outline-custom {
    background: transparent !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--text-dark) !important;
    padding: 12px 24px !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition-base) !important;
}

.btn-outline-custom:hover {
    background: var(--text-dark) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Modern CTA Button */
.nav-cta {
    display: flex;
    align-items: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(4px);
}

/* The Glossy Shine Swoosh Animation */
.btn-primary-custom::before, 
.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-primary-custom:hover::before, 
.btn-outline-custom:hover::before {
    left: 200%;
}

.trust-card {
    background: #fff;
    padding: 45px 30px;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    text-align: center;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
    .hero-title { 
        font-size: 36px !important; /* Slightly smaller for tablets */
        letter-spacing: -1px; 
        line-height: 1.2;
    }
    .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 767px) {
    h1, .display-3, .hero-title { 
        font-size: 26px !important; /* Significantly smaller for mobile devices */
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .hero-subtitle { 
        font-size: 0.95rem; 
        margin-bottom: 30px;
        line-height: 1.6;
    }
    .reveal-item {
        letter-spacing: 2px; /* Reduced for mobile */
        font-size: 0.65rem !important;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        margin-left: -5px; /* Visual optical alignment */
    }
}



/* 6. PORTFOLIO
   ------------------------------------------------------------------------- */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
    min-height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.portfolio-name {
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Lora', serif;
}

/* 7. BRAND MARQUEE (Redesigned)
   ------------------------------------------------------------------------- */
.brand-section-container {
    padding: 60px 0;
}

.brand-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    display: flex;
}

.brand-marquee-wrapper::before,
.brand-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, rgba(249, 249, 251, 0) 100%);
}

.brand-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, rgba(249, 249, 251, 0) 100%);
}

.brand-marquee-track {
    display: flex;
    align-items: center;
    gap: 100px;
    width: max-content;
    animation: scrollMarquee 40s linear infinite;
    padding-left: 50px;
}

.brand-marquee-track:hover {
    animation-play-state: paused;
}

.brand-item {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #cbd0d8;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: default;
    white-space: nowrap;
}

/* Typographic Logo Simulation */
.brand-item:nth-child(6n+1) { font-family: 'Lora', serif; font-weight: 500; letter-spacing: -1px; text-transform: capitalize; } /* American Apparel */
.brand-item:nth-child(6n+2) { font-weight: 900; font-style: italic; color: #e57373; opacity: 0.8; } /* H&M pseudo */
.brand-item:nth-child(6n+3) { font-weight: 700; letter-spacing: -2px; text-transform: lowercase; } /* asos */
.brand-item:nth-child(6n+4) { font-weight: 900; letter-spacing: 2px; } /* MANGO */
.brand-item:nth-child(6n+5) { font-weight: 300; letter-spacing: 4px; } /* NORDSTROM */
.brand-item:nth-child(6n+6) { font-family: 'Lora', serif; font-weight: 600; text-transform: lowercase; } /* next */

/* Interactive Hover Lighting */
.brand-item:hover {
    color: var(--primary-color) !important;
    opacity: 1 !important;
    transform: scale(1.15) translateY(-5px);
    text-shadow: 0 10px 20px rgba(184, 147, 50, 0.25);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-25% - 25px)); } /* Since we have 4 identical groups, scrolling one group is 25% */
}

@media (max-width: 991px) {
    .brand-marquee-wrapper::before, .brand-marquee-wrapper::after { width: 150px; }
    .brand-marquee-track { gap: 60px; animation-duration: 25s; }
    .brand-item { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .brand-marquee-wrapper::before, .brand-marquee-wrapper::after { width: 80px; }
    .brand-marquee-track { gap: 40px; padding-left: 20px; }
    .brand-item { font-size: 1.25rem; }
    @keyframes scrollMarquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-25% - 10px)); }
    }
}

/* 8. MODERN SERVICE CARDS
   ------------------------------------------------------------------------- */
.service-card-item {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    text-align: left;
    height: 100%;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.sc-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.service-card-item:hover .sc-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.service-card-title {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-card-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.service-card-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Legacy trust card support */
.trust-card-premium {
    position: relative;
    background: #fff;
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(184, 147, 50, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    text-align: left;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
}

.trust-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(184, 147, 50, 0.03) 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.5s ease;
}

.trust-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(184, 147, 50, 0.08);
    border-color: rgba(184, 147, 50, 0.3);
}

.trust-card-premium:hover::before {
    opacity: 1;
}

.trust-icon-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,1) 100%);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(184, 147, 50, 0.1);
    transition: all 0.4s ease;
}

.trust-card-premium:hover .trust-icon-premium {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 25px rgba(184, 147, 50, 0.3);
}

.icon-bg-watermark {
    position: absolute;
    bottom: -15%;
    right: -10%;
    font-size: 10rem;
    color: var(--primary-light);
    opacity: 0.3;
    z-index: -2;
    transform: rotate(-15deg);
    transition: all 0.6s ease;
}

.trust-card-premium:hover .icon-bg-watermark {
    color: var(--primary-color);
    opacity: 0.05;
    transform: rotate(0deg) scale(1.1);
}

/* 9. PREMIUM FOOTER
   ------------------------------------------------------------------------- */
.premium-footer {
    background: #111113;
    background-image: radial-gradient(circle at top right, rgba(184, 147, 50, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(184, 147, 50, 0.04) 0%, transparent 40%);
    color: #fff;
    padding-top: 150px;
    padding-bottom: 30px;
    margin-top: 150px;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.footer-cta-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 60px;
    position: absolute;
    top: -90px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.footer-logo-text {
    font-family: 'Lora', serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.footer-desc {
    color: #8c8c91;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(184, 147, 50, 0.3);
    color: #fff;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #8c8c91;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
    margin-right: 0px;
    color: var(--primary-color);
    font-size: 0.8rem;
    width: 0;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(8px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
    margin-right: 8px;
    width: 10px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
}

.fc-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(184, 147, 50, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    border: 1px solid rgba(184, 147, 50, 0.2);
}

.fc-text {
    color: #cfcfd1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fc-text a {
    color: #cfcfd1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #6a6a6f;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .premium-footer { margin-top: 200px; padding-top: 200px; }
    .footer-cta-card { top: -140px; padding: 40px 30px; text-align: center; }
    .footer-cta-card .text-lg-end { text-align: center !important; margin-top: 30px; }
}

/* 10. HERO Animated Background Mesh
   ------------------------------------------------------------------------- */
.hero-bg-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: flowMesh 15s infinite alternate ease-in-out;
    opacity: 0.7;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(184, 147, 50, 0.15); /* Primary Gold */
    top: -10%;
    left: -15%;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 700px;
    height: 700px;
    background: rgba(160, 160, 165, 0.1); /* Subtle Silver/Grey */
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.hero-blob-3 {
    width: 500px;
    height: 500px;
    background: rgba(184, 147, 50, 0.08); /* Lighter Gold */
    top: 30%;
    left: 40%;
    animation-duration: 25s;
    animation-delay: -10s;
}

/* Subtle Grid/Dot Pattern Overlay (Optional extra texture) */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.03) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
}

@keyframes flowMesh {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(60px, -60px) scale(1.15) rotate(20deg); }
    66% { transform: translate(-40px, 90px) scale(0.85) rotate(-15deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* =========================================================================
   UI/UX FLUID & RESPONSIVE FIXES (End-To-End Checks)
   ========================================================================= */

/* Handle Desktop Default Heights previously dictated by inline styles */
@media (min-width: 992px) {
    .qa-img-wrapper { height: 550px; }
    .service-img-wrapper-tall { height: 650px; }
    .service-img-wrapper-normal { height: 500px; }
}

/* Tablet Overrides */
@media (max-width: 991px) {
    section {
        padding: 70px 0 !important; /* Overrides aggressive 100px inline paddings */
    }
    .service-img-wrapper, 
    .qa-img-wrapper,
    .service-img-wrapper-tall,
    .service-img-wrapper-normal {
        height: 350px !important; /* Force scaled height to preserve UI layout */
    }
}

/* Mobile Overrides */
@media (max-width: 576px) {
    section {
        padding: 50px 0 !important;
    }
    .service-img-wrapper, 
    .qa-img-wrapper,
    .service-img-wrapper-tall,
    .service-img-wrapper-normal {
        height: 250px !important;
    }
    /* Prevent title blowouts */
    h2 { word-break: break-word; font-size: calc(1.5rem + 1vw); }
}

/* Base Component Classes */
/* 11. PREMIUM SERVICE CARDS
   ------------------------------------------------------------------------- */
.service-card-item {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 40px; /* More rounded for premium feel */
    border: 1px solid rgba(184, 147, 50, 0.05); /* Very subtle gold border */
    display: flex;
    flex-direction: column; /* Stacked look for better focus */
    align-items: flex-start;
    gap: 25px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); /* Very soft base shadow */
    position: relative;
    overflow: hidden;
}

.service-card-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 0;
    background: var(--primary-color);
    transition: all 0.5s ease;
}

.service-card-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.06);
    border-color: rgba(184, 147, 50, 0.2);
}

.service-card-item:hover::before {
    height: 100%;
}

.sc-icon {
    background: linear-gradient(135deg, rgba(184, 147, 50, 0.08) 0%, rgba(184, 147, 50, 0.02) 100%);
    width: 75px;
    height: 75px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.service-card-item:hover .sc-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.service-card-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.service-card-link i {
    transition: transform 0.3s ease;
}

.service-card-link:hover {
    letter-spacing: 1.5px;
}

.service-card-link:hover i {
    transform: translateX(8px);
}

.footer-cta-title {
    font-family: 'Lora', serif; 
    font-size: 2.2rem; 
    letter-spacing: -0.5px;
}
.footer-cta-subtitle {
    font-size: 1.1rem;
}

/* Mobile Overrides Refinement */
@media (max-width: 991.98px) {
    /* Navbar fixed top, non-floating, full width to save space */
    /* Ultra-Slim Mobile Header with Maximized Logo Icon */
    .navbar {
        width: 94% !important;
        top: 8px !important;
        left: 3% !important;
        right: auto !important;
        margin: 0 auto !important;
        border-radius: 15px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 0 15px !important; /* Zero vertical padding */
        transform: none !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
        border: 1px solid rgba(184, 147, 50, 0.12) !important;
        position: fixed !important;
        height: 65px !important; /* Fixed compact header */
        min-height: 65px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 15px !important; 
        overflow: visible !important; /* Restored visibility for menu dropdown */
    }
    
    .navbar-toggler {
        border: none !important;
        padding: 0 !important;
        width: 34px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f1f3f5 !important;
        border-radius: 8px !important;
        outline: none !important;
        transform: translateY(-5px) !important; /* Elevated for premium alignment */
    }
    
    .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .navbar-brand {
        margin-right: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
        transform: translateY(-5px) !important; /* Elevated for premium alignment */
    }

    .navbar-brand img {
        height: 80px !important; /* Target visually large 80px height */
        width: auto !important;
        display: block !important;
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
        position: relative;
        z-index: 10001;
    }

    body { padding-top: 65px !important; }
    
    /* Service Cards (Column wrap and smaller padding for screen space) */
    .service-card-item {
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .service-card-item .sc-icon {
        margin-bottom: 5px;
    }

    /* Fix Footer CTA Card text wrap & cut off issue */
    .footer-cta-card {
        width: calc(100% - 30px) !important;
        max-width: none !important;
        left: 15px !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 35px 25px !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        background: #1A1A1D !important;
        background-image: radial-gradient(circle at top right, rgba(184, 147, 50, 0.15) 0%, transparent 80%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(184, 147, 50, 0.4) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    }

    .footer-cta-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        word-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .footer-cta-subtitle {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    /* Paragraph Spacing Mobile Fixes */
    p {
        text-align: left !important;
        line-height: 1.5 !important;
    }

    /* Mobile Portfolio Filter Scroll Fix */
    section .container > .d-flex.justify-content-center.gap-3 {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    section .container > .d-flex.justify-content-center.gap-3::-webkit-scrollbar {
        display: none;
    }
    /* Redesign ALL Button Sizes (Mobile) */
    .btn, .btn-primary-custom, a.btn-primary-custom, button.btn-primary-custom {
        padding: 0.85rem 1.8rem !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
        display: inline-flex !important;
        align-items: center;
        width: auto !important;
        min-width: 160px !important;
    }

    section .container > .d-flex.justify-content-center.gap-3 .btn {
        min-width: 0 !important; /* Portfolio filter mini buttons */
        padding: 0.6rem 1.4rem !important;
        font-size: 0.85rem !important;
    }

    /* Service Pages Mobile Header Redesign (High-Contrast Light Mode) */
    .service-header {
        padding: 5.5rem 20px 3rem !important;
        background: #ffffff !important;
        background-image: radial-gradient(circle at top right, rgba(184, 147, 50, 0.03) 0%, transparent 70%) !important;
        color: #1A1A1D !important;
        border-bottom: 4px solid var(--primary-color) !important;
        text-align: center;
        box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    }
    .service-header .service-title {
        color: #1A1A1D !important;
        font-weight: 800 !important;
        margin-bottom: 0.8rem !important;
        font-family: 'Lora', serif;
    }
    .service-header .service-subtitle {
        font-size: 1.05rem !important;
        color: #3d3d3f !important; /* Heavy charcoal for 100% visibility */
        max-width: 100% !important;
        line-height: 1.6 !important;
        margin: 0 auto !important;
        font-weight: 500 !important;
    }
    section[style*="padding-top"] {
        padding-top: 3.5rem !important;
        padding-bottom: 3rem !important;
    }
}

