/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --primary: #0f172a;       /* Deep navy */
    --secondary: #3b82f6;     /* Vibrant blue */
    --accent: #10b981;        /* Emerald green */
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Utilities */
.text-accent { color: var(--secondary); }
.mt-2 { margin-top: 2rem; }

/* =========================================
   NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span { color: var(--secondary); }

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--secondary); }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #60a5fa, #34d399);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.tagline {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-info a, .contact-info span {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.contact-info a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   MAIN LAYOUT & COMPONENTS
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

section { margin-bottom: 6rem; }

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* =========================================
   TIMELINE (EXPERIENCE)
   ========================================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.item-header h4 {
    font-size: 1.4rem;
    color: var(--primary);
}

.item-header h5 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.date-badge {
    background: #eff6ff;
    color: var(--secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline-content ul {
    margin-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-content li { margin-bottom: 0.8rem; }

/* =========================================
   GRID LAYOUTS (PROJECTS & SKILLS)
   ========================================= */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

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

.span-2 { grid-column: 1 / -1; }

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.date-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.project-card ul {
    margin-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.tech-stack {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.tech-stack span {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: var(--text-main);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

/* =========================================
   TABLE (EDUCATION)
   ========================================= */
.table-container { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background-color: #f8fafc;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f8fafc; }

.score-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================
   SKILLS & ACHIEVEMENTS
   ========================================= */
.skill-card { text-align: center; }

.skill-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.skill-card h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.pill {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.clean-list {
    list-style: none;
    text-align: left;
    margin: 0;
}

.clean-list li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.achievements-section h4 { margin-bottom: 1rem; font-size: 1.2rem; }

.achievement-list {
    list-style: none;
    margin-left: 0;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.achievement-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

footer p { color: #94a3b8; font-size: 0.9rem; }

/* =========================================
   ANIMATIONS (Triggered by JS)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (Mobile Responsiveness)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        transition: 0.3s;
    }

    .nav-links.active { left: 0; }
    .hamburger { display: block; }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content h2 { font-size: 1.3rem; }
    
    .timeline::before { left: 0; }
    .timeline-item { padding-left: 30px; }
    .timeline-dot { left: -9px; }
    
    .contact-info { flex-direction: column; gap: 1rem; align-items: center; }
}