/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors based on Logo */
    --brand-cyan: #00D4FF; 
    --brand-red: #D92B2B;  
    --brand-black: #1a1a1a;
    
    /* Text & Backgrounds */
    --text-dark: #222;
    --text-light: #555;
    --bg-white: #ffffff;
    --bg-light: #f4f6f8;
    
    /* Fonts */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Design System */
    --shadow-hard: 4px 4px 0px var(--brand-black);
    --border-thick: 2px solid var(--brand-black);
    --radius: 12px;

    /* NEW: Define Navbar Height */
    --header-height-desktop: 80px;
    --header-height-mobile: 70px;

}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}


/* --- GLOBAL LAYOUT FIX FOR FIXED NAVBAR --- */

/* 1. Ensure all page hero sections have enough top padding */
.hero-section, 
.about-hero, 
.services-hero, 
.portfolio-hero, 
.contact-hero,
.blog-hero {
    /* Height of nav + extra breathing room */
    padding-top: calc(var(--header-height-desktop) + 3rem) !important; 
}



/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--brand-black); }

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
p { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--text-light); margin-bottom: 1.5rem; }

.highlight-cyan { color: var(--brand-cyan); }
.highlight-red { color: var(--brand-red); }
.text-white { color: white !important; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 3rem; }

/* =========================================
   3. COMPONENTS (Buttons & Containers)
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding { padding: clamp(4rem, 6vw, 6rem) 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--brand-black); color: white; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: var(--border-thick);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-red);
    color: white;
    box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--brand-black);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-black);
    margin-left: 10px;
}

.btn-outline:hover { background-color: #eee; }

.full-width { width: 100%; text-align: center; }

/* =========================================
   4. NAVIGATION BAR (Fixed & Responsive)
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.brand-wrapper { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 40px; width: auto; transition: transform 0.3s ease; }
.brand-wrapper:hover .nav-logo-img { transform: rotate(-10deg) scale(1.1); }
.logo-text { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--brand-black); }
.dot { color: var(--brand-red); }

/* Desktop Links */
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--brand-black); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--brand-red); }
.nav-cta { padding: 0.6rem 1.5rem !important; font-size: 0.9rem !important; }

/* Hamburger Icon */
.hamburger { display: none; cursor: pointer; background: none; border: none; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--brand-black); transition: 0.3s; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    padding-top: 9rem; /* Space for fixed nav */
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%);
    overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

.badge {
    background: var(--brand-black);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Floating Image Animation */
.hero-img-3d {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(10px 10px 0px rgba(0,0,0,0.2));
    animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* =========================================
   6. SECTIONS (About, Pricing, Process)
   ========================================= */
.row { display: flex; flex-wrap: wrap; gap: 2rem; }
.col-half { flex: 1; min-width: 300px; }

.achievements-list li { list-style: none; margin-bottom: 0.5rem; font-weight: 600; }
.text-link { color: var(--brand-red); font-weight: 700; text-decoration: none; }

/* Pricing Card */
.pricing-spotlight {
    background: white;
    border: var(--border-thick);
    box-shadow: var(--shadow-hard);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    overflow: hidden;
}

.pricing-info { padding: 3rem; }
.pricing-features { background: var(--bg-light); padding: 3rem; border-left: var(--border-thick); }

.plan-badge { 
    background: var(--brand-red); color: white; display: inline-block; 
    padding: 4px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 4px; margin-bottom: 10px; 
}
.price-tag { font-size: 3rem; font-weight: 900; color: var(--brand-black); margin: 1rem 0; }
.price-tag small { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.hosting-note { font-size: 0.9rem; color: #00aa00; font-weight: bold; }

.pricing-features ul li { list-style: none; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.check { color: green; font-weight: bold; }

/* Cards Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.card-dark { background: #222; padding: 2rem; border-radius: var(--radius); border: 1px solid #333; }
.card-dark h3 { color: var(--brand-cyan); margin-bottom: 0.5rem; }

/* Process Steps */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.step-num { 
    font-size: 3rem; font-weight: 900; color: #eee; 
    position: relative; z-index: -1; margin-bottom: -15px; 
}

/* Contact Layout */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input {
    width: 100%; padding: 1rem; border: 2px solid #ddd; border-radius: 8px; font-family: inherit;
}
.form-group input:focus { outline: none; border-color: var(--brand-cyan); }

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer { background-color: var(--brand-black); color: #fff; padding-top: 4rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo-img { height: 35px; width: auto; filter: brightness(0) invert(1); }
.footer-col h4 { color: white; margin-bottom: 1.2rem; }
.footer-col ul li { list-style: none; margin-bottom: 0.8rem; }
.footer-col a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--brand-cyan); }
.footer-bottom { padding: 1.5rem 0; text-align: center; color: #666; font-size: 0.85rem; }

/* =========================================
   8. PRELOADER
   ========================================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: white; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-img { width: 80px; animation: pulse 1s infinite; }
@keyframes pulse { 0% { transform: scale(0.9); } 50% { transform: scale(1.1); } 100% { transform: scale(0.9); } }

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .pricing-spotlight { grid-template-columns: 1fr; }
    .pricing-features { border-left: none; border-top: var(--border-thick); }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed; left: -100%; top: 70px;
        flex-direction: column; background-color: white;
        width: 100%; height: calc(100vh - 70px);
        text-align: center; transition: 0.3s; padding-top: 2rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; margin: 1rem 0; }

    .hero-grid, .contact-wrapper, .footer-grid { grid-template-columns: 1fr; }
    .hero-grid { text-align: center; }
    .process-grid { grid-template-columns: 1fr 1fr; }

    .hero-section, 
    .about-hero, 
    .services-hero, 
    .portfolio-hero, 
    .contact-hero,
    .blog-hero {
        /* Mobile nav is smaller, but we still need space */
        padding-top: calc(var(--header-height-mobile) + 2rem) !important;
    }
}