@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

:root {
    --neon-pink: #ff006e;
    --neon-blue: #00f5ff;
    --neon-purple: #8b00ff;
    --neon-yellow: #ffff00;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(20, 20, 40, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
}

html {
    font-size: 20px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.8;
    font-size: 1.2rem;
}

main{
    width: 100%;
    
}

 
.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 0, 110, 0.05) 25%, rgba(255, 0, 110, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 0, 110, 0.05) 75%, rgba(255, 0, 110, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 0, 110, 0.05) 25%, rgba(255, 0, 110, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 0, 110, 0.05) 75%, rgba(255, 0, 110, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 3px solid var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
    padding: 1.5rem 0;
}

.navbar-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
}

/* Main Content */
main {
    margin-top: 120px;
    padding: 3rem;
}

section {
    max-width: 1600px;
    margin: 0 auto 6rem;
    padding: 4rem 3rem;
}

/* Hero Section */
.hero-container {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 0, 110, 0.5);
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 3rem;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--neon-blue);
    font-weight: 600;
}

.hero-description {
    font-size: 1.8rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 3rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.profile-image {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 5px solid var(--neon-pink);
    box-shadow: 0 0 50px var(--neon-pink), 0 0 100px var(--neon-blue);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

/* Section Headers */
.section-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 5rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    letter-spacing: 3px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    box-shadow: 0 0 15px var(--neon-pink);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 3px solid rgba(255, 0, 110, 0.3);
    border-radius: 20px;
    padding: 4rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--neon-pink);
    box-shadow: 0 15px 50px rgba(255, 0, 110, 0.4), 0 0 30px rgba(0, 245, 255, 0.2);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--card-bg);
    border: 3px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.4);
    transform: scale(1.05);
}

.skill-category h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--neon-blue);
    letter-spacing: 1px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 1rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.5rem;
    line-height: 1.8;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
    font-size: 1.8rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--card-bg);
    border: 3px solid rgba(139, 0, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 110, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 40px rgba(139, 0, 255, 0.5);
    transform: translateY(-15px);
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    color: var(--neon-purple);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--neon-purple);
    letter-spacing: 1px;
}

.project-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.3);
    position: relative;  /* ensures z-index works */
    z-index: 10;         /* brings button above other elements */
    pointer-events: auto;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.6);
}

/* Experience & Education */
.timeline-item {
    background: var(--card-bg);
    border-left: 5px solid var(--neon-blue);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 3rem;
    width: 25px;
    height: 25px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--neon-blue);
}

.timeline-item:hover {
    transform: translateX(15px);
    border-color: var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.3);
}

.timeline-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.timeline-date {
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-item {
    background: var(--card-bg);
    border: 3px solid rgba(255, 0, 110, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.4);
    transform: scale(1.05);
}

.contact-icon {
    font-size: 5rem;
    color: var(--neon-pink);
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--neon-pink);
}

/* Footer */
footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 3px solid var(--neon-pink);
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    html {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .section-header {
        font-size: 4.5rem;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .section-header {
        font-size: 4rem;
    }
    
    .profile-image {
        width: 400px;
        height: 400px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .navbar-content {
        padding: 0 2rem;
    }
    
    .profile-image {
        width: 350px;
        height: 350px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .navbar-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
    }
    
    .section-header {
        font-size: 3.5rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .card {
        padding: 2.5rem;
    }
    
    .skill-category {
        padding: 2rem;
    }
    
    .project-card {
        padding: 2rem;
    }
    
    .timeline-item {
        padding: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .nav-links a {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .section-header {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .card,
    .skill-category,
    .project-card,
    .timeline-item,
    .contact-item {
        padding: 1.5rem;
    }
}