/* CSS Variables */
:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --bg-light: #1e293b;
    /* Slate 800 */
    --text-primary: #f1f5f9;
    /* Slate 100 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent: #38bdf8;
    /* Sky 400 */
    --accent-glow: rgba(56, 189, 248, 0.3);
    --gold: #fbbf24;
    /* Amber 400 */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base Types */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links .btn-primary {
    color: var(--bg-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: var(--bg-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* About Section */
.about-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-primary);
}

/* Experience (Timeline) */
.timeline {
    position: relative;
    max-width: 900px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.timeline-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Education (Grid) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card h4 {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.score {
    margin-top: 1rem;
    color: var(--gold);
}

/* Contact Section */
.email-link {
    display: block;
    font-size: 2rem;
    /* Initial size */
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0;
    transition: var(--transition);
}

/* Fallback for smaller screens controlled via media query below */

.email-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented with JS */
    }

    .hamburger {
        display: block;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .email-link {
        font-size: 1.5rem;
    }
}