/* --- START OF FILE styles.css --- */
/**
 * Hive Digital Minds Main Stylesheet
 * Theme: Cyber/Tech Digital Marketing
 * Version: 2.0
 */

/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-panel: #0a0f18;
    --bg-panel-translucent: rgba(10, 15, 24, 0.85);

    --primary-color: #3b82f6;
    /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);

    --secondary-color: #ec4899;
    /* Neon Pink */
    --secondary-glow: rgba(236, 72, 153, 0.5);

    --accent-color: #10b981;
    /* Cyber Green */

    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-dark: #111827;

    --border-light: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(to bottom, var(--bg-dark), var(--bg-panel));
    --gradient-text: linear-gradient(to right, #60a5fa, #c084fc);

    /* Fonts */
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* =========================================
   3. BACKGROUND & DECORATIONS
   ========================================= */
.background-orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatOrb 20s infinite alternate;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation-duration: 30s;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-duration: 35s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    transition: var(--transition-medium);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo {
    height: 60px;
    width: auto;
    filter: invert(1) drop-shadow(0 0 5px var(--primary-glow));
}

.nav-menu {
    position: relative;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
}

.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,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--secondary-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.menu-toggle,
.nav-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* 3D Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.card-3d-wrap {
    width: 100%;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    animation: floating 6s ease-in-out infinite;
}

.card-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-panel-translucent);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.stat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid var(--bg-dark);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: spin 5s linear infinite;
    position: relative;
}

.stat-circle::after {
    content: '98%';
    position: absolute;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    animation: spinReverse 5s linear infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    100% {
        transform: rotate(-360deg);
    }
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 15px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    group-hover: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card:hover .service-icon {
    animation: bounce 1s;
    color: var(--secondary-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================
   7. TECH & CALCULATOR SECTION
   ========================================= */
.tech-section {
    background: linear-gradient(to bottom, var(--bg-dark), #0f141f);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-panel);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.range-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

.input-val {
    min-width: 80px;
    padding: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.roi-display {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
    line-height: 1;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.result-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-track {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--bg-panel-translucent);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    scroll-snap-align: center;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--secondary-color);
}

/* =========================================
   9. CONTACT PAGE STYLES
   ========================================= */
.contact-page-section {
    padding-top: 150px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--bg-panel);
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
}

.contact-info-panel {
    background: var(--gradient-dark);
    padding: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-details-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-details-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* =========================================
   10. LEGAL PAGES STYLE
   ========================================= */
.page-header {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(to bottom, #050505, #0a0f18);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.breadcrumbs {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.main-content {
    padding: var(--spacing-lg) 0;
}

.page-content {
    background: var(--bg-panel);
    padding: 3rem;
    border-radius: 15px;
    border: var(--glass-border);
}

.page-content h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

/* =========================================
   11. FOOTER
   ========================================= */
.footer {
    background: #030405;
    border-top: 1px solid #1f2937;
    padding-top: 5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 150px;
    margin-bottom: 1.5rem;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #111;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* =========================================
   12. MEDIA QUERIES (Responsive)
   ========================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide complex 3D on smaller tablets */
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0a0f18;
        padding: 4rem 2rem;
        transition: 0.4s ease;
        z-index: 1002;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   13. ANIMATION UTILITIES
   ========================================= */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}