/* Root Variables - Modern Professional Color Scheme */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #6C63FF;
    --accent-color: #4ECDC4;
    --accent-secondary: #00D9FF;
    --text-color: #E8E8E8;
    --text-light: rgba(232, 232, 232, 0.85);
    --text-muted: rgba(232, 232, 232, 0.6);
    --background-color: #0f0f1e;
    --background-alt: rgba(26, 26, 46, 0.95);
    --card-bg: rgba(30, 30, 48, 0.9);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-color: rgba(108, 99, 255, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* Vanta.js Background - Enhanced */
#vanta-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--background-color);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: transparent;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent scrolling when menu is active */
body.menu-active {
    overflow: hidden !important; /* Prevent scrolling */
    position: fixed; /* Fix the body position */
    width: 100%; /* Ensure full width */
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--dark-bg);
}

/* Section Backgrounds - Modern Glass Effect */
section {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    margin: 2rem 0;
    padding: 5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Cards - Premium Glass & Glow */
.project-card, .skill-card, .achievement-card, .education-card, .contact-info, .certification-card {
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.4), rgba(20, 20, 40, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(200%);
}

.project-card:hover, .skill-card:hover, .achievement-card:hover, .education-card:hover, .certification-card:hover {
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.15), 0 0 20px rgba(108, 99, 255, 0.1);
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, rgba(40, 40, 70, 0.7), rgba(20, 20, 40, 0.6));
}

/* Header & Navigation - Modern Glass Effect */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 15, 30, 0.65);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(108, 99, 255, 0.4);
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    background: white;
    box-shadow: var(--shadow-md);
}

/* Hero Section - Enhanced */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}



.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.education-details {
    flex: 1;
}

.cgpa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: #FFD700;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.cgpa-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.education-card {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.4);
    transition: var(--transition);
    perspective: 1000px;
    background: var(--gradient-primary);
    border: 3px solid rgba(108, 99, 255, 0.3);
}

.image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
    backface-visibility: hidden;
}

.front-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
    opacity: 0.3;
    transition: var(--transition);
    z-index: 1;
    mix-blend-mode: multiply;
}

.image-container:hover .image-overlay {
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3) 0%, rgba(108, 99, 255, 0.3) 100%);
}

.image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(108, 99, 255, 0.6);
    border-color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .image-container {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .image-container {
        width: 250px;
        height: 350px;
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out forwards;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-content .tagline {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out forwards 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    color: var(--text-light);
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out forwards 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 1s ease-out forwards 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    background: var(--gradient-primary);
    border: 2px solid transparent;
    color: white;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.8), 0 0 20px rgba(108, 99, 255, 0.5);
}

.cta-button.secondary {
    background: rgba(78, 205, 196, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.2);
}

.cta-button.secondary:hover {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.7), 0 0 20px rgba(78, 205, 196, 0.4);
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Featured Projects Section */
#featured-projects {
    padding: 5rem 2rem;
    background: transparent;
    border-top: none;
    border-bottom: none;
}

#featured-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.project-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3);
    border-color: var(--secondary-color);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    width: 500px;
    height: 500px;
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(108, 99, 255, 0.05));
    border: 1px solid rgba(108, 99, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.15);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

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

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(108, 99, 255, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tech-tag:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.2);
    color: white;
}

.learn-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 25px;
}

.learn-more:hover {
    color: white;
    gap: 1rem;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

.learn-more i {
    transition: var(--transition);
}

.learn-more:hover i {
    transform: translateX(8px);
}

/* Skills Preview Section */
#skills-preview {
    padding: 5rem 2rem;
    background: transparent;
    border: none;
}

#skills-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    font-size: 2.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px var(--shadow-color);
    border-color: var(--secondary-color);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card i {
    width: 65px;
    height: 65px;
    font-size: 2.2rem;
    color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(108, 99, 255, 0.05));
    border: 1px solid rgba(108, 99, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.15);
}

.skill-card:hover i {
    transform: scale(1.1) translateY(-5px);
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

.skill-card h3 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1rem;
}

.skill-card .tech-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.skill-card:hover .tech-tag {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    color: white;
}

.skill-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
footer {
    background: rgba(10, 10, 20, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-section a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text {
    animation: fadeIn 1s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }

    nav {
        padding: 0.5rem;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden off-screen */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95); /* Ensure consistent background */
        backdrop-filter: blur(10px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 80px 2rem 2rem;
        flex-direction: column;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        align-items: flex-start; /* Align items to the top */
        padding-top: 100px; /* Add spacing from the top */
    }

    .nav-container.active {
        right: 0; /* Show the navigation when active */
    }

    .nav-container.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem; /* Increase spacing between links */
        margin-top: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        color: var(--text-color);
    }

    .social-links {
        margin-top: 2rem; /* Add spacing below navigation links */
    }

    .logo {
        margin-bottom: 1rem; /* Add spacing below the logo */
    }

    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    .hamburger-line {
        background: var(--text-color);
    }

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

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .project-carousel,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 1rem;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Dimmed overlay */
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* Custom Scrollbar - Modern */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

/* Section Headers - Enhanced */
section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.5);
}

section h2::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    opacity: 0.3;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    background: white;
    box-shadow: var(--shadow-md);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-container .social-links {
        display: none;
    }

    .nav-links .social-links {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .nav-links .social-links a {
        width: 40px;
        height: 40px;
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var (--text-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        padding: 0;
    }

    .nav-links .social-links a:hover {
        color: var(--accent-color);
        transform: translateY(-3px);
        background: white;
        box-shadow: var(--shadow-md);
    }
}

/* Contact Icons */
.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* About Page Styles */
#about-hero {
    height: 40vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out forwards;
}

.about-hero-content .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeIn 1s ease-out forwards 0.3s;
}

#about-content {
    padding: 4rem 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.education-card {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.education-icon {
    font-size: 3rem;
    color: var(--accent-color);
    background: rgba(26, 26, 26, 0.9);
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.education-card:hover .education-icon {
    transform: scale(1.1);
    background: var(--gradient-accent);
    color: white;
}

.education-details h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.education-details p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.education-details p:last-child {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
    background: rgba(9, 132, 227, 0.2);
    border: 1px solid rgba(9, 132, 227, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievement-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.achievement-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.achievement-year {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievement-detail {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(9, 132, 227, 0.2);
    border: 1px solid rgba(9, 132, 227, 0.3);
    border-radius: 8px;
    display: inline-block;
}

.skills-section {
    background: transparent;
    padding: 0;
    margin-top: 3rem;
}

.skill-category h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.4), rgba(20, 20, 40, 0.2));
    backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(145deg, rgba(60, 60, 90, 0.5), rgba(30, 30, 60, 0.4));
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.skill-item i {
    font-size: 2.2rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(108, 99, 255, 0.2));
}

.skill-item:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(108, 99, 255, 0.5));
}

.skill-item span {
    font-weight: 600;
    color: white;
    font-size: 1.05rem;
}

.certifications {
    margin-top: 3rem;
}

.certification-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.certification-card i {
    font-size: 2rem;
    color: var(--accent-color);
}

.certification-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.certification-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Projects Page Styles */
#projects-hero {
    height: 40vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.projects-hero-content h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out forwards;
}

.projects-hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    animation: fadeIn 1s ease-out forwards 0.2s;
}

#projects-grid {
    padding: 4rem 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-item {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.project-image img {
    width: 100%;
    height: 150%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.project-content {
    padding: 2rem;
}

.project-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(9, 132, 227, 0.3);
    color: var(--secondary-color);
    border: 1px solid rgba(9, 132, 227, 0.4);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-content h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-features h3,
.project-tech h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '•';
    color: var (--accent-color);
    position: absolute;
    left: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge.deployed {
    background: rgba(0, 184, 148, 0.3);
    color: #00B894;
    border: 1px solid rgba(0, 184, 148, 0.4);
}

.status-badge.development {
    background: rgba(243, 156, 18, 0.3);
    color: #F39C12;
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.status-badge.completed {
    background: rgba(9, 132, 227, 0.3);
    color: #0984E3;
    border: 1px solid rgba(9, 132, 227, 0.4);
}

/* Contact Page Styles */
#contact-hero {
    height: 40vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.contact-hero-content h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out forwards;
}

.contact-hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    animation: fadeIn 1s ease-out forwards 0.2s;
}

#contact-content {
    padding: 4rem 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-button.linkedin {
    background: var(--gradient-primary);
    color: white;
}

.social-button.github {
    background: var(--gradient-secondary);
    color: white;
}

.social-button.hackerrank {
    background: var(--gradient-accent);
    color: white;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-secondary);
}

.error-message {
    color: #E74C3C;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.success-message {
    background: #E3FCEF;
    color: #00B894;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
    }
}

/* Achievements Page Styles */
#achievements-hero {
    height: 40vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.achievements-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out forwards;
}

.achievements-hero-content .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeIn 1s ease-out forwards 0.3s;
}

#achievements-content {
    padding: 4rem 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.achievement-section {
    margin-bottom: 4rem;
}

.achievement-section h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.achievement-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

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

.achievement-card {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.achievement-card h3 {
    color:var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.achievement-year {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievement-detail {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(9, 132, 227, 0.2);
    border: 1px solid rgba(9, 132, 227, 0.3);
    border-radius: 8px;
    display: inline-block;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-scroll i {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design for Achievements Page */
@media (max-width: 768px) {
    .achievements-hero-content h1 {
        font-size: 2.5rem;
    }

    .achievements-hero-content .subtitle {
        font-size: 1.2rem;
    }

    .achievement-section h2 {
        font-size: 1.8rem;
    }

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

    .achievement-card {
        padding: 1.5rem;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 80px 2rem 2rem;
        flex-direction: column;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-container.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        color: var(--text-color);
    }

    /* Hamburger Animation */
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(9, 132, 227, 0.8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(9, 132, 227, 1);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header & Navigation */
    header {
        padding: 0.5rem 1rem;
    }

    nav {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 80px 2rem 2rem;
        flex-direction: column;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-container.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        color: var(--text-color);
    }

    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    /* Hero Section */
    #hero {
        padding: 6rem 1rem 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

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

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    /* Featured Projects */
    #featured-projects {
        padding: 3rem 1rem;
    }

    #featured-projects h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .project-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .project-card {
        padding: 1.5rem;
    }

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

    /* Skills Preview */
    #skills-preview {
        padding: 3rem 1rem;
    }

    #skills-preview h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .skill-card i {
        font-size: 2.5rem;
    }

    /* Footer */
    footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    /* Projects Page */
    #projects-hero {
        height: 30vh;
        padding-top: 60px;
    }

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

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

    .project-item {
        margin-bottom: 2rem;
    }

    .project-image {
        height: 300px;
        margin-bottom: 1.5rem;
    }



    .project-description {
        font-size: 0.95rem;
    }

    .project-features ul {
        font-size: 0.9rem;
    }

    /* Contact Page */
    #contact-hero {
        height: 30vh;
        padding-top: 60px;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .social-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Achievements Page */
    #achievements-hero {
        height: 30vh;
        padding-top: 60px;
    }

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

    .achievement-section h2 {
        font-size: 1.8rem;
    }

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

    .achievement-card {
        padding: 1.5rem;
    }

    /* General Section Headers */
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Social Links */
    .nav-container .social-links {
        display: none;
    }

    .nav-links .social-links {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .nav-links .social-links a {
        width: 40px;
        height: 40px;
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        padding: 0;
    }

    /* Hamburger Menu Animation */
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Overlay for Mobile Menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .tagline {
        font-size: 1.1rem;
    }

    .project-card h3,
    .skill-card h3 {
        font-size: 1.3rem;
    }

    .project-card p,
    .skill-card p {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .project-image {
        height: 270px;
    }

    .project-item {
        padding: 1rem;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .project-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* About Preview Section */
#about-preview {
    padding: 5rem 2rem;
    background: transparent;
    border: none;
}

.about-preview-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-preview-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 2rem;
}

.education-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    transition: var(--transition);
}

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

.education-icon {
    font-size: 3rem;
    color: var(--accent-color);
    background: rgba(26, 26, 26, 0.9);
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.education-card:hover .education-icon {
    transform: scale(1.1);
    background: var(--gradient-accent);
    color: white;
}

.education-details h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.education-details p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.education-details p:last-child {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
    background: rgba(9, 132, 227, 0.2);
    border: 1px solid rgba(9, 132, 227, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Skills Section in About Preview */
.skills-section {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}



/* Contact Preview Section */
#contact-preview {
    padding: 5rem 2rem;
    background: transparent;
    border: none;
}

.contact-preview-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.4), rgba(20, 20, 40, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 5rem 3rem;
    backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-preview-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    filter: blur(90px);
    opacity: 0.3;
    z-index: 0;
    border-radius: 50%;
}

.contact-preview-content h2,
.contact-preview-content p,
.social-buttons {
    position: relative;
    z-index: 1;
}

.contact-preview-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-preview-content p {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-button {
    flex: 1;
    max-width: 200px;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-button.linkedin {
    background: var(--gradient-primary);
    color: white;
}

.social-button.github {
    background: var(--gradient-secondary);
    color: white;
}

.social-button.hackerrank {
    background: var(--gradient-accent);
    color: white;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .education-card {
        padding: 1.5rem;
    }

    .skills-section {
        padding: 1.5rem;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }

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

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Project Card Enhancements */
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}



.skill-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    transition: var (--transition);
    filter: brightness(0.8);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    filter: brightness(1);
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
anslateX(5px);
}

/* Experience Section Styles */
#experience-preview {
    padding: 5rem 2rem;
    background: transparent;
    border-top: none;
    border-bottom: none;
}

#experience-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.experience-preview-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.experience-card {
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.4), rgba(20, 20, 40, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(200%);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.15), 0 0 20px rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.4);
    background: linear-gradient(145deg, rgba(40, 40, 70, 0.7), rgba(20, 20, 40, 0.6));
}

.experience-card:hover::before {
    transform: scaleY(1);
}

.experience-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.05));
    border: 1px solid rgba(78, 205, 196, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.15);
}

.experience-card:hover .experience-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

.experience-details h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.experience-details p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.experience-details ul {
    list-style: none;
    margin-top: 1rem;
}

.experience-details li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-details li::before {
    content: '▹';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.experience-timeline {
    position: relative;
    margin-top: 2rem;
}

.experience-item {
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.4), rgba(20, 20, 40, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.2);
}



.experience-item h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.experience-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style: none;
    margin-top: 1rem;
}

.experience-item li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-item li::before {
    content: '▹';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Section Enhancements */
#contact-section {
    padding: 4rem 2rem;
    background: transparent;
}

.contact-form-container {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.3);
}

.submit-button {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-info .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-info .social-button {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info .social-button.linkedin {
    background: rgba(0, 119, 181, 0.2);
    color: #fff;
    border-color: rgba(0, 119, 181, 0.3);
}

.contact-info .social-button.github {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-info .social-button.hackerrank {
    background: rgba(0, 234, 141, 0.2);
    color: #00EA8D;
    border-color: rgba(0, 234, 141, 0.3);
}

.contact-info .social-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay for mobile navigation */
.nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .hamburger-menu {
        display: flex;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }

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

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

    .hero-content .tagline {
        font-size: 1.2rem;
    }
}

/* Scroll Animation */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Achievements Hero */
#achievements-hero {
    height: 40vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.achievements-hero-content h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out forwards;
}

.achievements-hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    animation: fadeIn 1s ease-out forwards 0.2s;
}

#achievements-content {
    padding: 4rem 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.achievement-section {
    margin-bottom: 4rem;
}

.achievement-section h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

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



/* About Preview Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Year display in footer */
#current-year {
    color: var(--accent-color);
}

/* Hover Effects Enhancement */
.cta-button, .project-card, .skill-card, .achievement-card, .experience-card, .education-card {
    transform-style: preserve-3d;
}

/* Smooth Loading Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item, .skill-card, .achievement-card, .experience-card {
    animation: slideInUp 0.6s ease-out forwards;
}

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

/* Certification Container */
.certification-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.certification-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

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


/* ===== SCROLL ANIMATIONS ===== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Flip In Animation */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0);
    }
}

/* Base class for scroll animations - Hidden by default */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    will-change: opacity, transform;
}

/* When element is visible */
.scroll-animate.animate {
    animation-duration: 0.6s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: auto;
}

/* Animation Types */
.animate-fade-up.animate {
    animation-name: fadeInUp;
}

.animate-fade-left.animate {
    animation-name: fadeInLeft;
}

.animate-fade-right.animate {
    animation-name: fadeInRight;
}

.animate-scale.animate {
    animation-name: scaleIn;
}

.animate-zoom.animate {
    animation-name: zoomIn;
}

.animate-flip.animate {
    animation-name: flipIn;
}

/* Staggered Animation Delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
.animate-delay-7 { animation-delay: 0.7s; }
.animate-delay-8 { animation-delay: 0.8s; }

/* Section Headers with Scroll Animation */
section h2.scroll-animate {
    opacity: 0;
}

/* Project Cards Animation Enhancement */
.project-card.scroll-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.project-card.scroll-animate.animate {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
}

/* Skill Cards Animation */
.skill-card.scroll-animate {
    opacity: 0;
    transform: scale(0.8);
}

.skill-card.scroll-animate.animate {
    animation-name: scaleIn;
    animation-duration: 0.6s;
}

/* Achievement Cards Animation */
.achievement-card.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
}

.achievement-card.scroll-animate.animate {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
}

/* Experience Cards Animation */
.experience-card.scroll-animate {
    opacity: 0;
    transform: translateX(-60px);
}

.experience-card.scroll-animate.animate {
    animation-name: fadeInLeft;
    animation-duration: 0.8s;
}

.experience-card:nth-child(even).scroll-animate {
    transform: translateX(60px);
}

.experience-card:nth-child(even).scroll-animate.animate {
    animation-name: fadeInRight;
}

/* Education Cards Animation */
.education-card.scroll-animate {
    opacity: 0;
    transform: scale(0.9);
}

.education-card.scroll-animate.animate {
    animation-name: scaleIn;
    animation-duration: 0.7s;
}

/* About Grid Animation */
.about-grid > div.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
}

.about-grid > div.scroll-animate.animate {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
}

/* Contact Preview Animation */
#contact-preview .scroll-animate {
    opacity: 0;
    transform: translateY(40px);
}

#contact-preview .scroll-animate.animate {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
}

/* Social Buttons Stagger */
.social-button.scroll-animate {
    opacity: 0;
    transform: translateX(-30px);
}

.social-button.scroll-animate.animate {
    animation-name: fadeInLeft;
    animation-duration: 0.5s;
}

/* Prevent animation on initial load for better performance */
.no-scroll-animation {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-animate.animate {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
