/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import 'variables.css';

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
}

.glass-panel {
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--color-border);
    border-radius: 1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
    /* Semi-transparent at top */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(5, 5, 12, 0.95);
    /* Deep dark when scrolled */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 0.8rem 0;
    /* Slightly shrink on scroll */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-secondary);
}

/* Footer */
footer {
    background: #0b1120;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--color-text-muted);
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-wrapper {
        text-align: center !important;
    }

    .hero-text-content {
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Light Theme Section Override */
.section-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-light .text-gradient {
    /* Keep gradient or switch to solid dark? Keep gradient for branding */
    opacity: 0.9;
}

.section-light h2,
.section-light h3,
.section-light h4 {
    color: var(--color-text-dark);
}

.section-light p {
    color: var(--color-text-muted-dark);
}

.section-light .glass-panel {
    background: var(--color-bg-card-light);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.section-light .glass-panel:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.form-input,
.form-select,
.form-textarea,
.form-file {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-file {
    padding: 0.6rem;
    cursor: pointer;
}

.form-file::file-selector-button {
    margin-right: 1rem;
    background: var(--color-primary);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
}

.form-file::file-selector-button:hover {
    background: var(--color-primary-hover);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.3);
}

/* Fix for Select Dropdown Options */
.form-select option {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-primary);
    color: white;
    width: 50px;
    height: 50px;
    transform: translateY(20px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* --- Hero Redesign Styles --- */
.hero-wrapper {
    position: relative;
    padding: 5rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

/* Glowing Orbital Background Animation */
.hero-orbit-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.orbit-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotateOrbit 20s linear infinite;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
    animation-duration: 25s;
}

.orbit-2 {
    width: 450px;
    height: 450px;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
    animation-duration: 40s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 600px;
    height: 600px;
    border-color: rgba(244, 63, 94, 0.25);
    animation-duration: 60s;
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    transform: translate(-50%, -50%);
}

@keyframes rotateOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Premium Stats Strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 4rem;
}

.stat-item {
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: background 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.6);
    color: white;
}

/* Badge Style for Industries */
.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-light .badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-primary-hover);
    border-color: rgba(139, 92, 246, 0.3);
}