:root {
    --bg-dark: #0b0f10;
    --bg-card: #161b1d;
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.3);
    --text-main: #f3f4f6;
    --text-dim: #9ca3af;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(11, 15, 16, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--primary); }

nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #0b0f10 100%);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 20px;
}

h1 { font-size: 2rem; margin-bottom: 5px; }
.role { color: var(--primary); font-weight: 500; margin-bottom: 20px; font-size: 0.95rem; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-icons a { color: var(--text-dim); font-size: 1.2rem; transition: 0.3s; }
.social-icons a:hover { color: var(--primary); transform: translateY(-3px); }

/* Skill Capsules in Hero */
.skill-capsule-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.skill-capsule {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
}

.skill-capsule i { color: var(--primary); }

/* Buttons */
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover { box-shadow: 0 0 20px var(--primary-glow); transform: scale(1.02); }

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Section Styling */
.section { padding: 100px 10%; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 50px; position: relative; }
.section-title::after {
    content: ''; width: 50px; height: 3px; background: var(--primary);
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-box {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering fix */
    transition: 0.3s;
}

.skill-box:hover { border-color: var(--primary); transform: translateY(-5px); }
.skill-box h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--primary); }
.skill-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.skill-tags span {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Timeline */
/* Container for the whole timeline */
.timeline { 
    position: relative; 
    max-width: 800px; 
    margin: 40px auto; /* Centered with top/bottom margin */
    text-align: left; 
}

/* The vertical line - ensure it spans 100% height */
.timeline::before {
    content: ''; 
    position: absolute; 
    left: 20px; 
    top: 0;
    width: 2px; 
    height: 100%; 
    background: var(--border);
    z-index: 1;
}

/* Individual items */
.timeline-item { 
    position: relative; 
    padding-left: 60px; 
    margin-bottom: 50px; 
}

/* Remove margin from last item so line doesn't hang too long */
.timeline-item:last-child {
    margin-bottom: 0;
}

/* The Green Dots */
.circle {
    position: absolute; 
    left: 13px; 
    top: 25px; /* Aligned with the card content */
    width: 16px; 
    height: 16px;
    background: var(--primary); 
    border-radius: 50%; 
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 2; /* Ensures dot is ABOVE the line */
}

/* The Card Styling */
.content { 
    background: var(--bg-card); 
    padding: 25px; 
    border-radius: 15px; 
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.content:hover {
    transform: translateX(10px); /* Subtle slide effect on hover */
    border-color: var(--primary);
}

.content h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.content p {
    color: var(--text-dim);
    font-size: 0.9rem;
}
.date {
    color: var(--primary); /* This sets it to #10b981 (Emerald Green) */
    font-size: 0.85rem;
    font-weight: 600;       /* Makes it bold enough to stand out */
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase; /* Optional: Makes it look even more professional */
    letter-spacing: 0.5px;      /* Optional: Adds a clean, modern feel */
}
/* Project Section Styling */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    text-align: left; /* Keep text left-aligned for readability */
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.project-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    gap: 10px;
}

.project-tags span {
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Ensure the navbar doesn't hide the section title */
html {
    scroll-padding-top: 100px;
}

footer { text-align: center; padding: 40px; color: var(--text-dim); font-size: 0.8rem; border-top: 1px solid var(--border); }
/* Mobile Navigation Fix */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stacks "Soumik" and the Links */
        padding: 15px 20px;
        height: auto; /* Allows header to expand for stacked links */
    }

    .logo {
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap; /* Allows links to drop to next line if needed */
        justify-content: center;
        gap: 10px; /* Controlled spacing between links */
        margin-left: 0; /* Removes the large left margin from desktop */
    }

    nav a {
        margin-left: 0; /* Reset desktop margin */
        font-size: 0.8rem; /* Slightly smaller text for mobile */
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.05); /* Adds a subtle capsule feel */
        border-radius: 20px;
    }

    .hero {
        padding: 100px 20px 40px; /* More top padding for the stacked header */
        height: auto; /* Let content determine height on mobile */
        min-height: 100vh;
    }

    .glass-card {
        width: 90%; /* Leaves 5% gap on each side */
        max-width: 340px; /* Prevents it from getting too big on small tablets */
        padding: 30px 20px;
        margin: 0 auto;
    }

    /* Shrink the profile image slightly for mobile */
    .profile-img {
        width: 90px;
        height: 90px;
    }

    /* Ensure skill capsules wrap nicely inside the card */
    .skill-capsule-container {
        gap: 6px;
    }
    
    .skill-capsule {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}