* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d9ff;
    --secondary: #ff3366;
    --accent: #ff6b35;
    --purple: #a855f7;
    --dark: #0a0e27;
    --light: #020202;
    --text: #ffffff;
    --glow: rgba(0, 217, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b4e 100%);
    animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
    0%, 100% { background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b4e 100%); }
    50% { background: linear-gradient(135deg, #1a1f3a 0%, #2d1b4e 50%, #0a0e27 100%); }
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    animation: rotate 25s linear infinite, pulse 8s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

nav.scrolled {
    padding: 0.5rem 5%;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2), 0 0 80px rgba(168, 85, 247, 0.1);
    background: rgba(10, 14, 39, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.7)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple), var(--secondary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    animation: slideInLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.3));
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.typing-effect {
    display: inline-block;
    border-right: 4px solid var(--primary);
    animation: typing 3.5s steps(40, end) forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    box-shadow: 2px 0 8px var(--glow);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { 
        border-color: var(--primary);
        box-shadow: 2px 0 8px var(--glow);
    }
    51%, 100% { 
        border-color: transparent;
        box-shadow: none;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.4), 0 0 60px rgba(168, 85, 247, 0.2);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.6), 0 0 80px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px var(--glow);
}

.btn-cv {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.btn-cv:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 2px solid rgba(0, 217, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    transform: translateY(-8px) rotate(360deg) scale(1.1);
    box-shadow: 0 10px 40px var(--glow), 0 0 60px rgba(168, 85, 247, 0.4);
    border-color: transparent;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: slideInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.3), 0 0 100px rgba(168, 85, 247, 0.2);
    animation: float 6s ease-in-out infinite, imageGlow 3s ease-in-out infinite;
    border: 4px solid transparent;
    background: linear-gradient(45deg, var(--primary), var(--purple), var(--secondary), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

@keyframes imageGlow {
    0%, 100% { 
        box-shadow: 0 30px 80px rgba(0, 217, 255, 0.3), 0 0 100px rgba(168, 85, 247, 0.2);
    }
    50% { 
        box-shadow: 0 30px 80px rgba(168, 85, 247, 0.4), 0 0 100px rgba(0, 217, 255, 0.3);
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation: floatShape 20s infinite;
    filter: blur(2px);
}

.shape1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 60px var(--glow);
}

.shape2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    top: 70%;
    right: 10%;
    animation-delay: 5s;
    box-shadow: 0 0 60px rgba(255, 51, 102, 0.5);
}

.shape3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
    box-shadow: 0 0 60px rgba(255, 107, 53, 0.5);
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(40px, -40px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg) scale(0.9);
    }
}

/* Sections */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--purple), var(--secondary));
    border-radius: 3px;
    box-shadow: 0 0 20px var(--glow);
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--purple), var(--secondary));
    box-shadow: 0 0 20px var(--primary);
}

.experience-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
    transform: translateX(15px) scale(1.02);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3), 0 0 80px rgba(168, 85, 247, 0.2);
    border-color: var(--primary);
}

.experience-card:hover::after {
    width: 100%;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-date {
    color: var(--primary);
    font-size: 0.95rem;
    background: rgba(0, 217, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.experience-company {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.experience-description {
    color: white!important;
    line-height: 1.9;
    font-size: 1.05rem;
}

.experience-description li {
    margin-bottom: 0.7rem;
    padding-left: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.experience-description li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.9rem;
    text-shadow: 0 0 10px var(--glow);
    animation: pulse 2s ease-in-out infinite;
}

.experience-description li:hover {
    color: var(--light);
    transform: translateX(5px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-category:hover {
    transform: translateY(-15px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.3), 0 0 100px rgba(168, 85, 247, 0.2);
    border-color: var(--primary);
}

.skill-category:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

.skill-category h3 {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
/*
================================
Project Link (View Live) Button
================================
*/
.project-link {
    /* Layout */
    display: inline-flex; /* This is key for aligning the icon and text */
    align-items: center;
    gap: 0.6rem; /* Adjusts space between icon and text */
    margin-top: 1.25rem; /* Adds space above the link */
    
    /* Stacking (The Fix) */
    position: relative;
    z-index: 1; /* Lifts it above the card's ::before hover effect */

    /* Appearance */
    text-decoration: none;
    color: var(--primary); /* Uses your theme's primary blue/cyan */
    font-weight: 600;
    font-size: 0.95rem;
    
    /* Animation */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing, animated underline (inspired by your nav links) */
.project-link::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Positions the line just below the text */
    left: 0;
    width: 0; /* Starts with no width */
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    box-shadow: 0 0 10px var(--glow);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animates the width */
}

/* Hover State */
.project-link:hover {
    color: var(--text); /* Changes text to white */
    text-shadow: 0 0 15px var(--glow); /* Adds the signature glow */
    transform: translateY(-2px); /* Adds a subtle "lift" */
}

.project-link:hover::after {
    width: 100%; /* Expands the underline to full width on hover */
}

.skill-tag {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--light);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    border: 2px solid rgba(0, 217, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 30px var(--glow);
    border-color: transparent;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(168, 85, 247, 0.15));
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.project-card:hover::before {
    height: 100%;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.4), 0 0 100px rgba(168, 85, 247, 0.3);
    border-color: var(--primary);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.project-description {
    color: var(--text);
    margin-bottom: 1.2rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 51, 102, 0.2));
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 107, 53, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

/* Education Section */
.education-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.education-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
}

.education-card::before {
    content: '🎓';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    opacity: 0.15;
    filter: drop-shadow(0 0 20px var(--glow));
    animation: float 4s ease-in-out infinite;
}

.education-degree {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.7rem;
}

.education-school {
    color: var(--secondary);
    margin-bottom: 0.7rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.education-date {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.coursework {
    margin-top: 1.5rem;
}

.coursework-title {
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--light);
    font-size: 1.1rem;
}

.coursework-list {
    color: var(--text);
    line-height: 2;
    font-size: 1.05rem;
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(0, 217, 255, 0.2);
}

.contact-item:hover {
    color: var(--primary);
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(168, 85, 247, 0.15));
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 5%;
    border-top: 2px solid rgba(0, 217, 255, 0.2);
    color: var(--text);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.02), rgba(168, 85, 247, 0.02));
}

/* Mobile Responsive */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu span {
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow);
}

.mobile-menu:hover span {
    box-shadow: 0 0 20px var(--glow);
}

/* Update the hero buttons layout for multiple buttons */
@media (min-width: 769px) {
    .hero-buttons {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Particle Background */
.particles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    opacity: 0.5;
    animation: floatParticle 15s infinite linear;
    box-shadow: 0 0 30px var(--glow);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50vh) translateX(50vw) rotate(180deg) scale(1.5);
    }
    100% {
        transform: translateY(-100vh) translateX(100vw) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Code animation */
.code-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.code-line {
    position: absolute;
    color: rgba(0, 217, 255, 0.15);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    white-space: nowrap;
    animation: codeFlow 20s linear infinite;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

@keyframes codeFlow {
    0% {
        transform: translateY(100vh) translateX(-10vw);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(10vw);
        opacity: 0;
    }
}

/* Resume Container Styles */
.resume-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 60px rgba(0, 217, 255, 0.2), 0 0 100px rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 8px;
    font-weight: 900;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 50px rgba(255, 255, 255, 0.5); }
}

.header h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Styles */
.content {
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
}

.section {
    margin-bottom: 40px;
}

.section-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e4e6ef;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.summary {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4b5563;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.skill-category {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2ff 100%);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid var(--primary);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
    border-left-color: var(--purple);
}

.skill-category h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.95rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

/* Experience Section */
.experience-item {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s ease;
}

.experience-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
    transform: translateX(5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.experience-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.2rem;
}

.experience-date {
    color: var(--primary);
    font-size: 0.95rem;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.experience-description {
    color: #4b5563;
}

.experience-description ul {
    list-style-type: none;
    padding-left: 5px;
}

.experience-description li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.experience-description li::before {
    content: "▶";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Education Section */
.education-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s ease;
}

.education-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.education-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.education-degree {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.2rem;
}

.education-date {
    color: var(--primary);
    font-weight: 600;
}

.education-school {
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.coursework {
    margin-top: 18px;
}

.coursework-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple), var(--primary));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 3px solid var(--primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    color: #6b7280;
    font-size: 0.95rem;
    border-top: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header h2 {
        font-size: 1.15rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .experience-header, .education-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .resume-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .action-buttons {
        display: none;
    }
    
    .btn {
        display: none;
    }
    
    .skill-tag {
        border: 1px solid #ddd;
    }
}
