/* =========================================
   Dark Mode CSS Variables & Setup
   ========================================= */
:root {
    /* Premium Dark Theme Colors */
    --color-bg: #030305;
    --color-bg-surface: #0a0b10;
    --color-bg-elevated: rgba(255, 255, 255, 0.03);
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    
    /* Neons & Accents */
    --color-accent: #6d28d9;
    --color-accent-light: #8b5cf6;
    --color-accent-blue: #3b82f6;
    --color-accent-cyan: #06b6d4;
    
    --color-border: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4));
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Sizes */
    --max-width: 1200px;
    --section-padding: 120px 0;
    --border-radius: 20px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   Global Glow Orbs
   ========================================= */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    will-change: transform;
}

.orb-1 {
    top: -10vh;
    left: -10vw;
    width: 600px;
    height: 600px;
    background: var(--color-accent-blue);
    animation: float 20s infinite alternate cubic-bezier(0.3, 0, 0.7, 1);
}

.orb-2 {
    top: 40vh;
    right: -10vw;
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    animation: float 25s infinite alternate-reverse cubic-bezier(0.3, 0, 0.7, 1);
}

.orb-3 {
    bottom: -20vh;
    left: -10vw;
    width: 600px;
    height: 600px;
    background: var(--color-accent);
    animation: float 30s infinite alternate cubic-bezier(0.3, 0, 0.7, 1);
}

.orb-4 {
    top: 10vh;
    left: 40vw;
    width: 400px;
    height: 400px;
    background: var(--color-accent-cyan);
    animation: float 22s infinite alternate-reverse cubic-bezier(0.3, 0, 0.7, 1);
}

.orb-5 {
    bottom: 0;
    right: 10vw;
    width: 550px;
    height: 550px;
    background: var(--color-accent-blue);
    animation: float 27s infinite alternate cubic-bezier(0.3, 0, 0.7, 1);
}

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

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--color-accent-light);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.section {
    padding: var(--section-padding);
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* =========================================
   Premium Glass Cards & Glows
   ========================================= */
.glass-card {
    background: var(--color-bg-elevated);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: var(--gradient-primary);
    border-radius: calc(var(--border-radius) + 1px);
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.glass-card:hover.glow-border::before {
    opacity: 0.8;
    filter: blur(8px);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-small { padding: 10px 24px; font-size: 0.9rem; }
.full-width { width: 100%; }

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-glow {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(94, 43, 255, 0.3);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s ease;
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(94, 43, 255, 0.5);
}

.btn-glow:hover::after {
    left: 100%;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 24px 0;
    background: transparent;
    z-index: 1000;
    transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 500;
}

.nav-links a:not(.btn) {
    position: relative;
    padding-bottom: 4px;
    color: var(--color-text-muted);
}

.nav-links a:not(.btn):hover {
    color: white;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--color-accent-blue);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-gradient-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 80%);
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--color-accent-light);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.hero-title {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 48px;
    max-width: 700px;
    margin-inline: auto;
}

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

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

.about-card-glow {
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-card-glow::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.about-card-glow h3 {
    font-size: 1.5rem;
    margin: 16px 0;
}

.text-dynamic {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Services Section
   ========================================= */
.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
}

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

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
    padding: 40px;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.card-icon-wrapper {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    color: var(--color-accent-light);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.05);
    transform: translateZ(30px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transform: translateZ(20px);
}

.service-card p {
    transform: translateZ(10px);
}

.service-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1), 0 20px 40px rgba(0,0,0,0.5);
}

.service-card:hover .card-icon-wrapper {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* =========================================
   Offer Section
   ========================================= */
.offer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    position: relative;
}

.main-glow {
    box-shadow: 0 0 100px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-glow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-accent-cyan);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 8px 0;
    line-height: 1;
}

.price-suffix {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.benefits-list {
    list-style: none;
    margin-top: 32px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.125rem;
    color: white;
    font-weight: 500;
}

.benefits-list i {
    font-size: 1.5rem;
}

.css-abstract-visual {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.02);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.cyber-circle {
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--color-accent), var(--color-accent-blue), var(--color-accent-cyan), var(--color-accent));
    filter: blur(40px);
    opacity: 0.5;
    animation: rotate 5s linear infinite;
    transform: translateZ(-20px);
}

.massive-icon {
    font-size: 8rem;
    position: relative;
    z-index: 2;
    transform: translateZ(50px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* =========================================
   Visual Parallax Section
   ========================================= */
.visual-section {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.visual-bg {
    position: absolute;
    top: -20%; left: 0; width: 100%; height: 140%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.5;
}

.visual-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--color-bg) 100%);
    z-index: -1;
    display: flex;
    align-items: center;
}

.display-title {
    font-size: 5rem;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.method-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.method-card i {
    font-size: 2.5rem;
}

.method-card h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.link-hover {
    color: #25D366;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-form-wrapper {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:hover, .form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-accent-blue);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.error-msg {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 8px;
    display: none;
}

.form-group.invalid input, .form-group.invalid textarea {
    border-color: #ef4444;
}

.form-group.invalid .error-msg {
    display: block;
}

.form-success-msg {
    margin-top: 24px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
    background: #000;
}

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

.footer-links {
    display: flex;
    gap: 32px;
}

/* =========================================
   Responsive Design
   ========================================= */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .offer-container, .contact-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-title, .display-title { font-size: 3.5rem; }
    .offer-image { order: -1; }
    .glow-orb { width: 400px; height: 400px; filter: blur(80px); }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero { padding-top: 100px; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.125rem; margin-bottom: 32px; }
    .display-title, .section-title { font-size: 2rem; }
    .lead-text { font-size: 1.25rem; }
    
    .about-card-glow { padding: 32px 24px; }
    .cyber-circle { width: 180px; height: 180px; filter: blur(30px); }
    .massive-icon { font-size: 5rem; transform: translateZ(30px); }
    
    .glow-orb { width: 300px; height: 300px; filter: blur(60px); }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100vw;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 32px 24px;
        border-bottom: 1px solid var(--color-border);
        box-sizing: border-box;
    }
    
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; padding: 14px 24px; }
    
    .offer-container { padding: 32px 24px; border-radius: 16px; margin: 0; width: 100%; box-sizing: border-box; }
    .offer-price { font-size: 3rem; }
    .offer-btn { width: 100%; }
    
    .contact-form-wrapper { padding: 24px; }
    .method-card { flex-direction: column; text-align: center; gap: 12px; }
    
    .footer-container { flex-direction: column; gap: 24px; text-align: center; }
    
    .service-card { padding: 24px; }
    .services-grid { gap: 16px; }
    
    .benefits-list li { font-size: 1rem; align-items: flex-start; }
    .benefits-list i { margin-top: 4px; }

    .contact-grid { gap: 40px; }
}

/* =========================================
   Portfolio
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(109, 40, 217, 0.2);
}

.portfolio-img-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 1.4s var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.04);
}

.portfolio-info {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--color-border);
}

.portfolio-info i {
    color: var(--color-accent-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.portfolio-info span,
.portfolio-info a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.portfolio-info a:hover {
    color: var(--color-accent-cyan);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Instagram link nel footer */
.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.instagram-link:hover {
    color: #e1306c;
}

