/* ═══════════════════════════════════════════════════════════════
   💎 KODELYX PREMIUM DESIGN SYSTEM & BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.25);
    
    /* Elegant Modern HSL Palettes */
    --primary: #6366f1;       /* Violet / Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --accent: #a855f7;        /* Purple */
    --accent-glow: rgba(168, 85, 247, 0.12);
    --whatsapp: #25d366;      /* Emerald WhatsApp Green */
    --whatsapp-glow: rgba(37, 211, 102, 0.12);
    
    /* Text colors */
    --text-white: #ffffff;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    /* Animation Easing */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & DEFAULTS ──────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ─── GRID / LAYOUT UTILITIES ───────────────────────────── */
.section-padding {
    padding: 6rem 1.5rem;
}
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* ─── TEXT GRADIENTS & TYPOGRAPHY ────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #a855f7 70%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-whatsapp {
    background: linear-gradient(135deg, #ffffff 40%, #25d366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

p.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    font-weight: 300;
}

@media (max-width: 768px) {
    h2.section-title {
        font-size: 2rem;
    }
}

/* ─── DYNAMIC BACKGROUNDS & GLOWS ───────────────────────── */
canvas#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.glow-1 {
    top: -10%;
    left: 5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: 5%;
    right: -5%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

.glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--whatsapp-glow) 0%, rgba(0,0,0,0) 70%);
    animation: floatGlow 18s infinite alternate ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #20ba56;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* ─── STICKY HEADER ─────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

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

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* ─── HERO SECTION ──────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    z-index: 10;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
    z-index: 5;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: #818cf8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── ABOUT / SERVICES SECTION ──────────────────────────── */
.services-grid {
    display: grid;
    grid-template-cols: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─── PORTFOLIO / SHOWCASE ──────────────────────────────── */
.showcase-grid {
    display: grid;
    grid-template-cols: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-cols: 1fr;
    }
}

.showcase-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.showcase-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: var(--whatsapp);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.showcase-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.showcase-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.showcase-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.showcase-link {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.showcase-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* ─── TECH BADGES ───────────────────────────────────────── */
.tech-container {
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.tech-badge:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    color: white;
}

/* ─── ESTIMATOR / PLANNER SECTION ───────────────────────── */
.planner-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
}

@media (max-width: 600px) {
    .planner-card {
        padding: 1.5rem;
    }
}

.planner-step {
    margin-bottom: 2.2rem;
}

.planner-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

/* Selectable options grid */
.options-grid {
    display: grid;
    grid-template-cols: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 1rem 0.8rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.option-btn.selected {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: #818cf8;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* Form Inputs */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020617;
    padding: 4rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links li a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
