/* DigiConsult Enterprise "Red Team" Architecture Theme */
/* Version 2.4 - Logo Aligned & SEO Enhanced */

/* CSS Custom Properties - Brand Identity */
:root {
    /* Brand Colors (Logo Aligned Shadcn Theme) */
    --primary: #64748B;           /* Lighter Navy Blue */
    --destructive: #FF4C4C;       /* Signal Red (Logo Color) */
    --accent: #FF9900;            /* Vibrant Orange (AI Ops) */
    --muted: #B0B8CC;             /* Lighter Slate Grey */
    --background: #0A0A0A;        /* Dark Background */
    --background-dark: #020c1b;   /* Dark Mode Navy */
    --card: #1A1A1A;
    --card-dark: #112240;
    --border: #374151;
    --text: #FFFFFF;
    --text-muted: #D1D5DB;
    --surface: #1A1A1A;
    --surface-muted: #222222;
    
    /* Typography */
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-8);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--destructive);
    transition: width 0.3s ease;
}

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

.auth-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: var(--space-2);
    white-space: nowrap;
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}

.btn-destructive {
    background-color: var(--destructive);
    color: white;
}

.btn-destructive:hover {
    background-color: #E53E3E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-secondary {
    background: var(--muted);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-24) var(--space-8) var(--space-16);
    background: linear-gradient(135deg, var(--background) 0%, #111111 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 76, 76, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 153, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: var(--space-8);
    border: 2px solid var(--destructive);
    color: var(--destructive);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--primary);
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-12);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Authority Section */
.authority {
    padding: var(--space-16) var(--space-8);
    background: var(--surface);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.authority-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-8);
    border: 4px solid var(--border);
    background-size: cover;
    background-position: center;
}

.badges {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.badge-secondary {
    background: var(--muted);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Advisory Tracks */
.tracks {
    padding: var(--space-24) var(--space-8);
    background: var(--primary);
    color: white;
    position: relative;
}

.tracks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 76, 76, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 153, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tracks h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 1;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.track-card {
    background: var(--card);
    color: var(--text);
    border-radius: 1rem;
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.track-card.red-team {
    border-left: 6px solid var(--destructive);
}

.track-card.red-team::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--destructive), transparent);
    opacity: 0.1;
}

.track-card.ai-ops {
    border-left: 6px solid var(--accent);
}

.track-card.ai-ops::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent), transparent);
    opacity: 0.1;
}

.track-header {
    margin-bottom: var(--space-6);
}

.track-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--primary);
}

.track-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.track-list {
    list-style: none;
    margin: var(--space-6) 0;
}

.track-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: 0.95rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.check-red {
    background: var(--destructive);
}

.check-orange {
    background: var(--accent);
}

/* Problem Grid */
.problems {
    padding: var(--space-24) var(--space-8);
    background: var(--background);
}

.problems h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-12);
    color: var(--primary);
}

.tab-container {
    max-width: 800px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-12);
    background: var(--surface);
    border-radius: 0.5rem;
    padding: var(--space-2);
    box-shadow: var(--shadow-md);
}

.tab-button {
    padding: var(--space-3) var(--space-6);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.tab-button:hover:not(.active) {
    background: var(--surface-muted);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.problem-card {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--destructive);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
    color: var(--destructive);
}

.problem-icon i {
    font-size: 3rem;
}

.problem-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.problem-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Contact Section */
.contact {
    padding: var(--space-24) var(--space-8);
    background: var(--surface);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-12);
    color: var(--primary);
}

.contact-form {
    background: var(--surface-muted);
    padding: var(--space-8);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: var(--space-6);
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-inter);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--surface);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Authentication Styles */
.auth-user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
}

.auth-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.auth-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary);
}

.auth-button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.auth-button:hover {
    color: var(--destructive);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-content {
        padding: var(--space-4);
    }
    
    .hero {
        padding: var(--space-20) var(--space-4) var(--space-16);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tracks-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-8: 1rem;
        --space-12: 2rem;
        --space-16: 3rem;
        --space-24: 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.125rem;
    }
    
    .tracks h2, .problems h2, .contact h2 {
        font-size: 2rem;
    }
    
    .track-card, .contact-form {
        padding: var(--space-6);
    }
}

/* Print Styles */
@media print {
    .nav-container,
    .hero-actions,
    .contact-form {
        display: none;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Visible */
.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--destructive);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-muted: #000000;
    }
}