/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #64ffda; /* Minimalist Teal Accent */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    /* Subtle Grid Background to reduce empty space feeling */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;

    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4 { color: var(--text-primary); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.nav-links { 
    display: flex; 
    gap: 2rem; 
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
}

.nav-links a:hover { color: var(--accent); }

/* Resume Button in Navbar */
.nav-resume-btn {
    border: 1px solid var(--accent);
    padding: 7px 20px;
    border-radius: 4px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.nav-resume-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Burger Menu (Hidden on Desktop) */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.typewriter-text { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    line-height: 1.2;
}

.highlight { color: var(--accent); }

.subtitle { 
    color: var(--text-secondary); 
    font-size: 1.3rem; 
    margin-bottom: 2.5rem; 
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Primary Button Style */
.btn {
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
}

.btn:hover { background-color: rgba(100, 255, 218, 0.1); }

/* Secondary/Outline Button Style */
.btn-outline {
    padding: 0.8rem 2rem;
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================
   4. GENERAL SECTIONS
   ========================================= */
.section { 
    padding: 6rem 10%; 
}

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

.section-title { 
    font-size: 2rem; 
    margin-bottom: 3rem; 
    position: relative; 
    display: inline-block; 
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
}

/* =========================================
   5. ABOUT ME & SKILLS
   ========================================= */
.about-content { 
    max-width: 800px; 
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-content strong {
    color: var(--accent);
}

.skills-grid { 
    margin-top: 2rem; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
}

.skill-tag {
    background: var(--card-bg);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--accent);
    border: 1px solid #333;
    transition: 0.3s;
    font-family: monospace;
}

.skill-tag:hover { 
    border-color: var(--accent); 
    transform: translateY(-3px); 
}

/* =========================================
   6. PROJECTS GRID
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.card-icon { 
    font-size: 2.5rem; 
    color: var(--accent); 
    margin-bottom: 1.5rem; 
}

.project-card h3 { 
    margin-bottom: 1rem; 
    font-size: 1.4rem;
}

.project-card p { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    font-size: 1rem; 
}

.card-links {
    margin-top: auto; 
}

.card-links a { 
    color: var(--text-primary); 
    font-size: 0.95rem; 
    margin-right: 15px;
}

.card-links a:hover { color: var(--accent); }

.btn-text {
    font-weight: bold;
    border-bottom: 1px solid transparent;
}
.btn-text:hover {
    border-bottom: 1px solid var(--accent);
}

/* =========================================
   7. TIMELINE SECTION (New)
   ========================================= */
.timeline {
    margin-top: 4rem;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #333; 
}

.timeline-title {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px; 
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: 0.3s;
}

.timeline-item:hover::before {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 5px;
    font-family: monospace;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* =========================================
   8. CONTACT & FOOTER
   ========================================= */
#contact {
    text-align: center;
}

#contact p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.socials { 
    margin-top: 3rem; 
    font-size: 2rem; 
}

.socials a { 
    margin: 0 15px; 
    color: var(--text-secondary);
}

.socials a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.footer { 
    text-align: center; 
    padding: 2rem; 
    color: var(--text-secondary); 
    font-size: 0.85rem; 
    background-color: #0a0a0a;
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .typewriter-text { font-size: 2.2rem; }
    .section { padding: 4rem 5%; }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--card-bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        border-left: 1px solid #333;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links li { 
        margin: 20px 0; 
        opacity: 0; 
    }

    .burger { 
        display: block; 
        z-index: 1001;
    }
    
    .nav-active { 
        transform: translateX(0%); 
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
}