/* ========================================
   TELL PROJECTS - MAIN STYLESHEET
   Dark & Luxurious Theme
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Gold Colors - Based on Baytown Bridge Lights */
    --gold-primary: #d1a004;
    --gold-light: #e8b923;
    --gold-dark: #c99a00;
    --gold-gradient: linear-gradient(135deg, #e8b923 0%, #d1a004 50%, #c99a00 100%);

    /* Deep Blue Colors - Based on Baytown Bridge Night Sky & Water */
    --bg-dark: #0a1628;
    --bg-secondary: #0d1f3d;
    --bg-card: #0f2340;
    --bg-card-hover: #142a4a;
    --blue-deep: #1a2a4a;
    --blue-accent: #1e3a5f;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a8c0d8;
    --text-muted: #5a7a9a;

    /* Accent Colors */
    --accent-gold: rgba(209, 160, 4, 0.15);
    --accent-gold-border: rgba(209, 160, 4, 0.4);
    --accent-blue: rgba(30, 58, 95, 0.5);

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1400px;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-gold: 0 0 30px rgba(209, 160, 4, 0.3);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.text-gold {
    color: var(--gold-primary);
}

.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

/* Fence picket design */
.logo-icon .fence-icon {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 28px;
}

.logo-icon .fence-icon .picket {
    width: 5px;
    background: var(--bg-dark);
    border-radius: 2px 2px 0 0;
}

.logo-icon .fence-icon .picket:nth-child(1) { height: 22px; }
.logo-icon .fence-icon .picket:nth-child(2) { height: 28px; }
.logo-icon .fence-icon .picket:nth-child(3) { height: 22px; }
.logo-icon .fence-icon .picket:nth-child(4) { height: 28px; }
.logo-icon .fence-icon .picket:nth-child(5) { height: 22px; }

/* Horizontal rails */
.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 3px;
    background: var(--bg-dark);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

.logo-icon::before {
    top: 14px;
}

.logo-icon::after {
    bottom: 14px;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition-medium);
}

.navbar.scrolled .logo img {
    height: 60px;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition-medium);
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.05) 0%,
        rgba(10, 10, 10, 0.05) 50%,
        rgba(10, 10, 10, 0.05) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 30px;
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold-primary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--gold-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(15px); }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Service Cards Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
    position: relative;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold-border);
    box-shadow: var(--shadow-gold);
}

.service-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
}

.service-card-content {
    padding: 30px;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;

/* ===== RESPONSIVE MOBILE MENU ===== */

/* Mobile Breakpoint - Show hamburger menu on tablets and phones */
@media (max-width: 1024px) {
    /* Show hamburger toggle button */
    .menu-toggle {
        display: flex !important;
        z-index: 1002;
    }
    
    /* Hide desktop nav menu by default */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Show menu when active */
    .nav-menu.active {
        right: 0;
    }
    
    /* Menu items full width in mobile */
    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Menu links styling */
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 15px 20px;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--bg-secondary);
        color: var(--gold-primary);
        padding-left: 30px;
    }
    
    /* Remove underline animation on mobile */
    .nav-link::after {
        display: none;
    }
    
    /* CTA button full width on mobile */
    .nav-cta {
        width: 100%;
        margin-top: 20px;
    }
    
    .nav-cta .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 18px;
    }
    
    /* Dark overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hamburger animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 20px;
    }
    
    .nav-menu {
        width: 280px;
        padding: 70px 20px 20px;
    }
    
    .logo img,
    .logo-image {
        height: 40px !important;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100%;
    }
    
    .logo img,
    .logo-image {
        height: 35px !important;
    }
    
    .menu-toggle {
        padding: 8px;
    }
    
    .menu-toggle span {
        width: 25px;
    }
}
