/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Brand Colors: Neon Cyber Theme */
    --bg-body: #050505;
    --bg-surface: #121212;
    --bg-glass: rgba(18, 18, 18, 0.85);

    --primary: #7000ff;
    /* Electric Purple */
    --primary-light: #a456ff;
    --secondary: #00f0ff;
    /* Cyan */

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    --gradient-main: linear-gradient(135deg, var(--primary) 0%, #ff0055 100%);
    --gradient-glow: linear-gradient(90deg, var(--primary), var(--secondary));

    --max-width: 1280px;
    --header-height: 90px;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;

    /* Effects */
    --shadow-glow: 0 0 20px rgba(112, 0, 255, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-padding {
    padding: var(--space-lg) 0;
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
    transition: all 0.4s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(112, 0, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 20px var(--secondary);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: 0.4s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    height: 70px;
    /* Shrink effect */
    border-bottom: var(--border-glass);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: brightness(100%);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
    color: var(--secondary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary);
    transition: 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, #1a0b2e 0%, #000000 60%);
    overflow: hidden;
}

/* Animated Background Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    animation: pulse 8s infinite alternate;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 span {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: white;
}

.stat-item p {
    font-size: 0.85rem;
    margin: 0;
}

/* Glitch Effect Container */
.glitch-container {
    position: relative;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

/* =========================================
   5. SERVICES (Cards)
   ========================================= */
.services {
    background: var(--bg-surface);
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    group: hover;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), transparent);
    opacity: 0;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* =========================================
   6. CALCULATOR (Neomorphism Dark)
   ========================================= */
.calc-section {
    position: relative;
    background: #000;
}

.calc-wrapper {
    background: #161616;
    border-radius: 30px;
    padding: 50px;
    border: 1px solid #333;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-input-group {
    margin-bottom: 25px;
}

.calc-input-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: #fff;
}

input[type="range"] {
    width: 100%;
    background: #333;
    height: 6px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

.result-box {
    background: #000;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-val {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* =========================================
   7. TESTIMONIALS
   ========================================= */
.testimonials {
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg-body));
}

.testi-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.stars {
    color: #ffd700;
    margin-bottom: 10px;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: #080808;
    border-top: 1px solid #222;
    padding-top: 80px;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-info p {
    color: #666;
    margin-top: 20px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #111;
    color: #444;
}

/* =========================================
   9. FORMS (Contact)
   ========================================= */
.form-box {
    background: #161616;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
}

.input-field {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.2);
}

/* =========================================
   10. LEGAL PAGES
   ========================================= */
.legal-container {
    padding: 150px 0 100px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    color: var(--primary);
    margin-top: 40px;
    font-size: 1.8rem;
}

.legal-text ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================================
   11. ANIMATION UTILS
   ========================================= */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #111;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.4s;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
}