/* 
   ------------------------------------------------------------------
   ------------------------------------------------------------------
   PikselWeb Agency - Safe Mode CSS (v6.1 - RESTORED)
   Focus: Readability, Layout Stability, Mobile Perfection
   Focus: Readability, Layout Stability, Mobile Perfection
   ------------------------------------------------------------------
*/

/* 1. VARIABLES */
:root {
    --bg-dark: #0b1121;
    --bg-card: rgba(30, 41, 59, 0.6);
    --primary: #3b82f6;
    --accent: #6366f1;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* 2. RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); }

/* 3. LAYOUT */
.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; /* Safe padding for mobile edges */
}

/* 4. HEADER */
.site-header {
    background: rgba(11, 17, 33, 0.98); /* Solid background for readability */
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 800; color: white; }
.logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 25px; }
.nav-link { color: #cbd5e1; font-weight: 500; font-size: 1rem; }
.nav-link:hover { color: white; }

/* Dropdown (Desktop) */
.dropdown-menu {
    position: absolute; top: 100%; left: 0; width: 220px;
    background: #0f172a; border: 1px solid var(--border-light);
    padding: 10px; opacity: 0; visibility: hidden; transition: 0.2s;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1010;
}
.dropdown-item:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a { display: block; padding: 10px; border-radius: 6px; }
.dropdown-menu a:hover { background: rgba(59,130,246,0.1); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* 5. HERO (Typography Fixes) */
.hero-section {
    padding: 120px 0 100px; text-align: center; position: relative;
    background: radial-gradient(circle at center, #1e293b 0%, #0b1121 80%);
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.4; pointer-events: none; }

/* CENTERING & WIDTH CONSTRAINT */
.hero-text {
    max-width: 800px; /* Prevents "too wide" text */
    margin: 0 auto;   /* Centers the block */
    position: relative; 
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem; 
    line-height: 1.3; 
    letter-spacing: normal; 
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
/* DESKTOP SPACING FIX (NUCLEAR) */
.hero-text p { 
    font-size: 1.15rem; 
    color: #cbd5e1; 
    max-width: 600px; 
    /* Force space with hammer */
    margin: 0 auto 60px !important; 
    padding-bottom: 20px !important;
}

/* LOGICAL SPACING: Push buttons down explicitly */
.hero-buttons { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    margin-top: 50px; /* Logical gap */
}

/* 6. COMPONENTS */
.btn {
    padding: 10px 30px !important; /* Force smaller vertical padding */
    border-radius: 8px; font-weight: 600; font-size: 1rem;
    display: inline-block; cursor: pointer; border: none;
}
.btn i { margin-left: 10px; } /* Fix: Icon spacing */

.btn-primary {
    background: var(--primary); color: white;
    transition: 0.2s ease-in-out;
}
/* RESTORED HOVER: Full 3D Lift Effect */
.btn-primary:hover { 
    background: var(--accent); 
    transform: translateY(-3px); /* Stronger lift */
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5); /* Shadow growth */
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2); background: transparent; color: white;
    transition: 0.2s ease-in-out;
}
.btn-secondary:hover { 
    background: rgba(255,255,255,0.05); 
    transform: translateY(-2px);
}

/* Service Cards */
.service-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    padding: 30px; border-radius: 12px; transition: 0.3s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card-icon { font-size: 2rem; color: var(--text-white); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.service-card p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 20px; }

/* Minimal Read More */
.read-more { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; }

/* Form */
.cta-section { padding: 80px 0; background: linear-gradient(to bottom, #0b1121, #1e1b4b); }
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cta-form-wrapper {
    background: rgba(15, 23, 42, 0.8); padding: 30px; border-radius: 16px; border: 1px solid var(--border-light);
}

/* Honeypot Field (Bot Trap) - Hidden for humans */
.user-verify-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Form Notifications */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}
.alert.success {
    background: rgba(16, 185, 129, 0.2); /* Green tint */
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.alert.error {
    background: rgba(239, 68, 68, 0.2); /* Red tint */
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.form-input {
    width: 100%; padding: 12px; margin-bottom: 15px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: white; border-radius: 6px;
}
.btn-form-submit {
    width: auto; margin-top: 10px; background: var(--primary); color: white;
    padding: 12px 24px; border-radius: 6px;
}

/* Sections */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.marquee-container { background: rgba(30,41,59,0.3); padding: 15px 0; margin: 40px 0; overflow: hidden; white-space: nowrap; }
.marquee-content span { display: inline-block; padding: 0 30px; font-weight: 600; opacity: 0.7; }
.site-footer { padding: 60px 0 20px; border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 0.9rem; color: var(--text-gray); }

/* Other Pages */
.service-hero { padding: 120px 0 60px; text-align: center; }
.service-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; margin-top: 40px; }
.sidebar-menu { background: var(--bg-card); padding: 20px; border-radius: 12px; position: sticky; top: 100px; }
.sidebar-menu a { display: block; padding: 10px; color: var(--text-gray); }
.sidebar-menu a.active, .sidebar-menu a:hover { color: var(--primary); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.process-section { padding: 80px 0; }

/* 
   =========================================
   MOBILE PREMIER EXPERIENCE (v6.1 Optimizations)
   Focus: Glassmorphism, Perfect Touch Targets, Logical Spacing
   ========================================= 
*/

@media (max-width: 900px) {
    .service-layout { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid, .cta-split { grid-template-columns: 1fr; }
    .sidebar-menu { position: static; margin-bottom: 30px; }
}

@media (max-width: 768px) {
    /* TOGGLE & HEADER */
    .mobile-toggle { display: block; z-index: 1002; }
    .hidden-mobile { display: none !important; }
    
    /* PHONE LINK - HIDDEN */
    .phone-link { display: none !important; }

    /* MENU - PREMIUM GLASS DROPDOWN */
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%; left: 0; width: 100%;
        /* Glassmorphism Dark Theme */
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .main-nav.active { display: block; }
    
    .main-nav ul { flex-direction: column; gap: 20px; text-align: center; }
    
    .main-nav a.nav-link { 
        display: block; 
        padding: 15px; 
        font-size: 1.15rem; 
        color: #e2e8f0;
        border-bottom: 1px solid rgba(255,255,255,0.03); 
        transition: 0.2s;
    }
    .main-nav a.nav-link:active {
        color: var(--primary);
        background: rgba(255,255,255,0.02);
    }

    .dropdown-menu { display: none; position: static; background: transparent; border: none; padding-left: 0; margin-top: 0; box-shadow: none; }
    .dropdown-menu a { padding: 10px; color: #94a3b8; font-size: 1rem; }
    
    /* HERO TYPOGRAPHY (Perfect Scale) */
    .hero-section { padding: 110px 0 60px; } 
    .hero-text h1 { 
        font-size: 2.4rem; 
        line-height: 1.25; 
        margin-bottom: 1.2rem;
        padding: 0 10px;
    }
    .hero-text p {
        font-size: 1.05rem;
        line-height: 1.6;
        padding: 0 15px;
        color: #cbd5e1;
        /* AGGRESSIVE SPACING FIX */
        margin: 0 auto 10px; 
        padding-bottom: 30px; /* Padding doesn't collapse */
    }

    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
        gap: 20px; 
        padding: 0 20px; 
        box-sizing: border-box; 
        align-items: center; 
        margin-top: 20px !important; /* Force margin */
    }
    
    /* BUTTONS - Fixed "Too Horizontal" Issue */
    .btn { 
        width: 100%; /* Default to full width for touch targets */
        max-width: 350px; /* Constraint width so they don't look like bars */
        display: flex; 
        justify-content: center; 
        align-items: center;
        padding: 16px; 
        font-size: 1.05rem;
        margin-bottom: 0;
    }
    
    /* FORMS & LAYOUT */
    .btn-form-submit { width: 100%; padding: 16px; font-size: 1.1rem; }
    .cta-form-wrapper { padding: 25px; margin: 0 10px; }
    .container { padding: 0 20px; }
    
    /* CARDS - Stacked & Breathing */
    .services-grid { gap: 25px; margin-top: 30px; }
    .service-card {
        padding: 30px 25px;
    }
    
    /* FOOTER */
    .site-footer { text-align: center; }
    .footer-grid { gap: 50px; }
    .social-links { justify-content: center; margin-top: 25px; }
}
