:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    --accent-primary: #00f0ff;
    --accent-secondary: #ff006e;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --gradient-1: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
    --gradient-2: linear-gradient(135deg, #ff006e 0%, #ff6b00 100%);
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: justify;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
}

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

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.skill-category h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Timeline (for Education and Experience) */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-item .meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-item .description {
    color: var(--text-muted);
    line-height: 1.8;
}

.experience-summary {
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    outline: none;
    transition: color 0.3s ease;
}

.experience-summary:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

details[open] .experience-summary {
    margin-bottom: 1rem;
}

.timeline-item ul.description {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.timeline-item ul.description li {
    margin-bottom: 0.5rem;
}

.timeline-item .date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    margin-top: -0.5rem;
}

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

.project-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.1);
}

.project-header {
    padding: 2rem;
    background: var(--bg-tertiary);
}

.project-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--accent-secondary);
}

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

.tech-badge {
    padding: 0.3rem 0.6rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.project-body {
    padding: 2rem;
}

.project-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-link:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    transform: translateX(3px);
}

.project-link.github {
    color: var(--text-primary);
}

.project-link.github:hover {
    border-color: var(--accent-secondary);
    background: rgba(255, 0, 110, 0.05);
}

/* Certificates & Hackathons */
.certificates-grid,
.hackathons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.certificate-item,
.hackathon-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.certificate-item:hover,
.hackathon-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.certificate-item h3,
.hackathon-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.certificate-item .issuer,
.hackathon-item .event-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certificate-item .date,
.hackathon-item .achievement {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.certificate-details {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.certificate-details li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.certificate-details li::marker {
    color: var(--accent-primary);
}

/* Contact Section */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-details {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Remove default triangle */
}

.contact-summary::-webkit-details-marker {
    display: none;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

details[open] .toggle-icon {
    transform: rotate(45deg);
}

.contact-content {
    padding: 0 2rem 2rem 2rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Mobile Nav Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    nav .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav .nav-links.active {
        transform: translateY(0);
    }

    nav a {
        font-size: 1.1rem;
    }

    /* Layout & Spacing */
    .hero {
        padding-top: 100px;
        /* More space for fixed nav */
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

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

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    /* Timeline */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1rem;
    }

    .timeline-item::before {
        left: -2.1rem;
        /* Adjust dot position */
    }

    .timeline::before {
        left: 0;
        /* Line position */
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .social-links a {
        width: 100%;
        justify-content: center;
    }

    .projects-grid,
    .skills-grid,
    .certificates-grid,
    .hackathons-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form on Mobile */
    .contact-wrapper {
        padding: 1rem;
    }

    .contact-summary {
        padding: 1rem;
    }

    .contact-content {
        padding: 0 1rem 1.5rem 1rem;
    }
}

/* Tablet (iPad) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}