/* Website Design Specific Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #2A8CA6 0%, #4DB3D8 100%);
    --dark-gradient: linear-gradient(120deg, #1F2937, #111827);
}

/* --- Hero Section Enhanced --- */
.web-design-hero {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, #1F2937, #111827);
    color: white;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.web-design-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero_bg_user.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.web-design-hero .container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text-content {
    animation: fadeUp 1s ease-out forwards;
}

/* Badge & Typography */
.badge-new {
    display: inline-block;
    background: rgba(42, 140, 166, 0.2);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(42, 140, 166, 0.4);
    box-shadow: 0 0 15px rgba(42, 140, 166, 0.2);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards 0.2s;
}

.hero-title-large {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ffffff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards 0.4s;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-sub {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards 0.6s;
}

.hero-btns {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards 0.8s;
}

/* --- Hero Visual Side --- */
.hero-visual-side {
    position: relative;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glowing Aura behind browser */
.hero-visual-side::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(42, 140, 166, 0.4) 0%, rgba(99, 102, 241, 0.2) 40%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: pulseGlow 6s infinite alternate;
}

.browser-mockup {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    animation: floatOrganic 8s ease-in-out infinite;
}

.browser-header {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #FF5F56;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dot:nth-child(2) {
    background: #FFBD2E;
}

.dot:nth-child(3) {
    background: #27C93F;
}

.browser-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0B1120;
}

/* --- Showcase Slider --- */
.website-showcase-slider {
    position: absolute;
    inset: 0;
}

.web-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideCycle 12s infinite;
}

/* Delays */
.slide-saas {
    animation-delay: 0s;
}

.slide-ecom {
    animation-delay: 4s;
}

.slide-port {
    animation-delay: 8s;
}

/* Internal Reveal Animation */
@keyframes elementReveal {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    4%,
    30% {
        opacity: 1;
        transform: translateY(0);
    }

    36%,
    100% {
        opacity: 0;
        transform: translateY(-5px);
    }
}

/* Slide 1: SaaS */
.slide-saas {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
}

.mini-sidebar {
    width: 60px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: elementReveal 12s infinite 0.1s;
}

.mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-header {
    height: 45px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    opacity: 0;
    animation: elementReveal 12s infinite 0.2s;
}

.mini-grid {
    display: flex;
    gap: 15px;
    height: 90px;
}

.mini-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.mini-card.c1 {
    border-top: 3px solid #2A8CA6;
    animation: elementReveal 12s infinite 0.3s;
}

.mini-card.c2 {
    border-top: 3px solid #4DB3D8;
    animation: elementReveal 12s infinite 0.4s;
}

.mini-card.c3 {
    border-top: 3px solid #6366f1;
    animation: elementReveal 12s infinite 0.5s;
}

.mini-graph {
    flex: 1;
    background: linear-gradient(180deg, rgba(42, 140, 166, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(42, 140, 166, 0.2);
    border-radius: 10px;
    position: relative;
    opacity: 0;
    animation: elementReveal 12s infinite 0.6s;
    overflow: hidden;
}

.mini-graph::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0 20 Q 25 5, 50 15 T 100 0 L 100 20 L 0 20 Z" fill="rgba(77, 179, 216, 0.3)"/></svg>');
    background-size: 200% 100%;
    opacity: 0.8;
    animation: waveMove 4s linear infinite;
}

@keyframes waveMove {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Slide 2: E-Commerce */
.slide-ecom {
    align-items: center;
}

.mini-nav {
    width: 100%;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 10px;
    opacity: 0;
    animation: elementReveal 12s infinite 4.1s;
}

.mini-hero-banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(120deg, #ff7e5f, #feb47b);
    border-radius: 12px;
    margin-bottom: 15px;
    opacity: 0;
    animation: elementReveal 12s infinite 4.2s;
    position: relative;
    overflow: hidden;
}

.mini-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shineBanner 3s infinite 4s;
}

@keyframes shineBanner {
    0% {
        transform: skewX(-20deg) translateX(-150%);
    }

    20% {
        transform: skewX(-20deg) translateX(150%);
    }

    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

.mini-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    flex: 1;
}

.mini-prod {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    height: 100%;
}

.mini-prod:nth-child(1) {
    animation: elementReveal 12s infinite 4.3s;
}

.mini-prod:nth-child(2) {
    animation: elementReveal 12s infinite 4.4s;
}

.mini-prod:nth-child(3) {
    animation: elementReveal 12s infinite 4.5s;
}

.mini-prod:nth-child(4) {
    animation: elementReveal 12s infinite 4.6s;
}

/* Slide 3: Portfolio */
.slide-port {
    justify-content: center;
    align-items: center;
}

.mini-port-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 30px;
}

.mini-big-text {
    flex: 1;
    height: 120px;
    background:
        linear-gradient(90deg, #fff 40%, transparent 0) 0 0 / 100% 20px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 70%, transparent 0) 0 35px / 100% 15px no-repeat,
        linear-gradient(90deg, var(--primary) 30%, transparent 0) 0 70px / 100% 30px no-repeat;
    opacity: 0;
    animation: elementReveal 12s infinite 8.2s;
}

.mini-image-float {
    width: 180px;
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: -15px 15px 0 rgba(77, 179, 216, 0.2);
    opacity: 0;
    animation: elementReveal 12s infinite 8.4s;
}

/* --- Global Animations --- */

/* Float Organic */
@keyframes floatOrganic {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(0);
    }

    33% {
        transform: perspective(1000px) rotateY(-6deg) rotateX(6deg) translateY(-15px);
    }

    66% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) translateY(-8px);
    }
}

/* Background Pulse */
@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Slide Cycle */
@keyframes slideCycle {
    0% {
        opacity: 0;
        z-index: 1;
        pointer-events: none;
    }

    2% {
        opacity: 1;
        z-index: 10;
        pointer-events: auto;
    }

    33% {
        opacity: 1;
        z-index: 10;
        pointer-events: auto;
    }

    36% {
        opacity: 0;
        z-index: 1;
        pointer-events: none;
    }

    100% {
        opacity: 0;
        z-index: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Feature Grid (Preserved) --- */
.design-features {
    padding: 100px 0;
    background: #F8FAFC;
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(42, 140, 166, 0.15);
}

.feature-box:hover::before {
    height: 100%;
}

.feat-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feat-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* --- Highlight Section (Preserved) --- */
.highlight-ribbon {
    background: var(--primary-gradient);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.highlight-ribbon h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .web-design-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual-side {
        display: flex;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.7);
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 0.25;
        pointer-events: none;
        justify-content: center;
        align-items: center;
    }

    .hero-text-content {
        position: relative;
        z-index: 2;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }

    .features-grid-3 {
        grid-template-columns: 1fr;
    }
}