/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* HTX3D Dark Mode - Houston Astros Colors */
    --navy-primary: #002D62;         /* Astros Navy - Primary */
    --orange-primary: #EB6E1F;       /* Astros Orange - Primary Accent */
    --orange-light: #F4911E;         /* Astros Light Orange - Secondary Accent */
    
    /* Dark Mode Color Scheme */
    --primary-color: #002D62;        /* Deep Navy */
    --primary-dark: #001a3a;         /* Darker Navy */
    --secondary-color: #EB6E1F;      /* Bright Orange */
    --accent-color: #F4911E;         /* Light Orange */
    
    /* Dark Mode Backgrounds */
    --bg-dark: #0a0e17;              /* Almost black background */
    --bg-darker: #060812;            /* Darker sections */
    --bg-card: #151b2e;              /* Card backgrounds */
    --bg-card-hover: #1a2238;        /* Card hover state */
    
    /* Dark Mode Text */
    --text-primary: #e8edf5;         /* Light text */
    --text-secondary: #a8b2c8;       /* Muted light text */
    --text-muted: #6c7a93;           /* Very muted text */
    
    /* Borders and Dividers */
    --border-color: #1e2842;
    --border-light: #2a3550;
    
    /* Shadows for dark mode */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --glow-orange: 0 0 20px rgba(235, 110, 31, 0.3);
    --glow-navy: 0 0 20px rgba(0, 45, 98, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: var(--bg-darker);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.logo-text {
    background: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(235, 110, 31, 0.3);
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--orange-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--orange-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, #001428 100%);
    color: white;
    padding: 6rem 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--orange-primary);
    box-shadow: inset 0 -100px 100px -50px rgba(235, 110, 31, 0.1);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--orange-primary);
    color: white;
    box-shadow: var(--glow-orange);
}

.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(235, 110, 31, 0.5), var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: var(--orange-light);
}

.btn-secondary:hover {
    background: var(--orange-light);
    color: var(--bg-dark);
    box-shadow: var(--glow-orange);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(235, 110, 31, 0.2);
    border-color: var(--orange-primary);
    background: var(--bg-card-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-note {
    color: var(--orange-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
    padding: 0.75rem;
    background: rgba(235, 110, 31, 0.1);
    border-left: 3px solid var(--orange-primary);
    border-radius: 6px;
}

.service-note em {
    font-style: italic;
}

.service-features {
    list-style: none;
    color: var(--text-secondary);
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--orange-primary);
    font-weight: bold;
}

/* About Section */
.about {
    background: var(--bg-dark);
}

.about .section-title {
    margin-bottom: 2rem;
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-darker);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(235, 110, 31, 0.2);
}

.portfolio-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--orange-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.portfolio-item h4 {
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    background: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.email-container {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.email-label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.obfuscated-email {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.obfuscated-email:hover {
    color: var(--orange-light);
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-secondary);
}

.spam-warning {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(235, 110, 31, 0.05);
    border-radius: 4px;
    border-left: 2px solid var(--orange-primary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.disclaimer-box {
    background: var(--bg-darker);
    border-left: 4px solid var(--orange-primary);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.disclaimer-title {
    font-weight: 600;
    color: var(--orange-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.disclaimer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.disclaimer-link {
    color: var(--orange-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.disclaimer-link:hover {
    color: var(--orange-primary);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background: var(--bg-darker);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-primary);
    background: var(--bg-dark);
    box-shadow: 0 0 10px rgba(235, 110, 31, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-status.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: white;
    padding: 2rem 0;
    border-top: 2px solid var(--orange-primary);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.footer-link {
    color: var(--orange-light);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--orange-primary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero {
        padding: 4rem 20px;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .about-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

