/* 
====================================================================
   PROJECT: DOMAIN NAME DIGITAL AGENCY
   THEME: DIGITAL HORIZON (DARK MODE)
   TYPE: CORE STYLESHEET
====================================================================
*/

:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-panel: #0a0a0a;
    --bg-card: #111111;
    --primary: #00f3ff;
    /* Cyan Neon */
    --primary-dim: #00f3ff40;
    --secondary: #7000ff;
    /* Purple Neon */
    --secondary-dim: #7000ff40;
    --accent: #ff0055;
    /* Pink/Red Accent */
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-color: #222222;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-text: linear-gradient(90deg, #fff, #888);
    --gradient-glow: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, rgba(5, 5, 5, 0) 70%);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 100px;
}

/* ================= RESET & BASE ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: inline-block;
}

/* ================= HEADER ================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--primary-dim));
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    color: var(--text-muted);
}

.nav-link span {
    color: var(--primary);
    margin-right: 5px;
    font-size: 0.8rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cyber {
    position: relative;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    /* YEH LINE MISSING THI - ISAY ADD KAREIN */
    overflow: hidden; 
    cursor: pointer;
    transition: 0.3s;
    z-index: 1; /* Ensure text stays on top */
    display: inline-block; /* Helps with alignment */
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: 0.4s;
    z-index: -1;
}

.btn-cyber:hover {
    color: var(--bg-dark);
}

.btn-cyber:hover::before {
    left: 0;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    
    /* Improved Hiding Mechanism */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden; /* Completely hides it from screen readers/clicks */
    
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Ensure active state makes it visible */
.mobile-nav-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ================= HERO SECTION ================= */

.hero-section {
    /* height: 100vh; */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-dim);
    border-radius: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--primary);
}

.hero-tag i {
    font-size: 0.8rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    position: relative;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: #ccc;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ================= SERVICES ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
    transition: 0.4s;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 243, 255, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.service-list li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.learn-more {
    margin-top: 25px;
    display: inline-block;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--primary);
}

/* ================= ROI CALCULATOR ================= */

.calc-section {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-interface {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: var(--border-color);
    outline: none;
    border-radius: 2px;
}

.range-slider::-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);
}

.range-value {
    display: block;
    text-align: right;
    color: var(--primary);
    font-weight: 700;
    margin-top: 5px;
}

.calc-result {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.result-box h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 10px;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 0 20px var(--primary-dim);
}

/* ================= PROCESS ================= */

.process-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-heading);
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--text-main);
}

.tab-content {
    display: none;
    animation: fadeUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

.process-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    background: var(--bg-card);
    padding: 40px;
    border-left: 3px solid var(--primary);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--border-color);
    font-family: var(--font-heading);
    line-height: 1;
}

/* ================= TESTIMONIALS ================= */

.testimonials-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 30px;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.test-card {
    min-width: 400px;
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--border-color);
    border-radius: 50%;
}

.stars {
    color: #ffd700;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

/* ================= FOOTER ================= */

.main-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 35px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: #555;
    font-size: 0.85rem;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-list i {
    color: var(--primary);
    margin-top: 5px;
}

/* ================= LEGAL PAGES ================= */
.page-header-section {
    padding: 150px 0 80px;
    background: linear-gradient(to bottom, var(--bg-panel), var(--bg-dark));
    text-align: center;
}

.hero-title-small {
    font-size: 3rem;
    margin-bottom: 20px;
}

.breadcrumbs {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs span {
    color: var(--primary);
}

.content-wrapper h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.5rem;
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ================= FORM STYLES ================= */
.form-control {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
    margin-bottom: 20px;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

/* ================= ANIMATIONS ================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 20px;
    }

    .desktop-nav {
        display: none;
    }

    /* Hide Desktop Nav */

    .mobile-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
    }

    .bar {
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--text-main);
        transition: 0.3s;
    }

    .bar.top {
        top: 0;
    }

    .bar.mid {
        top: 9px;
    }

    .bar.bot {
        bottom: 0;
    }

    .mobile-toggle.active .bar.top {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-toggle.active .bar.mid {
        opacity: 0;
    }

    .mobile-toggle.active .bar.bot {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    /* Mobile Nav Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .mobile-nav-overlay.active {
        transform: translateY(0);
    }

    .mobile-link {
        font-family: var(--font-heading);
        font-size: 2rem;
        color: var(--text-muted);
    }

    .mobile-link:hover {
        color: var(--primary);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 100px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }
}