/* Dark Theme (Default) */
:root,
[data-theme="dark"] {
    --primary: #3a5da5;
    --primary-light: #5d87d6;
    --primary-dark: #24417C;
    --secondary: #050a10;
    --surface: #0f1724;
    --surface-light: #1a2639;
    --text: #e0e6ed;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #3a5da5 0%, #24417C 100%);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container: 1200px;
    --header-height: 90px;
    --header-bg: rgba(5, 10, 16, 0.85);
    --header-bg-scrolled: rgba(5, 10, 16, 0.95);
    --header-border: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(26, 38, 57, 0.4);
    --card-bg-hover: rgba(26, 38, 57, 0.8);
    --card-border: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(0, 0, 0, 0.2);
    --input-border: rgba(255, 255, 255, 0.1);
    --footer-bg: #020508;
    --hero-overlay: rgba(5, 10, 16, 0.9);
    --hero-overlay-end: rgba(5, 10, 16, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --tool-filter: brightness(0) invert(1);
    --btn-text: #ffffff;
    --tool-bg: rgba(255, 255, 255, 0.05);
    --tool-border: rgba(255, 255, 255, 0.15);
    --tool-hover-bg: rgba(255, 255, 255, 0.15);
}

/* Light Theme */
[data-theme="light"] {
    --primary: #2c5aa0;
    --primary-light: #4a7fd4;
    --primary-dark: #1a3d70;
    --secondary: #c8d0dc;
    --surface: #b8c2d0;
    --surface-light: #adb8c8;
    --text: #111a28;
    --text-muted: #3d4e63;
    --white: #111a28;
    --gradient: linear-gradient(135deg, #2c5aa0 0%, #1a3d70 100%);
    --header-bg: rgba(180, 192, 210, 0.92);
    --header-bg-scrolled: rgba(170, 182, 200, 0.98);
    --header-border: rgba(0, 0, 0, 0.12);
    --card-bg: rgba(220, 228, 240, 0.7);
    --card-bg-hover: rgba(210, 220, 235, 0.95);
    --card-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(230, 236, 245, 0.9);
    --input-border: rgba(0, 0, 0, 0.18);
    --footer-bg: #1a2332;
    --hero-overlay: rgba(160, 175, 195, 0.88);
    --hero-overlay-end: rgba(180, 192, 210, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --tool-filter: none;
    --btn-text: #ffffff;
    --tool-bg: rgba(30, 60, 100, 0.12);
    --tool-border: rgba(30, 60, 100, 0.25);
    --tool-hover-bg: rgba(30, 60, 100, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.counter,
.badge {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Helpers */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

/* Buttons */
/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: var(--secondary);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-primary.header-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--btn-text);
}

.btn-primary.support-btn {
    background: var(--tool-bg);
    border: 1px solid var(--tool-border);
    color: var(--text);
}

.btn-primary.support-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(58, 93, 165, 0.6);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Header Utilities */
.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 10px;
}

.tool-link {
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: var(--tool-bg);
    border-radius: 6px;
    border: 1px solid var(--tool-border);
}

.tool-link img {
    height: 24px;
    width: auto;
    filter: var(--tool-filter);
    transition: var(--transition);
    display: block;
}

.tool-link:hover {
    background: var(--tool-hover-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tool-link:hover img {
    /* If logos are colored originals, maybe remove filter on hover? */
    /* Assuming logos are colored to begin with, let's keep them original or white? */
    /* If user said 'real logos', presumably colors. Let's remove the filter initially if they are already good, or keep filter if they clash. */
    /* Usually white icons look best on dark headers. Let's try white filter first, restore color on hover. */
    filter: none;
}


/* Header */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--header-border);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background: var(--header-bg-scrolled);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    background: url('../img/hero.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--hero-overlay) 0%, var(--hero-overlay-end) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    /* Softer background */
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Very subtle border */
}

.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* Stats */
.stats {
    padding: 80px 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services {
    padding: 120px 0;
    background-color: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--card-bg-hover);
    border-color: rgba(58, 93, 165, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover .card-glow {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Brands Carousel */
.brands {
    padding: 40px 0;
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    white-space: nowrap;
}

.brands-track {
    display: inline-block;
    animation: slide 30s linear infinite;
}

.brand-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    width: 180px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    transition: var(--transition);
    vertical-align: middle;
    /* Fix for jagged layout */
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.brand-item:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.brand-item:hover img {
    filter: grayscale(0%);
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* About */
.about {
    padding: 120px 0;
    background: var(--secondary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-img {
    flex: 1;
}

.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.img-wrapper img {
    border-radius: 8px;
    display: block;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 93, 165, 0.1);
    mix-blend-mode: overlay;
}

/* Contact */
.contact {
    padding: 120px 0 80px;
    background: var(--surface);
    background-image: radial-gradient(circle at 100% 0%, rgba(58, 93, 165, 0.05) 0%, transparent 50%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: rgba(255, 255, 255, 0.02);
    padding: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(58, 93, 165, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(58, 93, 165, 0.1);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--footer-bg);
    padding: 80px 0 30px;
    color: #e0e6ed;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 25px;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 93, 165, 0.4);
}

/* Support & Contact Section */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

.column-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Accordion Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.faq-item:hover {
    border-color: rgba(58, 93, 165, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.faq-item[open] {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-item[open]::before {
    transform: scaleY(1);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--white);
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.faq-item summary:hover {
    color: var(--primary-light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 0.9rem;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 25px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -5px;
    /* Slight overlap close to summary */
    padding-top: 15px;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Card Styles */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(58, 93, 165, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.quick-contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.info-row:hover {
    color: var(--white);
    transform: translateX(5px);
}

.info-row i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}