/* ===================================
   VivoDevs - Modern Dark Theme CSS
   =================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-color: #1E90FF;
    --secondary-color: #00BFFF;
    --accent-color: #4169E1;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #121218;
    --bg-card-hover: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #6b6b7f;
    --section-bg: rgba(10, 10, 15, 0.75);
    --section-bg-darker: rgba(5, 5, 8, 0.75);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    --gradient-secondary: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(30, 144, 255, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Lenis Required CSS ===== */
html.lenis,
html.lenis body {
    height: auto;
}

html {
    overflow-x: hidden;
}

/* Hide scrollbars only on mobile/tablet to avoid duplicate bars while keeping layout stable */
@media (max-width: 1024px) {
    html {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    html::-webkit-scrollbar {
        display: none; /* Chrome/Safari/iOS */
    }
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ===== Light Mode Variables ===== */
/* ===== Light Mode Variables ===== */
body.light-mode {
    /* Colors */
    --primary-color: #0070f3;
    /* Slightly darker blue for light mode */
    --secondary-color: #00BFFF;
    --accent-color: #4169E1;
    --bg-dark: #f8f9fa;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f5;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --section-bg: rgba(248, 249, 250, 0.75);
    --section-bg-darker: rgba(255, 255, 255, 0.75);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0070f3 0%, #00BFFF 100%);
    --gradient-secondary: linear-gradient(135deg, #4169E1 0%, #0070f3 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 112, 243, 0.05) 0%, rgba(0, 191, 255, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 112, 243, 0.15);
}

/* Light Mode Overrides */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-link {
    color: var(--text-secondary);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: var(--primary-color);
}

body.light-mode .hamburger span {
    background: var(--text-primary);
}

body.light-mode .hero-overlay {
    background: radial-gradient(circle at 30% 50%, rgba(0, 112, 243, 0.08) 0%, transparent 50%);
}

body.light-mode .service-card,
body.light-mode .portfolio-card,
body.light-mode .contact-form,
body.light-mode .about-image {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-mode .service-card:hover,
body.light-mode .portfolio-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 112, 243, 0.2);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .form-group select {
    background: #f8f9fa;
    border-color: #e2e8f0;
    color: var(--text-primary);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus,
body.light-mode .form-group select:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

body.light-mode .footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .footer-bottom {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .project-modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .project-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .gallery-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .project-modal-close {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .project-modal-close:hover {
    color: white;
    background: var(--primary-color);
}

body.light-mode .contact-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-mode .social-icons a {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-mode .social-icons a:hover {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
}

body.light-mode .portfolio-content {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .portfolio-content h3 {
    color: var(--text-primary);
}

body.light-mode .portfolio-content p {
    color: var(--text-secondary);
}

body.light-mode .form-group input:focus+label,
body.light-mode .form-group textarea:focus+label,
body.light-mode .form-group select:focus+label,
body.light-mode .form-group input:not(:placeholder-shown)+label,
body.light-mode .form-group textarea:not(:placeholder-shown)+label,
body.light-mode .form-group select:valid+label {
    background: #ffffff;
    color: var(--primary-color);
}

body.light-mode .floating-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .floating-card i {
    text-shadow: none;
}

body.light-mode .image-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

body.light-mode .image-card p {
    color: var(--text-secondary);
}

body.light-mode .workflow-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .workflow-card h4 {
    color: var(--text-primary);
}

body.light-mode .workflow-card p {
    color: var(--text-secondary);
}

body.light-mode .priority-chip {
    background: transparent;
    border: none;
    padding: 0;
}

body.light-mode .priority-chip span {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    color: var(--text-secondary);
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

body.light-mode .priority-chip input:checked+span {
    background: rgba(0, 112, 243, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.15);
}

body.light-mode .about-image {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.light-mode .footer-bottom {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Team Member - Light Mode Override */
body.light-mode .member-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
}

body.light-mode .overlay-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.light-mode .team-member {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* System Status Modal - Light Mode */
body.light-mode .dev-modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body.light-mode .dev-title {
    color: var(--text-primary);
}

body.light-mode .dev-message {
    color: var(--text-secondary);
}

body.light-mode .scan-line {
    background: linear-gradient(to bottom, transparent, rgba(30, 144, 255, 0.2), transparent);
}

/* Contact Button - Light Mode */
body.light-mode .contact-form .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

body.light-mode .contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Light Mode Scrollbar */
body.light-mode ::-webkit-scrollbar-track {
    background: #f5f5f7;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border: 2px solid #f5f5f7;
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: visible;
    /* Consolidate scroll context to html on PC to avoid dual bars */
    width: 100%;
    position: relative;
}

@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
        /* Keep mobile lock to prevent lateral shift */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body::-webkit-scrollbar {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ===== Particle Background ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--bg-dark);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 60px;
    width: auto;
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.2));
}

.logo:hover .brand-logo {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-left: var(--spacing-md);
}

.theme-toggle i {
    margin: 0;
    line-height: 1;
}


.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(20deg);
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(to bottom, transparent 0%, transparent 80%, var(--section-bg) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(30, 144, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: 60px;
}

.hero-header {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
}

.hero-info {
    grid-column: 1;
    grid-row: 2;
    z-index: 2;
    margin-top: 1.5rem;
    width: max-content; /* Prevent ghost click by limiting width to buttons only */
}

.hero-image {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    height: 500px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.hero-title-text {
    width: 100%;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.typing-text {
    display: inline-block;
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    width: max-content; /* Double-check width restriction */
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(30, 144, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Removed desktop .hero-image height to let grid handle it */

.floating-card {
    position: absolute;
    background: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 900px;
    /* Alargado el texto para que no ocupe tanto espacio hacia abajo */
    margin: 0 auto;
}

/* ===== Services Section ===== */
.services {
    background: linear-gradient(180deg, var(--section-bg) 0%, var(--section-bg-darker) 100%);
    overflow-x: clip;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns in a row */
    gap: var(--spacing-md);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablets */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.service-card {
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 3px solid transparent;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    /* Reduced from 2rem */
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    opacity: 1 !important;
    /* Asegurar visibilidad completa */
    visibility: visible !important;
    display: flex;
    flex-direction: column;
}

/* Card Accents */
.card-yellow {
    border-bottom-color: #FFD700;
}

.card-yellow .service-icon {
    background: rgba(255, 215, 0, 0.1);
}

.card-yellow .service-icon i {
    color: #FFD700;
    -webkit-text-fill-color: #FFD700;
    background: none;
}

.card-blue {
    border-bottom-color: #1E90FF;
}

.card-blue .service-icon {
    background: rgba(30, 144, 255, 0.1);
}

.card-blue .service-icon i {
    color: #1E90FF;
    -webkit-text-fill-color: #1E90FF;
    background: none;
}

.card-cyan {
    border-bottom-color: #00FFFF;
}

.card-cyan .service-icon {
    background: rgba(0, 255, 255, 0.1);
}

.card-cyan .service-icon i {
    color: #00FFFF;
    -webkit-text-fill-color: #00FFFF;
    background: none;
}

.card-red {
    border-bottom-color: #FF4500;
}

.card-red .service-icon {
    background: rgba(255, 69, 0, 0.1);
}

.card-red .service-icon i {
    color: #FF4500;
    -webkit-text-fill-color: #FF4500;
    background: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(30, 144, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    background: rgba(30, 144, 255, 0.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.service-icon {
    width: 60px;
    /* Reduced from 70px */
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    /* Reduced from spacing-sm */
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 1.75rem;
    /* Reduced from 2rem */
    color: white;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    /* Reduced from 1.5rem */
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-card>p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    /* Slightly smaller text */
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* ===== About Section ===== */
.about {
    background: var(--section-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-content {
    padding-right: var(--spacing-md);
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 144, 255, 0.3);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.image-card {
    background: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.image-card:hover {
    transform: translateY(-10px);
    border-color: rgba(30, 144, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.image-card i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.image-card h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
}

.image-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Removed 3rd child span to allow 2x2 grid for 4 cards */

/* ===== Team Section ===== */
.team {
    background: linear-gradient(180deg, var(--section-bg) 0%, var(--section-bg-darker) 100%);
    padding: var(--spacing-xl) 0;
}

.team-grid.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .team-grid.two-columns {
        grid-template-columns: 1fr;
    }
}

.team-member {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle dark card background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Matching other cards */
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
    min-height: 400px;
    /* Ensure visibility */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    /* Fixed height for consistency */
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
}

.team-member:hover .overlay-content {
    transform: translateY(0);
}

/* ===== Workflow Subsection ===== */
.workflow-section {
    margin-top: var(--spacing-xl);
    text-align: center;
    padding: 0 var(--spacing-sm);
    overflow-x: clip;
}

.subsection-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

.workflow-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    text-align: left;
    transition: transform var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.workflow-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 25px rgba(30, 144, 255, 0.4);
    background: rgba(30, 144, 255, 0.05);
}

.light-mode .workflow-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .workflow-card:hover {
    background: rgba(0, 112, 243, 0.03);
}

@keyframes workflowFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.workflow-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.workflow-icon i {
    font-size: 1.25rem;
}

/* Specific colors for each workflow step */
.workflow-card:nth-child(1) .workflow-icon i {
    color: #00d2ff;
}

/* Blue/Cyan */
.workflow-card:nth-child(2) .workflow-icon i {
    color: #a29bfe;
}

/* Purple/Lavender */
.workflow-card:nth-child(3) .workflow-icon i {
    color: #ffeaa7;
}

/* Yellow/Gold */
.workflow-card:nth-child(4) .workflow-icon i {
    color: #55efc4;
}

/* Green/Mint */
.workflow-card:nth-child(5) .workflow-icon i {
    color: #ff7675;
}

/* Red/Pink */

.workflow-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: white;
}

.workflow-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .team-grid.two-columns {
        grid-template-columns: 1fr;
    }
}

.overlay-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    color: white;
}

.overlay-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.overlay-content .social-links {
    display: flex;
    gap: 1rem;
}

.overlay-content .social-links a {
    color: white;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.overlay-content .social-links a:hover {
    color: var(--primary-color);
}




/* ===== Portfolio Section ===== */
.portfolio {
    background: var(--section-bg);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: var(--spacing-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-item {
    flex: 0 1 350px;
    min-width: 320px;
    display: flex;
    justify-content: center;
    transition: all 0.4s ease;
}

.portfolio-item.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.8);
}

.portfolio-card {
    width: 100%;
    height: 380px;
    /* Reduced from 450px */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.portfolio-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.portfolio-icon img {
    width: 185px;
    height: 185px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(30, 144, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    background: #fff;
    /* Unified white background for all logos */
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    z-index: 2;
}

.portfolio-card:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.25rem;
}

.portfolio-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.portfolio-card:hover .portfolio-icon {
    transform: translateY(-10px);
}

.portfolio-card:hover .portfolio-icon img {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.portfolio-controls {
    text-align: center;
    margin-top: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hidden-pagination {
    display: none !important;
}

/* ===== Contact Section ===== */
.contact {
    background: linear-gradient(180deg, var(--section-bg) 0%, var(--section-bg-darker) 100%);
    padding: var(--spacing-md) 0 var(--spacing-xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: rgba(30, 144, 255, 0.3);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-social {
    padding: var(--spacing-sm);
}

.contact-social h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: var(--spacing-sm);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px);
}

.contact-form {
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-gray);
    pointer-events: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
    z-index: 2;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group select:focus~label,
.form-group select:valid~label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--bg-dark); /* Use theme-aware background */
    padding: 0 0.5rem;
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

/* Hide number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    z-index: 10;
    display: block !important;
    clear: both;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 50px;
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4,
.footer-services h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: var(--spacing-sm);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links a,
.footer-services a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 350px;
        /* Reduced height for tablet */
        width: 100%;
        margin-top: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh; /* Occupy full screen on entry */
        padding-top: 100px; /* Reduced to allow more space for content */
        padding-bottom: 2rem;
        display: flex;
        align-items: center;
    }

    .about {
        padding: var(--spacing-lg) 0;
    }

    .about-grid {
        gap: 0.5rem !important;
    }

    .about-text:last-of-type {
        margin-bottom: 0.5rem;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        height: 100%;
        justify-content: space-between;
        gap: 1.5rem;
        padding-top: 20px;
    }

    .hero-header, .hero-info {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        padding: 0 1rem;
        flex-shrink: 0;
    }

    .hero-image {
        grid-column: auto;
        grid-row: auto;
        height: 280px; /* Increased to give cards more breathing room */
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        flex-grow: 1; /* Allow to take available space */
    }

    .hero-title {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .hero-info {
        text-align: left;
    }
    
    .hero-info .hero-buttons {
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: 1rem; /* Added controlled margin instead of allowing potential overlap */
    }

    .floating-card {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
        max-width: calc(100% - 2rem);
    }

    .card-1 {
        top: 5%;
        left: 0%;
        transform: rotate(-5deg);
    }

    .card-2 {
        top: 35%;
        right: 0%;
        transform: rotate(5deg);
    }

    .card-3 {
        bottom: 5%;
        left: 5%;
        transform: rotate(-3deg);
    }

/* Desktop hero-title is already handled above, these rules were overriding it incorrectly on mobile */

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: left; /* Left align subtitle */
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Left align buttons on mobile */
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left var(--transition-normal);
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
    }

    body.light-mode .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .image-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .image-card {
        padding: 1rem 0.5rem;
        backdrop-filter: none; /* Disable expensive filter on mobile during animation */
        background: rgba(18, 18, 24, 0.95);
    }

    .image-card h4 {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .image-card p {
        font-size: 0.75rem;
    }

    .image-card i {
        font-size: 1.25rem;
    }

    .image-card:nth-child(3) {
        grid-column: 1;
    }

    .services-grid,
    .team-grid,
    .portfolio-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .workflow-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== Development Modal ===== */
.dev-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dev-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.dev-modal-content {
    background: #0a0a0a;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.2), inset 0 0 20px rgba(30, 144, 255, 0.1);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    text-align: center;
}

.dev-modal.active .dev-modal-content {
    transform: scale(1);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: scan 2s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

.dev-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.dev-modal-close:hover {
    color: var(--primary-color);
}

.dev-modal-body {
    position: relative;
    z-index: 1;
}

.dev-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.5));
}

.dev-title {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blink {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

.dev-message {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
}

.dev-loader {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 60%;
    height: 100%;
    background: var(--primary-color);
    position: absolute;
    top: 0;
    left: 0;
    animation: load 2s ease-in-out infinite;
    box-shadow: 0 0 15px var(--primary-color);
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes load {
    0% {
        left: -60%;
    }

    100% {
        left: 100%;
    }
}

/* Ensure Portfolio centering in all breakpoints */
/* ===== Contact/Quote Section ===== */
.contact {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Centered Layout */
.contact-grid-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: var(--spacing-lg);
}

.centered-form {
    max-width: 600px;
    /* Reduced Width */
}

/* Form Header */
.form-header-message {
    text-align: center;
    margin-bottom: 3rem;
    /* Increased spacing */
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-header-message h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    /* Blue Text */
}

.form-header-message p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Priority Chips */
.priority-group {
    margin: 2.5rem 0 3.5rem 0 !important;
    /* Force vertical space */
    height: auto !important;
    display: block !important;
    clear: both;
    position: relative;
}

/* Override global absolute labels for this specific group */
.priority-group .group-label {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    background: transparent !important;
    pointer-events: auto !important;
    transform: none !important;
}

.priority-options {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

/* Ensure chips (which are labels) don't get floating label styles */
.priority-group .priority-chip {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    margin: 0;
    pointer-events: auto !important;
    background: transparent !important;
    transform: none !important;
}

.priority-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.priority-chip span {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Ensure it stays inside */
    z-index: 1;
}

.priority-chip input:checked+span {
    background: rgba(30, 144, 255, 0.15);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.2);
}

.priority-chip:hover span {
    border-color: rgba(30, 144, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ===== Quote Form Styles ===== */
.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Ensure visibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

textarea {
    min-height: 120px;
    resize: none;
}

.form-submit-centered {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Labels scaling for very small screens */
@media (max-width: 400px) {
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input:focus~label,
    .form-group input:not(:placeholder-shown)~label,
    .form-group textarea:focus~label,
    .form-group textarea:not(:placeholder-shown)~label,
    .form-group select:focus~label,
    .form-group select:valid~label {
        font-size: 0.75rem;
    }
}

/* Specific fix for the Select Element Label which often behaves differently */
.select-label {
    z-index: 1;
    /* Ensure checks above work */
}

/* ===== Dynamic Contact Widget ===== */
.contact-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-tooltip {
    position: absolute;
    right: 75px;
    bottom: 12px;
    background: rgba(30, 144, 255, 0.15);
    border: 1px solid rgba(30, 144, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.contact-widget-container:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.contact-widget-container.active .contact-tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
}

.contact-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.contact-widget-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.4);
}

.contact-widget-btn .icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    transition: all 0.3s ease;
}

.contact-widget-btn .icon-default {
    transition: all 0.3s ease;
}

.contact-widget-container.active .contact-widget-btn .icon-default {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.contact-widget-container.active .contact-widget-btn .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.contact-widget-menu {
    position: absolute;
    bottom: 75px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    visibility: hidden;
    pointer-events: none;
}

.contact-widget-container.active .contact-widget-menu {
    visibility: visible;
    pointer-events: auto;
}

.contact-widget-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-light);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-widget-item:hover {
    transform: scale(1.15) !important;
}

.contact-item-tooltip {
    position: absolute;
    right: 65px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-widget-item:hover .contact-item-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Individual Brand Tooltips */
.contact-wa .contact-item-tooltip {
    background: #25D366;
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-ig .contact-item-tooltip {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-email .contact-item-tooltip {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-widget-item.contact-wa:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.contact-widget-item.contact-ig:hover {
    background: #E1306C;
    border-color: #E1306C;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

.contact-widget-item.contact-email:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
}

/* Light Mode Adjustments */
body.light-mode .contact-widget-item {
    background: #ffffff;
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-widget-item:hover {
    color: #ffffff; /* Keep white icon on brand hover */
}

body.light-mode .contact-widget-btn {
    box-shadow: 0 10px 25px rgba(0, 112, 243, 0.2);
}

body.light-mode .contact-item-tooltip {
    color: #ffffff; /* Contrast text against brand backgrounds */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-mode .contact-tooltip {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.4);
}

/* Staggered animation for menu items */
.contact-widget-container.active .contact-widget-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.05s;
}

.contact-widget-container.active .contact-widget-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.contact-widget-container.active .contact-widget-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
}

@media (max-width: 768px) {
    .contact-widget-container {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-tooltip {
        display: none;
    }
}

/* ===== Custom Cursor ===== */
body {
    cursor: none;
    /* Hide default cursor */
}

/* Restore cursor on touch devices */
body.no-cursor,
body.no-cursor * {
    cursor: auto !important;
}

body.no-cursor a,
body.no-cursor button,
body.no-cursor .portfolio-card,
body.no-cursor .contact-widget-btn,
body.no-cursor .contact-widget-item {
    cursor: pointer !important;
}

/* Cursor Clarity on Contact Hover */
body.hovering-contact .cursor-outline {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

a,
button,
input,
textarea,
select,
.portfolio-card,
.contact-widget-btn,
.contact-widget-item {
    cursor: none;
    /* Ensure custom cursor is used on interactive elements too */
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999999;
    pointer-events: none;
    opacity: 0;
    visibility: visible !important;
    display: block !important;
    transition: width 0.15s ease-out, height 0.15s ease-out, background-color 0.2s, opacity 0.2s, transform 0.1s;
    mix-blend-mode: difference; /* Optional: adds a nice effect over text */
}

.cursor-dot {
    width: 10px; /* Slightly larger dot */
    height: 10px;
    background-color: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
    border-radius: 50%;
    z-index: 1000000;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
}

.cursor-outline {
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(30, 144, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    z-index: 999999;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    animation: cursor-rotate-pulse 4s infinite linear; /* Combined rotation and pulse */
}

@keyframes cursor-rotate-pulse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        box-shadow: 0 0 10px rgba(30, 144, 255, 0.1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.15);
        border-color: var(--primary-color);
        box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        box-shadow: 0 0 10px rgba(30, 144, 255, 0.1);
    }
}

/* Deleted cursor-particles and particle-bit styles as they are no longer used */

/* Cursor Hover State */
body.hovering .cursor-outline {
    width: 56px; /* Larger expand on hover */
    height: 56px;
    background-color: rgba(30, 144, 255, 0.1);
    border-color: var(--primary-color);
}

/* Fix for ghost clicks: Disable interaction and visibility on OAS elements until they are animated in */
[data-aos] {
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0s;
}

[data-aos].aos-animate {
    pointer-events: auto;
    visibility: visible;
}

/* Strictly hide custom cursor on non-mouse devices (Touch/Tablet) */
@media not all and (pointer: fine) {
    .cursor-dot,
    .cursor-outline {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    body, a, button, input, textarea, select {
        cursor: auto !important;
    }
}

/* ===== Project Modal ===== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background: #121218;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-modal.active .project-modal-content {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.project-modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.project-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.project-body {
    padding: 2rem;
}

.project-description {
    margin-bottom: 2rem;
}

.project-description p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.project-features i {
    color: var(--primary-color);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20001;
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .project-modal {
        padding: 1rem;
    }

    .project-header h2 {
        font-size: 1.5rem;
    }

    .project-features {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* ===== Verification Modal (Premium) ===== */
.verify-premium-content {
    background: #0a0a0a;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.2), inset 0 0 20px rgba(30, 144, 255, 0.1);
    max-width: 500px;
    /* More compact */
    padding: 3rem 2rem;
}

.confirm-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(30, 144, 255, 0.6));
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(30, 144, 255, 0.6));
    }
}

/* ===== Custom Validation Bubble (Subtle Glassmorphism) ===== */
.validation-bubble {
    position: absolute;
    top: -45px;
    /* Position above the input group */
    left: 0.5rem;
    background: rgba(255, 71, 87, 0.15); /* More subtle background */
    color: #ff6b81; /* Brighter red text for contrast */
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 71, 87, 0.3); /* Subtle border */
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.1);
    transform: translateY(10px);
    opacity: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.validation-bubble.active {
    transform: translateY(0);
    opacity: 1;
}

.validation-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 71, 87, 0.3); /* Match border color */
}

/* Modal Fine-tuning */
.premium-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
}

.premium-actions .btn {
    flex: 1;
    /* Make buttons equal width */
    max-width: 180px;
    /* Control max width */
    height: 50px;
    /* Equal height */
    justify-content: center;
    padding: 0;
    font-size: 0.95rem;
}

/* Light Mode Premium Verification Refinement */
body.light-mode .verify-premium-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .verify-premium-content .dev-title {
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
}

body.light-mode .verify-premium-content .dev-title .blink {
    color: var(--primary-color);
    opacity: 1 !important;
    /* Ensure visibility in light mode */
}

body.light-mode .verify-premium-content .dev-message {
    color: #4a5568;
    font-family: 'Inter', sans-serif;
}

body.light-mode .verify-premium-content .scan-line {
    background: var(--primary-color);
    opacity: 0.1;
}

body.light-mode .confirm-icon {
    filter: drop-shadow(0 4px 15px rgba(30, 144, 255, 0.3));
}

body.light-mode .premium-actions .btn-secondary {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

body.light-mode .premium-actions .btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Force white text on primary button in light mode modal */
body.light-mode .premium-actions .btn-primary {
    color: #ffffff !important;
}

/* CAPTCHA Styles */
#captchaQuestion {
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.3rem;
    font-family: 'Outfit', sans-serif;
}

.captcha-input {
    letter-spacing: 0.1rem;
    font-weight: 600;
}