/* ============================================
   S20 Web — Custom Styles
   Slate + Coral palette — light & airy
   ============================================ */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Navbar ---- */
#main-nav.scrolled {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}
.dropdown-panel {
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.group:hover .dropdown-panel {
    transform: translateY(0);
}

/* ---- Hero ---- */
.hero-section {
    background:
        linear-gradient(
            135deg,
            #18141c 0%,
            #1e1a2a 15%,
            #231d2e 30%,
            #2a1f28 50%,
            #2d1e22 65%,
            #261a20 80%,
            #1c1520 100%
        );
}
/* Layered glow zones — visible but not garish */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 0% 100%, rgba(120, 50, 180, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 100% 0%, rgba(255, 100, 40, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 30% 50% at 60% 80%, rgba(200, 60, 120, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
/* Very fine noise grain for matte depth */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #ff8a50 0%, #ff6b2c 50%, #f05a1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-cta-primary {
    box-shadow: 0 4px 20px rgba(240, 90, 30, 0.3);
}
.hero-cta-primary:hover {
    box-shadow: 0 6px 28px rgba(240, 90, 30, 0.45);
}

@media (min-width: 1024px) {
    .hero-browser-frame {
        transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
        transition: transform 0.5s ease;
    }
    .hero-browser-frame:hover {
        transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
    }
}

.hero-text-enter { animation: heroSlideIn 0.8s ease-out both; }
.hero-image-enter { animation: heroSlideIn 0.8s ease-out 0.15s both; }
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Frosted glass cards ---- */
.frost-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* ---- Pricing section background ---- */
.pricing-section {
    background: linear-gradient(180deg, #fef7f2 0%, #faf5ff 50%, #f8fafc 100%);
}

/* ---- Reusable animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger > .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger > .fade-up:nth-child(2) { transition-delay: 100ms; }
.stagger > .fade-up:nth-child(3) { transition-delay: 200ms; }
.stagger > .fade-up:nth-child(4) { transition-delay: 300ms; }
.stagger > .fade-up:nth-child(5) { transition-delay: 400ms; }
.stagger > .fade-up:nth-child(6) { transition-delay: 500ms; }

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
}

/* ---- Image placeholders ---- */
.img-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #eef1f5 100%);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 0.875rem;
    border: 2px dashed #cbd5e1; border-radius: 0.75rem;
    overflow: hidden; position: relative;
}
.img-placeholder img {
    width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}

.gradient-text {
    background: linear-gradient(135deg, #ff6b2c 0%, #ff8a50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Section backgrounds ---- */
.section-warm-light {
    background: linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
}
.section-cool-light {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* ---- Testimonial ---- */
.testimonial-card { position: relative; }
.testimonial-card::before {
    content: '\201C'; position: absolute;
    top: -8px; left: 16px; font-size: 4rem; line-height: 1;
    color: rgba(255, 107, 44, 0.1); font-family: Georgia, serif;
}

/* ---- Portfolio overlay ---- */
.portfolio-item { position: relative; overflow: hidden; border-radius: 0.75rem; }
.portfolio-item .overlay {
    position: absolute; inset: 0;
    background: rgba(51, 65, 85, 0.7);
    opacity: 0; transition: opacity 0.3s ease;
    display: flex; align-items: center; justify-content: center; color: white;
}
.portfolio-item:hover .overlay { opacity: 1; }

/* ---- Mobile menu ---- */
#mobile-menu {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}
#mobile-menu.open { display: block; max-height: 600px; }

/* ---- Focus ---- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #ff6b2c; outline-offset: 2px; border-radius: 4px;
}

/* ---- Footer ---- */
.footer-bg {
    background:
        linear-gradient(
            160deg,
            #1c1520 0%,
            #211a28 20%,
            #281e2c 40%,
            #2c1f26 60%,
            #241a22 80%,
            #18141c 100%
        );
}
.footer-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(120, 50, 180, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 100% 100%, rgba(255, 100, 40, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.footer-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
}