/* ==========================================================================
   SUNSPORTS SPORTS INFRASTRUCTURE
   PREMIUM DESIGN SYSTEM & STYLE SHEET
   ========================================================================== */

/* --- Custom Property Tokens --- */
:root {
    /* Color Palette */
    --bg-dark-primary: #030712;
    --bg-dark-secondary: #0b132b;
    --bg-dark-tertiary: #1c2541;
    
    --accent-gold: #d4af37;
    --accent-gold-rgb: 212, 175, 55;
    --accent-gold-light: #f3c63f;
    --accent-gold-dark: #aa7c11;
    
    --brand-navy-logo: #0b2f61; /* Color of the text in the logo */
    --navy-glow-rgb: 11, 47, 97;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-border-hover: rgba(212, 175, 55, 0.4);
    
    /* Fonts */
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-gold-glow: 0 4px 20px rgba(212, 175, 55, 0.25);
    --shadow-blue-glow: 0 4px 20px rgba(11, 47, 97, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-tertiary);
    border: 2px solid var(--bg-dark-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

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

p {
    color: var(--text-secondary);
}

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

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-charcoal {
    background-color: var(--bg-dark-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, #ffffff 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

.req {
    color: #ef4444;
    margin-left: 2px;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 4px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold-light) 100%);
    transform: translateY(-2px);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* --- Header / Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 950;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold-light);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 1005;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from { transform: scale(1.08); }
    to { transform: scale(1.0); }
}

.hero-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

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

.badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold-light);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* Stats Bar */
.stats-bar {
    background: rgba(11, 19, 43, 0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    width: 100%;
    margin-top: 60px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold-light);
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

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

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
}

/* --- Court Specifications Section --- */
.tabs-scroll-container {
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 40px;
}

.court-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    min-width: max-content;
    margin: 0 auto;
}

.tab-btn {
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 0.85rem;
    color: var(--accent-gold);
}

.tab-btn:hover {
    background: var(--bg-dark-tertiary);
    border-color: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    color: var(--bg-dark-primary);
    border-color: var(--accent-gold-light);
    box-shadow: var(--shadow-gold-glow);
}

.tab-btn.active i {
    color: var(--bg-dark-primary);
}

/* Court Panels */
.court-panel {
    display: none;
}

.court-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.three-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.panel-spec-info h3 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.spec-description {
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.spec-list {
    margin-bottom: 35px;
}

.spec-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.spec-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-gold);
    font-size: 0.85rem;
    margin-top: 3px;
}

.spec-list li strong {
    color: #ffffff;
    min-width: 140px;
}

/* Court Blueprint Drawing */
.blueprint-card {
    background: rgba(11, 19, 43, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.blueprint-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

.blueprint-canvas {
    width: 100%;
    aspect-ratio: 16/10;
    background: #030a21;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 6px;
}

.legend-color.clay { background-color: #aa7c11; }
.legend-color.grass { background-color: #1e3f20; }
.legend-color.net { background-color: rgba(255, 255, 255, 0.5); }
.legend-color.box-turf { background-color: #154c30; }
.legend-color.glass-blue { background-color: #3b82f6; }
.legend-color.padel-turf { background-color: #1d4ed8; }
.legend-color.kitchen-color { background-color: #1e293b; }
.legend-color.acrylic-blue { background-color: #0284c7; }
.legend-color.fb-turf { background-color: #166534; }
.legend-color.marking { background-color: #ffffff; }
.legend-color.bb-acrylic { background-color: #c2410c; }
.legend-color.bb-key-color { background-color: #1e3a8a; }
.legend-color.tennis-green { background-color: #15803d; }
.legend-color.tennis-blue { background-color: #1d4ed8; }
.legend-color.bad-green { background-color: #065f46; }
.legend-color.bad-lines-color { background-color: #fbbf24; }

/* CSS Blueprints (AutoCAD blueprint lines style) */
/* Cricket Wicket */
.cricket-outfield {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle, #244b27 60%, #153518 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cricket-pitch-strip {
    width: 14%;
    height: 55%;
    background-color: #bfa36c;
    border: 1px solid #ffffff;
    position: relative;
}
.crease-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
}
.crease-top { top: 15%; }
.crease-bottom { bottom: 15%; }
.stumps {
    position: absolute;
    width: 60%;
    left: 20%;
    display: flex;
    justify-content: space-between;
}
.stumps-top { top: 8%; }
.stumps-bottom { bottom: 8%; }
.stumps span {
    width: 2px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 50%;
}

/* Box Cricket */
.box-boundary {
    width: 85%;
    height: 75%;
    background: #154c30;
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.box-net-border {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
}
.box-pitch-strip {
    width: 12%;
    height: 75%;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    position: relative;
}

/* Padel */
.padel-boundary {
    width: 80%;
    height: 70%;
    background-color: #1e40af;
    border: 2px solid #ffffff;
    position: relative;
}
.padel-net {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    top: 50%;
}
.padel-service-lines {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 50%;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}
.padel-service-lines::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #ffffff;
}
.padel-glass-indicator {
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: #3b82f6;
    opacity: 0.8;
}
.glass-left { top: 0; }
.glass-right { bottom: 0; }

/* Pickleball */
.pb-court {
    width: 80%;
    height: 70%;
    background: #0ea5e9;
    border: 2px solid #ffffff;
    padding: 4px;
}
.pb-sidelines {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}
.pb-net {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    top: 50%;
}
.pb-kitchen {
    position: absolute;
    width: 100%;
    height: 16%;
    background-color: rgba(15, 23, 42, 0.35);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-kitchen-top { bottom: 50%; border-bottom: 1px solid #ffffff; }
.pb-kitchen-bottom { top: 50%; border-top: 1px solid #ffffff; }
.pb-center-line-top {
    position: absolute;
    top: 0;
    bottom: 66%;
    left: 50%;
    width: 1px;
    background-color: #ffffff;
}
.pb-center-line-bottom {
    position: absolute;
    top: 66%;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #ffffff;
}

/* Football */
.fb-field {
    width: 85%;
    height: 75%;
    background: #15803d;
    border: 2px solid #ffffff;
    position: relative;
}
.fb-penalty-top {
    position: absolute;
    top: 0;
    left: 30%;
    width: 40%;
    height: 20%;
    border: 1px solid #ffffff;
    border-top: none;
}
.fb-penalty-bottom {
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 20%;
    border: 1px solid #ffffff;
    border-bottom: none;
}
.fb-center-circle {
    position: absolute;
    top: 38%;
    left: 38%;
    width: 24%;
    height: 24%;
    border: 1px solid #ffffff;
    border-radius: 50%;
}
.fb-center-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -58%;
    width: 216%;
    height: 1px;
    background-color: #ffffff;
}

/* Basketball */
.bb-court {
    width: 85%;
    height: 75%;
    background: #ea580c;
    border: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
}
.bb-center-circle {
    position: absolute;
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
    border: 1px solid #ffffff;
    border-radius: 50%;
}
.bb-center-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -120%;
    width: 340%;
    height: 1px;
    background-color: #ffffff;
}
.bb-key {
    position: absolute;
    width: 24%;
    height: 18%;
    background: #1e3a8a;
    border: 1px solid #ffffff;
    left: 38%;
}
.bb-key-top { top: 0; border-top: none; }
.bb-key-bottom { bottom: 0; border-bottom: none; }
.bb-three-point {
    position: absolute;
    width: 50%;
    height: 25%;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    left: 25%;
}
.bb-three-top { top: -10%; }
.bb-three-bottom { bottom: -10%; }

/* Tennis */
.ten-court {
    width: 85%;
    height: 75%;
    background: #16a34a;
    border: 2px solid #ffffff;
    padding: 4%;
}
.ten-doubles-lines {
    width: 100%;
    height: 100%;
    border: 1px solid #ffffff;
    position: relative;
}
.ten-singles-lines {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10%;
    right: 10%;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}
.ten-net {
    position: absolute;
    top: 50%;
    left: -12%;
    width: 124%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}
.ten-service-top {
    position: absolute;
    top: 25%;
    bottom: 50%;
    left: 10%;
    right: 10%;
    border-bottom: 1.5px solid #ffffff;
}
.ten-service-top::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #ffffff;
}
.ten-service-bottom {
    position: absolute;
    top: 50%;
    bottom: 25%;
    left: 10%;
    right: 10%;
    border-top: 1.5px solid #ffffff;
}
.ten-service-bottom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #ffffff;
}

/* Badminton */
.bad-court {
    width: 85%;
    height: 75%;
    background: #047857;
    border: 2px solid #fbbf24;
    position: relative;
}
.bad-lines {
    width: 100%;
    height: 100%;
    position: relative;
}
.bad-net {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #fbbf24;
}
.bad-service-top {
    position: absolute;
    top: 30%;
    bottom: 50%;
    width: 100%;
    border-bottom: 1px solid #fbbf24;
}
.bad-service-top::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #fbbf24;
}
.bad-service-bottom {
    position: absolute;
    top: 50%;
    bottom: 30%;
    width: 100%;
    border-top: 1px solid #fbbf24;
}
.bad-service-bottom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #fbbf24;
}


/* --- Elite Projects Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--bg-dark-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #000;
}

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

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-img-wrapper:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-client {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.portfolio-info h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-sm {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}


/* --- Sectors We Serve Section --- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.sector-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.sector-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-sm);
}

.sector-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-fast);
}

.sector-card:hover .sector-icon {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    color: var(--bg-dark-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold-glow);
}

.sector-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.sector-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sector-features {
    text-align: left;
    max-width: 240px;
    margin: 0 auto;
}

.sector-features li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}


/* --- Our Process Section --- */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 60px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -60px;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-dark-primary);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold-light);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.timeline-content {
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}


/* --- Cost Estimator Section --- */
.estimator-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.estimator-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
}

.estimator-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.form-group select, .form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group textarea {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-dark-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-gold-light);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.radio-group-tile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tile-label {
    cursor: pointer;
}

.tile-label input[type="radio"] {
    display: none;
}

.tile-content {
    background: var(--bg-dark-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    transition: var(--transition-fast);
    height: 100%;
}

.tile-content h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.tile-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tile-label input[type="radio"]:checked + .tile-content {
    border-color: var(--accent-gold-light);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.tile-label input[type="radio"]:checked + .tile-content h5 {
    color: var(--accent-gold-light);
}

.checkbox-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-dark-primary);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkbox-item input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--accent-gold-light);
}

.checkbox-text h5 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.checkbox-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkbox-item:hover {
    border-color: var(--glass-border-hover);
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-text h5 {
    color: var(--accent-gold-light);
}

/* Pricing Summary Card sticky */
.bg-navy-accent {
    background: #050b24;
    border-color: var(--accent-gold);
    position: sticky;
    top: 100px;
}

.pricing-big-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.pricing-currency {
    font-size: 1.8rem;
    color: var(--accent-gold-light);
    font-weight: 700;
    margin-right: 4px;
}

.pricing-val {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
}

.pricing-suffix {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cost-breakdown-list {
    margin-bottom: 30px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.breakdown-item span {
    color: var(--text-secondary);
}

.breakdown-item strong {
    color: #ffffff;
}

.breakdown-item.border-top {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 12px;
}

.quick-inquiry-box {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    position: relative;
}

.quick-inquiry-box h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    text-align: center;
}

.quick-inquiry-box p {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.calc-input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.quick-inquiry-box input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-dark-primary);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    outline: none;
}

.quick-inquiry-box input:focus {
    border-color: var(--accent-gold-light);
}

.calc-success {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: calc(100% - 24px);
    background: #050b24;
    display: none;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.calc-success i {
    font-size: 1.8rem;
}

.calc-success h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.calc-success p {
    text-align: left;
    font-size: 0.8rem;
}


/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contact-info-card, .contact-form-card {
    background: var(--bg-dark-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-info-card h3, .contact-form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.info-para {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.info-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 35px;
}

.info-detail-item {
    display: flex;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-text h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

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

.map-container {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Form Column */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.78rem;
    margin-top: 4px;
}

.project-inquiry-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Form Submit Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Success Overlay */
.success-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark-primary);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.4s ease forwards;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 24px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-card-overlay h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.success-card-overlay p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

@keyframes scaleUp {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1.0); opacity: 1; }
}


/* --- Footer Section --- */
.main-footer {
    background-color: var(--bg-dark-primary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px 0;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.brand-pitch {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 20px 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    color: var(--bg-dark-primary);
    border-color: var(--accent-gold-light);
    transform: translateY(-3px);
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

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

.footer-links ul li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-gold-light);
    padding-left: 4px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-input-group {
    display: flex;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-dark-secondary);
}

.newsletter-input-group input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-input-group button {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    border: none;
    color: var(--bg-dark-primary);
    padding: 0 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.newsletter-input-group button:hover {
    background: #ffffff;
}

.newsletter-error {
    display: none;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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


/* --- Subpage Hero --- */
.subpage-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 0 50px 0;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(3, 7, 18, 0.8), rgba(3, 7, 18, 0.98));
    z-index: 1;
}

.subpage-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

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

.subpage-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.subpage-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* About Page Specifics */
.team-grid, .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.team-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.team-card .role {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.cert-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition-normal);
}

.cert-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.cert-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
}

.cert-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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


/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STYLING)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.8rem;
    }
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .three-panel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .estimator-grid {
        grid-template-columns: 1fr;
    }
    .bg-navy-accent {
        position: static;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-dark-primary);
        z-index: 999;
        transition: var(--transition-normal);
        padding: 40px;
        border-top: 1px solid var(--glass-border);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }
    
    .stat-divider {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .subpage-hero {
        padding: 130px 0 40px 0;
        min-height: 280px;
    }
    
    .subpage-hero h1 {
        font-size: 2.2rem;
    }
    
    .subpage-hero p {
        font-size: 1rem;
    }
    
    .radio-group-tile {
        grid-template-columns: 1fr;
    }
    
    .court-tabs {
        justify-content: flex-start;
        margin: 0;
        padding: 0 24px;
    }
    
    .estimator-card, .contact-info-card, .contact-form-card {
        padding: 24px 20px;
    }
    
    .three-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .calc-input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 1.2rem;
    }
    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .nav-logo {
        height: 42px;
    }
    .subpage-hero h1 {
        font-size: 1.8rem;
    }
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
    .radio-group-tile {
        grid-template-columns: 1fr;
    }
    .portfolio-grid, .sectors-grid {
        grid-template-columns: 1fr;
    }
    .pricing-val {
        font-size: 2.5rem;
    }
    .pricing-currency {
        font-size: 1.4rem;
    }
    .process-timeline {
        padding-left: 45px;
    }
    .process-timeline::before {
        left: 15px;
    }
    .timeline-badge {
        left: -45px;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}
