/* =====================================================
   Variables & Reset
   ===================================================== */

:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-gold: #d4af37;
    --accent-purple: #9b59b6;
    --text-light: #e8e8e8;
    --text-muted: #a0a0a0;
    --border-color: #2a2f4a;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   Navigation
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

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

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-style: italic;
    line-height: 1.8;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.scroll-indicator svg {
    color: var(--accent-gold);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

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

/* =====================================================
   Sections & Layout
   ===================================================== */

.section {
    padding: 6rem 2rem;
    position: relative;
}

.section:nth-child(even) {
    background-color: rgba(26, 31, 58, 0.5);
}

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

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

/* =====================================================
   About Section
   ===================================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.about-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.about-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.highlight {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    border-left: 3px solid var(--accent-gold);
}

/* =====================================================
   Skills Grid
   ===================================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(212, 175, 55, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(155, 89, 182, 0.2) 50%, transparent 100%);
    transition: var(--transition);
}

.skill-card:hover::before {
    left: 100%;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.skill-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-8px);
}

/* =====================================================
   Timeline
   ===================================================== */

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-purple) 100%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 3rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent-gold);
    border: 3px solid var(--primary-dark);
    border-radius: 50%;
    top: 0;
    z-index: 1;
}

.timeline-content h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }

    .timeline-marker {
        left: 0;
        transform: translateX(-8px);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 30px;
        margin-right: 0;
        padding-left: 2rem;
        text-align: left;
    }
}

/* =====================================================
   Matrix Grid
   ===================================================== */

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(26, 31, 58, 0.5);
}

.matrix-row {
    display: contents;
}

.matrix-cell {
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.matrix-cell:nth-child(2n) {
    border-right: none;
}

.matrix-cell.header {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.matrix-row:last-child .matrix-cell {
    border-bottom: none;
}

/* =====================================================
   Anecdote & Personal Sections
   ===================================================== */

.anecdote-box,
.epilogue-box {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.anecdote-title {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: bold;
}

.anecdote-text,
.epilogue-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.anecdote-quote,
.epilogue-quote {
    color: var(--accent-gold);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-purple);
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.personal-card {
    background: rgba(155, 89, 182, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.personal-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.personal-card p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.personal-quote {
    color: var(--accent-gold);
    font-style: italic;
    margin-top: 1rem;
}

/* =====================================================
   Contact Section
   ===================================================== */

.contact-box {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-box p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-subtitle {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.contact-form {
    margin-top: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(26, 31, 58, 0.95);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-purple) 100%);
    color: var(--primary-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer .container p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--accent-gold);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .matrix-cell {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
    }

    .skills-grid,
    .about-grid,
    .personal-grid {
        grid-template-columns: 1fr;
    }

    .anecdote-box,
    .epilogue-box {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .symbol {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        gap: 0.8rem;
    }

    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   Animations
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-card,
.skill-card,
.personal-card {
    animation: fadeIn 0.6s ease-out;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.15s; }
.skill-card:nth-child(3) { animation-delay: 0.2s; }
.skill-card:nth-child(4) { animation-delay: 0.25s; }
.skill-card:nth-child(5) { animation-delay: 0.3s; }
.skill-card:nth-child(6) { animation-delay: 0.35s; }
