/* ====================================================
   OnMedia — Main Stylesheet
   Fonts: Onest (display) + Inter (body)
   Accent: #00d4ff (Cyan/Electric)
   ==================================================== */

/* =====================
   CSS Custom Properties
   ===================== */
:root {
    --bg-primary:      #080808;
    --bg-secondary:    #0f0f0f;
    --bg-card:         #141414;
    --bg-card-hover:   #1a1a1a;
    --accent:          #00d4ff;
    --accent-dim:      rgba(0, 212, 255, 0.08);
    --accent-glow:     rgba(0, 212, 255, 0.18);
    --accent-border:   rgba(0, 212, 255, 0.25);
    --text-primary:    #f2f2f2;
    --text-secondary:  #9a9a9a;
    --text-muted:      #555555;
    --border:          rgba(255, 255, 255, 0.06);
    --border-strong:   rgba(255, 255, 255, 0.1);

    --font-display: 'Onest', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius:    14px;
    --radius-sm: 8px;
    --radius-xs: 4px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
    --transition:    0.28s var(--ease-in-out);
    --transition-slow: 0.6s var(--ease-out-expo);

    --nav-height:        72px;
    --section-padding:   110px;
    --container-width:   1200px;
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; }

strong { font-weight: 600; color: var(--text-primary); }

/* =====================
   Custom Cursor
   ===================== */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0,212,255,0.4);
    transition: opacity 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(0, 212, 255, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out-expo),
                height 0.35s var(--ease-out-expo),
                border-color 0.25s,
                background 0.25s;
}

.cursor-ring.hovered {
    width: 64px;
    height: 64px;
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
}

/* =====================
   Preloader
   ===================== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.preloader-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pl-bounce 1.3s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}
.preloader-dot:nth-child(2) { animation-delay: 0.18s; }
.preloader-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes pl-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-18px); opacity: 1; }
}

/* =====================
   Grid Lines (decorative)
   ===================== */
.grid-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 max(40px, calc((100vw - var(--container-width)) / 2));
}
.grid-lines span {
    display: block;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.025);
}

/* =====================
   Container & Section
   ===================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* =====================
   Section Common
   ===================== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    padding: 6px 18px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-title em {
    font-style: italic;
    font-weight: 600;
    color: var(--text-secondary);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.75;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

/* =====================
   Buttons
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn i { font-size: 0.8rem; }

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(0,212,255,0.3), 0 8px 32px rgba(0,212,255,0.35);
    transform: translateY(-2px);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn-outline:hover {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
    transform: translateY(-2px);
}

/* =====================
   Navigation
   ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0;
    transition: background var(--transition), border-color var(--transition), height var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
    height: 62px;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}
.logo-text em {
    font-style: normal;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 44px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    position: absolute;
    inset: -20%;
    background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.07;
    will-change: transform;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 85% 75%, rgba(0, 80, 180, 0.06) 0%, transparent 55%),
        linear-gradient(to bottom, var(--bg-primary) 0%, rgba(8,8,8,0.7) 50%, var(--bg-primary) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.dot-pulse {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.hero-title em {
    font-style: italic;
    font-weight: 700;
    color: var(--text-secondary);
}

.accent-wrap {
    color: var(--accent);
    display: inline;
}

.typing-text {
    color: var(--accent);
}

.typing-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: blink 0.75s step-end infinite;
    margin-left: 1px;
    opacity: 0.8;
}

@keyframes blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
    animation: scroll-anim 2.2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* =====================
   About Section
   ===================== */
.about {
    background: var(--bg-secondary);
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

/* Visual side */
.about-image-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;
}

.about-image-wrap img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    filter: grayscale(15%) contrast(1.06);
    transition: filter var(--transition-slow);
    position: relative;
    z-index: 1;
}

.about-image-wrap:hover img {
    filter: grayscale(0%) contrast(1.1);
}

.image-frame {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 60%;
    height: 60%;
    border: 1.5px solid var(--accent-border);
    border-radius: var(--radius);
    z-index: 0;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.about-image-wrap:hover .image-frame {
    opacity: 0.9;
}

.image-badge {
    position: absolute;
    top: 28px;
    left: -24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 18px 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.badge-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
}

.badge-plus {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    display: inline;
}

.badge-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Content side */
.about-text {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 18px;
}

.stats-row {
    display: flex;
    gap: 44px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.05em;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 8px;
}


/* =====================
   Tech Stack Section
   ===================== */
.tech {
    background: var(--bg-secondary);
}

.tech::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
    cursor: default;
}

.tech-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,212,255,0.05);
}

.tech-item i {
    font-size: 2rem;
    color: var(--text-muted);
    transition: color var(--transition), text-shadow var(--transition);
}

.tech-item:hover i {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.tech-item span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.tech-item:hover span {
    color: var(--text-secondary);
}

/* =====================
   Contact Section
   ===================== */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition);
}

.contact-icon i {
    font-size: 0.95rem;
    color: var(--accent);
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.97rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition);
}
a.contact-value:hover { color: var(--accent); }

.contact-social {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.social-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
    transform: translateY(-2px);
}

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

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

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

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    outline: none;
    resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.06);
}

.btn-submit {
    align-self: flex-start;
}

.btn-submit .btn-spinner {
    display: none;
}

.form-feedback {
    font-size: 0.875rem;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.form-feedback[data-type="success"] {
    background: rgba(0, 220, 130, 0.08);
    border: 1px solid rgba(0, 220, 130, 0.3);
    color: #00dc82;
}

.form-feedback[data-type="error"] {
    background: rgba(255, 70, 70, 0.08);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff6060;
}

/* =====================
   Footer
   ===================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.7;
    max-width: 210px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.footer-social a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-social a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-credit .accent {
    color: var(--accent);
}

/* =====================
   Featured Service Sections
   ===================== */
.sf-section {
    background: var(--bg-primary);
}

.sf-section--alt {
    background: var(--bg-secondary);
    position: relative;
}

.sf-section--alt::before,
.sf-section--alt::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}
.sf-section--alt::before { top: 0; }
.sf-section--alt::after  { bottom: 0; }

.sf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sf-grid--reverse {
    direction: rtl;  /* flip columns */
}
.sf-grid--reverse > * {
    direction: ltr;  /* reset content direction */
}

/* Content side */
.sf-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
}

.sf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.sf-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sf-list li i {
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.sf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.sf-chip {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    letter-spacing: 0.03em;
    transition: border-color var(--transition), color var(--transition);
}

.sf-chip:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

/* Image stack (Web Dev) */
.sf-images {
    position: relative;
    padding-bottom: 60px;
    padding-right: 50px;
}

.sf-img-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.sf-img-main img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
    filter: contrast(1.05);
}

.sf-img-main:hover img {
    transform: scale(1.03);
}

.sf-img-float {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.sf-img-float img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    filter: contrast(1.05);
}

.sf-badge {
    position: absolute;
    top: 28px;
    right: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
    z-index: 2;
}

.sf-badge i { font-size: 0.9rem; }

/* Image mosaic (Design) */
.sf-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 520px;
}

.sf-mosaic-main {
    grid-row: 1 / -1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.sf-mosaic-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
    filter: contrast(1.05) saturate(1.05);
}

.sf-mosaic-main:hover img { transform: scale(1.03); }

.sf-mosaic-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-mosaic-cell {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.sf-mosaic-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
    filter: contrast(1.05) saturate(1.05);
}

.sf-mosaic-cell:hover img { transform: scale(1.05); }

/* =====================
   Other Services (compact)
   ===================== */
.other-services {
    background: var(--bg-primary);
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.os-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

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

.os-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

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

.os-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-dim);
    border: 1px solid rgba(0,212,255,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.os-card:hover .os-icon {
    background: rgba(0,212,255,0.12);
    border-color: var(--accent-border);
    box-shadow: 0 0 16px var(--accent-glow);
}

.os-icon i {
    font-size: 1.15rem;
    color: var(--accent);
}

.os-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.os-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.os-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.os-tags li {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
}

/* =====================
   Parallax Break Section
   ===================== */
.parallax-break {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -30%;               /* margen extra para el movimiento parallax */
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920&q=80');
    background-size: cover;
    background-position: center 40%;
    will-change: transform;
    transform: translateY(0);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,  rgba(8,8,8,0.92) 0%,  rgba(5,20,30,0.78) 50%, rgba(8,8,8,0.92) 100%),
        linear-gradient(135deg, rgba(0,212,255,0.08) 0%, transparent 60%);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 110px 0;
    width: 100%;
}

.parallax-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 24px;
}

.parallax-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 700;
}

.parallax-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin: 0 auto 60px;
    max-width: 580px;
}

.parallax-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
    flex-wrap: wrap;
}

.p-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.p-stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.05em;
    line-height: 1;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.p-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.4);
}

.p-stat-divider {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

/* Hero typing subtitle */
.hero-typing {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.hero-typing .typing-text {
    color: var(--accent);
    font-weight: 500;
}

/* =====================
   FAQ Section
   ===================== */
.faq {
    background: var(--bg-secondary);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.open {
    border-color: var(--accent-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    transition: color var(--transition);
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
    font-size: 0.8rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo), padding var(--transition);
}

.faq-answer p {
    padding: 0 26px 22px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* =====================
   reCAPTCHA v3
   ===================== */
.recaptcha-notice {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: -4px;
}

.recaptcha-notice a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.recaptcha-notice a:hover {
    color: var(--accent);
}

/* Hide the default reCAPTCHA badge (obligatorio mostrar el aviso de texto en su lugar) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* =====================
   Scroll Reveal
   ===================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* OS cards stagger */
.os-grid .os-card:nth-child(1) { transition-delay: 0ms; }
.os-grid .os-card:nth-child(2) { transition-delay: 80ms; }
.os-grid .os-card:nth-child(3) { transition-delay: 160ms; }

/* About stats stagger */
.stats-row .stat:nth-child(1) { transition-delay: 100ms; }
.stats-row .stat:nth-child(2) { transition-delay: 200ms; }
.stats-row .stat:nth-child(3) { transition-delay: 300ms; }
