/* 
    =================================================================
    PROJECT: DomainName Digital Marketing Agency
    THEME: Cyber-Tech Evolution
    FILE: styles.css
    =================================================================
*/

/* ------------------------------------------------------------------
   1. VARIABLES & RESET
   ------------------------------------------------------------------ */
:root {
    /* Colors */
    --bg-dark: #05080f;
    --bg-panel: #0a0f1c;
    --bg-card: #111625;
    --bg-glass: rgba(17, 22, 37, 0.7);

    --primary-cyan: #00f0ff;
    --primary-blue: #00a8ff;
    --accent-purple: #bc13fe;
    --accent-pink: #ff0055;
    --accent-yellow: #fcee0a;

    --text-white: #ffffff;
    --text-gray: #a0a8b8;
    --text-muted: #5c677d;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    --grad-accent: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    --grad-dark: linear-gradient(180deg, var(--bg-dark), var(--bg-panel));
    --grad-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    /* Spacing & Layout */
    --container-width: 1400px;
    --header-height: 90px;
    --section-padding: 100px 0;

    /* Effects */
    --shadow-neon: 0 0 10px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
    --border-glow: 1px solid rgba(0, 240, 255, 0.2);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-panel);
    border: 1px solid var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

/* ------------------------------------------------------------------
   2. TYPOGRAPHY
   ------------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.highlight-cyan {
    color: var(--primary-cyan);
}

.highlight-purple {
    color: var(--accent-purple);
}

.highlight-yellow {
    color: var(--accent-yellow);
}

/* ------------------------------------------------------------------
   3. LAYOUT UTILITIES
   ------------------------------------------------------------------ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-cyan);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-cyan);
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 2px;
    /* Techy sharp edges */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn-primary {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-cyan);
    z-index: -1;
    transition: var(--transition-fast);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn i {
    margin-left: 10px;
}

/* ------------------------------------------------------------------
   4. HEADER & NAVIGATION
   ------------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-fast);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    background: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid var(--primary-cyan);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 65px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.header.scrolled .logo img {
    height: 65px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-white);
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-cyan);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-panel);
    z-index: 999;
    padding: 100px 40px;
    transition: var(--transition-slow);
    border-left: 1px solid var(--primary-cyan);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-white);
}

/* Hamburger */
.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-inner {
    width: 30px;
    height: 3px;
    background: var(--text-white);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-fast);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--text-white);
    position: absolute;
    left: 0;
    transition: var(--transition-fast);
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    top: 10px;
}

/* ------------------------------------------------------------------
   5. HERO SECTION (Index)
   ------------------------------------------------------------------ */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #1a2236 0%, var(--bg-dark) 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.glitch-text {
    position: relative;
    color: var(--text-white);
}

/* Glitch Animation Keyframes */
@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
        transform: translate(-2px, -2px);
    }

    100% {
        clip: rect(0, 9999px, 0, 0);
        transform: translate(0);
    }
}

.hero-sub {
    font-size: 1.4rem;
    margin: 30px 0 50px;
    color: var(--text-gray);
    border-left: 4px solid var(--accent-purple);
    padding-left: 20px;
}

/* 3D Floating Element in Hero */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 60%;
    display: none;
    /* Visible on desktop */
}

/* ------------------------------------------------------------------
   6. SERVICES SECTION
   ------------------------------------------------------------------ */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    group: hover;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-neon);
    border-color: rgba(0, 240, 255, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-link {
    margin-top: 20px;
    display: inline-block;
    color: var(--primary-cyan);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.service-link i {
    margin-left: 5px;
    transition: 0.3s;
}

.service-link:hover i {
    margin-left: 10px;
}

/* ------------------------------------------------------------------
   7. INTERACTIVE: ROI CALCULATOR
   ------------------------------------------------------------------ */
.calculator-section {
    padding: var(--section-padding);
    background: var(--bg-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-input-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-white);
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: #2a3449;
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.input-val-display {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-cyan);
    font-weight: 700;
}

.calc-result-wrapper {
    text-align: center;
    position: relative;
}

.roi-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 10px solid #1a2236;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.roi-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: var(--primary-cyan);
    border-right-color: var(--accent-purple);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.roi-value {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 900;
}

.roi-label {
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 2px;
}

/* ------------------------------------------------------------------
   8. PROCESS & DASHBOARD VISUAL
   ------------------------------------------------------------------ */
.process-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.dashboard-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #2a3449;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.dash-title {
    font-family: var(--font-heading);
    color: var(--text-white);
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(0, 240, 255, 0.05);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-cyan);
}

.stat-box h4 {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.stat-box .number {
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: 700;
}

.chart-area {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10px;
}

.bar {
    width: 8%;
    background: var(--grad-primary);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
    opacity: 0.8;
}

.bar:hover {
    opacity: 1;
    box-shadow: 0 0 15px var(--primary-cyan);
}

/* ------------------------------------------------------------------
   9. INDUSTRIES (Tabs)
   ------------------------------------------------------------------ */
.industries-section {
    padding: var(--section-padding);
    background: url('pattern.png') var(--bg-panel);
    /* Optional pattern */
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid #2a3449;
    color: var(--text-gray);
    padding: 10px 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.tab-content {
    display: none;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------------------
   10. TESTIMONIALS
   ------------------------------------------------------------------ */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
}

.testimonial-carousel::-webkit-scrollbar {
    height: 4px;
}

.testimonial-card {
    min-width: 400px;
    background: var(--bg-glass);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    margin-right: 15px;
}

/* ------------------------------------------------------------------
   11. LEGAL PAGES SPECIFIC
   ------------------------------------------------------------------ */
.legal-header {
    padding-top: 180px;
    padding-bottom: 80px;
    background: var(--bg-panel);
    text-align: center;
    border-bottom: 1px solid var(--primary-cyan);
}

.legal-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 5px;
    border-left: 2px solid var(--primary-cyan);
}

.legal-section h2 {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ------------------------------------------------------------------
   12. CONTACT PAGE SPECIFIC
   ------------------------------------------------------------------ */
.contact-section-standalone {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #2a3449;
    padding: 15px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
    font-size: 1rem;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-card);
    padding: 0 5px;
    color: var(--primary-cyan);
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.popup.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: var(--bg-panel);
    padding: 50px;
    border: 1px solid var(--primary-cyan);
    text-align: center;
    max-width: 500px;
    position: relative;
    transform: scale(0.8);
    transition: 0.3s;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

/* ------------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------------ */
.footer {
    background: #020305;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    width: 250px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid #2a3449;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-white);
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: var(--bg-dark);
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-white);
}

.links-col ul li {
    margin-bottom: 15px;
}

.links-col a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.links-col a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.footer-contact i {
    color: var(--primary-cyan);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #1a2236;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links a {
    margin-left: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links a:hover {
    color: var(--primary-cyan);
}

/* ------------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    h1 {
        font-size: 2.8rem;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        margin-top: 10px;
    }

    .footer-legal-links a {
        margin: 0 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}