/* ============================================
   RxCodeLabs - Premium Website Styles
   Mobile-First Responsive Design
   
   BREAKPOINTS (Mobile-First):
   - Mobile: 0px - 480px (base styles)
   - Tablet: 481px+ (min-width: 481px)
   - Small Desktop: 769px+ (min-width: 769px)
   - Desktop: 1025px+ (min-width: 1025px)
   - Large Desktop: 1441px+ (min-width: 1441px)
   
   KEY PRINCIPLES:
   - Base styles target mobile (smallest screens)
   - Progressive enhancement for larger screens
   - Touch targets minimum 44x44px
   - Fluid typography with clamp()
   - Flexible layouts with CSS Grid & Flexbox
   ============================================ */

:root {
    /* Premium Color Palette */
    --primary: #D4AF37;
    --primary-dark: #B8941F;
    --primary-light: #E8D5A3;
    --secondary: #1A1A1A;
    --secondary-light: #2A2A2A;
    --accent: #D4AF37;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #888888;
    --bg-dark: #0A0A0A;
    --bg-card: rgba(26, 26, 26, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-color: rgba(212, 175, 55, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Spacing - Mobile First */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Touch Targets - Minimum 44x44px for mobile */
    --touch-target: 44px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Mobile viewport height fix */
:root {
    --vh: 1vh;
}

body.touch-device {
    /* Additional touch device styles if needed */
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Mobile-First Base Styles
   ============================================ */

/* Base styles are for mobile (320px+) - Consolidated body definition */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    /* Base font size for mobile readability */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    overflow-x: hidden;
}

/* Ensure no element causes horizontal scroll */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent horizontal scroll - container elements */
.container,
section,
header,
footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* Allow nav menu to overflow on mobile - it's fixed positioned */
@media (max-width: 768px) {
    nav {
        overflow-x: visible !important;
    }
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure images are responsive and don't overflow */
img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

video,
iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Touch-friendly interactive elements */
button,
a,
input,
select,
textarea,
[role="button"] {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
}

/* Tablet and up (481px+) */
@media (min-width: 481px) {
    :root {
        --spacing-sm: 1rem;
        --spacing-md: 2rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Small Desktop and up (769px+) */
@media (min-width: 769px) {
    :root {
        --spacing-md: 2rem;
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
    }

    .container {
        max-width: 1200px;
        padding: 0 var(--spacing-md);
    }

    body {
        font-size: 17px;
    }
}

/* Desktop and up (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 1400px;
    }
}

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
    .container {
        max-width: 1600px;
    }
}

/* ============================================
   Announcement Bar
   ============================================ */

.announcement-bar {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 50%, #0A0A0A 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 10px var(--spacing-sm);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    line-height: 1.4;
}

@media (min-width: 481px) {
    .announcement-bar {
        padding: 8px var(--spacing-md);
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    animation: shimmer 4s infinite;
}

.announcement-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.announcement-bar span {
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.announcement-bar strong {
    color: #D4AF37;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.announcement-bar .announcement-icon {
    margin: 0 12px;
    color: #D4AF37;
    opacity: 0.6;
}

/* ============================================
   Header / Navigation
   ============================================ */

.navbar {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Header Main - Mobile First */
.header-main {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem var(--spacing-sm);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-height: 56px;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Tablet and up */
@media (min-width: 481px) {
    .header-main {
        padding: 0.5rem var(--spacing-md);
        gap: 1rem;
        min-height: 60px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .header-main {
        max-width: 1400px;
    }
}

.header-main>* {
    flex-shrink: 0;
}

/* Logo - Mobile First (compact) */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Tablet and up */
@media (min-width: 481px) {
    .logo-image {
        height: 55px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .logo-image {
        height: 65px;
    }
}

@media (min-width: 769px) {
    .logo:hover {
        transform: scale(1.05);
    }
}

/* Tablet and up (481px+) */
@media (min-width: 481px) {
    .logo-image {
        height: 50px;
    }
}

/* Small Desktop and up (769px+) */
@media (min-width: 769px) {
    .logo-image {
        height: 60px;
    }
}

/* Nav Menu - Desktop First */
.nav-menu {
    display: flex;
    position: relative;
    flex-direction: row;
    width: auto;
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Base nav link styles */
.nav-link {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    pointer-events: auto !important;
    position: relative;
    z-index: 100002 !important;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    font-weight: 600;
}

.nav-link.active {
    background: #D4AF37 !important;
    background-color: #D4AF37 !important;
    color: #0A0A0A !important;
    font-weight: 600;
    -webkit-text-fill-color: #0A0A0A !important;
    border: none !important;
}

/* Desktop: Inline nav links */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        position: relative;
        flex-direction: row;
        width: auto;
        height: auto;
        background: rgba(255, 255, 255, 0.05);
        padding: 8px 12px;
        border-radius: 50px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(212, 175, 55, 0.25);
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu .mobile-nav-close {
        display: none;
    }

    .nav-menu .nav-link {
        display: inline-block;
        padding: 10px 18px;
        border-radius: 25px;
        text-align: center;
        min-height: auto;
        width: auto;
        max-width: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        margin-bottom: 0;
    }

    .nav-menu .nav-link.active {
        background: #D4AF37 !important;
        background-color: #D4AF37 !important;
        color: #0A0A0A !important;
        -webkit-text-fill-color: #0A0A0A !important;
    }

    /* Hide hamburger menu toggle on desktop - all nav links are visible */
    #hamburger,
    .menu-toggle {
        display: none !important;
    }
}

/* ============================================
   MOBILE MENU (Clean Rebuild)
   ============================================ */
@media (max-width: 768px) {

    /* Prevent parent containers from clipping the fixed menu */
    .navbar,
    .header-main {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    /* BLOOMY ELITE STYLE - Black & Gold Theme */
    /* Mobile menu slides in from right with elegant styling */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -320px !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 80px 24px 24px !important;
        background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5) !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 0 !important;
        border: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        visibility: hidden !important;
    }

    /* Show menu when open - slide in from right */
    .nav-menu.mobile-open {
        right: 0 !important;
        display: flex !important;
        pointer-events: auto !important;
        visibility: visible !important;
        z-index: 99999 !important;
        opacity: 1 !important;
    }

    /* For smaller screens, use full viewport width */
    @media (max-width: 375px) {
        .nav-menu {
            width: 100vw !important;
            max-width: 100vw !important;
            right: -100vw !important;
        }

        .nav-menu.mobile-open {
            right: 0 !important;
        }
    }

    /* Ensure nav menu container allows clicks through to links */
    .nav-menu.mobile-open * {
        pointer-events: auto !important;
    }

    /* Hide nav links when menu is closed */
    .nav-menu:not(.mobile-open) .nav-link {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Show and style nav links when menu is open - Elegant black & gold styling */
    .nav-menu.mobile-open .nav-link {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px 20px !important;
        margin: 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #FFFFFF !important;
        text-align: left !important;
        background: transparent !important;
        border: none !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        z-index: 100001 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-text-fill-color: #FFFFFF !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        transition: all 0.3s ease !important;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3) !important;
        touch-action: manipulation !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    /* Ensure nav links are always clickable when menu is open */
    .nav-menu.mobile-open a.nav-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 100001 !important;
        position: relative !important;
        display: block !important;
    }

    /* Override any parent pointer-events that might block clicks */
    .nav-menu.mobile-open .nav-link,
    .nav-menu.mobile-open .nav-link * {
        pointer-events: auto !important;
    }

    /* Hover state - subtle gold */
    .nav-menu.mobile-open .nav-link:hover {
        background: rgba(212, 175, 55, 0.2) !important;
        color: #D4AF37 !important;
        -webkit-text-fill-color: #D4AF37 !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
    }

    /* Active state - full gold background */
    .nav-menu.mobile-open .nav-link.active {
        background: #D4AF37 !important;
        background-color: #D4AF37 !important;
        color: #0A0A0A !important;
        -webkit-text-fill-color: #0A0A0A !important;
        border: none !important;
        font-weight: 600 !important;
    }

    /* Mobile close button - Gold circular button like BLOOMY ELITE */
    .mobile-nav-close {
        display: flex !important;
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(212, 175, 55, 0.2) !important;
        border: 1px solid rgba(212, 175, 55, 0.4) !important;
        color: #FFFFFF !important;
        font-size: 1.2rem !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        z-index: 100002 !important;
        pointer-events: auto !important;
    }

    .mobile-nav-close:hover {
        background: #D4AF37 !important;
        border-color: #D4AF37 !important;
        color: #0A0A0A !important;
        transform: rotate(90deg) !important;
    }

    /* Hamburger button - visible on mobile */
    #hamburger,
    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 12px;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1002;
    }

    #hamburger:hover,
    .menu-toggle:hover {
        background: rgba(212, 175, 55, 0.15);
        border-color: rgba(212, 175, 55, 0.4);
        color: #D4AF37;
    }

    /* Hide hamburger when menu is open */
    body.menu-open #hamburger,
    body.menu-open .menu-toggle {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    /* Mobile overlay - behind menu, only closes menu when clicked */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none !important;
    }

    .mobile-nav-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Ensure menu is above overlay and clicks pass through correctly */
    .nav-menu.mobile-open {
        z-index: 99999 !important;
        pointer-events: auto !important;
    }

    .nav-menu.mobile-open * {
        pointer-events: auto !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Header Actions - Mobile First */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
    min-width: 0;
    pointer-events: auto;
}

/* Desktop - more spacing */
@media (min-width: 769px) {
    .header-actions {
        gap: 10px;
    }
}

.header-action-btn,
.menu-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

/* Desktop only hover effects to prevent layout shifts */
@media (min-width: 769px) {

    /* Hide hamburger menu toggle on desktop - not needed when nav links are visible */
    #hamburger,
    .menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .header-action-btn:hover {
        background: rgba(212, 175, 55, 0.15);
        color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    }
}

/* Quote Button - Mobile First (hidden on mobile, show hamburger only) */
.quote-btn {
    display: none;
    /* Hidden on mobile */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    border: none;
    width: auto;
    padding: 12px 16px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    min-width: var(--touch-target);
}

.quote-btn .btn-text {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Tablet and up - show quote button */
@media (min-width: 481px) {
    .quote-btn {
        display: flex;
        padding: 12px 20px;
    }

    .quote-btn .btn-text {
        font-size: 0.9rem;
    }
}

.quote-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--bg-dark);
}


/* ============================================
   Hero Section
   ============================================ */

/* Hero - Mobile First (minimal padding: 5px on mobile) */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 5px var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

/* Tablet and up */
@media (min-width: 481px) {
    .hero {
        padding: 80px var(--spacing-md) var(--spacing-lg);
    }
}

/* Desktop and up */
@media (min-width: 769px) {
    .hero {
        padding: 20px var(--spacing-md) 2rem;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {

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

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    padding: 0 var(--spacing-sm);
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Hero Buttons - Mobile First (side by side) */
.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    width: 100%;
}

.hero-buttons .btn {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 100%;
}

/* Desktop - allow more spacing */
@media (min-width: 769px) {
    .hero-buttons .btn {
        flex: 0 1 auto;
        min-width: auto;
    }
}

/* Buttons - Mobile First (touch-friendly) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    min-height: var(--touch-target);
    min-width: 120px;
    text-align: center;
}

/* Tablet and up */
@media (min-width: 481px) {
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 140px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .btn {
        padding: 1rem 2.5rem;
        min-width: auto;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

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

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

/* Hero Stats - Mobile First (stacked on small screens) */
.hero-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

/* Tablet and up - horizontal layout */
@media (min-width: 481px) {
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 var(--spacing-md);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Section Styles
   ============================================ */

/* Section - Mobile First (reduced padding) */
section {
    padding: var(--spacing-md) 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Tablet and up */
@media (min-width: 481px) {
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* Desktop and up */
@media (min-width: 769px) {
    section {
        padding: var(--spacing-xl) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Services Section
   ============================================ */

.services {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--secondary) 100%);
}

/* Services Grid - Mobile First (1 column) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Tablet and up - 2 columns */
@media (min-width: 481px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.service-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio {
    background: var(--bg-dark);
}

/* Portfolio Grid - Mobile First (1 column) */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Tablet and up - responsive columns */
@media (min-width: 481px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Desktop - larger minimum */
@media (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-base);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: var(--primary);
}

.portfolio-image-link {
    display: block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.portfolio-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image .portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.3s ease;
    pointer-events: none;
}

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

/* Placeholder when no image */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.portfolio-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    color: var(--bg-dark);
}

.portfolio-status.completed {
    background: #10b981;
    color: white;
}

.portfolio-status.live {
    background: #3b82f6;
    color: white;
}

.portfolio-content {
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Capabilities Section
   ============================================ */

.capabilities {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--bg-dark) 100%);
}

/* Capabilities Content - Mobile First (1 column) */
.capabilities-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: center;
    margin-top: var(--spacing-lg);
}

/* Desktop and up */
@media (min-width: 769px) {
    .capabilities-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

.tech-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.tech-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.tech-tag:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.capabilities-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.capability-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.capability-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.capability-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.capability-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    background: var(--bg-dark);
}

/* Contact Content - Mobile First (1 column) */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Desktop and up */
@media (min-width: 769px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details a,
.contact-details p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group select option {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.btn-full {
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* ============================================
   Modal
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    animation: fadeIn var(--transition-base);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp var(--transition-base);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-base);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* ============================================
   Footer - Premium Design
   ============================================ */

/* Footer - Mobile First */
.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--secondary) 100%);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
}

/* Tablet and up */
@media (min-width: 481px) {
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Footer Content - Mobile First (1 column, properly stacked) */
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Tablet and up - 2 columns */
@media (min-width: 481px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
}

/* Desktop - 4 columns */
@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-lg);
    }
}

.footer-section {
    position: relative;
}

/* Footer Section - Mobile First */
.footer-section:first-child {
    padding-right: 0;
}

/* Desktop */
@media (min-width: 769px) {
    .footer-section:first-child {
        padding-right: var(--spacing-md);
    }
}

/* Footer Section Headings - Mobile First */
.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    position: relative;
}

.footer-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

/* Tablet and up */
@media (min-width: 481px) {

    .footer-section h3,
    .footer-section h4 {
        margin-bottom: var(--spacing-md);
    }

    .footer-section h4 {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
}

/* Footer Logo - Mobile First (already defined above, removing duplicate) */

/* Footer Section Paragraph - Mobile First */
.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.85rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Tablet and up */
@media (min-width: 481px) {
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.8;
        max-width: 280px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .footer-section p {
        font-size: 0.95rem;
        max-width: 300px;
    }
}

/* Footer Lists - Mobile First */
.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

/* Tablet and up */
@media (min-width: 481px) {
    .footer-section ul {
        gap: 0.75rem;
    }
}

.footer-section ul li {
    margin: 0;
}

/* Footer Links - Mobile First */
.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    min-height: var(--touch-target);
}

/* Tablet and up */
@media (min-width: 481px) {
    .footer-section ul li a {
        font-size: 0.95rem;
        padding: 0.25rem 0;
        min-height: auto;
    }
}

/* Footer link icons */
.footer-section ul li a i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.footer-section ul li a:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-section ul li a:hover::before {
    width: 20px;
}

/* Footer buttons - premium styling - Mobile First */
.footer-section ul li a.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 200px;
}

/* Tablet and up */
@media (min-width: 481px) {
    .footer-section ul li a.btn-small {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: auto;
        max-width: none;
    }
}

.footer-section ul li a.btn-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.footer-section ul li a.btn-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: var(--bg-dark);
    padding-left: 1.5rem;
}

.footer-section ul li a.btn-small:hover::before {
    left: 100%;
}

.footer-section ul li a.btn-small::before {
    display: none;
}

/* Contact info styling - Mobile First */
.footer-section:last-child ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: var(--touch-target);
}

.footer-section:last-child ul li a span {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Tablet and up */
@media (min-width: 481px) {
    .footer-section:last-child ul li a {
        min-height: auto;
    }

    .footer-section:last-child ul li a span {
        word-break: normal;
    }
}

.footer-section:last-child ul li a svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Footer Bottom - Mobile First */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Tablet and up */
@media (min-width: 481px) {
    .footer-bottom {
        padding-top: var(--spacing-lg);
        font-size: 0.9rem;
    }
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

.footer-admin-link {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile-First: Desktop-only elements hidden by default */
.desktop-only {
    display: none;
}

/* Show on tablet and up */
@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
}

/* Mobile Admin Button removed - now just a link in footer */

.footer-bottom .admin-login-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.7;
}

.footer-bottom .admin-login-link i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-bottom .admin-login-link:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.footer-bottom .admin-login-link:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Laptop screens optimization - handled by desktop breakpoint above */

/* Desktop styles for nav-menu are now in the nav-link section above */

/* Form Row - Mobile First (1 column) */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

/* Tablet and up */
@media (min-width: 481px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* All mobile styles are now in base mobile-first definitions above */
/* Removed all max-width media queries - using mobile-first approach only */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .nav-link,
    .filter-btn,
    .portfolio-status.quote-btn,
    .action-btn,
    .social-link {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .service-card,
    .portfolio-item,
    .capability-card,
    .process-step {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger,
    .menu-toggle,
    #hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 1001;
    }

    .hamburger:active,
    .menu-toggle:active,
    #hamburger:active {
        transform: scale(0.95);
        background: rgba(212, 175, 55, 0.15);
    }

    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 10px;
    }

    /* Better touch targets for mobile - nav-link styles are already in base styles above */

    /* Prevent body scroll when menu is open */
    /* Body scroll lock is already defined in base styles above */

    /* Improve button spacing on mobile */
    /* Button gaps already defined in base styles */

    /* Better scrolling on mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .service-icon svg,
    .contact-icon svg,
    .social-link svg {
        shape-rendering: geometricPrecision;
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   Selection Styling
   ============================================ */

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

::-moz-selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* ============================================
   Page Header
   ============================================ */

/* Page Header - Mobile First (minimal margin-top) */
.page-header {
    padding: var(--spacing-md) 0 var(--spacing-md);
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--secondary) 100%);
    text-align: center;
    margin-top: 60px;
    /* Account for announcement bar + header on mobile */
}

/* Tablet and up */
@media (min-width: 481px) {
    .page-header {
        padding: var(--spacing-lg) 0 var(--spacing-lg);
        margin-top: 80px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .page-header {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
        margin-top: 100px;
    }
}

.page-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Section CTA
   ============================================ */

.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    transition: all var(--transition-base);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    /* Default button styling - can be overridden with btn-primary, btn-secondary, etc. */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
    color: var(--bg-dark);
}

/* Ensure btn-small works with btn-primary and btn-secondary */
.btn-small.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn-small.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

.btn-small.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-small.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

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

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

/* ============================================
   Portfolio Page
   ============================================ */

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.portfolio-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.portfolio-status.quote-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
}

.portfolio-status.quote-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    color: var(--bg-dark);
}

.portfolio-status-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   Quote Page
   ============================================ */

.quote-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-dark);
}

/* Quote Content - Mobile First (1 column) */
.quote-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop and up */
@media (min-width: 769px) {
    .quote-content {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--spacing-lg);
    }
}

.quote-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.quote-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.quote-benefits {
    margin-bottom: var(--spacing-md);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.benefit-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-quick {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.contact-quick h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.contact-quick-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-quick-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-quick-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

.contact-quick-link svg {
    width: 20px;
    height: 20px;
}

.quote-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-md);
}

/* ============================================
   Process Section
   ============================================ */

.process-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--bg-dark) 100%);
}

/* Process Steps - Mobile First (1 column) */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Tablet and up */
@media (min-width: 481px) {
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Desktop and up */
@media (min-width: 769px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin: 0 auto var(--spacing-sm);
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   About Me Section
   ============================================ */

.about-me-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.about-me-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.motto-display {
    margin-bottom: var(--spacing-xl);
}

.motto-display {
    margin-bottom: var(--spacing-xl);
}

.motto-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.motto-separator {
    color: var(--primary);
    margin: 0 1rem;
}

.motto-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.founder-info {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.founder-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.founder-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.founder-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.founder-bio:last-of-type {
    margin-bottom: 0;
}

.philosophy-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.philosophy-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary);
    padding-bottom: var(--spacing-sm);
}

.philosophy-quote {
    margin-bottom: var(--spacing-md);
}

.core-quote {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.quote-explanation {
    color: var(--text-secondary);
    line-height: 1.8;
}

.philosophy-principles {
    margin-top: var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.principle-item {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.principle-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.principle-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.principle-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Philosophy principles responsive styles moved to main definition above */

.contact-social {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-page {
    padding: var(--spacing-lg) 0;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.contact-info>p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.social-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
    color: var(--text-primary);
}

/* Social Links Grid - Mobile First (1 column) */
.social-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

/* Tablet and up */
@media (min-width: 481px) {
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.social-links-grid .social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem;
}

.social-links-grid .social-link span {
    font-size: 0.9rem;
}

/* ============================================
   Services Page
   ============================================ */

.services-page {
    padding: var(--spacing-lg) 0;
}

.service-card .btn-small {
    margin-top: var(--spacing-sm);
}

/* ============================================
   Active Navigation Link
   ============================================ */

/* Removed duplicate nav-link.active styles - using main definition above */

/* ============================================
   Fix for Blocked Clicks - Ensure Navigation is Always Clickable
   ============================================ */

/* Ensure navbar is above any admin hotspots */
.navbar {
    z-index: 10000 !important;
}

/* Ensure mobile menu and links are always clickable */
.nav-menu.mobile-open {
    pointer-events: auto !important;
    visibility: visible !important;
}

.nav-link {
    pointer-events: auto !important;
    position: relative;
    z-index: 100002 !important;
}

/* ============================================
   Comprehensive Mobile Responsiveness Improvements
   ============================================ */

/* Mobile Typography Improvements */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    body {
        font-size: 15px;
        line-height: 1.6;
    }

    h1,
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }

    h2,
    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: clamp(1.25rem, 6vw, 1.5rem) !important;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        line-height: 1.5 !important;
    }

    .section-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
    }

    /* Better spacing for small screens */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    section {
        padding: var(--spacing-md) 0 !important;
    }

    /* Improve button sizing on very small screens */
    .btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
        min-height: 44px;
        width: auto;
        min-width: 120px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    /* Card improvements */
    .service-card,
    .portfolio-item {
        padding: var(--spacing-md) !important;
    }

    .service-card h3,
    .portfolio-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-card p,
    .portfolio-content p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
    }

    /* Form improvements */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 0.875rem 1rem !important;
        min-height: 48px;
    }

    textarea {
        min-height: 120px;
        line-height: 1.5;
    }

    /* Modal improvements */
    .modal-content {
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
        margin: 1rem !important;
        padding: var(--spacing-md) !important;
        max-height: calc(100vh - 2rem);
    }

    .modal-title {
        font-size: 1.5rem !important;
    }

    /* Hero section improvements */
    .hero {
        padding: 60px 1rem var(--spacing-md) !important;
        min-height: auto;
    }

    .hero-content {
        padding: 0 !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }

    .stat-item {
        width: 100%;
        text-align: center;
    }

    /* Footer improvements */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md) !important;
    }

    .footer-content {
        gap: var(--spacing-md) !important;
    }

    .footer-section {
        padding: var(--spacing-sm) 0;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem !important;
        margin-bottom: var(--spacing-sm) !important;
    }

    .footer-section p {
        font-size: 0.8rem !important;
        line-height: 1.6 !important;
    }

    /* Contact section improvements */
    .contact-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .contact-details h4 {
        font-size: 0.95rem !important;
    }

    .contact-details a,
    .contact-details p {
        font-size: 0.875rem !important;
    }

    /* Social links sizing */
    .social-link {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* Page header improvements */
    .page-header {
        padding: var(--spacing-md) 0 !important;
        margin-top: 60px !important;
    }

    .page-header h1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }

    /* Quote/contact forms */
    .quote-content,
    .contact-content {
        gap: var(--spacing-md) !important;
    }

    /* Service features list */
    .service-features {
        gap: 0.5rem;
    }

    .service-features li {
        font-size: 0.875rem;
        padding-left: 1.5rem;
    }

    /* Tech tags */
    .tech-tag {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    /* Process steps */
    .process-steps {
        gap: var(--spacing-md);
    }

    /* Portfolio grid - ensure single column on very small screens */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }

    /* Announcement bar */
    .announcement-bar {
        font-size: 0.7rem !important;
        padding: 8px 0.75rem !important;
        line-height: 1.4 !important;
    }

    /* Logo improvements */
    .logo-text {
        font-size: 0.85rem !important;
    }

    .logo-tagline {
        font-size: 0.55rem !important;
    }

    /* Header actions */
    .header-actions {
        gap: 0.5rem;
    }

    .header-action-btn,
    .menu-toggle,
    #hamburger {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    /* Prevent text overflow */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Table responsive (if any) */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.875rem;
        min-width: 100%;
    }

    /* Capability cards grid */
    .capabilities-visual {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }

    /* Better touch targets for interactive elements */
    a,
    button,
    input,
    textarea,
    select {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Image optimization */
    img {
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }

    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }

    body,
    html {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }
}

/* Tablet-specific improvements (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-buttons .btn {
        flex: 1 1 auto;
        min-width: 140px;
        max-width: calc(50% - 0.5rem);
    }

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

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

/* ============================================
   Responsive Updates
   ============================================ */

/* All grid layouts are now mobile-first (1 column base) with min-width enhancements above */