* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

:root {
    --dark-bg: #050607;
    --darker-bg: #000000;
    --accent-primary: #7bd3ff;
    --accent-secondary: #5eead4;
    --accent-purple: var(--accent-primary);
    --accent-pink: var(--accent-secondary);
    --accent-blue: #9ae6ff;
    --text-light: #f7f9fb;
    --text-muted: #cbd5e1;
    --card-bg: rgba(18, 22, 28, 0.6);
    --card-border: rgba(255, 255, 255, 0.14);
}

body {
    background: radial-gradient(circle at 20% 20%, rgba(40,40,40,0.2), transparent 30%),
                radial-gradient(circle at 80% 0%, rgba(60,60,60,0.15), transparent 28%),
                var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.16;
    background: linear-gradient(45deg, #0b0b12, #0f0f18, #0b0b12, #0f0f18);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
}

.profile-header {
    margin-bottom: 40px;
    position: relative;
}

.profile-header h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 42, 109, 0.8), 0 0 40px rgba(138, 43, 226, 0.6); }
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 300;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(123, 211, 255, 0.08));
    padding: 12px 16px;
    border-radius: 14px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 18px;
    z-index: 20;
    overflow: hidden;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    border: 1.2px solid rgba(255, 255, 255, 0.14);
    padding: 9px 18px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    isolation: isolate;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    border-color: transparent;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 6px rgba(123, 211, 255, 0.12);
    pointer-events: none;
}

.section {
    display: none;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 40px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.section.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    width: calc(100% + 125px);
    margin-left: -30px;
    margin-right: -30px;
}

.skills-section.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    width: calc(100% + 125px);
    margin-left: -30px;
    margin-right: -30px;
}


.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent-purple);
    border-left: 4px solid rgba(255, 111, 163, 0.6);
    padding-left: 20px;
    text-shadow: 0 0 12px rgba(156, 125, 255, 0.28);
}

.about-content, .education-content, .skills-content, .projects-content, .contact-content {
    display: grid;
    gap: 25px;
}

.info-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid rgba(123, 211, 255, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(123, 211, 255, 0.12), transparent);
    transform: translateX(-100%);
}

.info-card:hover::before {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.18);
}

.info-card h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
}

.info-card h3 i {
    font-size: 1.3rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 25px;
}

.project-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.18);
}

.project-card h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.project-link-btn i {
    font-size: 0.9rem;
}

.status-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid #16a34a;
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
    letter-spacing: 0.5px;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.status-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.8s;
}

.status-btn:hover::after {
    left: 100%;
}

.status-btn i {
    margin-right: 6px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.contact-opportunity {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(123, 211, 255, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-card:hover::before {
    transform: translateX(100%);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (orientation: landscape) and (min-width: 900px) {
    .codedex-card {
        grid-row: span 3;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-opportunity {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        aspect-ratio: auto;
    }

    .contact-opportunity {
        grid-column: span 1;
    }
}

.contact-card i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2);
}

.contact-card h3 {
    margin-bottom: 6px;
    color: var(--accent-pink);
}

.contact-card a, .contact-card p {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-blue);
}

.contact-link-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-card a.contact-link {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.15s ease;
}

.contact-card a.contact-link:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 60px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.highlight {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.quote {
    font-style: italic;
    border-left: 3px solid rgba(123, 211, 255, 0.45);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-muted);
    background: rgba(123, 211, 255, 0.08);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
}

.about-content .info-card:first-child .quote {
    margin: 14px 0 0;
    padding: 10px 16px;
    font-size: 0.95rem;
}

.about-content .info-card .quote {
    margin: 10px 0 0;
    padding: 10px 14px;
    line-height: 1.55;
}

.education-content .info-card:last-child p {
    margin-bottom: 10px;
}

.education-content .info-card:last-child .quote {
    margin: 10px 0 0;
    padding: 10px 16px;
    font-size: 0.94rem;
}

.section-lead {
    color: var(--text-muted);
    margin: -10px 0 20px;
    font-size: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 12px;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: floatIn 0.5s ease forwards;
    opacity: 0;
}

.experience-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(123, 211, 255, 0.08);
    pointer-events: none;
}

.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
    border-color: rgba(123, 211, 255, 0.28);
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    text-align: center;
    padding-top: 5px;
}

.experience-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

.experience-role {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1.12rem;
}

.experience-focus {
    color: var(--text-muted);
    font-size: 1.06rem;
}

.experience-description {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 1.08rem;
}

.experience-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.experience-list h4 {
    color: var(--accent-secondary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.experience-list ul {
    list-style: disc;
    padding-left: 18px;
    color: var(--text-muted);
    display: grid;
    gap: 10px;
    font-size: 1.04rem;
    line-height: 1.65;
}

.experience-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 18px;
    margin: 18px auto 6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0b1018;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(123, 211, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
    max-width: 240px;
}

.experience-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(123, 211, 255, 0.32);
    filter: brightness(1.05);
}

.experience-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 12px 0 6px;
}

.experience-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0b1018;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(123, 211, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
    min-width: 160px;
    text-transform: none;
}

.experience-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(123, 211, 255, 0.3);
    filter: brightness(1.04);
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(123, 211, 255, 0.08);
    border-radius: 14px;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    border-color: rgba(123, 211, 255, 0.35);
}

.skill-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(123, 211, 255, 0.12);
    color: var(--accent-primary);
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px rgba(123, 211, 255, 0.2);
}

.skill-card h3 {
    margin: 4px 0 6px;
    color: var(--text-light);
    font-size: 1.25rem;
}

.skill-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 12px;
    font-style: italic;
}

.skill-points {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px;
    border-left: 2px solid rgba(123, 211, 255, 0.18);
    padding-left: 14px;
}

.skill-points li {
    color: var(--text-muted);
    margin: 8px 0;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(123, 211, 255, 0.12);
    color: var(--accent-primary);
    font-size: 0.85rem;
    border: 1px solid rgba(123, 211, 255, 0.25);
}

.focus-card {
    background: linear-gradient(165deg, rgba(94, 234, 212, 0.16), rgba(255, 255, 255, 0.04));
    border-color: rgba(94, 234, 212, 0.55);
    box-shadow: 0 16px 40px rgba(94, 234, 212, 0.16);
    grid-column: span 3;
}

.focus-card .skill-icon {
    background: rgba(94, 234, 212, 0.18);
    color: var(--accent-secondary);
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.3);
}

.focus-card .pill {
    background: rgba(94, 234, 212, 0.16);
    color: var(--accent-secondary);
    border-color: rgba(94, 234, 212, 0.35);
}

.skill-list {
    list-style: disc;
    padding-left: 22px;
    margin-top: 8px;
}

.skill-list li {
    margin: 6px 0;
    color: var(--text-muted);
}

.typewriter {
    overflow: hidden;
    border-right: 0.15em solid var(--accent-pink);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-pink) }
}

@media (max-width: 1024px) {
    .focus-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 2.8rem;
    }

    .main-nav {
        position: static;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
    }

    .section.active,
    .skills-section.active {
        width: 100%;
        margin: 0;
    }

    .project-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section {
        padding: 25px;
    }

    .focus-card {
        grid-column: span 1;
    }
}
