/* Starfolds Home - Advanced Agency Style with Emerald */

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.sf-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.sf-cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--sf-white);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.sf-cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--sf-white-50);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.sf-cursor.active .sf-cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--sf-accent);
}

@media (max-width: 1024px) {
    .sf-cursor { display: none; }
}

/* ============================================
   HEADER
   ============================================ */
.sf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.sf-header.scrolled {
    background: rgba(10, 15, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sf-border);
    padding: 16px 0;
}

.sf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sf-white);
}

.sf-logo:hover {
    color: var(--sf-white);
}

.sf-logo:visited {
    color: var(--sf-white);
}

.sf-logo-mark {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.sf-logo-mark span {
    height: 2px;
    background: var(--sf-accent);
    border-radius: 2px;
    transition: all 0.4s var(--sf-ease);
}

.sf-logo-mark span:nth-child(1) { width: 100%; }
.sf-logo-mark span:nth-child(2) { width: 70%; }
.sf-logo-mark span:nth-child(3) { width: 40%; }

.sf-logo:hover .sf-logo-mark span:nth-child(1) { width: 40%; }
.sf-logo:hover .sf-logo-mark span:nth-child(2) { width: 100%; }
.sf-logo:hover .sf-logo-mark span:nth-child(3) { width: 70%; }

.sf-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sf-nav {
    display: none;
    align-items: center;
    gap: 40px;
}

.sf-nav > a {
    position: relative;
    color: var(--sf-white-70);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
}

.sf-nav > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sf-accent);
    transition: width 0.4s var(--sf-ease);
}

.sf-nav > a:hover {
    color: var(--sf-white);
}

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

.sf-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sf-accent);
    color: var(--sf-dark) !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease !important;
}

.sf-nav-cta::after { display: none !important; }

.sf-nav-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sf-nav-cta:hover {
    background: var(--sf-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--sf-accent-20);
}

.sf-nav-cta:hover svg {
    transform: translate(3px, -3px);
}

.sf-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.sf-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--sf-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .sf-nav { display: flex; }
    .sf-menu-toggle { display: none; }
}

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

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

.sf-hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--sf-accent-20), transparent);
}

.sf-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--sf-white-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--sf-white-05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

.sf-hero-glow {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--sf-accent-20) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulse-glow 4s ease-in-out infinite;
}

.sf-hero-grid-layout {
    display: grid;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .sf-hero-grid-layout {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.sf-hero-content {
    max-width: 600px;
}

/* Badge */
.sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--sf-white-70);
    margin-bottom: 28px;
}

.sf-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--sf-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--sf-accent);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Hero Title */
.sf-hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 28px;
}

.sf-hero-title .sf-line {
    overflow: visible;
}

.sf-hero-title .sf-line-inner {
    padding-bottom: 0.1em;
}

.sf-gradient-text {
    background: linear-gradient(135deg, var(--sf-accent) 0%, var(--sf-accent-light) 50%, #6ee7b7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

.sf-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--sf-white-70);
    margin: 0 0 36px;
}

/* Hero Actions */
.sf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s var(--sf-ease);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.sf-btn span {
    position: relative;
    z-index: 1;
}

.sf-btn svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--sf-ease);
}

.sf-btn-primary {
    background: var(--sf-accent);
    color: var(--sf-dark);
}

.sf-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sf-accent-light);
    transform: translateY(100%);
    transition: transform 0.4s var(--sf-ease);
}

.sf-btn-primary:hover::before {
    transform: translateY(0);
}

.sf-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--sf-accent-20);
}

.sf-btn-primary:hover svg {
    transform: translate(4px, -4px);
}

.sf-btn-outline {
    background: transparent;
    color: var(--sf-white);
    border: 1px solid var(--sf-white-30);
}

.sf-btn-outline:hover {
    background: var(--sf-white-10);
    color: var(--sf-white);
    border-color: var(--sf-white-50);
    transform: translateY(-3px);
}

.sf-btn-lg {
    padding: 20px 36px;
    font-size: 16px;
    border-radius: 14px;
}

/* Hero Team Mobile Preview */
.sf-hero-team-mobile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    border-radius: 60px;
}

.sf-hero-team-avatars {
    display: flex;
    align-items: center;
}

.sf-hero-team-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--sf-dark);
}

.sf-hero-team-avatars img:last-child {
    margin-left: -16px;
}

.sf-hero-team-text {
    font-size: 14px;
    color: var(--sf-white-70);
    line-height: 1.4;
}

/* Hide on desktop, show on tablet/mobile */
@media (min-width: 1024px) {
    .sf-hero-team-mobile {
        display: none;
    }
}

/* Hero Stats */
.sf-hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--sf-border);
}

.sf-hero-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--sf-accent);
}

.sf-hero-stat-label {
    font-size: 13px;
    color: var(--sf-white-50);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* Hero Visual / Mockups - Cascada Diagonal */
.sf-hero-visual {
    position: relative;
    height: 520px;
}

.sf-hero-mockups {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.sf-mockup {
    position: absolute;
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s var(--sf-ease), box-shadow 0.5s ease;
}

.sf-mockup:hover {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px var(--sf-accent-10);
}

/* Browser - Principal, arriba a la derecha */
.sf-mockup-browser {
    top: 0;
    right: 0;
    width: 360px;
    z-index: 3;
    transform: rotate(2deg);
}

.sf-mockup-browser:hover {
    transform: rotate(0deg) translateY(-5px);
}

.sf-mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--sf-dark-300);
    border-bottom: 1px solid var(--sf-border);
}

.sf-mockup-dots {
    display: flex;
    gap: 6px;
}

.sf-mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sf-white-10);
}

.sf-mockup-dots span:first-child { background: #ff5f57; }
.sf-mockup-dots span:nth-child(2) { background: #febc2e; }
.sf-mockup-dots span:nth-child(3) { background: #28c840; }

.sf-mockup-url {
    flex: 1;
    background: var(--sf-dark-100);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--sf-white-50);
}

.sf-mockup-content img {
    width: 100%;
    display: block;
}

/* Code - Medio, abajo a la izquierda */
.sf-mockup-code {
    top: 140px;
    left: 0;
    width: 260px;
    z-index: 4;
    transform: rotate(-3deg);
}

.sf-mockup-code:hover {
    transform: rotate(0deg) translateY(-5px);
}

.sf-code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--sf-dark-300);
    border-bottom: 1px solid var(--sf-border);
    font-size: 12px;
    color: var(--sf-white-50);
}

.sf-code-dot {
    width: 8px;
    height: 8px;
    background: var(--sf-accent);
    border-radius: 50%;
}

.sf-code-content {
    padding: 16px;
    font-size: 12px;
    line-height: 1.6;
    font-family: 'SF Mono', Monaco, monospace;
    margin: 0;
    overflow: hidden;
}

.sf-code-keyword { color: #c678dd; }
.sf-code-var { color: #61afef; }
.sf-code-tag { color: var(--sf-accent); }

/* Stats - Abajo centro-derecha */
.sf-mockup-stats {
    bottom: 0;
    right: 80px;
    width: 190px;
    padding: 20px;
    z-index: 5;
    transform: rotate(2deg);
    animation: float 6s ease-in-out infinite;
}

.sf-mockup-stats:hover {
    animation-play-state: paused;
    transform: rotate(0deg) translateY(-5px);
}

.sf-stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--sf-white-70);
}

.sf-stats-badge {
    background: var(--sf-accent-20);
    color: var(--sf-accent);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.sf-stats-chart {
    height: 40px;
}

.sf-stats-chart svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   ANIMATED BLOB
   ============================================ */
.sf-blob-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sf-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(
        135deg,
        var(--sf-accent-20) 0%,
        var(--sf-accent-10) 50%,
        transparent 100%
    );
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    animation: blob-morph 15s ease-in-out infinite;
    top: -10%;
    right: -10%;
    opacity: 0.7;
}

.sf-blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(
        225deg,
        rgba(16, 185, 129, 0.15) 0%,
        rgba(52, 211, 153, 0.08) 50%,
        transparent 100%
    );
    top: 40%;
    left: -5%;
    animation: blob-morph-2 18s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(30px, -50px) rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 60% 30% 60% / 50% 40% 70% 50%;
        transform: translate(-20px, 20px) rotate(180deg) scale(0.95);
    }
    75% {
        border-radius: 60% 40% 60% 40% / 60% 30% 70% 40%;
        transform: translate(20px, -30px) rotate(270deg) scale(1.05);
    }
}

@keyframes blob-morph-2 {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(40px, 30px) rotate(120deg);
    }
    66% {
        border-radius: 50% 40% 50% 60% / 40% 50% 60% 50%;
        transform: translate(-30px, -20px) rotate(240deg);
    }
}

/* ============================================
   INTERACTIVE PARTICLES
   ============================================ */
.sf-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .sf-particles {
        display: none;
    }

    .sf-blob {
        width: 300px;
        height: 300px;
    }

    .sf-blob-2 {
        width: 200px;
        height: 200px;
    }
}

/* ============================================
   TYPEWRITER EFFECT
   ============================================ */
.sf-typewriter {
    position: relative;
    display: inline-block;
    min-width: 10px;
}

.sf-typewriter::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 10%;
    width: 3px;
    height: 80%;
    background: var(--sf-accent);
    animation: cursor-blink 0.8s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--sf-accent), 0 0 20px var(--sf-accent-20);
}

@keyframes cursor-blink {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.3;
        transform: scaleY(0.9);
    }
}

/* ============================================
   TECH MARQUEE
   ============================================ */
.sf-marquee {
    background: var(--sf-dark-100);
    border-top: 1px solid var(--sf-border);
    border-bottom: 1px solid var(--sf-border);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
}

.sf-marquee::before,
.sf-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.sf-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--sf-dark-100), transparent);
}

.sf-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--sf-dark-100), transparent);
}

.sf-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.sf-marquee:hover .sf-marquee-track {
    animation-play-state: paused;
}

.sf-marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 16px;
}

.sf-marquee-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--sf-white-70);
    white-space: nowrap;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.sf-marquee-item:hover {
    color: var(--sf-accent);
}

.sf-marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--sf-accent);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .sf-marquee {
        padding: 18px 0;
    }

    .sf-marquee-item {
        font-size: 15px;
    }

    .sf-marquee-content {
        gap: 24px;
    }

    .sf-marquee-track {
        animation-duration: 20s;
    }
}

/* Scroll Indicator */
.sf-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sf-scroll-indicator span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sf-white-30);
}

.sf-scroll-line {
    width: 2px;
    height: 60px;
    background: var(--sf-white-10);
    position: relative;
    overflow: hidden;
}

.sf-scroll-dot {
    width: 100%;
    height: 20px;
    background: var(--sf-accent);
    position: absolute;
    top: -20px;
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0% { top: -20px; }
    50% { top: 60px; }
    100% { top: 60px; }
}

/* ============================================
   STATS BAND - Modern Glassmorphism Style
   ============================================ */
.sf-stats-band {
    background: linear-gradient(180deg, var(--sf-dark-100) 0%, var(--sf-dark) 100%);
    border-top: 1px solid var(--sf-border);
    border-bottom: 1px solid var(--sf-border);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.sf-stats-band::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--sf-accent-10) 0%, transparent 70%);
    pointer-events: none;
}

.sf-stats-band-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
}

@media (min-width: 768px) {
    .sf-stats-band-inner {
        gap: 0;
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .sf-stats-band-inner {
        gap: 0;
    }
}

.sf-stat-item {
    text-align: center;
    min-width: 140px;
    padding: 24px 40px;
    position: relative;
    transition: transform 0.4s var(--sf-ease);
}

.sf-stat-item:hover {
    transform: translateY(-4px);
}

.sf-stat-item:hover .sf-stat-num {
    color: var(--sf-accent);
}

.sf-stat-num {
    font-size: clamp(44px, 6vw, 64px);
    font-weight: 800;
    color: var(--sf-white);
    line-height: 1;
    display: inline;
    transition: color 0.3s ease;
}

.sf-stat-plus {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--sf-accent);
    margin-left: 2px;
}

.sf-stat-label {
    display: block;
    font-size: 13px;
    color: var(--sf-white-50);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 12px;
    font-weight: 500;
}

.sf-stat-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--sf-border), transparent);
    display: none;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sf-stat-divider {
        display: block;
    }
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
.sf-section-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.sf-section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.sf-section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--sf-dark) 0%, transparent 30%, transparent 70%, var(--sf-dark) 100%);
}

.sf-overlay-strong {
    background: linear-gradient(180deg, var(--sf-dark) 0%, rgba(10, 15, 10, 0.85) 50%, var(--sf-dark) 100%);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.sf-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 70px;
}

.sf-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--sf-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: var(--sf-accent-10);
    border-radius: 50px;
}

.sf-section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.sf-section-desc {
    font-size: 17px;
    color: var(--sf-white-70);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   SERVICES - Premium Card Design
   ============================================ */
.sf-services {
    position: relative;
    padding: 60px 0 80px;
    scroll-margin-top: 80px;
}

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

.sf-services-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .sf-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sf-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* Center last item on 2-column layout */
@media (min-width: 640px) and (max-width: 1023px) {
    .sf-services-grid .sf-service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
        margin: 0 auto;
    }
}

.sf-service-card {
    position: relative;
    background: var(--sf-dark-100);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    padding: 36px;
    transition: all 0.5s var(--sf-ease);
    overflow: hidden;
}

.sf-service-hover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sf-accent-10) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sf-service-card:hover {
    border-color: var(--sf-accent);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.sf-service-card:hover .sf-service-hover-bg {
    opacity: 1;
}

.sf-service-card.sf-featured {
    border-color: var(--sf-accent);
    background: linear-gradient(180deg, var(--sf-accent-10) 0%, var(--sf-dark-100) 40%);
}

.sf-featured-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--sf-accent);
    color: var(--sf-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 6px;
}

.sf-service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-dark-300);
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.sf-service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--sf-accent);
}

.sf-service-card:hover .sf-service-icon {
    background: var(--sf-accent);
    border-color: var(--sf-accent);
}

.sf-service-card:hover .sf-service-icon svg {
    color: var(--sf-dark);
}

.sf-service-content {
    position: relative;
    z-index: 1;
}

.sf-service-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
}

.sf-service-content p {
    font-size: 14px;
    color: var(--sf-white-70);
    line-height: 1.6;
    margin: 0;
}

.sf-service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--sf-border);
    position: relative;
    z-index: 1;
}

.sf-service-price {
    font-size: 14px;
    color: var(--sf-white-50);
}

.sf-service-price strong {
    color: var(--sf-white);
    font-weight: 600;
}

.sf-service-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-dark-300);
    border-radius: 50%;
    transition: all 0.4s var(--sf-ease);
}

.sf-service-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--sf-white);
    transition: all 0.4s var(--sf-ease);
}

.sf-service-card:hover .sf-service-arrow {
    background: var(--sf-accent);
}

.sf-service-card:hover .sf-service-arrow svg {
    color: var(--sf-dark);
    transform: translate(2px, -2px);
}

/* ============================================
   WORK / PROJECTS - Modern Draggable Slider
   ============================================ */
.sf-work {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
}

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

.sf-work-slider {
    margin-top: 48px;
    position: relative;
}

@media (max-width: 767px) {
    .sf-work-slider {
        margin-top: 36px;
    }
}

.sf-work-slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 24px 24px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.sf-work-slider-track:active {
    cursor: grabbing;
}

.sf-work-slider-track.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

.sf-work-slider-track.dragging .sf-work-slide {
    pointer-events: none;
}

.sf-work-slider-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .sf-work-slider-track {
        gap: 32px;
        padding: 16px 40px 28px;
    }
}

@media (min-width: 1200px) {
    .sf-work-slider-track {
        padding: 16px calc((100vw - 1280px) / 2 + 60px) 28px;
    }
}

.sf-work-slide {
    position: relative;
    flex: 0 0 auto;
    width: 88vw;
    max-width: 720px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    transition: transform 0.5s var(--sf-ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.sf-work-slide:hover {
    border-color: var(--sf-accent);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px var(--sf-accent-10);
}

@media (min-width: 640px) {
    .sf-work-slide {
        width: 75vw;
        max-width: 680px;
    }
}

@media (min-width: 768px) {
    .sf-work-slide {
        width: 65vw;
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .sf-work-slide {
        width: 55vw;
        max-width: 800px;
    }
}

@media (min-width: 1400px) {
    .sf-work-slide {
        width: 45vw;
        max-width: 850px;
    }
}

.sf-work-slide-inner {
    position: relative;
    overflow: hidden;
}

.sf-work-slide img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--sf-ease), filter 0.5s ease;
}

.sf-work-slide:hover img {
    transform: scale(1.05);
}

.sf-work-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 28px 28px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
    transform: translateY(0);
    transition: transform 0.4s var(--sf-ease);
}

@media (min-width: 768px) {
    .sf-work-slide-info {
        padding: 100px 36px 36px;
    }
}

.sf-work-slide-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sf-dark);
    background: var(--sf-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    transition: transform 0.3s var(--sf-ease);
}

.sf-work-slide:hover .sf-work-slide-cat {
    transform: translateX(4px);
}

.sf-work-slide-info h3 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sf-work-slide-info p {
    font-size: 14px;
    color: var(--sf-white-70);
    margin: 0;
    line-height: 1.6;
    max-width: 420px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sf-work-slide-info p {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
}

/* Slider Navigation - Modern Style */
.sf-work-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .sf-work-slider-controls {
        margin-top: 28px;
    }
}

.sf-work-slider-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-work-slider-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s var(--sf-ease);
    position: relative;
    overflow: hidden;
}

.sf-work-slider-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sf-accent);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s var(--sf-ease);
}

.sf-work-slider-btn svg {
    width: 22px;
    height: 22px;
    color: var(--sf-white);
    transition: all 0.4s var(--sf-ease);
    position: relative;
    z-index: 1;
}

.sf-work-slider-btn:hover {
    border-color: var(--sf-accent);
    transform: scale(1.08);
}

.sf-work-slider-btn:hover::before {
    transform: scale(1);
}

.sf-work-slider-btn:hover svg {
    color: var(--sf-dark);
}

.sf-work-prev:hover svg {
    transform: translateX(-3px);
}

.sf-work-next:hover svg {
    transform: translateX(3px);
}

.sf-work-slider-btn:active {
    transform: scale(0.95);
}

.sf-work-slider-btn:focus {
    outline: none;
}

.sf-work-slider-btn:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 2px;
}

/* Progress indicator */
.sf-work-slider-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-work-slider-progress-bar {
    width: 80px;
    height: 3px;
    background: var(--sf-dark-300);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.sf-work-slider-progress-fill {
    height: 100%;
    background: var(--sf-accent);
    border-radius: 2px;
    width: 20%;
    transition: width 0.3s ease;
}

/* Drag hint for mobile */
.sf-work-drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sf-white-50);
    margin-top: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sf-work-drag-hint svg {
    width: 20px;
    height: 20px;
    animation: drag-hint 2s ease-in-out infinite;
}

@keyframes drag-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@media (min-width: 768px) {
    .sf-work-drag-hint {
        display: none;
    }
}

/* Hide hint after interaction */
.sf-work-slider-track.interacted ~ .sf-work-slider-controls .sf-work-drag-hint,
.sf-work-slider.interacted .sf-work-drag-hint {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   ABOUT
   ============================================ */
.sf-about {
    position: relative;
    padding: 60px 0 80px;
    scroll-margin-top: 80px;
}

/* Team Grid - New Design */
.sf-team-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .sf-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

.sf-team-card {
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-xl);
    overflow: hidden;
    transition: all 0.4s var(--sf-ease);
}

.sf-team-card:hover {
    border-color: var(--sf-accent);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.sf-team-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.sf-team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--sf-ease);
    object-position: top;
}

.sf-team-card:hover .sf-team-card-image img {
    transform: scale(1.08);
}

.sf-team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sf-team-card:hover .sf-team-card-overlay {
    opacity: 1;
}

.sf-team-card-social {
    display: flex;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.4s var(--sf-ease);
}

.sf-team-card:hover .sf-team-card-social {
    transform: translateY(0);
}

.sf-team-card-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-white);
    border-radius: 12px;
    color: var(--sf-dark);
    transition: all 0.3s ease;
}

.sf-team-card-social a:hover {
    background: var(--sf-accent);
    transform: translateY(-4px);
}

.sf-team-card-social svg {
    width: 20px;
    height: 20px;
}

.sf-team-card-info {
    padding: 28px;
}

.sf-team-card-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
}

.sf-team-card-role {
    display: block;
    font-size: 14px;
    color: var(--sf-accent);
    font-weight: 800;
    margin-bottom: 16px;
}

.sf-team-card-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sf-white-70);
    margin: 0;
}

/* Values Row */
.sf-values-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
    padding: 40px;
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-xl);
}

.sf-value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--sf-white-90);
}

.sf-value-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-accent-20);
    border-radius: 8px;
    flex-shrink: 0;
}

.sf-value-icon svg {
    width: 16px;
    height: 16px;
    color: var(--sf-accent);
}

/* ============================================
   TESTIMONIALS - Modern Card Design
   ============================================ */
.sf-testimonials {
    padding: 60px 0 80px;
    background: var(--sf-dark-100);
    position: relative;
    scroll-margin-top: 80px;
}

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

.sf-testimonials-grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 768px) {
    .sf-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.sf-testimonial-card {
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.5s var(--sf-ease);
    position: relative;
    overflow: hidden;
}

.sf-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sf-accent), var(--sf-accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--sf-ease);
}

.sf-testimonial-card:hover {
    border-color: var(--sf-accent);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.sf-testimonial-card:hover::before {
    transform: scaleX(1);
}

.sf-testimonial-featured {
    border-color: var(--sf-border);
    background: linear-gradient(180deg, var(--sf-accent-10) 0%, var(--sf-dark-200) 50%);
}

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

/* Stars rating */
.sf-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.sf-testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    fill: #fbbf24;
}

.sf-testimonial-quote {
    margin-bottom: 20px;
}

.sf-testimonial-quote svg {
    width: 40px;
    height: 40px;
    color: var(--sf-accent);
    opacity: 0.3;
}

.sf-testimonial-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--sf-white-90);
    margin: 0;
    font-style: italic;
}

.sf-testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--sf-border);
}

.sf-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--sf-border);
    transition: border-color 0.3s ease;
}

.sf-testimonial-card:hover .sf-author-avatar {
    border-color: var(--sf-accent);
}

.sf-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-author-info strong {
    font-size: 16px;
    font-weight: 700;
}

.sf-author-info span {
    font-size: 13px;
    color: var(--sf-accent);
    font-weight: 500;
}

/* ============================================
   CTA - Bold Impact Section
   ============================================ */
.sf-cta {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    scroll-margin-top: 80px;
}

.sf-cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.sf-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(30%);
}

.sf-cta-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 120%, var(--sf-accent-20), transparent),
        linear-gradient(135deg, var(--sf-dark) 0%, rgba(10, 15, 10, 0.85) 50%, var(--sf-dark) 100%);
}

/* Decorative elements */
.sf-cta::before,
.sf-cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid var(--sf-accent-20);
    pointer-events: none;
}

.sf-cta::before {
    top: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

.sf-cta::after {
    bottom: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

.sf-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.sf-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    padding: 10px 20px;
    background: var(--sf-accent-10);
    border-radius: 50px;
    border: 1px solid var(--sf-accent-20);
}

.sf-cta-title {
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 28px;
}

.sf-cta-title .sf-gradient-text {
    display: inline;
}

.sf-cta-desc {
    font-size: 19px;
    color: var(--sf-white-70);
    margin: 0 0 44px;
    line-height: 1.7;
}

.sf-cta .sf-btn-primary {
    padding: 20px 40px;
    font-size: 17px;
}

/* ============================================
   CONTACT - Modern Split Layout
   ============================================ */
.sf-contact {
    padding: 60px 0 80px;
    position: relative;
    scroll-margin-top: 80px;
}

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

.sf-contact-grid {
    display: grid;
    gap: 60px;
    align-items: start;
}

@media (min-width: 1024px) {
    .sf-contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 80px;
    }
}

@media (min-width: 1200px) {
    .sf-contact-grid {
        gap: 120px;
    }
}

.sf-contact-info {
    position: sticky;
    top: 120px;
}

.sf-contact-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--sf-white-70);
    margin: 24px 0 0;
}

.sf-contact-methods {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--sf-dark-200);
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--sf-white);
    transition: all 0.4s var(--sf-ease);
    position: relative;
    overflow: hidden;
}

.sf-contact-method::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sf-accent);
    transform: scaleY(0);
    transition: transform 0.3s var(--sf-ease);
}

.sf-contact-method:hover {
    border-color: var(--sf-accent);
    transform: translateX(8px);
    color: var(--sf-white);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.sf-contact-method:hover::before {
    transform: scaleY(1);
}

.sf-contact-method:visited {
    color: var(--sf-white);
}

.sf-method-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-accent-10);
    border: 1px solid var(--sf-accent-20);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.sf-contact-method:hover .sf-method-icon {
    background: var(--sf-accent);
    border-color: var(--sf-accent);
}

.sf-method-icon svg {
    width: 24px;
    height: 24px;
    color: var(--sf-accent);
    transition: color 0.3s ease;
}

.sf-contact-method:hover .sf-method-icon svg {
    color: var(--sf-dark);
}

.sf-method-content span {
    display: block;
    font-size: 13px;
    color: var(--sf-white-50);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sf-method-content strong {
    font-size: 17px;
    font-weight: 600;
}

/* Form Card - Premium Design */
.sf-form-card {
    background: linear-gradient(180deg, var(--sf-dark-200) 0%, var(--sf-dark-100) 100%);
    border: 1px solid var(--sf-border);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

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

@media (max-width: 767px) {
    .sf-form-card {
        padding: 32px 24px;
    }
}

.sf-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sf-form-row {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .sf-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.sf-form-group {
    width: 100%;
    position: relative;
}

.sf-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-white-70);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sf-form input,
.sf-form textarea {
    width: 100%;
    background: var(--sf-dark-300);
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    padding: 18px 22px;
    font-size: 16px;
    color: var(--sf-white);
    font-family: var(--sf-font);
    transition: all 0.3s ease;
}

.sf-form input::placeholder,
.sf-form textarea::placeholder {
    color: var(--sf-white-30);
}

.sf-form input:focus,
.sf-form textarea:focus {
    outline: none;
    border-color: var(--sf-accent);
    background: var(--sf-dark-400);
    color: var(--sf-white);
    box-shadow: 0 0 0 4px var(--sf-accent-10);
}

/* Fix autofill styles */
.sf-form input:-webkit-autofill,
.sf-form input:-webkit-autofill:hover,
.sf-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--sf-white);
    -webkit-box-shadow: 0 0 0px 1000px var(--sf-dark-300) inset;
    box-shadow: 0 0 0px 1000px var(--sf-dark-300) inset;
    border-color: var(--sf-accent);
    caret-color: var(--sf-white);
}

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

.sf-btn-block {
    width: 100%;
    justify-content: center;
}

.sf-btn-loading {
    display: none;
}

.sf-form.loading .sf-btn-text {
    display: none;
}

.sf-form.loading .sf-btn-loading {
    display: inline;
}

.sf-form.loading button {
    pointer-events: none;
    opacity: 0.7;
}

.sf-form-message {
    padding: 16px 20px;
    border-radius: var(--sf-radius);
    font-size: 14px;
    text-align: center;
}

.sf-form-success {
    background: var(--sf-accent-20);
    color: var(--sf-accent);
    border: 1px solid var(--sf-accent);
}

.sf-form-error,
.sf-form-captcha-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Privacy checkbox */
.sf-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--sf-white-70);
    line-height: 1.5;
}

.sf-form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--sf-accent);
    cursor: pointer;
}

.sf-form-checkbox a {
    color: var(--sf-accent);
    text-decoration: underline;
}

.sf-form-checkbox a:hover {
    color: var(--sf-accent-light);
}

/* hCaptcha */
.h-captcha {
    display: flex;
    justify-content: flex-start;
}

/* ============================================
   FOOTER - Premium Minimal
   ============================================ */
.sf-footer {
    padding: 80px 0 32px;
    background: var(--sf-dark);
    position: relative;
    overflow: hidden;
}

.sf-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--sf-border) 20%,
        var(--sf-accent-30) 50%,
        var(--sf-border) 80%,
        transparent 100%
    );
}

.sf-footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 48px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--sf-border);
}

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

@media (min-width: 1024px) {
    .sf-footer-main {
        grid-template-columns: 1.2fr 2fr;
        gap: 100px;
    }
}

.sf-footer-brand {
    max-width: 320px;
}

.sf-footer-brand .sf-logo {
    margin-bottom: 20px;
}

.sf-footer-brand p {
    font-size: 14px;
    color: var(--sf-white-40);
    line-height: 1.7;
    margin: 0 0 24px;
}

.sf-footer-brand .sf-footer-social {
    display: flex;
    gap: 8px;
}

.sf-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.sf-footer-col {
    display: flex;
    flex-direction: column;
}

.sf-footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 20px;
    color: var(--sf-white-70);
}

.sf-footer-col a {
    display: block;
    color: var(--sf-white-40);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
}

.sf-footer-col a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sf-accent);
    transition: width 0.3s ease;
}

.sf-footer-col a:hover {
    color: var(--sf-accent);
}

.sf-footer-col a:hover::after {
    width: 100%;
}

.sf-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sf-footer-bottom > span {
    font-size: 12px;
    color: var(--sf-white-30);
    letter-spacing: 0.02em;
}

.sf-footer-bottom > span a {
    color: var(--sf-white-40);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sf-footer-bottom > span a:hover {
    color: var(--sf-accent);
}

.sf-footer-social {
    display: flex;
    gap: 8px;
}

.sf-footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    color: var(--sf-white-40);
    transition: all 0.2s ease;
}

.sf-footer-social a:hover {
    background: var(--sf-white-05);
    border-color: var(--sf-white-20);
    color: var(--sf-white);
}

.sf-footer-social svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   INNOVATIVE HOVER EFFECTS
   ============================================ */

/* Magnetic Button Effect */
.sf-magnetic {
    transition: transform 0.3s var(--sf-ease);
}

/* Glitch Effect on Hover */
.sf-glitch {
    position: relative;
}

.sf-glitch::before,
.sf-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.sf-glitch:hover::before {
    animation: glitch-1 0.3s linear;
    color: var(--sf-accent);
    z-index: -1;
}

.sf-glitch:hover::after {
    animation: glitch-2 0.3s linear;
    color: var(--sf-accent-light);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-3px, 3px); }
    40% { opacity: 0.8; transform: translate(3px, -3px); }
    60% { opacity: 0.8; transform: translate(-3px, -3px); }
    80% { opacity: 0.8; transform: translate(3px, 3px); }
}

@keyframes glitch-2 {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.6; transform: translate(3px, -3px); }
    40% { opacity: 0.6; transform: translate(-3px, 3px); }
    60% { opacity: 0.6; transform: translate(3px, 3px); }
    80% { opacity: 0.6; transform: translate(-3px, -3px); }
}

/* 3D Card Tilt Effect */
.sf-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.sf-tilt-inner {
    transition: transform 0.5s var(--sf-ease);
    transform-style: preserve-3d;
}

/* Ripple Effect */
.sf-ripple {
    position: relative;
    overflow: hidden;
}

.sf-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle, var(--sf-white-30) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.sf-ripple:hover::after {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 1;
}

/* Border Animation */
.sf-border-glow {
    position: relative;
}

.sf-border-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg,
        var(--sf-accent),
        var(--sf-accent-light),
        #6ee7b7,
        var(--sf-accent-light),
        var(--sf-accent)
    );
    background-size: 200% 100%;
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.sf-border-glow:hover::before {
    opacity: 1;
    animation: border-flow 2s linear infinite;
}

@keyframes border-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Underline Slide Effect */
.sf-underline-slide {
    position: relative;
    display: inline-block;
}

.sf-underline-slide::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--sf-accent), var(--sf-accent-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--sf-ease);
}

.sf-underline-slide:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Split Text Hover */
.sf-split-hover {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.sf-split-hover span {
    display: block;
    transition: transform 0.4s var(--sf-ease);
}

.sf-split-hover::after {
    content: attr(data-hover);
    position: absolute;
    top: 100%;
    left: 0;
    transition: transform 0.4s var(--sf-ease);
    color: var(--sf-accent);
}

.sf-split-hover:hover span {
    transform: translateY(-100%);
}

.sf-split-hover:hover::after {
    transform: translateY(-100%);
}

/* Icon Rotate on Hover */
.sf-icon-rotate {
    transition: transform 0.4s var(--sf-ease);
}

.sf-icon-rotate:hover {
    transform: rotate(360deg);
}

/* Shine Effect */
.sf-shine {
    position: relative;
    overflow: hidden;
}

.sf-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--sf-white-10),
        transparent
    );
    transition: left 0.6s ease;
}

.sf-shine:hover::before {
    left: 100%;
}

/* Bounce Scale */
.sf-bounce-hover {
    transition: transform 0.3s var(--sf-ease-elastic);
}

.sf-bounce-hover:hover {
    transform: scale(1.05);
}

/* Glow Text on Hover */
.sf-glow-hover {
    transition: text-shadow 0.3s ease;
}

.sf-glow-hover:hover {
    text-shadow:
        0 0 10px var(--sf-accent),
        0 0 20px var(--sf-accent),
        0 0 30px var(--sf-accent-20);
}

/* Card Lift with Shadow */
.sf-lift {
    transition: transform 0.4s var(--sf-ease), box-shadow 0.4s ease;
}

.sf-lift:hover {
    transform: translateY(-12px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px var(--sf-accent-10);
}

/* Morph Border Radius */
.sf-morph {
    transition: border-radius 0.5s var(--sf-ease);
}

.sf-morph:hover {
    border-radius: 50px;
}

/* Gradient Shift Background */
.sf-gradient-hover {
    background-size: 200% 100%;
    transition: background-position 0.5s ease;
}

.sf-gradient-hover:hover {
    background-position: 100% 0;
}

/* Text Character Spread */
.sf-spread-hover {
    transition: letter-spacing 0.4s var(--sf-ease);
}

.sf-spread-hover:hover {
    letter-spacing: 0.15em;
}

/* Overlay Slide */
.sf-overlay-slide {
    position: relative;
    overflow: hidden;
}

.sf-overlay-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--sf-accent-20), transparent);
    transition: left 0.5s ease;
}

.sf-overlay-slide:hover::before {
    left: 100%;
}

/* Icon Slide In */
.sf-icon-slide {
    overflow: hidden;
}

.sf-icon-slide svg {
    transition: transform 0.4s var(--sf-ease);
}

.sf-icon-slide:hover svg {
    transform: translateX(4px);
}

.sf-icon-slide::after {
    content: '';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: right 0.4s var(--sf-ease), opacity 0.4s ease;
}

/* Pulse on Hover */
.sf-pulse-hover:hover {
    animation: pulse-scale 0.5s ease;
}

@keyframes pulse-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ============================================
   RESPONSIVE - Mobile First Approach
   ============================================ */

/* Mobile Base (< 480px) */
@media (max-width: 479px) {
    .sf-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .sf-hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .sf-hero-desc {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .sf-badge {
        font-size: 12px;
        padding: 8px 14px;
        margin-bottom: 20px;
    }

    .sf-hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 36px;
    }

    .sf-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .sf-hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 32px;
        padding-top: 24px;
    }

    .sf-hero-stat {
        text-align: center;
    }

    .sf-hero-stat-num {
        font-size: 24px;
    }

    .sf-hero-stat-label {
        font-size: 11px;
    }

    /* Slider controls mobile */
    .sf-work-slider-controls {
        gap: 16px;
    }

    .sf-work-slider-btn {
        width: 44px;
        height: 44px;
    }

    .sf-work-slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .sf-work-slider-progress-bar {
        width: 60px;
    }

    /* Stats Band Mobile */
    .sf-stats-band {
        padding: 40px 0;
    }

    .sf-stats-band-inner {
        flex-direction: column;
        gap: 24px;
    }

    .sf-stat-item {
        min-width: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sf-stat-divider {
        display: none;
    }

    /* Services Mobile */
    .sf-services {
        padding: 40px 0 60px;
        scroll-margin-top: 70px;
    }

    .sf-section-header {
        margin-bottom: 40px;
    }

    .sf-section-title {
        font-size: 28px;
    }

    .sf-section-desc {
        font-size: 15px;
    }

    .sf-service-card {
        padding: 28px;
    }

    .sf-service-content h3 {
        font-size: 20px;
    }

    /* Testimonials Mobile */
    .sf-testimonials {
        padding: 40px 0 60px;
        scroll-margin-top: 70px;
    }

    .sf-testimonials-grid {
        gap: 16px;
    }

    .sf-testimonial-card {
        padding: 24px;
    }

    /* CTA Mobile */
    .sf-cta {
        padding: 50px 0;
        scroll-margin-top: 70px;
    }

    .sf-cta-title {
        font-size: 28px;
    }

    .sf-cta-desc {
        font-size: 16px;
        margin-bottom: 28px;
    }

    /* Contact Mobile */
    .sf-contact {
        padding: 40px 0 60px;
        scroll-margin-top: 70px;
    }

    .sf-contact-grid {
        gap: 40px;
    }

    .sf-contact-info {
        text-align: center;
    }

    .sf-contact-info .sf-label,
    .sf-contact-info .sf-section-title,
    .sf-contact-text {
        text-align: center;
    }

    .sf-contact-methods {
        justify-content: center;
    }

    .sf-form-card {
        padding: 24px;
    }

    /* Footer Mobile */
    .sf-footer {
        padding: 48px 0 24px;
    }

    .sf-footer-main {
        gap: 32px;
        padding-bottom: 32px;
        margin-bottom: 24px;
    }

    .sf-footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .sf-footer-brand .sf-logo {
        justify-content: center;
    }

    .sf-footer-brand .sf-footer-social {
        justify-content: center;
    }

    .sf-footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        text-align: center;
    }

    .sf-footer-col {
        align-items: center;
    }

    .sf-footer-col a {
        text-align: center;
    }

    .sf-footer-links .sf-footer-col:last-child {
        grid-column: span 2;
    }

    .sf-footer-col h4 {
        font-size: 10px;
        margin-bottom: 14px;
    }

    .sf-footer-col a {
        font-size: 13px;
        padding: 5px 0;
    }

    .sf-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* About Mobile */
    .sf-about {
        padding: 40px 0 60px;
        scroll-margin-top: 70px;
    }

    .sf-team-card-info {
        padding: 20px;
    }

    .sf-team-card-info h3 {
        font-size: 20px;
    }

    .sf-team-card-bio {
        font-size: 14px;
    }

    .sf-values-row {
        padding: 24px;
        gap: 16px 24px;
    }

    .sf-value-item {
        font-size: 14px;
        flex: 0 0 100%;
    }
}

/* Small Mobile (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .sf-hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 40px;
    }

    .sf-hero-stat {
        text-align: center;
    }

    .sf-hero-stat-num {
        font-size: 22px;
    }
}

/* Tablet Portrait (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .sf-hero-actions {
        flex-direction: row;
    }

    .sf-btn {
        width: auto;
    }

    .sf-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-services-grid .sf-service-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .sf-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-testimonials-grid .sf-testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .sf-hero {
        padding: 140px 0 80px;
    }

    .sf-hero-visual {
        display: none;
    }

    .sf-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .sf-hero-actions {
        justify-content: center;
    }

    .sf-hero-stats {
        justify-content: center;
    }

    .sf-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .sf-hero-team-mobile {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    /* Services tablet */
    .sf-services {
        padding: 50px 0 70px;
        scroll-margin-top: 75px;
    }

    /* About tablet */
    .sf-about {
        padding: 50px 0 70px;
        scroll-margin-top: 75px;
    }

    .sf-team-grid {
        gap: 32px;
    }

    /* Testimonials tablet */
    .sf-testimonials {
        padding: 50px 0 70px;
        scroll-margin-top: 75px;
    }

    /* CTA tablet */
    .sf-cta {
        padding: 60px 0;
        scroll-margin-top: 75px;
    }

    .sf-cta::before,
    .sf-cta::after {
        width: 200px;
        height: 200px;
    }

    /* Contact tablet */
    .sf-contact {
        padding: 50px 0 70px;
        scroll-margin-top: 75px;
    }

    .sf-contact-grid {
        gap: 60px;
    }

    .sf-contact-info {
        text-align: center;
        position: static;
    }

    .sf-contact-info .sf-label,
    .sf-contact-info .sf-section-title {
        text-align: center;
    }

    .sf-contact-text {
        text-align: center;
    }

    .sf-contact-methods {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sf-contact-method {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    /* Footer tablet */
    .sf-footer {
        padding: 64px 0 32px;
    }

    .sf-footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sf-footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .sf-footer-brand .sf-logo {
        justify-content: center;
    }

    .sf-footer-brand .sf-footer-social {
        justify-content: center;
    }

    .sf-footer-links {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }

    .sf-footer-col a {
        margin: 0 auto;
    }

    .sf-footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* Desktop (1024px+) */
@media (max-width: 1023px) {
    .sf-hero-visual {
        display: none;
    }

    .sf-hero-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .sf-hero-stats {
        justify-content: center;
        gap: 20px 32px;
    }

    .sf-hero-stat {
        text-align: center;
    }

    .sf-hero-stat-num {
        font-size: 22px;
    }

    .sf-scroll-indicator {
        display: none;
    }
}

/* Large Desktop optimizations */
@media (min-width: 1400px) {
    .sf-hero-grid-layout {
        gap: 100px;
    }

    .sf-hero-visual {
        height: 560px;
    }

    .sf-mockup-browser {
        width: 400px;
    }

    .sf-mockup-code {
        width: 280px;
        top: 160px;
    }

    .sf-mockup-stats {
        width: 200px;
        right: 100px;
    }
}

/* Medium desktop adjustments */
@media (min-width: 1024px) and (max-width: 1279px) {
    .sf-hero-visual {
        height: 480px;
    }

    .sf-mockup-browser {
        width: 320px;
    }

    .sf-mockup-code {
        width: 230px;
        top: 120px;
    }

    .sf-mockup-stats {
        width: 170px;
        right: 40px;
        bottom: 20px;
    }
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.sf-lang-selector {
    position: relative;
    margin-left: 16px;
}

.sf-lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--sf-white);
}

.sf-lang-current:hover {
    background: var(--sf-dark-300);
    border-color: var(--sf-accent);
}

.sf-lang-flag {
    font-size: 18px;
    line-height: 1;
}

.sf-lang-arrow {
    width: 14px;
    height: 14px;
    color: var(--sf-text-secondary);
    transition: transform 0.3s ease;
}

.sf-lang-selector.open .sf-lang-arrow {
    transform: rotate(180deg);
}

.sf-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--sf-dark-100);
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sf-lang-selector.open .sf-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sf-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--sf-white-70);
    transition: all 0.2s ease;
    font-size: 14px;
}

.sf-lang-option:hover {
    background: var(--sf-accent-10);
    color: var(--sf-white);
}

.sf-lang-option.active {
    background: var(--sf-accent-20);
    color: var(--sf-accent);
}

.sf-lang-name {
    font-weight: 500;
}

/* Mobile language selector - centered */
@media (max-width: 991px) {
    .sf-lang-selector {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .sf-lang-current {
        padding: 6px 10px;
    }

    .sf-lang-dropdown {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
@media (max-width: 991px) {
    .sf-header-inner {
        position: relative;
    }

    /* Full screen overlay */
    .sf-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--sf-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 9999;
        overflow: hidden;
    }

    /* Animated background gradient */
    .sf-nav::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background:
            radial-gradient(circle at 30% 20%, var(--sf-accent-20) 0%, transparent 40%),
            radial-gradient(circle at 70% 80%, var(--sf-accent-10) 0%, transparent 50%);
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
        transition: opacity 0.6s ease, transform 0.8s var(--sf-ease);
    }

    /* Decorative lines */
    .sf-nav::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--sf-accent-20), transparent);
        transform: translate(-50%, -50%) scaleX(0);
        transition: transform 0.6s var(--sf-ease) 0.2s;
    }

    /* ACTIVE STATE - Menu Open */
    .sf-nav.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        animation: menuFadeIn 0.4s var(--sf-ease) forwards;
    }

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

    .sf-nav.active::before {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    .sf-nav.active::after {
        transform: translate(-50%, -50%) scaleX(1);
    }

    /* Menu links */
    .sf-nav > a {
        font-size: 36px;
        font-weight: 800;
        padding: 16px 32px;
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        position: relative;
        letter-spacing: -0.02em;
    }

    .sf-nav > a::after {
        display: none;
    }

    /* Animated underline on hover */
    .sf-nav > a::before {
        content: '';
        position: absolute;
        bottom: 12px;
        left: 32px;
        right: 32px;
        height: 3px;
        background: var(--sf-accent);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s var(--sf-ease);
    }

    .sf-nav > a:hover::before,
    .sf-nav > a:active::before {
        transform: scaleX(1);
    }

    .sf-nav > a:hover,
    .sf-nav > a:active {
        color: var(--sf-accent);
    }

    /* Staggered entrance animation */
    .sf-nav.active > a {
        animation: menuItemSlideIn 0.6s var(--sf-ease) forwards;
    }

    .sf-nav.active > a:nth-child(1) { animation-delay: 0.1s; }
    .sf-nav.active > a:nth-child(2) { animation-delay: 0.18s; }
    .sf-nav.active > a:nth-child(3) { animation-delay: 0.26s; }
    .sf-nav.active > a:nth-child(4) { animation-delay: 0.34s; }

    @keyframes menuItemSlideIn {
        from {
            opacity: 0;
            transform: translateY(60px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* CTA button in menu */
    .sf-nav-cta {
        margin-top: 48px;
        font-size: 18px !important;
        opacity: 0;
        transform: translateY(30px);
    }

    .sf-nav.active .sf-nav-cta {
        animation: menuItemSlideIn 0.6s var(--sf-ease) 0.42s forwards;
    }

    /* Hamburger menu button */
    .sf-menu-toggle {
        z-index: 10000;
        position: relative;
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0;
        background: var(--sf-dark-300);
        border: 1px solid var(--sf-border);
        border-radius: 12px;
        transition: all 0.4s var(--sf-ease);
        -webkit-tap-highlight-color: transparent;
    }

    .sf-menu-toggle:focus,
    .sf-menu-toggle:focus-visible {
        outline: none;
        background: var(--sf-dark-300);
        border-color: var(--sf-border);
    }

    .sf-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--sf-white);
        border-radius: 2px;
        margin: 3px 0;
        transition: all 0.4s var(--sf-ease);
        transform-origin: center;
    }

    .sf-menu-toggle::before,
    .sf-menu-toggle::after {
        display: none;
    }

    /* Active state - X animation */
    .sf-menu-toggle.active {
        background: var(--sf-dark-300);
        border-color: var(--sf-border);
        transform: rotate(180deg);
    }

    .sf-menu-toggle.active:focus,
    .sf-menu-toggle.active:focus-visible {
        background: var(--sf-dark-300);
    }

    .sf-menu-toggle.active span {
        background: var(--sf-white);
    }

    .sf-menu-toggle.active span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .sf-menu-toggle.active span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }
}

/* ============================================
   TOUCH-FRIENDLY INTERACTIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover transforms on touch devices */
    .sf-service-card:hover,
    .sf-team-card:hover,
    .sf-testimonial-card:hover {
        transform: none;
    }

    /* Make tap targets larger */
    .sf-nav > a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .sf-btn {
        min-height: 52px;
    }

    .sf-work-slider-btn {
        width: 56px;
        height: 56px;
    }

    /* Keep cards slightly elevated for visual hierarchy */
    .sf-service-card:active,
    .sf-team-card:active {
        transform: scale(0.98);
    }
}
