/* Base Styles */
:root {
    --primary: rgb(96, 165, 250);
    --primary-dark: rgb(59, 130, 246);
    --secondary: rgb(147, 51, 234);
    --accent: rgb(236, 72, 153);
    --bg-dark: rgb(0, 0, 0);
    --text-light: rgb(255, 255, 255);
    --text-gray: rgb(156, 163, 175);
    --mouse-x: 50%;
    --mouse-y: 50%;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
}

/* Background Effects */
.animated-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(96, 165, 250, 0.15) 0%,
        rgba(147, 51, 234, 0.15) 30%,
        rgba(236, 72, 153, 0.15) 50%,
        transparent 80%
    );
    filter: blur(120px);
    opacity: 0.8;
    transition: background-position 0.3s ease;
    transform: translateZ(0);
    will-change: background-position;
    z-index: -2;
}

.tech-grid {
    position: fixed;
    inset: 0;
    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;
    background-position: center center;
    transform: translateZ(0);
    opacity: 0.2;
    z-index: -1;
}

.gradient-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent, rgba(0,0,0,0.5));
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateZ(0);
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-image {
    height: 3rem;
    width: auto;
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

.desktop-nav a:hover::after {
    width: 100%;
}

.schedule-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: transform 0.3s, opacity 0.3s;
}

.schedule-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-light);
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
    z-index: 49;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

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

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

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.video-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 2;
}

.video-control-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.video-control-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
    max-width: 48rem;
    padding-top: 6rem;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .gradient-text {
        font-size: 4rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    transition: transform 0.3s, opacity 0.3s;
}

.primary-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.primary-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Services & Projects Sections */
.services,
.projects {
    padding: 5rem 0;
}

.services h2,
.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card,
.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: transform 0.3s, background-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover,
.project-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    background: none;
    border: none;
    transition: color 0.3s, transform 0.3s;
    align-self: flex-start;
    padding: 0.5rem 0;
}

.expand-btn:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Musician CTA */
.musician-cta {
    margin-top: 4rem;
    background: linear-gradient(to right, rgba(96, 165, 250, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.musician-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(96, 165, 250, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    z-index: -1;
    animation: gradientMove 10s ease infinite;
}

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

.cta-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.cta-button {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: var(--text-light);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    transition: transform 0.3s, opacity 0.3s;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 42rem;
    width: 100%;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 5;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem;
}

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

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    transition: all 0.3s;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    height: 8rem;
    resize: vertical;
}

.captcha-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    min-width: 100px;
    text-align: center;
}

.refresh-captcha {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.25rem;
}

.refresh-captcha:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.captcha-error {
    color: rgb(239, 68, 68);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    width: 100%;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1rem;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.privacy-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.privacy-notice h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.privacy-notice p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(96, 165, 250, 0.05), rgba(147, 51, 234, 0.05));
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-logo {
    height: 3rem;
    margin-bottom: 1.5rem;
    filter: brightness(1.25) contrast(1.25);
}

.footer-tagline {
    font-size: 1.25rem;
    max-width: 32rem;
}

.contact-links {
    margin-top: 2rem;
}

.contact-links h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.contact-link:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

.contact-link i {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.3s;
}

.contact-link.whatsapp i {
    color: rgb(74, 222, 128);
    background-color: rgba(74, 222, 128, 0.1);
}

.contact-link.whatsapp:hover i {
    background-color: rgba(74, 222, 128, 0.2);
}

.contact-link.email i {
    color: var(--primary);
    background-color: rgba(96, 165, 250, 0.1);
}

.contact-link.email:hover i {
    background-color: rgba(96, 165, 250, 0.2);
}

.contact-link.linkedin i {
    color: rgb(37, 99, 235);
    background-color: rgba(37, 99, 235, 0.1);
}

.contact-link.linkedin:hover i {
    background-color: rgba(37, 99, 235, 0.2);
}

.contact-link.instagram i {
    color: rgb(236, 72, 153);
    background-color: rgba(236, 72, 153, 0.1);
}

.contact-link.instagram:hover i {
    background-color: rgba(236, 72, 153, 0.2);
}

.contact-link.youtube i {
    color: rgb(239, 68, 68);
    background-color: rgba(239, 68, 68, 0.1);
}

.contact-link.youtube:hover i {
    background-color: rgba(239, 68, 68, 0.2);
}

.contact-link.calendar i {
    color: rgb(168, 85, 247);
    background-color: rgba(168, 85, 247, 0.1);
}

.contact-link.calendar:hover i {
    background-color: rgba(168, 85, 247, 0.2);
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.cloud-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.cloud-tag:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cloud-tag-1 {
    background-color: rgba(96, 165, 250, 0.2);
    color: rgb(147, 197, 253);
}

.cloud-tag-2 {
    background-color: rgba(147, 51, 234, 0.2);
    color: rgb(192, 132, 252);
}

.cloud-tag-3 {
    background-color: rgba(236, 72, 153, 0.2);
    color: rgb(251, 113, 133);
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Fixed Action Buttons */
.fixed-actions {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, opacity 0.3s;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-5px);
}

.action-btn.linkedin {
    background-color: rgb(37, 99, 235);
}

.action-btn.whatsapp {
    background-color: rgb(74, 222, 128);
}

/* ElevenLabs Convai Chatbot Styles */
.action-btn.ai-assistant {
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
}

.action-btn.ai-assistant:hover {
    transform: none;
    opacity: 1;
}

/* Ensure the ElevenLabs widget doesn't overlap with other buttons */
elevenlabs-convai {
    display: block;
    margin-bottom: 8rem;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
}

.carousel-slides {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s;
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Utilities */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .animated-bg,
    .tech-grid,
    .gradient-overlay,
    .video-container,
    .fixed-actions,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .header {
        position: static;
        background: none;
        color: black;
    }

    .gradient-text {
        color: black;
        background: none;
    }
}

/* Responsive form adjustments */
@media (max-width: 640px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem 0;
        max-height: calc(100vh - 2rem);
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
    }
    
    .form-group textarea {
        height: 6rem;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-code {
        width: 100%;
    }
    
    .privacy-notice {
        padding: 0.75rem;
    }
}

/* Scrollbar styling for the modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* === GLOW ESTILO FIREBASE STUDIO EN BORDE EXTERIOR === */
.service-card,
.project-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: none;
  overflow: hidden;
  z-index: 0;
  border: 2px solid transparent;
  transition: transform 0.4s ease;
}

.service-card::after,
.project-card::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 200% 200%;
  background-position: 0% 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease, background-position 1.5s ease;
  animation: borderGlowMove 5s linear infinite;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

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

.service-card:hover::after,
.project-card:hover::after {
  opacity: 1;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
}



/* === MODAL EXPANDIDO CON ESTILO CENTRADO Y GLOW === */
.modal.expanded {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.75);
}

.modal.expanded .modal-content {
  max-width: 60vw;
  width: 100%;
  background-color: rgba(23, 23, 23, 0.95);
  border-radius: 1.25rem;
  padding: 2rem;
  border: 2px solid transparent;
  position: relative;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
  overflow: hidden;
}

.modal.expanded .modal-content::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 200% 200%;
  animation: borderGlowMove 6s linear infinite;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.modal.expanded .modal-header h3 {
  font-size: 2rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.modal.expanded .prose {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 1rem;
}

.modal.expanded img {
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  margin-top: 1rem;
}



/* === EFECTO FIREBASE EN INPUT ACTIVO CON DESTELLO === */
input:focus, textarea:focus {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  outline: none;
  animation: glowFocusEntry 0.4s ease-out forwards;
}

input:focus::after, textarea:focus::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 200% 200%;
  animation: borderGlowMove 6s linear infinite;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

@keyframes glowFocusEntry {
  0% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 6px 2px rgba(96, 165, 250, 0.5);
  }
}
