:root {
    /* Color Palette - Leonardo AI Aesthetic */
    --bg-dark: #09090b; /* Zinc 950 */
    --deep-black: #000000;
    --text-white: #ffffff;
    --text-muted: #a1a1aa; /* Zinc 400 */
    --glass-bg: rgba(24, 24, 27, 0.4); /* Zinc 900 semi-transparent */
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-glow: rgba(139, 92, 246, 0.45); /* Violet */
    --secondary-glow: rgba(59, 130, 246, 0.4); /* Blue */
    --tertiary-glow: rgba(236, 72, 153, 0.3); /* Pink */
    
    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Controller */
#bg-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* AI Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: floatOrb 20s infinite ease-in-out alternate;
    opacity: 0.8;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-glow), transparent 60%);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--secondary-glow), transparent 60%);
    animation-delay: -5s;
}

.orb-3 {
    top: 30%;
    left: 30%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--tertiary-glow), transparent 60%);
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, 8%) scale(1.05); }
    100% { transform: translate(-3%, -5%) scale(0.95); }
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 120%), rgba(9, 9, 11, 0.75);
    z-index: 1;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 3s ease-out;
    transform: scale(1.05);
    filter: grayscale(40%) contrast(1.1);
    z-index: 0;
    mix-blend-mode: luminosity;
}

.bg-layer.active {
    opacity: 0.35;
    transform: scale(1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
}

h1 { 
    font-size: clamp(3.5rem, 8vw, 7rem); 
    font-weight: 800;
    line-height: 1.1; 
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1.5rem;
    padding-bottom: 0.15em; /* Prevents descenders (g, y, p) from being clipped */
}

h2 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 700;
    margin-bottom: 1.5rem; 
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

p { 
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
    font-size: 1.125rem; 
    font-weight: 400; 
    max-width: 650px; 
}

a {
    text-decoration: none;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

ul { list-style: none; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

/* Navigation - Glass Pill */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    background: rgba(24, 24, 27, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: var(--transition-smooth);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; 
    filter: contrast(1.2) brightness(1.2);
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #b06bf8 0%, #7578f2 100%);
}

.btn-glass {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a855f7; /* Matching primary gradient */
    margin-bottom: 1.5rem;
}

.hero-actions {
    margin-top: 3.5rem;
    display: flex;
    gap: 1.5rem;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin-top: 4rem;
}

.services-grid > div {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.services-grid > div:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #a855f7;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.8;
}

.portfolio-item:hover img {
    transform: scale(1.08);
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    color: var(--text-white);
    display: flex;
    align-items: flex-end;
}

.portfolio-overlay h3 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact & Footer */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: #a855f7;
}

.footer p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    color: white;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.75rem 1rem;
        border-radius: 20px;
    }
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    .section {
        padding: 6rem 0;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin-top: 2rem;
    }
    .btn-primary, .btn-glass {
        width: 100%;
        text-align: center;
    }
    .portfolio-item {
        height: 300px;
    }
    .portfolio-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
}
