:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #7c4dff;
    --accent-secondary: #00e5ff;
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15), transparent 70%);
    position: fixed;
    top: -200px;
    left: -200px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(0, 0);
    transition: transform 0.1s ease-out;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    gap: 4rem;
}

.hero-image img {
    width: 320px !important;
    height: 320px !important;
    max-width: 320px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero-image {
    flex-shrink: 0;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

@media (max-width: 900px) {

.hero {
    flex-direction: column;
    text-align: center;
}

.hero-image img {
    width: 220px;
    height: 220px;
}

}

.resume-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
}

.resume-link:hover {
    color: var(--accent-primary);
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.role .accent {
    color: var(--accent-primary);
}

.bio {
    max-width: 500px;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--accent-primary);
    color: #fff;
    border: 1px solid var(--accent-primary);
}

.btn.primary:hover {
    background: transparent;
}

.btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn.secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn.huge {
    font-size: 1.2rem;
    padding: 1rem 3rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
}

.social-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Sections General */
.section {
    padding: 6rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* About */
.about-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--accent-secondary);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    background: rgba(124, 77, 255, 0.1);
    color: var(--accent-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.project-type {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Timeline/Education */
.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 1rem;
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.4rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
}

.timeline-item .date {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Certifications */
.cert-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.cert-list li {
    padding: 1rem;
    border-left: 2px solid var(--accent-secondary);
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), transparent);
    color: var(--text-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    background: #000;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .name {
        font-size: 3rem;
    }

    .role {
        font-size: 1.5rem;
    }

    .cursor-glow {
        display: none;
    }
}
/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particles span {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(124, 77, 255, 0.5);
    border-radius: 50%;
    animation: float 10s linear infinite;
    filter: blur(4px);
    opacity: 0.7;
}

/* Randomize particle sizes and positions */
.particles span:nth-child(1) { left: 10%; top: 20%; animation-duration: 12s; width: 6px; height: 6px; }
.particles span:nth-child(2) { left: 30%; top: 80%; animation-duration: 8s; width: 8px; height: 8px; }
.particles span:nth-child(3) { left: 50%; top: 10%; animation-duration: 15s; width: 5px; height: 5px; }
.particles span:nth-child(4) { left: 70%; top: 60%; animation-duration: 10s; width: 7px; height: 7px; }
.particles span:nth-child(5) { left: 85%; top: 30%; animation-duration: 18s; width: 6px; height: 6px; }
.particles span:nth-child(6) { left: 20%; top: 50%; animation-duration: 14s; width: 5px; height: 5px; }
.particles span:nth-child(7) { left: 40%; top: 70%; animation-duration: 9s; width: 7px; height: 7px; }
.particles span:nth-child(8) { left: 60%; top: 20%; animation-duration: 12s; width: 6px; height: 6px; }
.particles span:nth-child(9) { left: 75%; top: 80%; animation-duration: 16s; width: 8px; height: 8px; }
.particles span:nth-child(10){ left: 90%; top: 50%; animation-duration: 11s; width: 6px; height: 6px; }

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0.7; }
    50% { transform: translateY(-50px) translateX(20px); opacity: 0.5; }
    100% { transform: translateY(0) translateX(-10px); opacity: 0.7; }
}

/* Social Link Hover Animation */
.social-links a {
    transition: all 0.3s ease;
}
.social-links a:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--accent-primary);
}

/* Button Hover Glow */
.btn.primary:hover {
    box-shadow: 0 0 20px var(--accent-primary);
}
.btn.secondary:hover {
    box-shadow: 0 0 15px var(--accent-secondary);
}

/* Hero Z-index Fix */
.hero-content {
    position: relative;
    z-index: 10;
}
/* About Section Decorative Floating Icons */
.about-decor {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 2rem;
    pointer-events: none;
}

.about-decor .tech-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatIcon 6s ease-in-out infinite;
}

/* Random positions for each icon */
.about-decor .tech-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.about-decor .tech-icon:nth-child(2) { top: 30%; left: 20%; animation-delay: 1s; }
.about-decor .tech-icon:nth-child(3) { top: 50%; left: 70%; animation-delay: 2s; }
.about-decor .tech-icon:nth-child(4) { top: 20%; left: 80%; animation-delay: 3s; }
.about-decor .tech-icon:nth-child(5) { top: 60%; left: 40%; animation-delay: 4s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.15; }
    50% { transform: translateY(-20px) rotate(15deg); opacity: 0.3; }
}

/* About content hover glow */
.about-content p {
    transition: transform 0.3s ease, color 0.3s ease;
}

.about-content p:hover {
    transform: translateX(5px);
    color: var(--accent-primary);
}
.about-decor .tech-icon {
    transition: transform 0.2s ease-out;
}
/* Skills Aesthetic Effects */
/* Technical Arsenal */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    background: rgba(124,77,255,0.1);
    color: var(--accent-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* text left align */
    gap: 1.5rem; /* text aur button ke beech spacing */
    position: relative;
}

#contact .btn {
    margin-top: 1rem; /* extra spacing agar chahiye */
    z-index: 1;
}
.project-card {
    background: linear-gradient(145deg, rgba(124,77,255,0.05), rgba(0,229,255,0.05)); /* soft gradient */
    border: 1px solid rgba(124,77,255,0.2); /* subtle colored border */
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(124,77,255,0.3), 0 10px 25px rgba(0,229,255,0.2);
    background: linear-gradient(145deg, rgba(124,77,255,0.15), rgba(0,229,255,0.15));
}
.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #7c4dff, #00e5ff, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.project-card h3:hover {
    background-size: 200% 200%;
    animation: headingGradient 4s linear infinite;
}

@keyframes headingGradient {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.project-type {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Timeline container */
.timeline {
    border-left: 3px solid rgba(124,77,255,0.3);
    padding-left: 2rem;
    margin-left: 0;
    position: relative;
}

/* Each timeline item */
.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 1.5rem;
}

/* Timeline dots */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 0.3rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-color);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    background: var(--accent-primary);
}

/* Dates */
.timeline-item .date {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    display: block;
}

/* Degree / School */
.timeline-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(90deg, #7c4dff, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Additional info */
.timeline-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.cert-list li {
    background: linear-gradient(145deg, rgba(124,77,255,0.05), rgba(0,229,255,0.05));
    border: 1px solid rgba(124,77,255,0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: default;
}

.cert-list li:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(145deg, rgba(124,77,255,0.15), rgba(0,229,255,0.15));
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px rgba(124,77,255,0.2), 0 10px 25px rgba(0,229,255,0.15);
}
#contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* center align content */
    text-align: center;
    gap: 1.5rem;
    padding: 4rem 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(124,77,255,0.05), rgba(0,229,255,0.05));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#contact:hover {
    box-shadow: 0 15px 50px rgba(124,77,255,0.3), 0 10px 30px rgba(0,229,255,0.2);
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #7c4dff, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#contact p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

#contact .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(124,77,255,0.2);
}

#contact .btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 40px rgba(124,77,255,0.3), 0 10px 25px rgba(0,229,255,0.15);
}

.cert-list a{
    text-decoration: none !important; 
    color: inherit;
    transition: 0.3s ease;
}

.cert-list a:hover {
    color: var(--accent-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tech-stack span {
    background: rgba(124,77,255,0.12);
    border: 1px solid rgba(124,77,255,0.35);
    color: var(--accent-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    transition: all 0.25s ease;
}

.tech-stack span:hover {
    background: var(--gradient-main);
    color: white;
    transform: translateY(-2px);
}

.game-card {
    background: rgba(124,77,255,0.12);
    border: 1px solid rgba(124,77,255,0.35);
    color: var(--accent-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    transition: all 0.25s ease;
}

.game-card:hover {
    background: var(--gradient-main);
    color: white;
    transform: translateY(-2px);
}