:root {
    --bg-color: #020205;
    --card-bg: rgba(10, 10, 15, 0.8);
    --primary: #00f3ff;
    --secondary: #8a2be2;
    --accent: #ff003c;
    --text-main: #e0e0e0;
    --text-muted: #888899;
    --glass-border: rgba(0, 243, 255, 0.15);
    --neon-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-cyber: 'Space Mono', monospace;
    --font-main: 'Outfit', sans-serif;
}

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

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

/* Background Effects */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 243, 255, 0.1);
    opacity: 0.5;
    z-index: 9999;
    pointer-events: none;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

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

/* Nav */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(2, 2, 5, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.05);
}

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

.logo {
    font-family: var(--font-cyber);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    transition: 0.3s;
}

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

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/hero-bg.png') center/cover no-repeat;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, var(--bg-color));
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.hero-sub {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cyber-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 243, 255, 0.1);
    border-left: 3px solid var(--primary);
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    font-family: var(--font-main);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-cyber);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-cyber);
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.05);
}

/* Projects */
.projects {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color), #0a0a0f);
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-cyber);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

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

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

.glass {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.project-image {
    height: 220px;
    background: #050505;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-image img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.2));
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.project-image:hover img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 20px var(--primary));
}

.light-logo {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Node Themes */
.node-aimai {
    --node-color: #ff003c;
    --node-glow: rgba(255, 0, 60, 0.3);
}

.node-cnel {
    --node-color: #00f3ff;
    --node-glow: rgba(0, 243, 255, 0.3);
}

.node-tecnored {
    --node-color: #8a2be2;
    --node-glow: rgba(138, 43, 226, 0.3);
}

.node-cnel-app {
    --node-color: #ffcc00;
    --node-glow: rgba(255, 204, 0, 0.3);
}

.project-card:hover {
    border-color: var(--node-color);
    box-shadow: 0 0 30px var(--node-glow);
}

.project-card .tech-tag {
    border-color: var(--node-color);
    color: var(--node-color);
    background: rgba(0, 0, 0, 0.5);
}

.project-card .view-more {
    color: var(--node-color);
}

.project-card .view-more:hover {
    text-shadow: 0 0 10px var(--node-color);
}

.project-card .btn-web:hover {
    background: var(--node-color);
    box-shadow: 0 0 15px var(--node-color);
}

.project-card h3 {
    color: var(--node-color);
}

.project-links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.view-more:hover {
    text-shadow: 0 0 10px var(--primary);
    transform: translateX(5px);
}

.btn-web {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    font-weight: 700;
    transition: 0.3s;
}

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

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-family: var(--font-cyber);
    margin-bottom: 1rem;
    color: var(--primary);
}

.tech-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-family: var(--font-cyber);
    border: 1px solid var(--primary);
}
.tech-stack {
    padding: 100px 0;
}

.stack-wrapper {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stack-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: 0.3s;
}

.stack-item:hover {
    background: rgba(0, 243, 255, 0.03);
    border-color: var(--primary);
}

.stack-header-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.stack-header-item i {
    width: 24px;
    height: 24px;
}

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

.tech-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-list li::before {
    content: '>';
    color: var(--primary);
    font-family: var(--font-cyber);
    font-size: 0.8rem;
}

.tech-list li span {
    color: #fff;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
/* Secciones visibles por defecto */
section {
    opacity: 1;
    transform: translateY(0);
}

/* Details Pages */
.details-page {
    padding-top: 150px;
    padding-bottom: 100px;
}

.details-header {
    margin-bottom: 5rem;
    text-align: center;
}

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

.details-card {
    padding: 3rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.card-header h3 {
    font-family: var(--font-cyber);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

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

.spec-list li {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem;
    transition: 0.3s;
}

.spec-list li:hover {
    border-color: var(--primary);
    color: #fff;
}

.spec-list li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.simple-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .details-grid { grid-template-columns: 1fr; }
    .details-card { padding: 2rem; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* Chatbot */
/* --- CYBER-ASSISTANT PRO UI --- */
.chatbot-launcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 243, 255, 0.1);
}

.chatbot-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

.chatbot-launcher.active {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
}

.chat-tooltip {
    position: absolute;
    left: 80px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: var(--font-cyber);
}

.chatbot-launcher.ready:not(.active) .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.chatbot-window {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 380px;
    height: 580px;
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.95), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0, 243, 255, 0.05);
    overflow: hidden;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    padding: 20px 25px;
    background: rgba(0, 243, 255, 0.03);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.4; transform: scale(1); }
}

.chat-header span {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
    font-family: var(--font-cyber);
}

.chat-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.chat-close:hover { color: #ff4d4d; transform: rotate(90deg); }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0, 243, 255, 0.3); border-radius: 10px; }

.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    animation: msgFade 0.4s ease forwards;
}

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

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(0, 243, 255, 0.05));
    color: var(--primary);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.chat-options button {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-options button:hover {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chat-input-area {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    gap: 12px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 18px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
}

.chat-input-area button {
    background: var(--primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* --- UNIVERSAL RESPONSIVE SYSTEM --- */
@media (max-width: 1200px) {
    .container { width: 90%; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; text-align: center; }
    .hero h1 { font-size: 2.5rem; line-height: 1.2; }
    .hero-sub { font-size: 1rem; margin: 0 auto 30px; }
    
    .projects-grid { grid-template-columns: 1fr; gap: 25px; }
    .stack-grid { grid-template-columns: 1fr; }
    
    .section-header h2 { font-size: 2rem; }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px;
    }
    
    .social-links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .cyber-badge { font-size: 0.7rem; padding: 4px 10px; }
    
    .project-card { border-radius: 16px; }
    .project-info { padding: 20px; }
    .project-info h3 { font-size: 1.2rem; }
    
    .btn-primary, .btn-web, .view-more { 
        width: 100%; 
        justify-content: center; 
        font-size: 0.85rem;
    }

    .chatbot-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        left: 0;
        border-radius: 0;
        z-index: 100001;
    }

    .chatbot-launcher {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
}

/* --- UTILITIES --- */
img { max-width: 100%; height: auto; }
section { padding: 80px 0; overflow: hidden; }

/* --- TYPING ANIMATION --- */
.message.bot.typing {
    display: flex;
    gap: 4px;
    padding: 15px 20px;
}

.message.bot.typing span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: typingPulse 1.4s infinite;
}

.message.bot.typing span:nth-child(2) { animation-delay: 0.2s; }
.message.bot.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}
}

/* --- IMAGE HANDLING & GALLERIES --- */
.image-gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.gallery-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.gallery-img:hover {
    transform: scale(1.02);
    border-color: var(--node-color);
    box-shadow: 0 0 20px var(--node-glow);
}

/* --- LIGHTBOX MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 2, 5, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    cursor: zoom-out;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
}

.modal-close:hover { color: var(--primary); transform: rotate(90deg); }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

.mt-4 { margin-top: 2rem; }
.mt-2 { margin-top: 1rem; }
