/* 
====================================================================
   ALPHA TECHNOLOGY - ZENITH THEME (Design V2)
   Description: Glassmorphism, Deep Gradients, Modern IT UI
   Author: AI Developer
====================================================================
*/

/* =================================================================
   1. CSS VARIABLES & THEME CONFIGURATION
================================================================= */
:root {
    /* -- Core Colors -- */
    --c-bg-main: #0f172a;
    /* Slate 900 */
    --c-bg-dark: #020617;
    /* Slate 950 */
    --c-bg-light: #1e293b;
    /* Slate 800 */

    --c-primary: #6366f1;
    /* Indigo 500 */
    --c-primary-glow: rgba(99, 102, 241, 0.5);

    --c-accent: #f43f5e;
    /* Rose 500 */
    --c-accent-glow: rgba(244, 63, 94, 0.5);

    --c-success: #10b981;
    /* Emerald 500 */
    --c-text-white: #f8fafc;
    --c-text-muted: #94a3b8;
    /* Slate 400 */

    /* -- Glassmorphism -- */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --backdrop-blur: blur(12px);

    /* -- Gradients -- */
    --grad-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #f43f5e 100%);
    --grad-dark: linear-gradient(to bottom, #0f172a, #020617);
    --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.0) 100%);

    /* -- Typography -- */
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* -- Spacing -- */
    --container: 1320px;
    --nav-height: 90px;

    /* -- Radius -- */
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    --rad-full: 9999px;

    /* -- Transitions -- */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =================================================================
   2. RESET & GLOBAL STYLES
================================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--c-bg-main);
    color: var(--c-text-white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Mesh Gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.1), transparent 40%);
    z-index: -2;
    animation: spinBG 60s linear infinite;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--c-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* =================================================================
   3. UTILITY CLASSES
================================================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-py {
    padding: 120px 0;
}

.section-py-sm {
    padding: 80px 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--rad-lg);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* =================================================================
   4. COMPONENT: BUTTONS
================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--rad-full);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow {
    background: var(--grad-main);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    border: none;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -5px rgba(244, 63, 94, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* =================================================================
   5. HEADER & NAVIGATION
================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.nav-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    /* Force white */
}

.main-nav {
    display: flex;
    gap: 3rem;
}

.nav-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--c-accent);
    transition: 0.3s var(--ease-out);
    transform: translateX(-50%);
}

.nav-item:hover {
    color: white;
}

.nav-item:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* =================================================================
   6. HERO SECTION
================================================================= */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Decorative Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--c-primary), transparent);
}

.orb-2 {
    bottom: 10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--c-accent), transparent);
    animation-delay: -5s;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--c-primary);
    color: #a5b4fc;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text h1 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

.hero-visual {
    position: relative;
    height: 500px;
}

/* 3D Floating Cards in Hero */
.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.float-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--rad-md);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    color: white;
}

.fc-1 {
    top: 20%;
    right: 10%;
    width: 280px;
    animation: floatCard1 8s ease-in-out infinite;
    z-index: 2;
}

.fc-2 {
    bottom: 20%;
    left: 10%;
    width: 260px;
    animation: floatCard2 9s ease-in-out infinite;
    z-index: 1;
}

.fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.fc-stat {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.fc-label {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

/* =================================================================
   7. SERVICES SECTION (Grid)
================================================================= */
.services-section {
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.sec-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.sec-head h2 {
    margin-bottom: 1rem;
}

.service-box {
    padding: 3rem 2rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-main);
    opacity: 0;
    z-index: -1;
    transition: 0.4s;
}

.service-box:hover::before {
    opacity: 0.1;
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: var(--c-primary);
}

.s-icon {
    font-size: 3rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* =================================================================
   8. DASHBOARD SIMULATION (Custom Interactive)
================================================================= */
.report-section {
    padding-bottom: 100px;
}

.dashboard-mockup {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: var(--rad-lg);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--rad-sm);
}

.dash-label {
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

.dash-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
}

.dash-trend {
    font-size: 0.8rem;
}

.dash-trend.up {
    color: var(--c-success);
}

/* Simulated Graph Bars */
.graph-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2rem;
}

.graph-bar {
    flex: 1;
    background: var(--c-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    transition: height 1s ease;
    height: 20%;
    /* Default */
    position: relative;
}

.graph-bar:hover {
    opacity: 1;
    background: var(--c-accent);
}

.graph-bar::after {
    content: attr(data-val);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.2s;
}

.graph-bar:hover::after {
    opacity: 1;
}

/* =================================================================
   9. INTERACTIVE CALCULATOR
================================================================= */
.calc-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--rad-lg);
    padding: 3rem;
}

.calc-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.calc-controls {
    flex: 1;
    min-width: 300px;
}

.calc-display {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-group {
    margin-bottom: 2rem;
}

.range-wrap {
    position: relative;
    margin-top: 1rem;
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--c-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.result-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.05);
    border-top: 10px solid var(--c-success);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulseCircle 3s infinite;
}

.rc-label {
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rc-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-success);
}

/* =================================================================
   10. CONTACT PAGE SPECIFIC
================================================================= */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.c-info-side {
    background: var(--glass-bg);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.c-form-side {
    padding: 4rem;
    background: rgba(0, 0, 0, 0.4);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    color: white;
    border-radius: var(--rad-sm);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.form-input:focus {
    outline: none;
    border-color: var(--c-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* =================================================================
   11. LEGAL PAGES
================================================================= */
.legal-container {
    max-width: 900px;
    margin: 120px auto;
    padding: 0 2rem;
}

.legal-doc {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--rad-md);
    border: 1px solid var(--glass-border);
}

.legal-doc h2 {
    color: var(--c-primary);
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-doc ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--c-text-muted);
}

/* =================================================================
   12. FOOTER
================================================================= */
.main-footer {
    border-top: 1px solid var(--glass-border);
    background: #020617;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.f-link {
    color: var(--c-text-muted);
    display: block;
    margin-bottom: 0.8rem;
}

.f-link:hover {
    color: var(--c-primary);
    padding-left: 5px;
}

.f-btm {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
}

/* =================================================================
   13. ANIMATIONS
================================================================= */
@keyframes spinBG {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, 20px) rotate(360deg);
    }
}

@keyframes floatCard1 {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes floatCard2 {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-15px) rotate(8deg);
    }
}

@keyframes pulseCircle {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   14. RESPONSIVE
================================================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    /* Hide 3D cards on tablet for simpler view */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-flex {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .main-nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--c-bg-main);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%);
        transition: 0.3s;
    }

    .main-nav.show {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .f-btm {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}