/*
================================================
  Viral Avengers Theme - Digital Marketing
================================================
*/

/* ----------------------------------------------
   1. ROOT VARIABLES & GENERAL STYLES
---------------------------------------------- */
:root {
    --color-primary: #9C27B0;
    /* Cosmic Purple */
    --color-secondary: #C6FF00;
    /* Cyber Lime */
    --color-background: #0D0221;
    /* Deep Space */
    --color-text: #E0E0E0;
    --color-text-darker: #a9a2c7;
    --color-headings: #FFFFFF;
    --color-surface: #1a0b38;
    --color-border: #3b2f5b;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;

    --header-height: 80px;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 0 15px var(--color-secondary), 0 0 25px var(--color-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--color-headings);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: white;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    color: var(--color-headings);
    margin-bottom: 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-darker);
    font-size: 1.1rem;
}

.highlight {
    color: var(--color-secondary);
    text-shadow: 0 0 10px var(--color-secondary);
}

.text-center {
    text-align: center;
}

/* ----------------------------------------------
   2. PRELOADER
---------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    text-align: center;
}

.loader-logo img {
    width: 100px;
    filter: invert(1);
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background: var(--color-surface);
    border-radius: 2px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    animation: loader-slide 2s infinite linear;
}

@keyframes loader-slide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ----------------------------------------------
   3. HEADER & NAVIGATION
---------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(13, 2, 33, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-headings);
}

.logo img {
    height: 40px;
    filter: invert(1);
    margin-right: 10px;
    transition: transform var(--transition-speed) ease;
}

.logo a:hover img {
    transform: rotate(360deg);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--color-text);
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: -20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 10px 0;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-transform: none;
    transition: all var(--transition-speed) ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-primary);
    color: white;
    padding-left: 25px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ----------------------------------------------
   4. BUTTONS
---------------------------------------------- */
.btn {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    color: white;
    box-shadow: 0 0 20px var(--color-primary);
}

.btn-primary::before {
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

.btn-primary:hover span {
    color: var(--color-background);
}

.btn-secondary {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
    box-shadow: 0 0 20px var(--color-secondary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
}

/* ----------------------------------------------
   5. MOBILE MENU
---------------------------------------------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: white;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Menu Active State */
.nav.is-active {
    transform: translateX(0);
}

.menu-toggle.is-active .hamburger {
    background-color: transparent;
}

.menu-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ----------------------------------------------
   6. HERO SECTION
---------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background) url('https://www.transparenttextures.com/patterns/stardust.png');
    z-index: -1;
}

/* Starry Background Effect */
@keyframes move-twink-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000 url(http://www.script-tutorials.com/demos/360/images/stars.png) repeat top center;
    z-index: 0;
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent url(http://www.script-tutorials.com/demos/360/images/twinkling.png) repeat top center;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-darker);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cosmic-orb {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-core {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    animation: orb-pulse 4s infinite ease-in-out;
}

.orb-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.5;
}

.orb-ring:nth-child(1) {
    animation: rotate-3d 10s linear infinite;
}

.orb-ring:nth-child(2) {
    animation: rotate-3d 15s linear infinite reverse;
    border-color: var(--color-secondary);
}

.orb-ring:nth-child(3) {
    animation: rotate-3d 20s linear infinite;
    border-color: #fff;
    transform: rotateX(90deg) rotateY(0deg);
}

@keyframes rotate-3d {
    0% {
        transform: rotateX(70deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(70deg) rotateY(360deg);
    }
}

@keyframes orb-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--color-primary);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px var(--color-secondary);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--color-primary);
    }
}

/* ----------------------------------------------
   7. SERVICES SECTION
---------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    height: 350px;
    border-radius: var(--border-radius);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    text-align: left;
}

.service-card-back ul {
    width: 100%;
    margin-bottom: 20px;
}

.service-card-back li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: var(--color-text-darker);
}

.service-card-back li::before {
    content: '\f058';
    /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease;
}

.service-card-front:hover .service-icon {
    transform: scale(1.2);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--color-text-darker);
}

/* ----------------------------------------------
   8. POWER METRICS SECTION
---------------------------------------------- */
.power-metrics-section {
    background: var(--color-background);
    position: relative;
}

.metrics-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: rgba(26, 11, 56, 0.5);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
}

.metric-panel {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.metric-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--color-primary);
    border-color: var(--color-primary);
}

.metric-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(198, 255, 0, 0.2), transparent 30%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.metric-panel:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.metric-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.metric-value {
    font-size: 3.5rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-secondary);
}

.metric-label {
    font-size: 1rem;
    color: var(--color-text-darker);
    text-transform: uppercase;
    font-weight: 600;
}

.metric-unit {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    opacity: 0.5;
}

/* ----------------------------------------------
   9. TESTIMONIALS SECTION
---------------------------------------------- */
.testimonials-section {
    background: var(--color-surface);
}

.testimonial-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--color-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--color-text-darker);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.author-name {
    font-size: 1.2rem;
    color: var(--color-headings);
}

.author-title {
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    font-weight: 600;
}

/* ----------------------------------------------
   10. INDUSTRIES SECTION
---------------------------------------------- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.industry-item {
    background: var(--color-surface);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all var(--transition-speed) ease;
}

.industry-item:hover {
    transform: translateY(-10px);
    background: var(--color-primary);
    border-color: var(--color-secondary);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    transition: transform var(--transition-speed) ease;
}

.industry-item:hover i {
    transform: scale(1.1);
    color: white;
}

.industry-item h3 {
    font-size: 1.1rem;
}

/* ----------------------------------------------
   11. CTA SECTION
---------------------------------------------- */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--color-text-darker);
}

/* ----------------------------------------------
   12. FOOTER
---------------------------------------------- */
.footer {
    background: var(--color-surface);
    padding-top: 80px;
    border-top: 2px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: capitalize;
    color: var(--color-secondary);
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-headings);
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
    filter: invert(1);
    margin-right: 10px;
}

.footer-about p {
    color: var(--color-text-darker);
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    color: var(--color-text-darker);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.footer-socials a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-5px);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--color-text-darker);
    position: relative;
    padding-left: 0;
    transition: all var(--transition-speed) ease;
}

.footer-links ul a:hover {
    color: var(--color-secondary);
    padding-left: 10px;
}

.footer-links ul a::before {
    content: '\f105';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -5px;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.footer-links ul a:hover::before {
    left: -15px;
    /* Adjust as needed */
    opacity: 1;
}


.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--color-text-darker);
}

.footer-contact ul i {
    color: var(--color-secondary);
    margin-top: 5px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-darker);
}

/* ----------------------------------------------
   13. UI WIDGETS (BACK TO TOP, CHAT)
---------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-secondary);
    color: var(--color-background);
    transform: scale(1.1);
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    z-index: 998;
    animation: chat-pulse 2s infinite;
}

@keyframes chat-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ----------------------------------------------
   14. LEGAL & CONTACT PAGES
---------------------------------------------- */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-surface);
}

.page-header h1 {
    font-size: 3.5rem;
}

.breadcrumbs {
    margin-top: 10px;
    color: var(--color-text-darker);
}

.breadcrumbs a {
    color: var(--color-secondary);
}

.breadcrumbs span {
    color: white;
}

.main-content {
    padding: 80px 0;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Legal Content */
.legal-content h2 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--color-text-darker);
}

.legal-content strong {
    color: var(--color-headings);
    font-weight: 600;
}

/* Contact Page Specific */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 60px;
}

.contact-form {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-darker);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px var(--color-secondary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
}

.checkbox-group a {
    text-decoration: underline;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--color-surface);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-speed) ease;
}

.contact-card:hover {
    transform: translateX(10px);
    border-left: 4px solid var(--color-secondary);
}

.contact-icon {
    font-size: 2rem;
    color: var(--color-secondary);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.contact-details p,
.contact-details a {
    color: var(--color-text-darker);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

/* ----------------------------------------------
   15. ANIMATIONS
---------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-up {
    transform: translateY(50px);
}

.animate-on-scroll.fade-right {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-left {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ----------------------------------------------
   16. RESPONSIVENESS
---------------------------------------------- */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        width: 100%;
        text-align: center;
        display: none;
        /* Hide by default on mobile, can be toggled */
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .cosmic-orb {
        width: 300px;
        height: 300px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .testimonial-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .metrics-hud {
        grid-template-columns: 1fr 1fr;
    }

    .industry-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cosmic-orb {
        width: 250px;
        height: 250px;
    }

    .metrics-hud {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
    }

    .chat-widget {
        width: 50px;
        height: 50px;
    }
}