/* Design System */
:root {
    --bg-color: #030305;
    --accent-primary: #8a2be2;
    /* vibrant purple */
    --accent-secondary: #00e5ff;
    /* neon cyan */
    --accent-tertiary: #ff007f;
    /* hot pink for extra gradients */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --selection-bg: rgba(138, 43, 226, 0.4);
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 20000; /* above all elements */
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Custom Cursor Outline */
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-secondary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    height: 40px;
    border: 2px solid var(--accent-secondary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10011; /* above modal overlay */
    pointer-events: none;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-hover .cursor-dot {
    width: 4px;
    height: 4px;
    background-color: white;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Splash Screen */
.splash-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.splash-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

* {
    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);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
    /* Hide default cursor */
}

/* Show default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* Background Grids & Orbs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    animation: orb-float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

::selection {
    background: var(--selection-bg);
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

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

/* Global Elements */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2rem);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary), var(--accent-tertiary));
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.4s;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-tagline {
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--accent-secondary);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    background-size: 200% auto;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: 0.5s;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Portfolio Grid */
.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    border-radius: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.project-card {
    text-decoration: none;
    display: block;
    transition: 0.4s;
    cursor: pointer;
    /* make cards clickable */
    position: relative;
    /* ensure overlay order */
}


.project-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    background: #111;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.project-card:hover .project-image-container {
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.2), 0 0 20px rgba(138, 43, 226, 0.2);
}

.project-info {
    padding: 0 0.5rem;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: white;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Hide old overlay stuff */
.project-overlay {
    display: none;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skill-category h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.skill-tag:hover {
    background: rgba(112, 0, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* Music Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 3001;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

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

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 242, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
    }
}

/* Responsive Overhaul */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: var(--section-padding);
    }

    /* Mobile Menu Implementation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 3000;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }

    .cta-group {
        justify-content: center;
    }

    .skills-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-image-container {
        height: 300px;
    }

    .section-title {
        text-align: center;
    }

    .section-title .underline {
        margin: 0 auto;
    }

    .splash-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.8rem, 11vw, 2.4rem);
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }

    .project-image-container {
        height: 200px;
    }

    .splash-content h1 {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 1rem !important;
    }

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

/* Utility for preventing scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Music Player Banner */
.music-player-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 95vw);
    padding: 12px 24px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
    user-select: none;
}

.drag-handle {
    cursor: grab;
    padding: 10px;
    margin-right: 10px;
    opacity: 0.5;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle:hover {
    opacity: 1;
    color: var(--accent-secondary);
}

.music-player-banner.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.player-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    width: 25px;
}

.music-bars .bar {
    width: 3px;
    background: var(--accent-secondary);
    border-radius: 10px;
    height: 100%;
}

.playing .music-bars .bar {
    animation: bounce 1s ease-in-out infinite;
}

.playing .music-bars .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.playing .music-bars .bar:nth-child(3) {
    animation-delay: 0.4s;
}

.playing .music-bars .bar:nth-child(4) {
    animation-delay: 0.1s;
}

@keyframes bounce {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 100%;
    }
}

.track-details p {
    margin: 0;
}

#player-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

#player-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.ctrl-btn:hover {
    opacity: 1;
    color: var(--accent-secondary);
    transform: scale(1.1);
}

.ctrl-btn.play-pause {
    background: white;
    color: black;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.ctrl-btn.play-pause:hover {
    transform: scale(1.05);
    background: var(--accent-secondary);
    color: black;
}

.player-volume {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#player-volume-slider {
    width: 100px;
    cursor: pointer;
    accent-color: var(--accent-secondary);
}

/* Education Timeline */
.education-timeline {
    position: relative;
    padding-left: 30px;
    margin: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    z-index: 1;
    transition: 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
    transform: scale(1.2);
}

.timeline-item.current .timeline-dot {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(112, 0, 255, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(112, 0, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(112, 0, 255, 0);
    }
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .player-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .track-info {
        justify-content: center;
        width: 100%;
    }

    .track-details {
        text-align: center;
        max-width: 180px;
    }

    #player-title {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .player-volume {
        width: 100%;
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .music-player-banner {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        transform: none !important;
        bottom: 10px;
        padding: 12px;
        border-radius: 16px;
    }

    #player-volume-slider {
        width: 100px;
    }

    .ctrl-btn.play-pause {
        width: 45px;
        height: 45px;
    }

    .drag-handle {
        display: none;
    }

    body.menu-open .music-player-banner {
        opacity: 0;
        visibility: hidden;
    }

    .hero {
        padding-bottom: 120px;
        /* Ensure space for the fixed player */
    }
}

/* About Section Specific Classes */
.about-text-top {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    max-width: 800px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.about-text-bottom {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    max-width: 800px;
    color: var(--text-secondary);
    margin-top: 3rem;
    line-height: 1.8;
}

.highlight-white {
    color: white;
    font-weight: 600;
}

footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    /* Modal overlay styles moved to later refined definition */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10001;
    /* ensure above custom cursor */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(20, 20, 25, 0.92);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary)) 1;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary), var(--accent-secondary));
    border-radius: 20px;
    z-index: -1;
    filter: blur(8px);
    animation: borderPulse 6s infinite linear;
}

@keyframes borderPulse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#modal-message {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.modal-btn {
    position: relative;
    z-index: 1;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    #modal-message {
        font-size: 1rem;
    }

    .modal-btn {
        font-size: 0.95rem;
        padding: 0.8rem 1.8rem;
    }
}


/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.9), rgba(15, 15, 20, 0.95));
    border: 1px solid rgba(138, 43, 226, 0.5);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.1);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

#modal-message {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.modal-btn {
    position: relative;
    z-index: 1;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}