/* --- STYLES.CSS --- */

/*--------------------------------------------------------------
# 1. ROOT VARIABLES & GLOBAL STYLES
--------------------------------------------------------------*/
:root {
    --primary-color: #FF3B3B;
    --primary-glow: rgba(255, 59, 59, 0.4);
    --secondary-color: #00E5FF;
    --secondary-glow: rgba(0, 229, 255, 0.3);
    --dark-bg: #0C0C0E;
    --panel-bg: #1A1A1E;
    --panel-bg-transparent: rgba(26, 26, 30, 0.85);
    --border-color: #333338;
    --text-color: #EAEAEA;
    --text-muted: #888888;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.section-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}


/*--------------------------------------------------------------
  # 2. UTILITY CLASSES
  --------------------------------------------------------------*/
.subpage {
    padding-top: var(--header-height);
}


/*--------------------------------------------------------------
  # 3. HEADER & NAVIGATION
  --------------------------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(12, 12, 14, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(12, 12, 14, 0.9);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10px;
    color: var(--text-color);
    text-transform: uppercase;
}

.logo-link:hover .logo {
    transform: rotate(15deg);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-nav.active .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-nav.active .bar-middle {
    opacity: 0;
}

.mobile-nav.active .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--panel-bg);
    padding-top: 100px;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav nav ul li a {
    font-size: 1.2rem;
    padding: 10px 20px;
    color: var(--text-color);
}

/*--------------------------------------------------------------
  # 4. FOOTER
  --------------------------------------------------------------*/
.footer {
    background-color: var(--dark-bg);
    padding: 80px 0 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.footer-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(to right, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about .footer-logo {
    height: 50px;
    filter: invert(1);
}

.footer-about-text {
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px var(--primary-glow);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/*--------------------------------------------------------------
  # 5. HERO SECTION
  --------------------------------------------------------------*/
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 40%),
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(to right, var(--border-color) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    opacity: 0.3;
}

#world-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    display: block;
}

.hero-title .line1 {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 40px;
    color: var(--text-color);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-stats {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: var(--panel-bg-transparent);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

/* NEW STYLES FOR THE CUSTOM COUNTER */
.stat-value-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    height: 40px;
    /* Crucial for sizing */
    margin-bottom: 5px;
}

.stat-value {
    display: flex;
}

.stat-suffix {
    font-family: var(--font-body);
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.digit-container {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.digit-strip {
    display: inline-block;
}

.digit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    /* Must match .digit-container height */
}

/* END OF NEW STYLES */


.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/*--------------------------------------------------------------
  # 6. SERVICES SECTION
  --------------------------------------------------------------*/
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 250px;
    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(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.service-card-back p {
    font-size: 0.9rem;
}


.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 10px;
}


/*--------------------------------------------------------------
  # 7. ABOUT SECTION
  --------------------------------------------------------------*/
.about-section {
    padding: 100px 0;
    background: var(--panel-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-text .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    mix-blend-mode: color;
    opacity: 0.7;
}

.tech-stack-icons {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: var(--panel-bg);
    padding: 15px 25px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
}

.tech-stack-icons i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tech-stack-icons i:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/*--------------------------------------------------------------
  # 8. INTERACTIVE REPORT SECTION
  --------------------------------------------------------------*/
.report-section {
    padding: 100px 0;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.dashboard-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--secondary-glow), transparent 30%);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
}

.dashboard-panel:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.dashboard-panel>* {
    position: relative;
    z-index: 2;
}


.panel-large {
    grid-column: span 2;
    grid-row: span 2;
}

.panel-medium {
    grid-column: span 2;
}

.panel-small {
    grid-column: span 1;
}

.dashboard-panel h3 {
    margin-bottom: auto;
    font-size: 1rem;
    color: var(--text-muted);
}

.chart-container {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Dial */
.dial-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.dial-value {
    position: absolute;
    bottom: 20px;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-color);
}

.dial {
    width: 150px;
    height: 75px;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border: 5px solid var(--border-color);
    border-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.dial-needle {
    width: 3px;
    height: 70px;
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.dial-center {
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    bottom: -7.5px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--dark-bg);
}

/* Soundwave */
.soundwave-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    gap: 10px;
}

.soundwave-value {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-color);
}

.soundwave-container .bar {
    width: 15px;
    background: var(--secondary-color);
    animation: soundwave 1.5s ease-in-out infinite alternate;
}

.bar:nth-child(1) {
    height: 20%;
    animation-delay: 0s;
}

.bar:nth-child(2) {
    height: 50%;
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    height: 80%;
    animation-delay: 0.4s;
}

.bar:nth-child(4) {
    height: 50%;
    animation-delay: 0.6s;
}

.bar:nth-child(5) {
    height: 20%;
    animation-delay: 0.8s;
}

@keyframes soundwave {
    0% {
        transform: scaleY(0.1);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Keyword Rankings */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: center;
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-color);
}

.ranking-list li span:first-child {
    color: var(--text-muted);
}

.rank-up {
    color: #4CAF50;
}

.rank-stable {
    color: var(--text-muted);
}

.rank-down {
    color: var(--primary-color);
}

.rank-up i,
.rank-down i,
.rank-stable i {
    margin-left: 5px;
}

/*--------------------------------------------------------------
  # 9. TESTIMONIALS SECTION
  --------------------------------------------------------------*/
.testimonials-section {
    padding: 100px 0;
    background: var(--panel-bg);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
}

.testimonial-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.slider-controls button {
    background: var(--panel-bg-transparent);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.prev-btn {
    transform: translateX(-70px);
}

.next-btn {
    transform: translateX(70px);
}

/*--------------------------------------------------------------
  # 10. INDUSTRIES SECTION
  --------------------------------------------------------------*/
.industries-section {
    padding: 100px 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.industry-item {
    padding: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.industry-item:hover {
    transform: translateY(-10px);
    background-color: var(--panel-bg);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.industry-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.industry-item:hover i {
    transform: scale(1.1);
}

.industry-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}


/*--------------------------------------------------------------
  # 11. CTA SECTION
  --------------------------------------------------------------*/
.cta-section {
    padding: 100px 0;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 14, 0.85);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-color);
}

/*--------------------------------------------------------------
  # 12. SUBPAGE STYLES (Legal, Contact)
  --------------------------------------------------------------*/
.page-header {
    padding: 80px 0;
    text-align: center;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs span {
    color: var(--text-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

.page-header .section-description {
    margin-top: 20px;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
}

.content-wrapper li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--panel-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info-panel h2 {
    color: var(--secondary-color);
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.method-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/*--------------------------------------------------------------
  # 13. FORMS & BUTTONS
  --------------------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--secondary-glow);
}

/* Form Styles */
.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.form-group.full-width {
    width: 100%;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 5px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s;
}

.contact-form input:focus+label,
.contact-form input:not(:placeholder-shown)+label,
.contact-form textarea:focus+label,
.contact-form textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--panel-bg);
    padding: 0 5px;
    color: var(--secondary-color);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300E5FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

.contact-form select option {
    background: var(--dark-bg);
    color: var(--text-color);
}

/*--------------------------------------------------------------
  # 14. POPUP & WIDGETS (Chat)
  --------------------------------------------------------------*/
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--panel-bg);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-muted);
}

.popup i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--primary-glow);
    transition: transform 0.3s;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--panel-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.chat-widget.active .chat-box {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 15px;
    background: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 250px;
    overflow-y: auto;
}

.chat-body p {
    font-size: 0.9rem;
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 15px;
    color: var(--text-color);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--dark-bg);
    border: none;
    padding: 0 20px;
    color: var(--secondary-color);
    cursor: pointer;
}

/*--------------------------------------------------------------
  # 16. RESPONSIVE DESIGN (Media Queries)
  --------------------------------------------------------------*/
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        grid-row: 1;
    }

    .dashboard {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .panel-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 400px;
    }

    .panel-medium {
        grid-column: span 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .panel-large,
    .panel-medium,
    .panel-small {
        grid-column: span 1;
    }

    .slider-controls {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        gap: 20px;
    }

    .prev-btn,
    .next-btn {
        transform: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links,
    .contact-info li {
        justify-content: center;
    }

    .contact-form .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .chat-box {
        width: calc(100vw - 40px);
        bottom: 80px;
        right: -10px;
    }
}