/**
 * NEXLO Studio - Redesigned Stylesheet
 * Digital Technology & Growth Agency
 * 
 * Modern, minimal, premium design with smooth animations
 * Responsive across all devices
 */

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

:root {
    /* Tells the browser this site is already designed for dark mode,
       so it won't try to auto-invert/darken colors itself (which is
       what was breaking text readability on some mobile browsers). */
    color-scheme: dark;

    --primary: #7dd3fc;
    --secondary: #d8b4fe;
    --accent: #c084fc;
    --dark-1: #050816;
    --dark-2: #101827;
    --dark-3: #18212f;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-tertiary: rgba(255, 255, 255, 0.56);
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(125, 211, 252, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 15px rgba(125, 211, 252, 0.4), inset 0 0 15px rgba(125, 211, 252, 0.2);
    transform: translate(-50%, -50%);
    animation: cursorPulse 1.5s ease-in-out infinite;
}

.cursor-glow.active {
    animation: cursorPulseBig 0.8s ease-out;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: trailFade 0.6s ease-out forwards;
}

@keyframes cursorPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(125, 211, 252, 0.4), inset 0 0 15px rgba(125, 211, 252, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(125, 211, 252, 0.6), inset 0 0 20px rgba(125, 211, 252, 0.3);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes cursorPulseBig {
    0% {
        box-shadow: 0 0 15px rgba(125, 211, 252, 0.4), inset 0 0 15px rgba(125, 211, 252, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(125, 211, 252, 0.8), inset 0 0 30px rgba(125, 211, 252, 0.4);
        transform: translate(-50%, -50%) scale(1.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(125, 211, 252, 0.4), inset 0 0 15px rgba(125, 211, 252, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #050816 0%, #101827 50%, #0a0e1a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Ambient Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.light-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.light-glow-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, #0082ff, transparent);
}

.light-glow-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: 5%;
    background: radial-gradient(circle, #ff006e, transparent);
}

.light-glow-3 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    left: 15%;
    background: radial-gradient(circle, #00d9ff, transparent);
}

.light-glow-4 {
    width: 350px;
    height: 350px;
    bottom: 20%;
    right: 10%;
    background: radial-gradient(circle, #c084fc, transparent);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 99px, rgba(255, 255, 255, 0.03) 99px, rgba(255, 255, 255, 0.03) 100px),
        repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(255, 255, 255, 0.03) 99px, rgba(255, 255, 255, 0.03) 100px);
    pointer-events: none;
    z-index: -1;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-small {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.4), rgba(192, 132, 252, 0.3));
    border: 1px solid rgba(125, 211, 252, 0.8);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.5), rgba(192, 132, 252, 0.4));
    border-color: rgba(125, 211, 252, 1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

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

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Interactive Element Cursor */
a, button, input, select, textarea, label {
    cursor: pointer;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.4), rgba(192, 132, 252, 0.3));
    color: var(--primary);
    border: 1px solid rgba(125, 211, 252, 0.6);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 20px 80px;
    margin-top: 70px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.7s ease both;
}

.hero-subtext {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 0.7s ease both;
    animation-delay: 0.12s;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.7s ease both;
    animation-delay: 0.24s;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.2), transparent);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 4s ease-in-out infinite;
}

.hero-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: cardFadeIn 0.6s ease forwards, float 5s ease-in-out infinite;
}

.hero-card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0.4s, 0.4s;
}

.hero-card-2 {
    top: 50%;
    right: 5%;
    animation-delay: 0.55s, 1.4s;
}

.hero-card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 0.7s, 2.4s;
}

.card-icon {
    font-size: 32px;
}

.card-label {
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

/* Scroll-reveal (below-the-fold animation, driven by IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .hero-text h1,
    .hero-subtext,
    .hero-cta,
    .hero-card {
        animation: none !important;
        opacity: 1 !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Stagger card entrances within each grid: delay is now set automatically
   per-card by JS (setupScrollReveal in nexlo-redesign.js), based on each
   card's position in its container — works for any number of cards. */

/* Sections */
section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Services Section */
.services {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: linear-gradient(135deg, var(--glass-strong), rgba(255, 255, 255, 0.12));
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    color: var(--text-tertiary);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    gap: 10px;
}

/* About Section */
.about {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    gap: 30px;
}

.stat-item {
    background: linear-gradient(135deg, var(--glass-bg), var(--glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Why Us Section */
.why-us {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
}

.reason-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.reason-card:hover {
    background: linear-gradient(135deg, var(--glass-strong), rgba(255, 255, 255, 0.12));
    transform: translateY(-3px);
}

.reason-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.reason-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.reason-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Process Section */
.process {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    /*position: relative;*/
}

/* Connector line between steps (desktop only) */
.process-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 15%, 
        var(--primary) 85%, 
        transparent 100%);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid var(--dark-2);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(125, 211, 252, 0.5);
}

.process-step::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.2;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    margin-top: 35px;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

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

.project-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(125, 211, 252, 0.2);
    border: 1px solid rgba(125, 211, 252, 0.5);
    border-radius: 4px;
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.project-card > div > p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Packages Section */
.packages {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.package-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    background: linear-gradient(135deg, var(--glass-strong), rgba(255, 255, 255, 0.12));
    border-color: var(--primary);
    transform: translateY(-5px);
}

.package-featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.1), rgba(192, 132, 252, 0.08));
}

.package-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.package-header h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.package-header p {
    color: var(--text-tertiary);
    font-size: 13px;
}

.package-features {
    flex: 1;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-card .btn-primary,
.package-card .btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.additional-packages {
    max-width: 1200px;
    margin: 0 auto;
}

.additional-packages h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.additional-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.additional-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.additional-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    gap: 5px;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.15), rgba(192, 132, 252, 0.1));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 44px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Native <option> list ignores the translucent select background,
   so give it an explicit solid dark background + light text to stay readable */
.form-group select option {
    background: #101827;
    color: #ffffff;
}

.form-feedback {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.form-feedback.visible {
    display: block;
}

.form-feedback.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.1);
}

/* Brief highlight when a field is pre-filled via "Explore →" on a service card
   or "Get Started" / "Learn More" on a package card */
.form-group select.service-preselected,
.form-group textarea.service-preselected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info h3 {
    font-size: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item .icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(125, 211, 252, 0.3));
}

.contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

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

/* Sticky WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.7);
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 95px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    background: rgba(17, 22, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, visibility 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(125, 211, 252, 0.35);
    border-color: rgba(125, 211, 252, 0.4);
}

@media (max-width: 600px) {
    .back-to-top {
        right: 16px;
        bottom: 78px;
        width: 52px;
        height: 52px;
    }
    .back-to-top svg {
        width: 19px;
        height: 19px;
    }
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(125, 211, 252, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer */
.footer {
    background: rgba(5, 8, 22, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12px;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cursor-glow,
    .cursor-trail {
        display: none;
    }

    body {
        cursor: auto;
    }

    .language-switcher {
        gap: 2px;
        padding: 3px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step::after {
        display: none;
    }

    .process-step {
        padding: 20px 0;
    }

    .step-number {
        margin-top: 15px;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-visual {
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .service-card,
    .reason-card,
    .package-card {
        padding: 25px 20px;
    }

    .service-number {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .navbar-logo {
        font-size: 16px;
    }

    .navbar-controls .btn-primary {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   Project Gallery Modal
   ============================================ */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 22, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-modal-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    animation: galleryFadeIn 0.25s ease;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-image-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    max-height: 72vh;
}

.gallery-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    background: var(--dark-3);
}

.gallery-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-strong);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-strong);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 4px 0;
    color: var(--text-secondary);
}

.gallery-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.gallery-counter {
    font-size: 14px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

body.gallery-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-modal {
        padding: 12px;
    }

    .gallery-modal-inner {
        max-height: 94vh;
    }

    .gallery-image-stage {
        max-height: 62vh;
        border-radius: 12px;
    }

    .gallery-image {
        max-height: 62vh;
    }

    .gallery-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        background: rgba(5, 8, 22, 0.6);
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        background: rgba(5, 8, 22, 0.55);
    }

    .gallery-prev {
        left: 6px;
    }

    .gallery-next {
        right: 6px;
    }

    .gallery-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-top: 12px;
    }

    .gallery-title {
        font-size: 15px;
    }
}

/* ============================================
   Client Projects Section
   ============================================ */
.client-projects {
    padding: 100px 0;
}

a.client-project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.client-project-card .project-overlay .btn-small {
    display: inline-block;
}

/* ============================================
   Client Project Live Preview Page
   ============================================ */
.client-preview-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.client-preview-header .navbar-container {
    justify-content: space-between;
}

.client-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.client-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: var(--dark-2);
    border-bottom: 1px solid var(--glass-border);
}

.client-preview-bar h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.client-preview-bar .btn-small {
    white-space: nowrap;
}

.client-iframe-wrap {
    width: 100%;
    height: calc(100vh - 152px);
    background: var(--dark-3);
}

.client-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.client-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 76px);
    text-align: center;
    padding: 40px 24px;
}

.client-preview-empty h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.client-preview-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .client-iframe-wrap {
        height: calc(100vh - 190px);
    }

    .client-preview-bar {
        padding: 16px;
    }

    .client-preview-bar h1 {
        font-size: 17px;
    }
}