/*
================================================
  IQ Technology – Clean Professional Theme
================================================
  Light theme, single accent, no glows.
================================================
*/

/* 1. VARIABLES & THEME
--------------------------------------------- */
:root {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --text: #0f172a;
    --text-muted: #64748b;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 72px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: 0.25s ease;
}

/* 2. RESET & BASE
--------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text-muted);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 3. LAYOUT & UTILITIES
--------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.highlight { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn-secondary:hover {
    background-color: var(--text);
    color: #fff;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-full { width: 100%; }

.btn i { transition: transform var(--transition); }
.btn:hover i { transform: translateX(4px); }

/* 4. HEADER
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 700;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
}

/* 5. FOOTER
--------------------------------------------- */
.footer {
    background: var(--bg-dark);
    padding-top: 4rem;
    color: #94a3b8;
}

.footer-bg { display: none; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #f1f5f9;
    margin-bottom: 1.25rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-about .logo { margin-bottom: 1rem; }
.footer-about .logo img { filter: brightness(0) invert(1); }

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #94a3b8;
}

.social-links {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #94a3b8;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.footer-links ul li { margin-bottom: 0.5rem; }

.footer-links ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links ul li a:hover { color: #f1f5f9; }

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: #f1f5f9; }

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* 6. HERO
--------------------------------------------- */
.hero-section {
    min-height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f1f5f9 0%, var(--bg) 50%, #e2e8f0 100%);
    color: var(--text);
}

.hero-background-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(160deg, rgba(241,245,249,0.9) 0%, rgba(248,250,252,0.95) 100%);
}

.mirror-tunnel,
.mirror-plane {
    display: none;
}

#particles-js-hero {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 7. PAGE HEADER (SUBPAGES)
--------------------------------------------- */
.page-header-section {
    padding: calc(var(--header-height) + 4rem) 0 3rem;
    text-align: center;
    position: relative;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

#particles-js-header {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
}

.page-header-section h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs i { color: var(--accent); font-size: 0.7rem; }

/* 8. SERVICES
--------------------------------------------- */
.services-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card::before { display: none; }

.service-icon {
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-title { margin-bottom: 0.75rem; color: var(--text); }

.service-description {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.service-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

.service-link:hover { color: var(--accent-hover); }
.service-link i { transition: transform var(--transition); }
.service-link:hover i { transform: translateX(4px); }

/* 9. ABOUT
--------------------------------------------- */
.about-section { background: var(--bg); }

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.about-image-wrapper:hover { transform: scale(1.02); }

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), transparent);
}

.about-content-column .section-title {
    text-align: left;
    margin-bottom: 1rem;
    padding: 0;
}

.about-content-column .section-title::after {
    left: 0;
    transform: none;
}

.about-features { margin: 1.5rem 0; }

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.about-features i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* 10. ROI CALCULATOR
--------------------------------------------- */
.roi-calculator-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.roi-calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.roi-form-panel { padding: 2rem; }

.roi-form-panel .form-group { margin-bottom: 1.25rem; }

.roi-form-panel label {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roi-form-panel input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.roi-results-panel {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.result-box {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--text-muted);
}

.result-box.highlighted { border-left-color: var(--accent); }
.result-box.potential-gain { border-left-color: #059669; }

.result-box h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-box p {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    color: var(--text);
    margin: 0;
}

.projection-tag {
    font-size: 0.7rem;
    font-family: var(--font-secondary);
    background: rgba(13, 148, 136, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 20px;
}

/* 11. TESTIMONIALS
--------------------------------------------- */
.testimonials-section { background: var(--bg); }

.testimonial-slider-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    padding: 0 1rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    visibility: hidden;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.testimonial-text::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.testimonial-author { text-align: right; }

.author-name {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text);
}

.author-title { font-size: 0.85rem; color: var(--text-muted); }

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn { transform: translateX(-55px); }
.next-btn { transform: translateX(55px); }

.slider-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 12. CTA
--------------------------------------------- */
.cta-section {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    background: var(--bg-dark);
    color: #f1f5f9;
}

#particles-js-cta {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.15;
}

.cta-section .section-title,
.cta-section .cta-title { color: #f1f5f9; }
.cta-section .section-title::after { background: var(--accent); }
.cta-section .cta-subtitle { color: #94a3b8; }

.cta-title { font-size: 2.25rem; margin-bottom: 0.75rem; }

.cta-subtitle {
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.cta-section .btn-primary {
    background: var(--accent);
    color: #fff;
}
.cta-section .btn-primary:hover {
    background: #0f766e;
    color: #fff;
}

/* 13. CONTACT PAGE
--------------------------------------------- */
.contact-page-section { background: var(--bg); }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info-panel {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.06), transparent);
}

.contact-info-panel h3 { margin-bottom: 0.5rem; color: var(--text); }

.contact-details-list {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-details-list i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 2px;
    width: 28px;
    text-align: center;
}

.contact-details-list h4 { font-size: 0.9rem; margin-bottom: 0.2rem; color: var(--text); }
.contact-details-list p,
.contact-details-list a { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.contact-details-list a:hover { color: var(--accent); }

.contact-form-wrapper { padding: 2rem; }

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group { margin-bottom: 1rem; }

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;
}

/* 14. LEGAL PAGES
--------------------------------------------- */
.main-content { background: var(--bg); }

.legal-content-wrapper {
    background: var(--bg-card);
    padding: 2.5rem 3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 880px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.legal-content p { color: var(--text-muted); line-height: 1.8; }
.legal-content strong { color: var(--text); }

/* 15. POPUP
--------------------------------------------- */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 420px;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-md);
}

.popup.show .popup-content { transform: scale(1); }

.popup-icon { font-size: 3rem; color: #059669; margin-bottom: 1rem; }
.popup-content h3 { margin-bottom: 0.5rem; color: var(--text); }
.popup-content p { margin-bottom: 1.5rem; color: var(--text-muted); }

/* 16. ANIMATIONS (keep for GSAP)
--------------------------------------------- */
.animate-hero-title,
.animate-hero-subtitle,
.animate-hero-cta {
    opacity: 0;
    transform: translateY(24px);
}

.page-title-animate {
    opacity: 0;
    transform: translateY(20px);
}

/* 17. RESPONSIVE
--------------------------------------------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.75rem; }
    .hero-title { font-size: 3.25rem; }
    .section-padding { padding: 4rem 0; }
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image-column { max-width: 480px; margin: 0 auto; }
    .about-content-column { text-align: center; }
    .about-content-column .section-title { text-align: center; }
    .about-content-column .section-title::after { left: 50%; transform: translateX(-50%); }
    .roi-calculator-wrapper { grid-template-columns: 1fr; }
    .roi-results-panel { border-top: 1px solid var(--border); padding-top: 1.5rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; gap: 0.75rem; }
    .page-header-section { padding: calc(var(--header-height) + 3rem) 0 2rem; }
    .page-header-section h1 { font-size: 2.25rem; }
    .section-padding { padding: 3rem 0; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -8px 0 24px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    .nav-menu.show { right: 0; }
    .nav-list { flex-direction: column; gap: 2rem; }
    .nav-link { font-size: 1.1rem; }
    .nav-toggle { display: block; }
    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    .header-actions .btn { display: none; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col-title { display: block; }
    .social-links { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .testimonial-slider { min-height: auto; padding: 1.5rem; }
    .testimonial-text { font-size: 1rem; }
    .slider-controls { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2rem; }
    .page-header-section h1 { font-size: 1.85rem; }
    .btn { padding: 10px 20px; font-size: 0.85rem; }
    .btn-lg { padding: 12px 24px; }
    .legal-content-wrapper { padding: 1.5rem 1.25rem; }
    .popup-content { width: 90%; padding: 1.5rem; }
}
