:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --primary-color: #00f3ff;
    /* Cyan Neon */
    --secondary-color: #bc13fe;
    /* Purple Neon */
    --accent-color: #00ff9d;
    /* Green Neon */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(10, 10, 10, 0.6);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Container for 3D Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
}

.logo .dot {
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #aaa;
    margin-bottom: 2rem;
}

.subtitle .accent {
    color: var(--secondary-color);
}

.description {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #888;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn.primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn.primary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.btn.secondary {
    border: 1px solid var(--glass-border);
    color: #fff;
    background: var(--glass-bg);
}

.btn.secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections General */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0, 243, 255, 0.15);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ccc;
}

.info-list {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--primary-color);
}

.profile-card {
    text-align: center;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

.tech-stack-mini {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: #888;
}

/* Skills Section */
.skills-category {
    margin-bottom: 3rem;
}

.skills-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
    transform: translateY(-2px);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

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

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.timeline-content h4 {
    color: #aaa;
    margin-bottom: 1rem;
    font-weight: 400;
}

.timeline-content ul {
    list-style-position: inside;
    color: #ccc;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

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

.edu-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.edu-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.edu-card .tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-card .tags span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

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

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.project-subtitle {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tech {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-tech span {
    font-size: 0.8rem;
    color: #aaa;
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

/* Glitch Effect for Name */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(20px, 9999px, 50px, 0);
    }

    15% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    5% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    10% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    15% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    20% {
        clip: rect(40px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 50px, 0);
    }
}

/* Scroll Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive & Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

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

    .glass-header {
        padding: 1rem 1.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 0 1.5rem;
    }

    .hero-chips {
        gap: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-card {
        margin-top: 2rem;
    }

    .timeline::before {
        left: 0;
    }

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

    .education-grid,
    .projects-grid,
    .certifications-grid,
    .languages-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        font-size: 1rem;
        word-break: break-all;
    }

    .floating-news-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }

    .btn-text {
        font-size: 0.8rem;
    }
}

/* Language Toggle */
.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

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

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    position: relative;
    padding: 0 !important;
    /* Override .glass-card padding */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px -10px rgba(188, 19, 254, 0.3);
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.news-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

.news-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 243, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- NEW STYLES: PORTFOLIO UPGRADES --- */

/* Hero Chips */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.chip {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

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

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.cert-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.5);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: #888;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* Languages */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.lang-card h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.lang-card p {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.lang-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.lang-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px var(--primary-color);
}

/* Timeline Additions */
.timeline-desc {
    margin-bottom: 1rem;
}

.timeline-tech {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
    border-top: 1px solid var(--glass-border);
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

/* Premium Project Cards */
.premium-card {
    padding: 0;
    justify-content: flex-start;
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-card:hover .project-image {
    transform: scale(1.05);
}

.premium-card .project-content {
    padding: 1.5rem;
}

.project-body p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.8rem;
}

.project-body strong {
    color: #fff;
}

.project-tech-chips {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-family: var(--font-mono);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* News Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

.last-updated {
    font-family: var(--font-mono);
    color: #888;
    font-size: 0.9rem;
}

#news-update-time {
    color: var(--primary-color);
}

/* Skeletons */
.skeleton {
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 400% 400%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 0% 0%;
    }

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

.skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-meta {
    height: 14px;
    width: 40%;
    margin-bottom: 1.5rem;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Floating News Button */
.floating-news-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-news-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
    background: rgba(0, 243, 255, 0.1);
}

.news-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-icon-container i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #ff0055;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0055;
    animation: pulse-dot 2s infinite;
}

.btn-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Added image styles --- */
.edu-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: rgba(10, 10, 15, 0.9);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 6px;
    display: none;
    text-align: center;
}

.form-msg.success {
    display: block;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

/* --- Advanced Interactive Visuals --- */

/* 1. Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--primary-color);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 2. Intersection Observer Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* 3. Mouse Tracking Glow on Glass Cards */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: var(--mouse-y, -100px);
    left: var(--mouse-x, -100px);
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card>* {
    position: relative;
    z-index: 1;
}