/* ================================
   DelegaTuEcom — Light Premium Theme
   ================================ */

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #FF5A5F;
    --bg-color: #F9FAFB;
    --bg-section: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

h1 span, h2 span, .logo span {
    color: var(--primary);
}

img { display: block; max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-section); }

/* ---- Section Utilities ---- */
.section-tag {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-ghost {
    padding: 16px 40px;
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}
.btn-instagram:hover {
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.6);
}

/* ---- Glassmorphism ---- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* ================================
   HEADER
   ================================ */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s var(--ease);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* ================================
   1. HERO
   ================================ */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.12;
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.08;
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-tag {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    font-weight: 900;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---- Hero 3D Scene: Shopify + Cart + Planet ---- */
.hero-3d-scene {
    width: 360px;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.scene-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.12;
    border-radius: 50%;
    filter: blur(40px);
    animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.18; transform: scale(1.08); }
}

.shopify-logo {
    width: 160px;
    height: 180px;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    transition: transform 1s var(--ease);
}

.shopify-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-emoji {
    position: absolute;
    font-size: 3.2rem;
    z-index: 3;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.emoji-cart {
    top: 30px;
    right: 20px;
    animation: float-cart 5s ease-in-out infinite;
}

.emoji-planet {
    bottom: 50px;
    left: 20px;
    animation: float-planet 6s ease-in-out infinite;
}

@keyframes float-cart {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

@keyframes float-planet {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-6deg); }
}

.scene-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(79, 70, 229, 0.08);
    border-radius: 50%;
    animation: ring-spin 20s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================
   2. SERVICES
   ================================ */
section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(79, 70, 229, 0.06);
    line-height: 1;
}

.service-card .icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: inline-block;
    padding: 12px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 15px;
}

.service-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================
   3. RESULTS (Cases)
   ================================ */
.success-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.centered-card {
    grid-column: 1 / -1;
    max-width: 540px;
    margin: 0 auto;
}

.success-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}

.success-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.success-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.success-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.6s var(--ease);
}

.success-card:hover .success-img-wrapper img {
    transform: scale(1.03);
}

.success-info {
    padding: 28px;
    flex-grow: 1;
}

.result-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.25);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.success-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.success-info p {
    color: var(--text-muted);
    line-height: 1.7;
}

.success-disclaimer {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: 30px;
}

/* ================================
   4. TESTIMONIALS
   ================================ */
.testimonials-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.4s var(--ease);
}
.testimonial-card:hover { transform: translateY(-5px); }

.quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.client-name {
    font-weight: 700;
    color: var(--text-main);
}

/* ================================
   5. ABOUT / TRUST
   ================================ */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-top: 20px;
}

.about-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    padding: 30px;
    text-align: center;
    transition: transform 0.4s var(--ease);
}
.stat-item:hover { transform: translateY(-5px); }

.stat-item:nth-child(3) {
    grid-column: span 2;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.stat-text {
    font-weight: 600;
    color: var(--text-muted);
}

/* ================================
   6. FINAL CTA
   ================================ */
.final-cta {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(255, 90, 95, 0.04));
    position: relative;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- FOOTER ---- */
footer {
    padding: 40px 0;
    background: white;
    color: var(--text-muted);
    border-top: 1px solid #eee;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 992px) {
    .hero-container, .about-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-3d-scene { width: 260px; height: 280px; }
    .shopify-logo { width: 120px; height: 140px; }
    .floating-emoji { font-size: 2.4rem; }
    .success-cases-grid { grid-template-columns: 1fr; }
    nav { display: none; }
}

@media (max-width: 768px) {
    .hero { padding: 130px 0 60px; }
    .hero-3d-scene { width: 220px; height: 240px; }
    .shopify-logo { width: 100px; height: 120px; }
    .services-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .stat-item:nth-child(3) { grid-column: span 1; }
    .testimonials-wrapper { flex-direction: column; }
    .testimonial-card { min-width: auto; }
    section { padding: 70px 0; }
}
