:root {
    --bg-black: #050505;
    --bg-darker: #000000;
    --bg-card: #111111;
    --border-dark: #222222;
    
    --accent-red: #c8102e;
    --accent-red-hover: #e01838;
    --accent-red-glow: rgba(200, 16, 46, 0.25);
    
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;

    --font-sys: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { 
    font-size: 16px; 
    scroll-behavior: smooth; 
    background-color: var(--bg-black);
    overflow-x: hidden; 
    width: 100%; 
    max-width: 100%;
    position: relative;
}

body {
    font-family: var(--font-sys);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-red); }
.text-main { color: var(--text-main); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-sm { font-size: 0.9rem; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.block { display: block; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-center-left { display: flex; align-items: center; justify-content: flex-start; }
.ml-auto { margin-left: auto; }
.gap-sm { gap: 0.5rem; }
.gap-xl { gap: 4rem; }
.pl-md { padding-left: 2rem; }
.pr-sm { padding-right: 1rem; }
.max-w-lg { max-width: 600px; }
.text-leading { font-size: 1.05rem; line-height: 1.7; color: #d0d0d0;}

.py-sm { padding-top: 2rem; padding-bottom: 2rem; }
.py-md { padding-top: 4rem; padding-bottom: 4rem; }
.py-lg { padding-top: 6rem; padding-bottom: 6rem; }
.py-xl { padding-top: 8rem; padding-bottom: 8rem; }
.p-sm { padding: 1rem; }
.p-md { padding: 1.5rem; }
.p-xl { padding: 3rem; }

.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 4rem; }
.mt-xl { margin-top: 6rem; }

.mb-xs { margin-bottom: 0.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 4rem; }
.mb-xl { margin-bottom: 6rem; }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.bg-black { background-color: var(--bg-black); }
.bg-gradient-dark { background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-card) 100%); }
.border-t { border-top: 1px solid var(--border-dark); }
.border-y { border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.rounded { border-radius: var(--radius-md); }

.spotlight {
    position: absolute; top: -20vh; left: 50%; transform: translateX(-50%);
    width: 100%; height: 80vh; 
    background: radial-gradient(ellipse at top, var(--accent-red-glow) 0%, transparent 60%);
    z-index: -1; pointer-events: none;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; }
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.h3-size { font-size: 2.2rem; }
.accent-text { color: var(--accent-red); }
.accent-dot { color: var(--accent-red); }

.section-header.offset-style {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.section-header.offset-style .section-title {
    font-size: 3.5rem;
    margin-bottom: 0.2rem;
    display: block;
}
.section-header.offset-style .section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-left: 0; 
    max-width: 100%; 
    margin-top: 1rem; 
    text-align: left;
}

.section-header.text-center .section-title { font-size: 3rem; margin-bottom: 1rem; }
.section-header.text-center .section-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 2rem; border-radius: var(--radius-full);
    font-size: 1rem; font-weight: 600; transition: all 0.3s ease; cursor: pointer;
}
.btn-primary { background-color: var(--accent-red); color: #fff; box-shadow: 0 4px 14px var(--accent-red-glow); }
.btn-primary:hover { background-color: var(--accent-red-hover); transform: scale(1.02); }
.btn-secondary { background-color: rgba(255, 255, 255, 0.08); color: var(--text-main); backdrop-filter: blur(10px); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.15); }
.btn-outline { border: 1px solid var(--border-dark); padding: 0.5rem 1.5rem; border-radius: var(--radius-full); }
.btn-outline:hover { border-color: var(--accent-red); color: var(--accent-red); }

.pulse-btn { animation: pulseBtn 2s infinite; }
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse-bg { animation: pulseBg 3s infinite alternate; }
@keyframes pulseBg { 0% { opacity: 0.8; } 100% { opacity: 1; filter: brightness(1.2); } }

.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent-red); width: 0%; z-index: 9999; transition: width 0.1s ease; }
#site-header { 
    position: fixed; 
    top: 0; 
    left: 0;
    right: 0;
    margin: 0 auto; 
    width: 100%; 
    z-index: 1000; 
    background: rgba(5, 5, 5, 0.85); 
    border-bottom: 1px solid transparent; 
    border-radius: 0;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                top 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease;
    will-change: width, top, border-radius; 
}

#site-header.scrolled { 
    background: rgba(5, 5, 5, 0.95); 
    border-bottom: 1px solid var(--border-dark); 
}

@supports (backdrop-filter: blur(10px)) { 
    #site-header { backdrop-filter: blur(10px); } 
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
    position: relative; 
    padding: 0 1.5rem;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo a { 
    font-size: 1.5rem; 
    font-weight: 800; 
    letter-spacing: -0.05em; 
    position: relative; 
    z-index: 1002;
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px; 
    z-index: 1005; 
    padding: 10px; 
    position: relative;
}

.hamburger span { 
    width: 30px; 
    height: 2px; 
    background: var(--text-main); 
    transition: 0.3s ease; 
    border-radius: 2px; 
    transform-origin: center;
}

.hamburger::after {
    
    content: '';
    position: absolute;
    top: 4px;      
    right: 2px;    
    width: 8px;    
    height: 8px;
    background-color: #ff3333; 
    border-radius: 50%;
    box-shadow: 0 0 5px #ff3333;
    animation: radar-pulse 1.5s infinite ease-in-out;
}

@keyframes radar-pulse {
    0% {
    
        box-shadow: 0 0 5px #ff3333, 0 0 0 0 rgba(255, 51, 51, 0.7);
    }
    70% {
      
        box-shadow: 0 0 8px #ff3333, 0 0 0 10px rgba(255, 51, 51, 0);
    }
    100% {
       
        box-shadow: 0 0 5px #ff3333, 0 0 0 0 rgba(255, 51, 51, 0);
    }
}

.hamburger.active::after {
    display: none; 
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); position: relative;}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a::after { content:''; position: absolute; bottom: -4px; left:0; width:0%; height:2px; background:var(--accent-red); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

@media (max-width: 768px) {

    #site-header.scrolled {
        width: 90%; 
        max-width: 400px;
        top: 15px; 
        border-radius: 30px; 
        border: 1px solid rgba(255, 50, 50, 0.7);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    #site-header.scrolled .header-container {
        height: 60px;
    }

    .hamburger { 
        display: flex; 
        position: absolute; 
        right: 1.5rem; 
        top: 50%; 
        transform: translateY(-50%); 
    }
    
    .nav-links {
        position: fixed; 
        top: 85px; 
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 90%; 
        max-width: 400px;
        height: auto; 
        background: rgba(10, 10, 10, 0.98); 
        backdrop-filter: blur(15px);
        flex-direction: column; 
        align-items: center; 
        padding: 1.5rem;
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.05);
        transform-origin: top center;
        transform: translateY(-15px) scale(0.98); 
        opacity: 0; 
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.4s;
        z-index: 990; 
    }

    .nav-links.active { 
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a { 
        font-size: 1.2rem; 
        padding: 0.8rem 0; 
        display: block; 
        width: 100%; 
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05); 
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a::after { display: none; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 2.5rem auto; line-height: 1.6;}
.hero-cta { display: flex; gap: 1rem; justify-content: center; }

.hero-3d-wrapper { perspective: 1500px; margin: 4rem auto 0; width: 100%; max-width: 320px; height: 640px; cursor: crosshair; }
.hero-3d-element { width: 100%; height: 100%; transform: rotateX(20deg) rotateY(0deg); transition: transform 0.2s ease-out; transform-style: preserve-3d; }
.screen-mockup {
    width: 100%; height: 100%; background: linear-gradient(135deg, #111, #000);
    border: 14px solid #1c1c1e; border-radius: 48px; position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), inset 0 0 0 2px rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dynamic-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 32%; height: 28px; background: #000; border-radius: 14px; z-index: 10; box-shadow: inset 0 -1px 2px rgba(255,255,255,0.1); }
.mockup-glass { position: absolute; top: 0; left: 0; width: 200%; height: 200%; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%); pointer-events: none; z-index: 5; }
.mockup-content { text-align: center; font-family: monospace; font-size: 1.2rem; color: var(--text-muted); z-index: 2; display: flex; flex-direction: column; align-items: center; }

.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; margin-top: 3rem; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; transition: opacity 0.3s; }
.scroll-hint:hover { opacity: 1; }
.scroll-arrow { margin-top: 0.5rem; animation: bounce 2s infinite; font-size: 1.2rem; }

.card {
    background: var(--bg-card); border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg); padding: 2.5rem;
    position: relative; overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}
.hover-lift:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.15); box-shadow: 0 15px 40px rgba(0,0,0,0.8); }
.premium-card:hover { border-color: rgba(200, 16, 46, 0.4); box-shadow: 0 10px 40px var(--accent-red-glow); }

.hover-shine::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); transition: 0.7s ease; z-index: 1; pointer-events: none;
}
.hover-shine:hover::before { left: 200%; }

.card-icon { margin-bottom: 1.5rem; }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; position: relative; z-index: 2; }
.card p { color: var(--text-muted); position: relative; z-index: 2; line-height: 1.6;}

.service-card.flex-row { display: flex; align-items: center; gap: 2rem; padding: 2.5rem; cursor: pointer; background: var(--bg-card); }
.service-card.flex-row:hover { border-color: rgba(200, 16, 46, 0.3); background: #151515; }
.card-visual-box { flex: 0 0 110px; height: 110px; background: #0a0a0a; border: 1px solid var(--border-dark); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--accent-red); box-shadow: inset 0 0 20px rgba(0,0,0,0.8); transition: transform 0.3s ease;}
.service-card.flex-row:hover .card-visual-box { transform: scale(1.05); }
.card-visual-box svg { width: 44px; height: 44px; }
.service-card .card-content { flex: 1; position: relative; z-index: 2;}
.card-link { display: inline-block; margin-top: 1rem; color: var(--accent-red); font-weight: 600; font-size: 0.9rem; transition: padding 0.3s; }
.service-card:hover .card-link { padding-left: 5px; }

.box-glow { background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.box-glow::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-shadow: inset 0 0 40px rgba(0,0,0,0.8); pointer-events: none; }

.process-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.process-step { position: relative; padding: 2.5rem 2rem; background: #0a0a0a; border-radius: var(--radius-md); border: 1px solid #1a1a1a; overflow: hidden;}
.step-number { font-size: 4.5rem; font-weight: 800; color: rgba(255,255,255,0.03); position: absolute; top: -15px; right: 10px; line-height: 1; }
.step-content { position: relative; z-index: 2; }
.step-content h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1.3rem; }
.step-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;}

.check-item { display: flex; align-items: flex-start; padding: 1.25rem; background: rgba(255,255,255,0.02); border-radius: var(--radius-md); border: 1px solid var(--border-dark); transition: all 0.3s; }
.check-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.check-icon { color: var(--accent-red); font-weight: bold; margin-right: 1rem; font-size: 1.2rem; margin-top: -2px;}

.accordion-container { max-width: 850px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border-dark); }
.accordion-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.75rem 0; font-size: 1.15rem; font-weight: 600; text-align: left; color: #fff;}
.accordion-btn:hover { color: var(--accent-red); }
.accordion-icon { font-size: 1.5rem; color: var(--accent-red); transition: transform 0.3s ease; }
.accordion-btn.active .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out-expo); }
.accordion-content p { padding-bottom: 1.75rem; color: #aaa; line-height: 1.7; font-size: 1rem;}

.hero-sub { padding-top: 150px; }

.toc-btn { padding: 0.6rem 1.2rem; background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: 30px; font-size: 0.9rem; margin: 0.3rem; transition: all 0.3s; color: var(--text-muted);}
.toc-btn:hover { border-color: var(--accent-red); color: #fff; background: #151515; transform: translateY(-2px);}

.work-section { padding: 5rem 0; border-bottom: 1px solid var(--border-dark); }
.work-section:last-child { border-bottom: none; }
.work-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; }
.work-title { font-size: 2.5rem; }
.work-time { color: var(--text-muted); background: #111; padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 0.85rem; border: 1px solid #222;}

.premium-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; color: var(--text-muted); line-height: 1.6;}
.premium-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent-red); font-weight: bold;}

.work-visual { height: 320px; border-radius: var(--radius-lg); background: #0a0a0a; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid #1a1a1a;}
.abstract-before-after { display: flex; width: 100%; height: 100%; }
.ab-half { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.ab-label { position: absolute; bottom: 1rem; font-size: 0.75rem; background: rgba(0,0,0,0.7); padding: 0.4rem 0.8rem; border-radius: 6px; z-index: 10; color: #fff; border: 1px solid #333;}
.before { border-right: 2px solid var(--accent-red); }
.glitch-effect { width: 60%; height: 60%; background: repeating-linear-gradient(45deg, #333, #333 10px, #222 10px, #222 20px); opacity: 0.5; }
.smooth-effect { width: 60%; height: 60%; background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%); border-radius: 8px; box-shadow: 0 0 30px rgba(255,255,255,0.1);}

.battery-indicator { width: 160px; height: 75px; border: 4px solid #333; border-radius: 8px; position: relative; padding: 4px; }
.battery-indicator::after { content: ''; position: absolute; right: -12px; top: 18px; width: 8px; height: 32px; background: #333; border-radius: 0 4px 4px 0; }
.battery-level { height: 100%; background: #c8102e; border-radius: 3px; transition: width 1s; }
.new-level { background: #28a745; position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); opacity: 0; animation: batteryFill 4s infinite alternate; }
@keyframes batteryFill { 0%, 20% { opacity: 0; width: 15%; } 80%, 100% { opacity: 1; width: calc(100% - 8px); box-shadow: 0 0 15px #28a745;} }
.battery-text { position: absolute; width: 100%; text-align: center; top: 23px; left: 0; font-weight: bold; font-size: 0.9rem; color: #fff; mix-blend-mode: difference; }

.motherboard-abstract { position: relative; width: 220px; height: 220px; background: #051005; border: 1px solid #131; border-radius: 12px;}
.chip { position: absolute; background: #111; border: 1px solid #333; color: #666; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; font-weight: bold;}
.core { width: 70px; height: 70px; top: 75px; left: 75px; color: #aaa;}
.ic1 { width: 35px; height: 35px; top: 20px; left: 20px; }
.ic2 { width: 50px; height: 25px; bottom: 30px; right: 30px; }
.pulse-red { animation: pulseRed 2s infinite; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(200,16,46,0.6); } 70% { box-shadow: 0 0 0 15px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }

.lens-abstract { position: relative; width: 160px; height: 160px; }
.lens-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #333; }
.r1 { width: 160px; height: 160px; border-color: #1a1a1a; box-shadow: inset 0 0 20px rgba(0,0,0,0.8);}
.r2 { width: 110px; height: 110px; border-color: #333; }
.r3 { width: 70px; height: 70px; border-color: #555; }
.lens-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #000 60%); box-shadow: 0 0 10px rgba(255,255,255,0.2);}

.timeline { position: relative; max-width: 850px; margin: 0 auto; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--border-dark); }
.timeline-item { position: relative; margin-bottom: 4rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -2.9rem; top: 0.5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 12px var(--accent-red); border: 3px solid #000;}
.timeline-content h3 { font-size: 1.6rem; margin-bottom: 0.5rem; color: #fff;}

.dash-card { background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; }
.dash-score { font-size: 3.5rem; font-weight: 800; line-height: 1; color: #fff; }
.dash-max { font-size: 1.5rem; color: var(--text-muted); }
.dash-stars { color: #f5c518; font-size: 1.6rem; margin-top: 0.5rem; letter-spacing: 2px;}

.satisfaction-bars { display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.bar-row { width: 100%; }
.bar-label { font-size: 0.9rem; display: block; margin-bottom: 0.4rem; color: var(--text-muted); }
.bar-track { width: 100%; height: 8px; background: #222; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent-red); border-radius: 4px; }

.masonry-grid { column-count: 3; column-gap: 2rem; }
.review-card { break-inside: avoid; margin-bottom: 2rem; padding: 1.75rem; border: 1px solid #1a1a1a; background: #0c0c0c;}
.review-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.review-stars { color: #f5c518; letter-spacing: 2px; }
.review-body { font-size: 0.95rem; color: #bbb; line-height: 1.6;}

.contact-methods { display: flex; flex-direction: column; width: 100%;}
.contact-card { display: flex; align-items: center; padding: 1.75rem; background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: var(--radius-md); }
.contact-icon { margin-right: 1.5rem; }

#site-footer { border-top: 1px solid var(--border-dark); padding: 5rem 0 2rem; background: #020202; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;}
.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; font-size: 1.15rem; color: #fff;}
.footer-links ul li { margin-bottom: 0.85rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s;}
.footer-links a:hover { color: var(--text-main); }
.footer-bottom { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid #111; text-align: center; color: #555; font-size: 0.85rem; }
.reveal { opacity: 0; visibility: hidden; }
.reveal.active { opacity: 1; visibility: visible; }
.fade-up { transform: translateY(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.fade-up.active { transform: translateY(0); }

@media (max-width: 1024px) {
    .section-header.offset-style .section-desc { margin-left: 10%; max-width: 80%; }
    .hero-title { font-size: 3.8rem; }
    .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section-header.offset-style .section-title { font-size: 2.5rem; }
    .section-header.offset-style .section-desc { margin-left: 0; max-width: 100%; margin-top: 1rem; font-size: 1.1rem;}
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; }
    .hero-3d-wrapper { width: 100%; max-width: 280px; height: 560px; margin: 3rem auto 0; }
    .process-timeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .masonry-grid { column-count: 1; }
    .service-card.flex-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; text-align: left; padding: 2rem;}
    .card-visual-box { width: 100%; flex: 0 0 auto; height: 140px; }
    .mobile-pl-0 { padding-left: 0; margin-top: 1.5rem;}
    .work-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .timeline { padding-left: 1.5rem; margin-left: 10px; }
    .timeline::before { left: 0; }
    .timeline-dot { left: -1.35rem; }
    .contact-card { flex-direction: column; text-align: center; gap: 1rem; }
    .contact-card .btn { margin-left: 0; width: 100%; }
    .contact-icon { margin-right: 0; }
    .contact-details.pr-sm { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; visibility: visible; transform: none; }
    .hero-3d-element { transform: none !important; }
}

.dynamic-brand {
  display: inline-block;
  min-width: 140px; 
  transition: opacity 0.4s ease-in-out; 
}

.fade-out {
  opacity: 0;
}

.brand-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: #000000; 
  padding: 24px 0; 
  box-sizing: border-box;
  display: flex;
  white-space: nowrap;
  border-top: 1px solid #1a1a1a; 
  border-bottom: 1px solid #1a1a1a;
}

.brand-ticker-track {
  display: inline-flex;
  align-items: center; 
  animation: ticker-scroll 25s linear infinite; 
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 40px; 
  font-size: 16px; 
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6); 
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ticker-item::after {
  content: "&";
  color: rgba(255, 255, 255, 0.3); 
  margin-left: 40px; 
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-card {
  background-color: #1c1c1e;
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #2c2c2e;
  border: none;
  font-size: 24px;
  color: #f5f5f7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; 
  line-height: 0; 
  padding-bottom: 6px;
  transition: background 0.2s, color 0.2s;
}

.popup-close:hover {
  background: #3a3a3c;
  color: #ffffff;
}

.popup-title {
  font-size: 20px;
  font-weight: 600;
  color: #f5f5f7;
  margin: 0 0 10px 0;
}

.popup-text {
  font-size: 15px;
  color: #a1a1a6;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.popup-btn {
  display: inline-block;
  background-color: #f5f5f7; 
  color: #1c1c1e; 
  text-decoration: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px; 
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-btn:hover {
  background-color: #ffffff;
  transform: scale(1.03); 
}

.popup-overlay.show-popup {
  opacity: 1;
  visibility: visible;
}
.popup-overlay.show-popup .popup-card {
  transform: translateY(0) scale(1);
}

.popup-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.animated-scooter {
  display: block;
}

.animated-scooter path,
.animated-scooter circle {
  stroke: #f5f5f7; 
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.wind-line {
  stroke: #a1a1a6 !important; 
  stroke-width: 2 !important;
  stroke-dasharray: 10 20;
  animation: dash-wind 1s linear infinite;
}

.scooter-body {
  animation: bounce-drive 0.8s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

.wheel {
  animation: spin-wheel 0.4s linear infinite;
}

.back-wheel {
  transform-origin: 22px 46px;
}

.front-wheel {
  transform-origin: 50px 46px;
}

.scooter-bag {
  stroke: none !important;
  fill: #ff3b30 !important;
}

.wind-1 { animation-duration: 0.8s; }
.wind-2 { animation-duration: 1.2s; }
.wind-3 { animation-duration: 1s; }

@keyframes bounce-drive {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-3px); }
}

@keyframes dash-wind {
  0% { transform: translateX(10px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(-30px); opacity: 0; }
}

@keyframes spin-wheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pulse-line {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawPulse 2s linear infinite;
  }

  @keyframes drawPulse {
    0% {
      stroke-dashoffset: 50;
    }
    50% {
      stroke-dashoffset: 0;
    }
    100% {
      stroke-dashoffset: -50;
    }
  }

  .mockup-content svg {
    filter: drop-shadow(0 0 3px var(--accent-red, #ff0000));
  }

.premium-call-badge {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  padding: 12px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 59, 48, 0.15); 
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
  overflow: hidden;
  z-index: 9999;
  cursor: pointer;
}

.call-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 24px;
  height: 24px;
  animation: pulse-ring 2.5s infinite; 
}

.call-badge-text {
  margin-left: 12px;
  margin-right: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 1;
  max-width: 150px; 
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-call-badge.scrolled {
  padding: 14px; 
  border-radius: 50%;
  bottom: 30px; 
  right: 30px;
  background: rgba(10, 10, 10, 0.85); 
}

.premium-call-badge.scrolled .call-badge-text {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  margin-right: 0;
  transform: translateX(10px);
}

.premium-call-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 59, 48, 0.25);
}

@keyframes pulse-ring {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}

.trade-visual-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden; 
}

.floating-phone {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(200, 16, 46, 0.15));
    animation: phoneFloatTrade 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; 
}

@keyframes phoneFloatTrade {
    0%, 100% { transform: translateY(0) rotateY(-5deg) rotateX(15deg); }
    50% { transform: translateY(-25px) rotateY(5deg) rotateX(10deg); }
}

.phone-part {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
}

.trade-visual-wrapper:hover .layer-screen { 
    transform: translateZ(100px) translateY(-30px) rotateX(-5deg); 
    opacity: 0.9;
}
.trade-visual-wrapper:hover .layer-body { 
    transform: translateZ(50px) translateY(-15px); 
    opacity: 0.8;
}
.trade-visual-wrapper:hover .layer-back { 
    transform: translateZ(0); 
}

.scan-line {
    width: 220px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--accent-red);
    animation: scanAnimation 4s ease-in-out infinite;
    z-index: 100; 
    pointer-events: none;
}

@keyframes scanAnimation {
    0% { top: 25%; opacity: 0; }
    30%, 70% { opacity: 1; }
    100% { top: 75%; opacity: 0; }
}

@media (min-width: 769px) {
    .trade-hero-content {
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .trade-hero-content .hero-title {
        margin-left: 0 !important;
    }
    .trade-hero-content .hero-subtitle {
        margin-left: 0 !important;
        text-align: left !important;
    }
    .trade-hero-content .hero-cta {
        justify-content: flex-start !important;
    }
}

.premium-list {
    margin-top: 2rem;
    padding-left: 0;
}

.premium-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    margin-bottom: 1rem !important;
    text-align: left !important;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px; 
}

.contact-card .btn-outline {
    margin-top: 15px;
    width: fit-content;
    border-color: rgba(200, 16, 46, 0.5);
}

.contact-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-card p {
    max-width: 320px;
    margin: 0 auto 1.5rem;
}

.badge-premium {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(200, 16, 46, 0.1);
    border: 1px solid rgba(200, 16, 46, 0.3);
    color: var(--accent-red);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sensor-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--accent-red);
    font-family: monospace;
    opacity: 0;
    transition: 0.5s ease;
    z-index: 60;
}

.sensor-node::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
}

.node-1 { top: 20%; left: 10%; }
.node-2 { top: 50%; right: 10%; flex-direction: row-reverse; }
.node-3 { bottom: 25%; left: 15%; }

.trade-visual-wrapper:hover .sensor-node { opacity: 1; }

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.f-icon {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(200, 16, 46, 0.2);
    border-bottom: 2px solid var(--accent-red);
}

.trade-cta-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(145deg, var(--accent-red), transparent);
}

.cta-inner {
    background: #080808;
    border-radius: 23px;
    padding: 3rem 2rem;
    text-align: center;
}

.whatsapp-card-mini {
    background: #111;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    border: 1px solid #222;
}

.w-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.w-avatar {
    width: 44px; 
    height: 44px;
    background: #1a1a1a; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--accent-red); 
    padding: 6px; 
}

.w-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 0%; 
}

.w-info { display: flex; flex-direction: column; }
.w-name { font-size: 0.9rem; font-weight: 600; }
.w-status { font-size: 0.7rem; color: #44bd32; }

.w-msg {
    background: #1a1a1a;
    padding: 10px 14px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid #252525;
}

.btn-full { width: 100%; }

@media (max-width: 768px) {
    .trade-hero-content { text-align: center; }
    .hero-cta { justify-content: center; }
    .sensor-node { display: none; } 
}

:root.light-theme {
    --bg-black: #f5f5f7; 
    --bg-darker: #ffffff;
    --bg-card: #ffffff; 
    --border-dark: #d2d2d7;
    --accent-red-glow: rgba(200, 16, 46, 0.15);
    --text-main: #1d1d1f; 
    --text-muted: #86868b;
}

.light-theme .text-leading { color: #555; }
.light-theme .screen-mockup { background: linear-gradient(135deg, #f0f0f0, #e0e0e0); border-color: #d2d2d7; }
.light-theme .dynamic-island { background: #1d1d1f; }
.light-theme .service-card.flex-row:hover { background: #f9f9f9; }
.light-theme .card-visual-box { background: #f5f5f7; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); border-color: #d2d2d7; }
.light-theme .process-step { background: #ffffff; border-color: #d2d2d7; }
.light-theme .step-number { color: rgba(0,0,0,0.05); }
.light-theme .step-content h4,
.light-theme .accordion-btn,
.light-theme .timeline-content h3,
.light-theme .dash-score,
.light-theme .popup-title,
.light-theme .work-title { color: #1d1d1f; }
.light-theme .check-item { background: #f9f9f9; border-color: #d2d2d7; }
.light-theme .check-item:hover { background: #f0f0f0; }
.light-theme .work-time { background: #f0f0f0; border-color: #d2d2d7; color: #555; }
.light-theme .work-visual { background: #f9f9f9; border-color: #d2d2d7; }
.light-theme .review-card { background: #ffffff; border-color: #d2d2d7; }
.light-theme #site-footer { background: #f0f0f0; border-top-color: #d2d2d7; }
.light-theme .footer-bottom { border-top-color: #d2d2d7; color: #888; }
.light-theme .footer-links a, .light-theme .footer-links h4, .light-theme .footer-contact h4 { color: #1d1d1f; }
.light-theme .popup-card { background-color: #ffffff; }
.light-theme .popup-close { background: #f0f0f0; color: #1d1d1f; }
.light-theme .popup-btn { background-color: #1d1d1f; color: #ffffff; }
.light-theme .brand-ticker-wrap { background-color: #f5f5f7; border-color: #d2d2d7; }
.light-theme .ticker-item { color: rgba(0,0,0,0.6); }
.light-theme .ticker-item::after { color: rgba(0,0,0,0.3); }
.light-theme .cta-inner { background: #ffffff; }
.light-theme .whatsapp-card-mini { background: #f9f9f9; border-color: #d2d2d7; }
.light-theme .w-msg { background: #ffffff; border-color: #d2d2d7; color: #1d1d1f; }
.light-theme .w-avatar { background: #f0f0f0; }
.light-theme .premium-call-badge { background: rgba(255,255,255,0.85); color: #1d1d1f; border-color: #d2d2d7; }
.light-theme .premium-call-badge.scrolled { background: rgba(255,255,255,0.95); }
.light-theme #site-header { background: rgba(245, 245, 247, 0.85); border-bottom-color: transparent; }
.light-theme #site-header.scrolled { background: rgba(245, 245, 247, 0.95); border-bottom-color: #d2d2d7; }
.light-theme .logo a { color: #1d1d1f; }
.light-theme .nav-links a { color: #86868b; }
.light-theme .nav-links a:hover, .light-theme .nav-links a.active { color: #1d1d1f; }
.light-theme .hamburger span { background: #1d1d1f; }

.light-theme .nav-links { 
    background: rgba(245, 245, 247, 0.98); 
    border-left-color: #d2d2d7; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); 
}
.light-theme .nav-links a { border-bottom-color: rgba(0,0,0,0.05); }

.theme-toggle-btn {
    position: fixed;
    bottom: 35px;
    left: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(200, 16, 46, 0.4); 
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn svg { width: 24px; height: 24px; position: absolute; transition: opacity 0.3s, transform 0.3s; }
.moon-icon { opacity: 0; transform: rotate(-90deg); }
:root.light-theme .sun-icon { opacity: 0; transform: rotate(90deg); }
:root.light-theme .moon-icon { opacity: 1; transform: rotate(0); }

::view-transition-old(root) {
    animation: none;
    z-index: 1; 
}
::view-transition-new(root) {
    animation: none;
    z-index: 2;
}

@media (max-width: 768px) {
    body {
        zoom: 0.87; 
    }
}

.ios-notification {
    position: fixed;
    top: -100px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(30, 30, 30, 0.75); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; 
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000; 
    transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
    overflow: visible;
    pointer-events: none; 
    cursor: pointer;
}

.ios-notification.show {
    top: 20px;
    opacity: 1;
    pointer-events: auto;
}

.notification-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.3);
}

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.notification-content {
    display: flex;
    flex-direction: column;
}

.notification-content h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.notification-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.3;
    margin-top: 2px;
}

:root.light-theme .ios-notification {
    background: rgba(250, 250, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
:root.light-theme .notification-content h4 {
    color: #1d1d1f;
}
:root.light-theme .notification-content p {
    color: #86868b;
}

.search-wrapper {
    width: 100%;
    max-width: 350px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Yaylanma efekti */
    margin: 0 auto;
}

.search-container-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-box {
    position: absolute;
    left: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.search-svg {
    color: var(--accent-red);
    transition: transform 0.4s ease;
}

.icon-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-red);
    border-right: 2px solid var(--accent-red);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#blog-search {
    width: 100%;
    padding: 14px 20px 14px 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: 50px; 
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.5s ease;
    backdrop-filter: blur(8px);
}

.search-wrapper:focus-within {
    max-width: 550px;
}

.search-wrapper:focus-within .icon-spinner {
    opacity: 1;
    animation: spin 0.8s linear infinite; 
}

.search-wrapper:focus-within .search-svg {
    transform: scale(0.8); 
}

#blog-search:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 25px rgba(122, 0, 0, 0.15), inset 0 0 10px rgba(122, 0, 0, 0.05);
    background: rgba(122, 0, 0, 0.05);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

:root.light-theme #blog-search {
    background: #f9f9f9;
}

@media screen and (max-width: 768px) {
    .search-section {
        margin-top: -45px; 
        padding-top: 0;
        padding-bottom: 30px;
        position: relative;
        z-index: 20; 
    }

    .search-wrapper {
        max-width: 90%; 
        transform: translateY(-20px); 
    }

    .search-wrapper:focus-within {
        max-width: 95%;
    }
}

.blog-link {
    position: relative;
    display: inline-block; 
}

.yeni-badge {
    position: absolute;
    left: 60%; 
    top: 0;     
    margin-left: 2px; 
    margin-top: -5px;
    color: #22c55e; 
    font-size: 0.65rem; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    pointer-events: none; 
    transform: none; 
    text-shadow: 0 0 5px #22c55e, 
                 0 0 15px #22c55e, 
                 0 0 30px rgba(34, 197, 94, 0.8);
    
    animation: continuous-glitch 2s infinite linear alternate-reverse;
}

@media (max-width: 768px) {
    .yeni-badge {
        position: absolute;
        left: 60%; 
        top: 0;     
        margin-left: 2px; 
        margin-top: 3px;
        font-size: 0.85rem; 
    }
}

@keyframes continuous-glitch {

    0%, 14%, 16%, 34%, 36%, 100% {
        transform: translate(0, 0) skew(0deg);
        opacity: 1;
        text-shadow: 0 0 5px #22c55e, 0 0 15px #22c55e, 0 0 30px rgba(34, 197, 94, 0.8);
    }

    15% {
        transform: translate(-2px, 1px) skew(-10deg);
        opacity: 0.8;
        text-shadow: -2px 0 rgba(255, 255, 255, 0.9), 
                      2px 0 #22c55e, 
                      0 0 20px #22c55e;
    }
    35% {
        transform: translate(2px, -1px) skew(20deg);
        opacity: 0.9;
        text-shadow: 2px 0 rgba(255, 255, 255, 0.9), 
                     -2px 0 #22c55e, 
                     0 0 20px #22c55e;
    }
   
}