/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a6e8;
    --secondary-color: #0088cc;
    --accent-color: #60a5fa;
    --pink-accent: #ec4899;
    --purple-accent: #a855f7;
    --magenta: #d946ef;
    --cyan-brand: #00a6e8;
    --dark-bg: #0a0a0a;
    --dark-card: #111111;
    --dark-elevated: #1a1a1a;
    --dark-border: #2a2a2a;
    --light-bg: #ffffff;
    --light-section: #f8f9fa;
    --light-border: #e5e7eb;
    --text-primary: #ffffff;
    --text-dark: #0a0a0a;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gradient: linear-gradient(135deg, #00a6e8 0%, #0088cc 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-vibrant: linear-gradient(135deg, #00a6e8 0%, #00d9ff 100%);
    --gradient-accent: linear-gradient(135deg, #00a6e8 0%, #00c2ff 100%);
    --gradient-brand: linear-gradient(135deg, #00a6e8 0%, #00c2ff 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Theme (Light / Dark) */
.theme-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Gear dropdown */
.theme-menu {
    margin-left: 1rem;
    position: relative;
    z-index: 1001;
}

.theme-menu summary {
    list-style: none;
}

.theme-menu summary::-webkit-details-marker {
    display: none;
}

.theme-menu-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--light-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #0a0a0a;
}

.theme-menu-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 166, 232, 0.35);
    box-shadow: 0 8px 24px rgba(0, 166, 232, 0.18);
}

.theme-menu-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 232, 0.35);
}

.theme-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 190px;
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--light-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.theme-menu[open] .theme-menu-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.theme-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-menu-item:hover {
    background: rgba(0, 166, 232, 0.08);
    border-color: rgba(0, 166, 232, 0.18);
}

.theme-menu-item.is-active {
    background: rgba(0, 166, 232, 0.12);
    border-color: rgba(0, 166, 232, 0.3);
}

.navbar {
    padding: 0;
}

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

.logo img {
    height: 200px;
    width: auto;
    margin-top: -50px;
    margin-bottom: -50px;
    display: block;
    transform: translateY(10px);
}

/* Logo theme variants (same position/size) */
.logo .logo-img-dark {
    display: none;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .logo .logo-img-light {
    display: none;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .logo .logo-img-dark {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: #52525b;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #0a0a0a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-vibrant);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    background: var(--gradient-vibrant);
}

.nav-link.active {
    color: #0a0a0a;
}

.btn-contact {
    background: var(--gradient-accent);
    color: var(--text-primary) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-contact:hover {
    background: var(--gradient-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 166, 232, 0.5);
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #0a0a0a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-size: cover;
    background-position: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.68) contrast(1.08) saturate(1.05);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(0, 166, 232, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(217, 70, 239, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 28, 56, 0.55) 0%,
        rgba(15, 28, 56, 0.35) 45%,
        rgba(15, 28, 56, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #f9fafb;
    animation: fadeInUp 1s ease;
}

/* Hero: force title/subtitle text to white (including highlighted spans) */
.hero .hero-title,
.hero .hero-subtitle {
    color: #ffffff;
}

.hero .hero-accent,
.hero .hero-accent-soft {
    color: #ffffff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-title,
.hero-subtitle {
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.hero-accent {
    color: var(--cyan-brand);
}

.hero-accent-soft {
    color: rgba(0, 194, 255, 0.95);
}

.hero-title .highlight {
    color: #ffffff;
    display: block;
    margin-top: 0.5rem;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff;
    background-clip: initial;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: #71717a;
    font-size: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-primary);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00c2ff 0%, #00e5ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 166, 232, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #0a0a0a;
    border: 1px solid var(--light-border);
}

.btn-secondary:hover {
    background: var(--light-section);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Services Preview */
.services-preview {
    padding: 5rem 0;
    background: var(--light-bg);
}

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

.service-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--light-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan-brand);
    box-shadow: 0 20px 40px rgba(0, 166, 232, 0.15);
    background: #ffffff;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-brand);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 166, 232, 0.4);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-card p {
    color: #52525b;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #52525b;
}

.about-text .btn {
    margin-top: 1rem;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Mission & Values */
.mission {
    padding: 6rem 0;
    background: var(--light-section);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* About page: make Mission/Vision headings tighter */
.mission .section-title,
.vision .section-title {
    margin-bottom: 1rem;
}

.section-tagline {
    text-align: center;
    max-width: 980px;
    margin: 0.25rem auto 3.25rem;
    font-size: 1.3rem;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #3a3a3a;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.value-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.value-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 166, 232, 0.15);
}

.value-card.reverse {
    direction: rtl;
}

.value-card.reverse .value-content {
    direction: ltr;
}

.value-image {
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--light-border);
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.value-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.value-content h3 i {
    color: var(--primary-color);
}

.value-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #52525b;
}

/* Hide scroll hint and indicators on desktop */
.scroll-hint,
.scroll-indicators {
    display: none;
}

/* Pricing Plans Section */
.pricing-plans {
    padding: 6rem 0;
    background: var(--light-section);
}

.pricing-plans .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.pricing-plans .section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
    font-weight: 800;
}

.pricing-plans .section-header p {
    font-size: 1.2rem;
    color: #52525b;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.plan-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--light-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 166, 232, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 166, 232, 0.25);
}

.plan-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 166, 232, 0.05) 0%, rgba(0, 194, 255, 0.05) 100%);
    box-shadow: 0 15px 40px rgba(0, 166, 232, 0.2);
}

.plan-card.featured:hover {
    box-shadow: 0 30px 60px rgba(0, 166, 232, 0.35);
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 166, 232, 0.15);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 166, 232, 0.3);
}

.plan-badge.popular {
    background: linear-gradient(135deg, rgba(0, 166, 232, 0.25) 0%, rgba(0, 229, 255, 0.25) 100%);
    color: #00d9ff;
    border-color: rgba(0, 166, 232, 0.5);
}

.plan-title {
    font-size: clamp(1.7rem, 2.2vw, 2rem);
    color: #0a0a0a;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    line-height: 1.15;
}

.plan-features {
    margin-bottom: 2.5rem;
    flex: 1 1 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 166, 232, 0.08);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: #52525b;
    line-height: 1.6;
    font-size: 0.98rem;
}

.plan-card .btn {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    padding: 1rem 2rem;
    margin-top: auto;
}

.plan-card.featured .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 10px 30px rgba(0, 166, 232, 0.4);
}

.plan-card.featured .btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 166, 232, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-plans .section-header h2 {
        font-size: 2.2rem;
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
    text-align: center;
    color: #0a0a0a;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 166, 232, 0.08);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--light-section);
    color: var(--text-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--light-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
    font-weight: 600;
}

.footer-column p {
    color: #52525b;
    line-height: 1.8;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #52525b;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--cyan-brand);
    padding-left: 5px;
}

.footer-logo .footer-logo-img {
    height: 180px;
    margin-bottom: 1rem;
}

/* Footer logo theme variants */
.footer-logo .footer-logo-img-dark {
    display: none;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer-logo .footer-logo-img-light {
    display: none;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer-logo .footer-logo-img-dark {
    display: block;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid var(--light-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: #52525b;
}

.social-links a:hover {
    background: var(--gradient-brand);
    border-color: var(--cyan-brand);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 166, 232, 0.4);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-border);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1rem;
        border-bottom: 1px solid var(--light-border);
    }

    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-menu {
        background: #0F1C38;
        backdrop-filter: none;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--text-dark);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    /* Horizontal scroll for value cards in mobile */
    .values-grid {
        flex-direction: row;
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0.5rem;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .values-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .value-card {
        grid-template-columns: 1fr;
        min-width: 90vw;
        max-width: 90vw;
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 1.5rem;
        max-height: 75vh;
        overflow: hidden;
    }

    .value-card.reverse {
        direction: ltr;
    }

    .value-image {
        height: 200px;
        margin-bottom: 1rem;
    }

    .value-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .value-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Scroll hint indicator - only visible on mobile */
    .scroll-hint {
        display: block;
        text-align: center;
        color: var(--primary-color);
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
        animation: pulse 2s infinite;
    }

    .scroll-hint i {
        margin-right: 0.5rem;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.6; }
    }

    /* Scroll indicators (dots) */
    .scroll-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .scroll-indicators .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #d1d5db;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .scroll-indicators .dot.active {
        background-color: var(--primary-color);
        width: 24px;
        border-radius: 4px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
    
    /* Center footer logo in mobile */
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }
    
    .footer-logo .social-links {
        margin-top: -5rem;
    }
    
    /* Hide navigation and legal columns in mobile footer */
    .footer-column:nth-child(2),
    .footer-column:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .theme-menu-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

/* Dark Mode Overrides */
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) body {
    background-color: var(--dark-bg) !important;
    background-image: radial-gradient(1200px 600px at 20% 10%, rgba(236, 72, 153, 0.12) 0%, transparent 55%),
                      radial-gradient(900px 500px at 80% 20%, rgba(217, 70, 239, 0.10) 0%, transparent 55%),
                      linear-gradient(135deg, #070a0f 0%, #0a0a0a 55%, #0b0f14 100%) !important;
    color: #e5e7eb !important;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .header {
    background: #0F1C38;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #f9fafb;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-btn:hover {
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.18);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-panel {
    background: #0F1C38;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-item {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-item:hover {
    background: rgba(236, 72, 153, 0.10);
    border-color: rgba(236, 72, 153, 0.20);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-item.is-active {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.30);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-link {
    color: #a1a1aa;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-link:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-link.active {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .hamburger span {
    background: #f9fafb;
}

/* Desktop only - transparent menu */
@media (min-width: 769px) {
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-menu {
        background: transparent;
        border-bottom: 0;
    }
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer {
    background: #0F1C38;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer-column h4 {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer-column p {
    color: #cbd5e1;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer-column a {
    color: #cbd5e1;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer-column a:hover {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    opacity: 0.9;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .social-links a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7eb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .social-links a:hover {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.35);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.25);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .contact-info i {
    color: #ffffff;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .hero-content {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .hero-subtitle {
    color: #cbd5e1;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .scroll-indicator {
    color: #a1a1aa;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .services-preview,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .services-detail,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .pricing-plans,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .contact-section,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .testimonials,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .policy-content,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .about-story,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .vision,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .why-choose {
    background: var(--dark-bg);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .why-choose::before {
    opacity: 0.22;
    background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.35), transparent 60%);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .why-choose::after {
    opacity: 0.20;
    background: radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.35), transparent 60%);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .policy-section {
    background: var(--dark-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .policy-section p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .policy-section ul li {
    color: #cbd5e1;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .about,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .mission,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .cta {
    background: var(--dark-elevated);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .section-title,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .about-text h2,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .value-content h3,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .pricing-plans .section-header h2,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .page-header h1 {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .about-text p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .vision-intro p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .value-content p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .pricing-plans .section-header p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .page-header p {
    color: #cbd5e1;
}

/* Highlighted text in dark mode */
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .vision-intro .text-highlight {
    color: #00d9ff;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .vision-intro .text-accent {
    color: #00c2ff;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .vision-intro .text-primary {
    color: #00d9ff;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .vision-intro .text-brand {
    background: linear-gradient(135deg, #00d9ff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .section-tagline {
    color: #cbd5e1;
    opacity: 0.9;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    color: #e5e7eb;
    border-bottom: 2px solid rgba(217, 70, 239, 0.25);
}

/* Dark mode: fix remaining hard-coded dark text */
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) h1,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) h2,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) h3,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) h4,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) h5,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) h6 {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) li {
    color: #cbd5e1;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-features li,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-detail-content p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-content p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .result-item span,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .reason-card p {
    color: #cbd5e1;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .plan-card .feature-item span {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-content h3,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .reason-card h3,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-detail-content h2,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .policy-section h3 {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-results {
    border-top-color: var(--dark-border);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .result-item strong {
    color: var(--magenta);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-image {
    background: var(--dark-elevated);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-btn,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-status {
    background: rgba(17, 17, 17, 0.85);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-carousel {
    border-color: transparent;
    background: transparent;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-active {
    background: rgba(17, 17, 17, 0.88);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide .portfolio-image {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-btn {
    background: rgba(255, 255, 255, 0.10);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-btn i {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-btn i {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-dot {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.16);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-card,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .value-card,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .plan-card,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-detail-card,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-card,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .testimonial-card,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .contact-info-box,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .contact-form-box,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .document-card,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .reason-card {
    background: var(--dark-card);
    border-color: var(--dark-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Dark mode: pink/magenta glow on hover (instead of blue) */
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .value-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .reason-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .plan-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-detail-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .document-card:hover {
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 0 22px 55px rgba(236, 72, 153, 0.18), 0 10px 30px rgba(217, 70, 239, 0.12);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .value-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-card:hover,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .reason-card:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(217, 70, 239, 0.06) 60%, rgba(0, 0, 0, 0) 100%);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-card:hover {
    transform: translateY(-10px);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-icon,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .reason-icon {
    box-shadow: 0 14px 40px rgba(217, 70, 239, 0.22);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .lang-dropdown-btn,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .lang-dropdown-menu,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-btn,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .theme-menu-panel {
    border-color: var(--dark-border);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-card h3,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .pricing-plans .plan-name,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .testimonial-author strong,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .contact-info-box h2,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .contact-form-box h2,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .detail-text h4,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .social-links-contact h4 {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .service-card p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .testimonial-card p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .testimonial-author span,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .contact-info-box p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .detail-text p,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .detail-text a {
    color: #cbd5e1;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .form-group label {
    color: #f9fafb;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .form-group input,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .form-group select,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .form-group textarea {
    background: var(--dark-elevated);
    color: #f9fafb;
    border-color: var(--dark-border);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .form-group input::placeholder,
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .form-group textarea::placeholder {
    color: #94a3b8;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .btn-secondary {
    color: #f9fafb;
    border-color: var(--dark-border);
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .btn-secondary:hover {
    background: var(--dark-card);
    border-color: var(--primary-color);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .about-text h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: #1a1a1a;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 166, 232, 0.1);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 166, 232, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.03em;
    color: #0a0a0a;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.85;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #3a3a3a;
}

/* Portfolio page: tighten spacing so the carousel fits in one desktop viewport */
@media (min-width: 900px) {
    body:has(.portfolio-carousel[data-carousel="portfolio"]) .page-header {
        padding: 3.85rem 0 1.35rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .page-header h1 {
        font-size: clamp(2rem, 3vw, 2.5rem);
        margin-bottom: 0.6rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .page-header p {
        font-size: clamp(1rem, 1.6vw, 1.15rem);
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio {
        padding: 0.9rem 0 1.55rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-viewport {
        padding: 0.15rem 0;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-track {
        padding: 0.6rem 12vw 0.9rem;
        gap: 1.85rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-carousel .portfolio-slide.is-active .portfolio-image {
        height: clamp(220px, 30vh, 300px);
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-carousel .portfolio-slide.is-active .portfolio-content {
        padding: clamp(1.05rem, 1.8vh, 1.4rem);
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-controls {
        margin-top: 0.55rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-dots {
        margin-top: 0.55rem;
    }
}

/* Extra: short desktop viewports (e.g., 1366x768) */
@media (min-width: 900px) and (max-height: 820px) {
    body:has(.portfolio-carousel[data-carousel="portfolio"]) .page-header {
        padding: 3.25rem 0 1.1rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio {
        padding: 0.75rem 0 1.2rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-track {
        padding: 0.5rem 12vw 0.75rem;
        gap: 1.65rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-carousel .portfolio-slide.is-active .portfolio-image {
        height: clamp(210px, 27vh, 280px);
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-carousel .portfolio-slide.is-active .portfolio-content {
        padding: 1.05rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-controls {
        margin-top: 0.4rem;
    }

    body:has(.portfolio-carousel[data-carousel="portfolio"]) .portfolio-dots {
        margin-top: 0.45rem;
    }
}

/* Services Detail Page */
.services-detail {
    padding: 5rem 0;
    background: #ffffff;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    align-items: start;
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    border-color: var(--cyan-brand);
    box-shadow: 0 20px 40px rgba(0, 166, 232, 0.2);
}

.service-detail-card.reverse {
    direction: rtl;
}

.service-detail-card.reverse .service-detail-content {
    direction: ltr;
}

.service-detail-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-brand);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: 0 15px 40px rgba(0, 166, 232, 0.4);
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
    font-weight: 700;
}

.service-detail-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #52525b;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #52525b;
}

.service-features li i {
    color: var(--magenta);
    font-size: 1.1rem;
}

.service-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* About Story Page */
.about-story {
    padding: 5rem 0;
    background: var(--light-section);
}

.story-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
    font-weight: 700;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #52525b;
}

.story-text strong {
    color: var(--primary-color);
}

.story-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-border);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Vision (About Page) */
.vision {
    padding: 5rem 0;
    background: var(--light-section);
}

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

.vision-intro p {
    margin-bottom: 1.25rem;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #52525b;
}

/* Highlighted text styles for vision section */
.vision-intro .text-highlight {
    color: #00a6e8;
    font-weight: 700;
}

.vision-intro .text-accent {
    color: #0088cc;
    font-weight: 700;
}

.vision-intro .text-primary {
    color: #00a6e8;
    font-weight: 700;
}

.vision-intro .text-brand {
    color: #00a6e8;
    font-weight: 800;
    background: linear-gradient(135deg, #00a6e8 0%, #00c2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vision .values-grid {
    margin-top: 2.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.vision .value-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.25rem;
}

.vision .value-image {
    height: 220px;
}

.vision .value-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.vision .value-content p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Why Choose Us */
.why-choose {
    position: relative;
    padding: 5.5rem 0;
    background: var(--light-bg);
    overflow: hidden;
}

.why-choose::before,
.why-choose::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.28;
    pointer-events: none;
}

.why-choose::before {
    top: -220px;
    left: -260px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 166, 232, 0.55), transparent 60%);
}

.why-choose::after {
    bottom: -260px;
    right: -240px;
    background: radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.55), transparent 60%);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.reason-card {
    position: relative;
    text-align: left;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.reason-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0.95;
}

.reason-card:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(96, 165, 250, 1) 0%, rgba(0, 166, 232, 1) 100%);
}

.reason-card:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 1) 0%, rgba(217, 70, 239, 1) 100%);
}

.reason-card:nth-child(4)::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 1) 0%, rgba(217, 70, 239, 1) 100%);
}

.reason-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 166, 232, 0.45);
    box-shadow: 0 20px 55px rgba(0, 166, 232, 0.18), 0 14px 38px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.reason-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 1.25rem;
    background: linear-gradient(135deg, rgba(0, 166, 232, 1) 0%, rgba(0, 217, 255, 1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(0, 166, 232, 0.25);
}

.reason-icon i {
    font-size: 1.7rem;
    color: var(--text-primary);
}

.reason-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.reason-card p {
    color: #52525b;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .why-choose {
        padding: 4.75rem 0;
    }

    .reason-card {
        padding: 1.6rem;
        border-radius: 18px;
    }

    .reason-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
}

/* Portfolio Page */
.portfolio {
    padding: 5rem 0;
    background: #ffffff;
}

.portfolio-carousel {
    position: relative;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.portfolio-viewport {
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    outline: none;
    padding: 0.75rem 0;
    scroll-padding-left: 50%;
    scroll-padding-right: 50%;
    overscroll-behavior-x: contain;
    touch-action: none;
    cursor: default;
    min-height: 520px;
    pointer-events: none;
}

.portfolio-viewport::-webkit-scrollbar {
    display: none;
}

.portfolio-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 50vw 1.25rem 50vw;
    perspective: 1200px;
}

.portfolio-carousel .portfolio-slide {
    flex: 0 0 90px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 999px;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 0.35;
    --cf-x: 0px;
    --cf-y: 0px;
    --cf-ry: 0deg;
    --cf-s: 0.55;
    transform: translate3d(var(--cf-x), var(--cf-y), 0px) rotateY(var(--cf-ry)) scale(var(--cf-s));
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: auto;
}

/* Arrows-only: smooth horizontal scroll - no size changes */
.portfolio-carousel.arrows-only .portfolio-slide {
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrows-only: keep image content steady (no zoom animation inside the card) */
.portfolio-carousel.arrows-only .portfolio-slide .portfolio-image img {
    transition: none !important;
    transform: none !important;
}

.portfolio-carousel.arrows-only .portfolio-slide.is-active .portfolio-image img {
    transform: none !important;
}

/* During the final snap/recenter, avoid any animated transform changes */
.portfolio-carousel.is-snapping .portfolio-slide {
    transition: none !important;
}

.portfolio-carousel.is-snapping .portfolio-image img {
    transition: none !important;
}

.portfolio-carousel.arrows-only .portfolio-slide.is-prev,
.portfolio-carousel.arrows-only .portfolio-slide.is-next,
.portfolio-carousel.arrows-only .portfolio-slide.is-prev2,
.portfolio-carousel.arrows-only .portfolio-slide.is-next2,
.portfolio-carousel.arrows-only .portfolio-slide.is-prev3,
.portfolio-carousel.arrows-only .portfolio-slide.is-next3,
.portfolio-carousel.arrows-only .portfolio-slide.is-prev4,
.portfolio-carousel.arrows-only .portfolio-slide.is-next4,
.portfolio-carousel.arrows-only .portfolio-slide.is-far {
    --cf-y: 0px !important;
}

/* Light mode: make capsules clearer (less opacity fade) */
html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide {
    opacity: 0.60;
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-active {
    opacity: 1;
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-active .portfolio-image,
html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-active .portfolio-image img {
    opacity: 1;
    filter: none;
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev,
html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next {
    opacity: 0.92;
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev2,
html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next2 {
    opacity: 0.78;
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev3,
html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next3 {
    opacity: 0.66;
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev4,
html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next4 {
    opacity: 0.58;
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-far {
    opacity: 0.48;
}

.portfolio-carousel .portfolio-slide .portfolio-content {
    display: none;
}

.portfolio-carousel .portfolio-slide .portfolio-image {
    height: 340px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
    transition: none !important;
    overflow: hidden;
}

.portfolio-carousel .portfolio-slide .portfolio-image img {
    transform: none;
    opacity: 1;
    object-fit: cover;
    object-position: center;
    transition: none !important;
    width: 100%;
    height: 100%;
}

.portfolio-carousel .portfolio-slide.is-prev,
.portfolio-carousel .portfolio-slide.is-next {
    opacity: 0.75;
    z-index: 4;
}

.portfolio-carousel .portfolio-slide.is-prev {
    --cf-ry: 0deg;
    --cf-s: 0.80;
    --cf-y: 14px;
}

.portfolio-carousel .portfolio-slide.is-next {
    --cf-ry: 0deg;
    --cf-s: 0.80;
    --cf-y: 14px;
}

.portfolio-carousel .portfolio-slide.is-prev2 {
    --cf-ry: 0deg;
    --cf-s: 0.62;
    --cf-y: 26px;
    opacity: 0.55;
    z-index: 3;
}

.portfolio-carousel .portfolio-slide.is-next2 {
    --cf-ry: 0deg;
    --cf-s: 0.62;
    --cf-y: 26px;
    opacity: 0.55;
    z-index: 3;
}

.portfolio-carousel .portfolio-slide.is-prev3 {
    --cf-ry: 0deg;
    --cf-s: 0.52;
    --cf-y: 34px;
    opacity: 0.42;
    z-index: 2;
}

.portfolio-carousel .portfolio-slide.is-next3 {
    --cf-ry: 0deg;
    --cf-s: 0.52;
    --cf-y: 34px;
    opacity: 0.42;
    z-index: 2;
}

.portfolio-carousel .portfolio-slide.is-prev4 {
    --cf-ry: 0deg;
    --cf-s: 0.45;
    --cf-y: 40px;
    opacity: 0.34;
    z-index: 1;
}

.portfolio-carousel .portfolio-slide.is-next4 {
    --cf-ry: 0deg;
    --cf-s: 0.45;
    --cf-y: 40px;
    opacity: 0.34;
    z-index: 1;
}

.portfolio-carousel .portfolio-slide.is-far {
    --cf-ry: 0deg;
    --cf-s: 0.38;
    --cf-y: 44px;
    opacity: 0.22;
}

.portfolio-carousel .portfolio-slide.is-active {
    flex: 0 0 min(420px, 38vw);
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--light-border);
    box-shadow: 0 26px 80px rgba(0, 166, 232, 0.18), 0 18px 50px rgba(0, 0, 0, 0.10);
    opacity: 1;
    filter: none;
    --cf-x: 0px;
    --cf-ry: 0deg;
    --cf-s: 1;
    z-index: 5;
    overflow: hidden;
}

.portfolio-carousel .portfolio-slide.is-active .portfolio-image {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    border-radius: 26px;
    border-color: rgba(0, 166, 232, 0.18);
    transition: none !important;
    overflow: hidden;
}

.portfolio-carousel .portfolio-slide.is-active .portfolio-content {
    display: block;
}

/* Active slide: give more height to the dashboard image without making the whole card feel taller */
.portfolio-carousel .portfolio-slide.is-active .portfolio-content {
    padding: 0.7rem 0.9rem;
}

.portfolio-carousel .portfolio-slide.is-active .portfolio-category {
    margin-bottom: 0.3rem;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
}

.portfolio-carousel .portfolio-slide.is-active .portfolio-content h3 {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.portfolio-carousel .portfolio-slide.is-active .portfolio-content p {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-carousel .portfolio-slide.is-active .portfolio-results {
    padding-top: 0.5rem;
    gap: 0.4rem;
}

.portfolio-carousel .portfolio-slide.is-active:hover {
    --cf-x: 0px;
    --cf-ry: 0deg;
    --cf-s: 1;
}

.portfolio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.portfolio-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(229, 231, 235, 0.95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.portfolio-btn:active {
    transform: translateY(0);
}

.portfolio-btn i {
    font-size: 1.1rem;
    color: #0a0a0a;
}

.portfolio-status {
    display: none;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.portfolio-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.portfolio-dot[aria-current="true"] {
    width: 26px;
    background: var(--gradient-brand);
    border-color: rgba(0, 166, 232, 0.35);
}

/* Arrows-only: dots are indicators only (no interaction) */
.portfolio-carousel.arrows-only .portfolio-dot {
    pointer-events: none;
    cursor: default;
}

/* If enabled, allow dots to navigate even in arrows-only mode */
.portfolio-carousel.dots-clickable .portfolio-dot {
    pointer-events: auto;
    cursor: pointer;
}

@media (max-width: 520px) {
    .portfolio-carousel {
        padding: 1.4rem 1rem 1rem;
        border-radius: 20px;
    }

    .portfolio-track {
        gap: 1.35rem;
        padding: 0.75rem 9vw 1.1rem;
    }

    .portfolio-slide {
        flex-basis: 96px;
    }

    .portfolio-carousel .portfolio-slide .portfolio-image {
        height: 170px;
    }

    .portfolio-carousel .portfolio-slide.is-active {
        flex-basis: 74%;
        border-radius: 22px;
    }

    .portfolio-carousel .portfolio-slide.is-active .portfolio-image {
        height: 270px;
        border-radius: 22px;
    }

    .portfolio-carousel .portfolio-slide.is-active .portfolio-content {
        padding: 1.15rem;
    }

    .portfolio-carousel .portfolio-slide {
        --cf-s: 0.58;
    }

    .portfolio-carousel .portfolio-slide.is-prev,
    .portfolio-carousel .portfolio-slide.is-next {
        --cf-s: 0.82;
        --cf-y: 10px;
        opacity: 0.78;
    }

    .portfolio-carousel .portfolio-slide.is-prev2,
    .portfolio-carousel .portfolio-slide.is-next2 {
        --cf-s: 0.64;
        --cf-y: 18px;
        opacity: 0.58;
    }

    .portfolio-carousel .portfolio-slide.is-prev3,
    .portfolio-carousel .portfolio-slide.is-next3 {
        --cf-s: 0.54;
        --cf-y: 24px;
        opacity: 0.44;
    }

    .portfolio-carousel .portfolio-slide.is-prev4,
    .portfolio-carousel .portfolio-slide.is-next4 {
        --cf-s: 0.48;
        --cf-y: 28px;
        opacity: 0.36;
    }

    .portfolio-carousel .portfolio-slide.is-far {
        --cf-s: 0.40;
        --cf-y: 30px;
        opacity: 0.24;
    }

    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide {
        opacity: 0.62;
    }

    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-active {
        opacity: 1;
    }

    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev,
    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next {
        opacity: 0.90;
    }

    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev2,
    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next2 {
        opacity: 0.74;
    }

    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev3,
    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next3 {
        opacity: 0.62;
    }

    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-prev4,
    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-next4 {
        opacity: 0.54;
    }

    html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide.is-far {
        opacity: 0.44;
    }

}

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

.portfolio-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan-brand);
    box-shadow: 0 20px 40px rgba(0, 166, 232, 0.3);
}

/* Coverflow carousel: prevent global hover transforms from overriding coverflow transforms */
.portfolio-carousel .portfolio-slide,
.portfolio-carousel .portfolio-slide:hover {
    transform: translate3d(var(--cf-x, 0px), var(--cf-y, 0px), 0px) rotateY(var(--cf-ry, 0deg)) scale(var(--cf-s, 1));
}

/* Dark mode has a more-specific `.portfolio-card:hover` transform; re-assert coverflow so capsules don't "zoom" */
:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-carousel .portfolio-card.portfolio-slide:hover {
    transform: translate3d(var(--cf-x, 0px), var(--cf-y, 0px), 0px) rotateY(var(--cf-ry, 0deg)) scale(var(--cf-s, 1));
}

.portfolio-carousel .portfolio-slide .portfolio-image {
    will-change: transform;
}

/* Carousel capsules should NOT zoom on hover (match light-mode behavior across themes) */
.portfolio-carousel .portfolio-slide .portfolio-image,
.portfolio-carousel .portfolio-slide .portfolio-image:hover {
    transform: none;
}

.portfolio-carousel .portfolio-slide .portfolio-image img,
.portfolio-carousel .portfolio-slide:hover .portfolio-image img {
    transform: none;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-carousel .portfolio-slide:hover .portfolio-image img {
    transform: none;
}

:is(html[data-theme="dark"], html:has(#themeToggle:checked)) .portfolio-carousel .portfolio-card.portfolio-slide:hover .portfolio-image img {
    transform: none;
}

.portfolio-carousel .portfolio-slide.is-active .portfolio-image img {
    transform: scale(1.14);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
    background: var(--light-section);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 166, 232, 0.3);
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
    font-weight: 600;
}

.portfolio-content p {
    color: #52525b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.portfolio-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--light-border);
}

.result-item {
    text-align: center;
}

.result-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--cyan-brand);
    margin-bottom: 0.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.result-item span {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: var(--light-section);
}

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

.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--pink-accent);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.testimonial-stars {
    margin-bottom: 1.5rem;
}

.testimonial-stars i {
    color: var(--magenta);
    font-size: 1.1rem;
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #52525b;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author strong {
    display: block;
    color: #0a0a0a;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.testimonial-author span {
    color: #71717a;
    font-size: 0.9rem;
}

/* Contact Page */
.contact-section {
    padding: 5rem 0;
    background: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-box,
.contact-form-box {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--light-border);
}

.contact-info-box h2,
.contact-form-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
    font-weight: 700;
}

.contact-info-box p {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #52525b;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 166, 232, 0.3);
}

.detail-text h4 {
    color: #0a0a0a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-text p,
.detail-text a {
    color: #52525b;
    line-height: 1.6;
}

.detail-text a:hover {
    color: var(--cyan-brand);
}

.social-links-contact h4 {
    margin-bottom: 1rem;
    color: #0a0a0a;
    font-weight: 600;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 166, 232, 0.25);
    border-color: rgba(0, 166, 232, 0.5);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn.whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.social-btn.instagram:hover {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.2);
}

.social-btn.facebook:hover {
    border-color: rgba(24, 119, 242, 0.4);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.2);
}

.social-btn.linkedin:hover {
    border-color: rgba(10, 102, 194, 0.4);
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.2);
}

/* Light mode: elegant light gray social buttons */
html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .social-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html:not([data-theme="dark"]):not(:has(#themeToggle:checked)) .social-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 8px 24px rgba(0, 166, 232, 0.18);
    border-color: rgba(0, 166, 232, 0.4);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0a0a0a;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--light-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #0a0a0a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-brand);
    box-shadow: 0 0 0 3px rgba(0, 166, 232, 0.2);
}

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

.contact-form button {
    margin-top: 1rem;
    cursor: pointer;
}

.form-status {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Additional Responsive Styles */
@media (max-width: 968px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .service-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .service-detail-card.reverse {
        direction: ltr;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .service-detail-card {
        padding: 2rem;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 2rem;
    }

    .portfolio-results {
        grid-template-columns: 1fr;
    }
    
    /* Extra small phones */
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .portfolio-carousel .portfolio-slide.is-active {
        flex: 0 0 min(300px, 90vw);
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-image {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-content {
        padding: 0.6rem 0.75rem;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-category {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-content h3 {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-content p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        -webkit-line-clamp: 2;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-results {
        padding-top: 0.4rem;
        gap: 0.3rem;
    }
    
    .portfolio-carousel .portfolio-slide {
        flex: 0 0 60px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .result-item strong {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }
    
    .result-item span {
        font-size: 0.6rem;
    }
}

/* Policies Page */
.policies-content {
    padding: 5rem 0;
    background: var(--light-color);
}

.policy-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
}

.policy-section h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-section ul li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.policy-section a {
    color: var(--secondary-color);
    font-weight: 600;
}

.policy-section a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 166, 232, 0.3);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.modal-caption-top {
    margin: 0 auto;
    display: block;
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 18px 0 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.portfolio-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .image-modal {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding-top: 0;
        padding-bottom: 0;
    }
    .modal-caption-top {
        font-size: 1rem;
        padding: 0 0 10px 0;
        width: 100vw;
        max-width: 100vw;
        text-align: center;
        box-sizing: border-box;
        background: transparent;
        color: #fff;
        font-weight: 600;
        z-index: 2;
    }
    .modal-content {
        display: block;
        margin: 0 auto;
        max-width: 100vw;
        max-height: calc(100vh - 90px);
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 166, 232, 0.3);
        background: #111;
    }
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1.5rem;
}

.lang-dropdown-btn {
    background: rgba(13, 17, 23, 0.95);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 90px;
}

.lang-dropdown-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 166, 232, 0.1);
    box-shadow: 0 4px 15px rgba(0, 166, 232, 0.2);
}

.lang-dropdown-btn .flag {
    font-size: 1.4rem;
    line-height: 1;
}

.lang-dropdown-btn .lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-dropdown-btn i {
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.lang-dropdown-btn.active i {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(0, 166, 232, 0.15);
    color: var(--primary-color);
}

.lang-option.active {
    background: rgba(0, 166, 232, 0.2);
    color: var(--primary-color);
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.4rem;
    line-height: 1;
}

/* Policy Content */
.policy-content {
    padding: 6rem 0;
    background: #ffffff;
}

.policy-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.policy-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
}

.policy-intro p {
    font-size: 1.2rem;
    color: #52525b;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.document-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid var(--light-border);
    transition: all 0.3s ease;
    text-align: center;
}

.document-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 166, 232, 0.2);
    border-color: var(--primary-color);
}

.document-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 166, 232, 0.3);
}

.document-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.document-content p {
    color: #52525b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.document-card .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* Contact Legal */
.contact-legal {
    background: var(--light-section);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--light-border);
    margin-top: 4rem;
    text-align: center;
}

.contact-legal h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
}

.contact-legal p {
    font-size: 1.1rem;
    color: #52525b;
    margin-bottom: 2rem;
}

.legal-contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.legal-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
}

.legal-contact-info i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .document-card {
        padding: 2rem;
    }
    
    .policy-intro h2 {
        font-size: 2rem;
    }
    
    .legal-contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Modern App Hero Section Mobile - Full Screen Design */
    .hero {
        min-height: 100vh;
        padding: 0;
        margin-top: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .hero-video {
        opacity: 1;
        filter: brightness(0.75) contrast(1.1);
        object-fit: cover;
    }
    
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
    
    .hero-content {
        position: relative;
        z-index: 3;
        padding: 0 2rem 4rem;
        text-align: center;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.15;
        margin-bottom: 1.2rem;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: -0.03em;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    
    .hero-accent,
    .highlight {
        color: #ffffff;
        font-weight: 800;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
        font-weight: 400;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    /* Modern Buttons Mobile */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        padding: 1.3rem 2rem;
        font-size: 1rem;
        border-radius: 50px;
        font-weight: 600;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    .btn-primary {
        background: #ffffff;
        color: #0a0a0a;
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    }
    
    .btn-primary:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    }
    
    /* Navigation Mobile - Clean overlay style */
    .navbar {
        padding: 1.2rem 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        transition: all 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }
    
    /* Navbar solid dark background for non-home pages (light mode only, mobile only) */
    body:not(.dark-mode):not(.home-page) .navbar {
        background: rgba(15, 28, 56, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar.scrolled {
        background: rgba(15, 28, 56, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-container {
        padding: 0 1.5rem;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        position: relative;
    }
    
    .logo {
        position: absolute;
        left: 0.5rem;
        z-index: 1;
        max-width: 35%;
    }
    
    /* Mostrar solo logo blanco en móvil sobre video */
    .logo-img-light {
        display: none !important;
    }
    
    .logo-img-dark {
        display: block !important;
    }
    
    .logo-img {
        max-height: 160px;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5)) brightness(1.15);
        transition: all 0.3s ease;
    }
    
    /* Al hacer scroll, cambiar a logo apropiado */
    .navbar.scrolled .logo-img-light {
        display: none !important;
    }
    
    .navbar.scrolled .logo-img-dark {
        display: block !important;
    }
    
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .navbar.scrolled .logo-img-light {
        display: none !important;
    }
    
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .navbar.scrolled .logo-img-dark {
        display: block !important;
    }
    
    .navbar.scrolled .logo-img {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
        max-height: 160px;
    }
    
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        flex-shrink: 0;
        margin-left: 0.75rem;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        transition: all 0.3s ease;
    }
    
    .hamburger:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .navbar.scrolled .hamburger {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
    }
    
    .navbar.scrolled .hamburger:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.35);
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .navbar.scrolled .hamburger span {
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* Compact controls group - Modern glass style */
    .theme-menu {
        flex-shrink: 0;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        z-index: 1001;
    }
    
    .language-switcher {
        flex-shrink: 0;
        margin-left: 0;
        z-index: 1001;
    }
    
    .theme-menu-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 14px;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
    
    .theme-menu-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
    
    .navbar.scrolled .theme-menu-btn {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    
    .navbar.scrolled .theme-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.35);
    }
    
    .lang-dropdown-btn {
        padding: 0.65rem 1rem;
        min-width: 105px;
        height: 48px;
        font-size: 0.95rem;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 14px;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
    
    .lang-dropdown-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .navbar.scrolled .lan255, 255, 255, 0.6);
        border-color: rgba(10, 10, 10, 0.15);
        color: #0a0a0a;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .navbar.scrolled .lang-dropdown-btn:hover {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(10, 10, 10, 0.hover {
        background: rgba(10, 10, 10, 0.12);
    }
    
    .lang-dropdown-btn .flag {
        font-size: 1.2rem;
    }
    
    .lang-dropdown-btn .lang-code {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .lang-dropdown-btn i {
        color: inherit;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Close button for mobile menu */
    .hamburger.active::before {
        content: '×';
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 3.5rem;
        color: #0a0a0a;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(0, 166, 232, 0.4);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10001;
        line-height: 1;
        font-weight: 300;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        pointer-events: auto;
    }
    
    .hamburger.active::before:hover {
        transform: rotate(90deg) scale(1.15);
        background: rgba(0, 166, 232, 0.15);
        border-color: rgba(0, 166, 232, 0.7);
        box-shadow: 0 12px 35px rgba(0, 166, 232, 0.25);
    }
    
    .nav-link {
        padding: 1.25rem 2rem;
        font-size: 1.4rem;
        border-bottom: none;
        color: #0a0a0a;
        font-weight: 600;
        text-align: center;
        width: 100%;
        max-width: 300px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 12px;
        margin: 0.5rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #00a6e8 !important;
        background: rgba(0, 166, 232, 0.15) !important;
        border-radius: 12px;
        transform: scale(1.02);
    }
    
    /* Dark mode full-screen menu */
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
    }
    
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .hamburger.active::before {
        color: #0a0a0a !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(0, 166, 232, 0.4) !important;
    }
    
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .hamburger.active::before:hover {
        background: rgba(0, 166, 232, 0.15) !important;
        border-color: rgba(0, 166, 232, 0.7) !important;
        box-shadow: 0 12px 35px rgba(0, 166, 232, 0.25) !important;
    }
    
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-link {
        padding: 1.25rem 2rem !important;
        font-size: 1.4rem !important;
        color: #0a0a0a !important;
        font-weight: 600 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 300px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 12px !important;
        margin: 0.5rem 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
    }
    
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-link:hover,
    :is(html[data-theme="dark"], html:has(#themeToggle:checked)) .nav-link.active {
        color: #00a6e8 !important;
        background: rgba(0, 166, 232, 0.15) !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transform: scale(1.02) !important;
    }
    
    .theme-menu-btn,
    .language-switcher {
        margin: 1rem 0 0 0;
    }
    
    /* Fix theme menu panel positioning on mobile */
    .theme-menu {
        position: static;
    }
    
    .theme-menu-panel {
        position: fixed;
        right: 1rem;
        left: auto;
        top: 5rem;
        max-width: calc(100vw - 2rem);
        width: 200px;
    }
    
    /* Portfolio Carousel Mobile */
    .portfolio-carousel .portfolio-slide {
        flex: 0 0 70px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .portfolio-carousel .portfolio-slide.is-active {
        flex: 0 0 min(340px, 88vw);
        height: 440px;
        min-height: 440px;
        max-height: 440px;
        border-radius: 28px;
        box-shadow: 0 15px 50px rgba(0, 166, 232, 0.2);
        overflow: hidden;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-image {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        border-radius: 28px 28px 0 0;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-content {
        padding: 1.5rem 1.5rem;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
        font-weight: 700;
        color: #0a0a0a;
    }
    
    .portfolio-carousel .portfolio-slide.is-active .portfolio-content p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
        line-height: 1.6;
        color: #52525b;
    }
    
    .portfolio-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        border: 2px solid rgba(0, 166, 232, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .portfolio-btn:hover {
        background: rgba(0, 166, 232, 0.1);
        border-color: rgba(0, 166, 232, 0.4);
        transform: scale(1.08);
        box-shadow: 0 12px 35px rgba(0, 166, 232, 0.2);
    }
    
    .portfolio-btn:active {
        transform: scale(0.95);
    }
    
    .portfolio-track {
        gap: 1rem;
    }
    
    .portfolio-viewport {
        min-height: 450px;
    }
    
    /* Contact Page Mobile */
    .social-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-btn {
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Modern Services Cards Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 166, 232, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 166, 232, 0.15);
        border-color: rgba(0, 166, 232, 0.3);
    }
    
    .service-card .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        border-radius: 18px;
        margin-bottom: 1.5rem;
        box-shadow: 0 8px 20px rgba(0, 166, 232, 0.2);
    }
    
    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }
    
    .service-card p {
        font-size: 1rem;
        line-height: 1.7;
        color: #52525b;
    }
    
    /* Modern Section Titles Mobile */
    .section-title {
        font-size: 2.3rem;
        padding: 0 1.5rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.15rem;
        padding: 0 1.5rem;
        line-height: 1.7;
        color: #52525b;
    }
    
    /* Modern Page Header Mobile */
    .page-header {
        padding: 8rem 0 4rem;
        background: linear-gradient(180deg, rgba(0, 166, 232, 0.04) 0%, transparent 100%);
    }
    
    .page-header h1 {
        font-size: 2.5rem;
        padding: 0 1.5rem;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .page-header p {
        font-size: 1.15rem;
        padding: 0 1.5rem;
        line-height: 1.7;
        color: #52525b;
        margin-top: 1rem;
    }
    
    /* Modern About Cards Mobile */
    .about-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .about-card {
        padding: 2.5rem 2rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 166, 232, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .about-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0, 166, 232, 0.12);
    }
    
    .about-card .icon-circle {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin-bottom: 1.5rem;
        box-shadow: 0 8px 20px rgba(0, 166, 232, 0.18);
    }
    
    /* Modern Team Section Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .team-member {
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .team-member:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 166, 232, 0.15);
    }
    
    /* Modern Footer Mobile */
    .footer {
        padding: 3rem 1.5rem 2rem;
        background: linear-gradient(180deg, rgba(0, 166, 232, 0.02) 0%, rgba(10, 10, 10, 0.02) 100%);
    }
    
    .footer-content {
        gap: 2.5rem;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo img {
        max-height: 180px;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: -5rem;
        position: relative;
        z-index: 2;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 166, 232, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .social-btn:hover {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 12px 30px rgba(0, 166, 232, 0.25);
    }
    
    /* Modern Contact Form Mobile */
    .contact-form {
        padding: 0 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        border-radius: 16px;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        border: 2px solid rgba(0, 166, 232, 0.1);
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: rgba(0, 166, 232, 0.4);
        box-shadow: 0 8px 25px rgba(0, 166, 232, 0.12);
    }
    
    /* Improve spacing between sections */
    .services,
    .about,
    .portfolio,
    .contact {
        padding: 4rem 0;
    }
    
    /* Modern document cards */
    .document-card {
        padding: 2.5rem 2rem;
        border-radius: 24px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 166, 232, 0.08);
    }
    
    .document-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0, 166, 232, 0.15);
    }
