/* ========= RESET & GLOBAL STYLES ========= */
:root {
    --color-background: #0D1117;
    --color-text: #E6EDF3;
    --color-text-secondary: #8B949E;
    --color-accent: #58A6FF;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-glass-bg: rgba(22, 27, 34, 0.7);

    --font-main: 'Inter', sans-serif;
    --font-weight-bold: 700;
    --font-weight-black: 900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ========= AURORA BACKGROUND ========= */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.aurora-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: #58A6FF;
    top: -100px;
    left: -100px;
    animation: animateShape 15s infinite alternate;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: #FF7B72;
    bottom: -50px;
    right: -50px;
    animation: animateShape 20s infinite alternate-reverse;
}

.shape3 {
    width: 200px;
    height: 200px;
    background: #A371F7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: animateShape 18s infinite alternate;
}

@keyframes animateShape {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 50px) rotate(45deg); }
}

/* ========= LAYOUT & HEADER ========= */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-header-glass {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 100;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--color-text); }

.btn-primary-glow {
    background: var(--color-accent);
    color: var(--color-text);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-glow:hover {
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.8);
    transform: translateY(-2px);
    background: #6db1ff;
}

/* ========= MAIN CONTENT ========= */
main {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #b3d7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p.subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* ========= CONTENT SECTIONS & CARDS ========= */
.content-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: 3rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.glass-card:hover {
    border-color: rgba(88, 166, 255, 0.5);
    transform: translateY(-8px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

.project-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-description {
    color: var(--color-text-secondary);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
    gap: 10px;
}

/* ========= RESPONSIVE DESIGN (MOBILE) ========= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.mobile-nav-overlay.active { transform: translateY(0); }
.mobile-nav-overlay a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

@media (max-width: 850px) {
    .site-container {
        padding: 0 1rem;
    }

    .main-header-glass {
        top: 0.5rem;
        width: 92%;
    }

    .header-content {
        padding: 0.5rem 0.8rem;
    }

    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }

    main { padding-top: 6rem; }
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-card {
        padding: 1.2rem;
        max-width: 100%;
    }

    .btn-primary-glow span { display: none; }
}

.mobile-menu-active { overflow: hidden; }

/* Utils */
.success-message {
    color: #58A6FF;
    background-color: rgba(88, 166, 255, 0.1);
    border: 1px solid #58A6FF;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.error-message {
    color: #FF7B72;
    background-color: rgba(255, 123, 114, 0.1);
    border: 1px solid #FF7B72;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
