/* ========================================
   Root Variables & Global Styles
   ======================================== */

:root {
    --primary: #f4f8ff;
    --secondary: #eaf2ff;
    --accent: #d9e8ff;
    --highlight: #5b7cfa;
    --light: #182742;
    --dark-light: #51617c;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #f8fbff 0%, #eef5ff 60%, #e8f2ff 100%);
    color: var(--light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 35%, rgba(91, 124, 250, 0.16) 0%, transparent 45%),
                radial-gradient(circle at 85% 20%, rgba(82, 217, 192, 0.14) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Header & Navigation
   ======================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 251, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    z-index: 100;
    border-bottom: 1px solid rgba(91, 124, 250, 0.16);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--highlight) 0%, #35b8ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

nav a {
    color: #2f4264;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--highlight);
}

nav a:hover::after {
    width: 100%;
}

/* ========================================
   Main Content
   ======================================== */

main {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

section {
    margin: 0 auto;
    padding: 2rem 2rem;
    scroll-margin-top: 100px;
}

/* ========================================
   Section Styling
   ======================================== */

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--highlight) 0%, #35b8ad 100%);
    border-radius: 2px;
}

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

#hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(120deg, #edf4ff 0%, #dfecff 100%);
}

.hero-content {
    animation: slideUp 0.8s ease;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1f3154;
}

.hero-content .name {
    background: linear-gradient(135deg, var(--highlight) 0%, #35b8ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #4a5d7d;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--highlight);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--highlight);
    cursor: pointer;
}

.cta-button:hover {
    background: rgba(91, 124, 250, 0.1);
    color: #3856b3;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(91, 124, 250, 0.24);
}

/* ========================================
   Resume Section
   ======================================== */

#resume {
    background: linear-gradient(145deg, #eef5ff 0%, #e7f0ff 100%);
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.resume-item {
    background: rgba(255, 255, 255, 0.68);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--highlight);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
}

.resume-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(58, 89, 152, 0.17);
}

.resume-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--highlight);
    margin-bottom: 0.5rem;
}

.resume-item p {
    color: #4f6180;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.skill-tag {
    display: inline-block;
    background: rgba(91, 124, 250, 0.15);
    color: #3550a8;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* ========================================
   Experience Section
   ======================================== */

#experience {
    background: linear-gradient(145deg, #f2f7ff 0%, #e9f2ff 100%);

}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    
}

.timeline-item {
    margin-bottom: 3rem;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(10px);
    box-shadow: 0 14px 30px rgba(58, 89, 152, 0.16);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 30px;
    width: 24px;
    height: 24px;
    background: #f6f9ff;
    border: 3px solid var(--highlight);
    border-radius: 50%;
    z-index: 10;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--highlight);
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    color: #2f4264;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content .duration {
    color: #637598;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: #526586;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--highlight);
}

/* ========================================
   Projects Section
   ======================================== */

#projects {
    background: linear-gradient(145deg, #eef5ff 0%, #e9f2ff 100%);
}

.project-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.category {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--highlight);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    font-size: 2.5rem;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(91, 124, 250, 0.2);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(58, 89, 152, 0.2);
    border-color: var(--highlight);
}

.project-header {
    background: linear-gradient(135deg, rgba(91, 124, 250, 0.17) 0%, rgba(53, 184, 173, 0.12) 100%);
    padding: 2rem;
    border-bottom: 1px solid rgba(91, 124, 250, 0.2);
    min-height: 80px;
    display: flex;
    align-items: flex-end;
}

.project-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--light);
}

.project-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: #4f6180;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.project-links {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(56, 86, 179, 0.12);
    color: #2c4284;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.project-link i {
    font-size: 16px;
}

.project-link:hover {
    background: rgba(56, 86, 179, 0.2);
}
.tech-tag {
    background: rgba(91, 124, 250, 0.13);
    color: #3550a8;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(91, 124, 250, 0.24);
}

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

footer {
    background: var(--primary);
    text-align: center;
    padding: 2rem;
    color: var(--dark-light);
    border-top: 1px solid rgba(91, 124, 250, 0.18);
    margin-top: 4rem;
}

.project-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

/* Navigation Button Base Style */
.project-nav-btn {
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.65);
    color: var(--light);
    border: 2px solid rgba(91, 124, 250, 0.25);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
}

/* Hover State - Button Lifts Up */
.project-nav-btn:hover {
    background: rgba(91, 124, 250, 0.14);
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(91, 124, 250, 0.18);
}

/* Active State - Gradient Background */
.project-nav-btn.active {
    background: linear-gradient(135deg, var(--highlight) 0%, #35b8ad 100%);
    border-color: var(--highlight);
    color: #fff;
    box-shadow: 0 10px 30px rgba(91, 124, 250, 0.28);
    font-weight: 600;
}

/* Active Button Hover State */
.project-nav-btn.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(91, 124, 250, 0.34);
}

/* Icon Inside Button */
.project-nav-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   PROJECT CATEGORIES ANIMATIONS
   ======================================== */

/* Category Container */
.category {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Active Category - Show */
.category.active {
    opacity: 1;
    max-height: 2000px;
    animation: fadeInUp 0.6s ease forwards;
}

/* Hidden Category - Hide */
.category.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    display: none;
}
.resume-btn {
    padding: 0.6rem 1.4rem;
    background: var(--highlight);
    color: white;
    /* ... more styling ... */
}


/* Animation for showing category */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .project-nav {
        gap: 0.8rem;
    }

    .project-nav-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .project-nav {
        gap: 0.7rem;
        padding: 0.8rem 0;
    }

    .project-nav-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }

    .project-nav-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .project-nav {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .project-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .project-nav-icon {
        font-size: 1rem;
    }

    .category.active {
        max-height: 1500px;
    }
}

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

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

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

/* ========================================
   Scrollbar Styling
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--highlight);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c97ff;
}

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

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

    .timeline-content {
        margin-left: 0;
        padding-left: 3rem;
    }

    .timeline-content::before {
        left: -45px;
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .timeline::before {
        left: 0;
    }

    .timeline-content {
        margin-left: 0;
        padding-left: 3rem;
    }

    .timeline-content::before {
        left: -35px;
    }

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

    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        padding-bottom: 1rem;
    }

    .resume-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resume-item {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }
}
