:root {
    --bg-primary: #0a0b1e;
    --bg-secondary: #12142e;
    --bg-tertiary: #1a1d3e;
    --text-primary: #e8eaf6;
    --text-secondary: #9fa8da;
    --accent-purple: #7c4dff;
    --accent-blue: #448aff;
    --accent-blue-light: #82b1ff;
    --accent-purple-dark: #651fff;
    --border-subtle: rgba(124, 77, 255, 0.15);
    --glow-purple: rgba(124, 77, 255, 0.3);
    --glow-blue: rgba(68, 138, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 20%, var(--glow-purple) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, var(--glow-blue) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(124, 77, 255, 0.05) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Particle effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-100px) translateX(50px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 11, 30, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 1s ease 0.3s backwards;
}

@keyframes fadeInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(68, 138, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--accent-purple);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 77, 255, 0.4);
}

.btn-secondary {
    background: rgba(124, 77, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(124, 77, 255, 0.2);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 8rem 4rem;
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease backwards;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(124, 77, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: var(--accent-purple);
    transform: translateX(10px);
}

.highlight-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.highlight-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Skills Section */
.skills-container {
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(124, 77, 255, 0.2);
}

.skill-category h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(68, 138, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(68, 138, 255, 0.2);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 138, 255, 0.2);
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease backwards;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(124, 77, 255, 0.25);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.project-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.project-status {
    padding: 0.4rem 1rem;
    background: rgba(68, 138, 255, 0.15);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-blue-light);
    font-weight: 600;
}

.project-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.project-features {
    list-style: none;
    margin: 1.5rem 0;
}

.project-features li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: rgba(68, 138, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.github-link:hover {
    background: rgba(68, 138, 255, 0.2);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.github-link svg {
    width: 20px;
    height: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.tech-tag {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: rgba(124, 77, 255, 0.1);
    color: var(--accent-purple);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-weight: 500;
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-purple);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease backwards;
}

.experience-card:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(124, 77, 255, 0.2);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.experience-project {
    color: var(--accent-blue-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.experience-date {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 8px;
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.experience-achievements {
    list-style: none;
    margin-top: 1.5rem;
}

.experience-achievements li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.experience-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Education Section */
.education-card {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(68, 138, 255, 0.1) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease backwards;
}

.education-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.education-degree {
    font-size: 1.3rem;
    color: var(--accent-blue-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-location {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.coursework {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.coursework h4 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

.coursework-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.course-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(68, 138, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(124, 77, 255, 0.2);
}

.contact-label {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-value {
    color: var(--text-secondary);
    font-size: 0.95rem;
    word-break: break-word;
    text-align: center;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* Scroll animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero, section {
        padding: 4rem 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-links {
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .project-header {
        flex-direction: column-reverse;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .footer-links {
        gap: 2rem;
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .menu-toggle {
        display: flex;
    }
}