/* ==========================================================================
   Base Variables & Reset
   ========================================================================== */
:root {
    /* Core Colors */
    --bg-main: #000000;
    --bg-section: #0D1117;
    --bg-card: #151B2B;
    --bg-card-hover: #1E2638;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-main: #ffffff;
    --text-dark: #0B0F19;
    --text-muted: #94A3B8;

    /* Accents */
    --accent-yellow: #FFD700;
    --accent-yellow-hover: #E6C200;
    --btn-blue: #2563EB;
    --btn-blue-hover: #1D4ED8;
    --accent-blue-soft: #3B82F6;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#global-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Global Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1, h2 {
    font-family: var(--font-serif);
    letter-spacing: -1px;
}

p {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--accent-yellow);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 1.5rem;
}

.accent-text {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 600;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Global Layout & Section Containers
   ========================================================================== */
section {
    padding: 6rem 5%;
    width: 80%; /* Set width to 80% */
    max-width: 1400px; /* Set a max-width for very large screens */
    margin: 4rem auto;
    background-color: var(--bg-section);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.subpage section:first-of-type {
    margin-top: 120px; /* Add space at the top for subpages */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* Remove background from sections that don't need it */
.hero, .footer {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0 auto;
    padding-top: 0;
    width: 100%; /* Ensure hero and footer are full-width */
}

.footer {
    padding-top: 4rem;
    background-color: #000000;
}


/* ==========================================================================
   Animation Utility Classes
   ========================================================================== */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    section {
        width: 90%; /* Increase width for medium screens */
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.9rem; /* Slightly smaller base font size */
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        width: 95%; /* Almost full width on smaller screens */
        padding: 4rem 3%; /* Reduced vertical padding */
        margin: 2rem auto; /* Reduced vertical margin */
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 3rem 2%;
        margin: 1.5rem auto;
    }

    .section-subtitle {
        font-size: 0.65rem;
    }
}