/* ============================================
   Black Box Programming - Global Stylesheet
   ============================================ */

/* CSS Variables - Color Theme */
:root {
    --color-gold: #FFD700;
    --color-gold-dark: #DAA520;
    --color-gold-light: #FDB931;
    --color-gold-muted: #d4af37;
    
    --color-bg-darkest: #0a0a0a;
    --color-bg-dark: #0f0f0f;
    --color-bg-darker: #000000;
    --color-bg-medium: #1a1a1a;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    
    --color-text: #e0e0e0;
    --color-text-muted: #c0c0c0;
    --color-text-dim: #888;
    
    --color-border-gold: rgba(255, 215, 0, 0.2);
    --color-border-gold-hover: rgba(255, 215, 0, 0.5);
    
    --max-width-container: 1200px;
    --spacing-section: 6rem;
}

/* ============================================
   Base Styles & Reset
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-bg-darkest);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Typography
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
}

/* ============================================
   Hero Section Styles
   ============================================ */

.project-hero,
.about-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-medium) 50%, #0d0d0d 100%);
    overflow: hidden;
}

.about-hero {
    min-height: 70vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
}

.project-logo,
.profile-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.5);
    border: 4px solid rgba(255, 215, 0, 0.4);
    animation: float 3s ease-in-out infinite;
}

.profile-logo {
    border-radius: 50%;
    position: relative;
}

.project-logo img,
.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-pic {
    border-radius: 50%;
    object-fit: cover;
    position: relative;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

.project-title,
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 4rem;
}

.project-tagline,
.hero-tagline {
    font-size: 1.5rem;
    color: var(--color-gold-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-tagline {
    margin-bottom: 1rem;
}

.project-description,
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-subtitle {
    line-height: 1.6;
}

.project-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.project-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-gold);
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--color-gold);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--color-gold);
    color: #000;
    border: 2px solid var(--color-gold);
    font-weight: 700;
}

.btn-light:hover {
    background: var(--color-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-outline-light:hover {
    background: var(--color-gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   Feature Cards
   ============================================ */

.features-section {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-gold);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-gold-hover);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    stroke: var(--color-gold);
}

.feature h3 {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--color-text-muted);
}

/* ============================================
   Animations
   ============================================ */

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1); 
    }
}

/* ============================================
   Section Backgrounds
   ============================================ */

.bg-dark {
    background: var(--color-bg-dark);
}

.bg-darker {
    background: var(--color-bg-darker);
}

.bg-gradient {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 100%);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Card Utilities */
.card-base {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.card-base:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
}

.card-numbered-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.card-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon-container svg {
    stroke: var(--color-gold);
}

.card-title {
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-description {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Grid Utilities */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .project-title,
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-tagline,
    .hero-tagline {
        font-size: 1.2rem;
    }

    .features-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
