/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Colors - Dark Theme (Premium & Tech) */
    --bg-darker: #050505;
    /* Blacker for higher contrast */
    --bg-dark: #0f1214;
    --bg-glass: rgba(15, 18, 20, 0.75);
    /* Glassmorphism background */

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-accent: #38bdf8;
    /* Lighter Blue/Cyan */

    --primary-color: #0ea5e9;
    /* Sky Blue - Corporate Tech */
    --primary-hover: #0284c7;
    --secondary-color: #2dd4bf;
    /* Teal Accent */

    --error-color: #ef4444;
    --success-color: #10b981;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #2dd4bf 100%);
    --gradient-text: linear-gradient(to right, #38bdf8, #2dd4bf);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.text-gradient {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

/* =========================================
   4. UTILITIES & COMPONENTS
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background: var(--gradient-main);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(45, 212, 191, 0.05) 0%, transparent 25%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-subtitle {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.tech-illustration {
    position: relative;
    width: 100%;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
}

.tech-illustration img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* =========================================
   7. SERVICES GRID
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    height: 100%;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-color);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    transition: color var(--transition-normal);
}

.service-card:hover .service-icon {
    color: white;
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   8. SOLUTIONS/DIFFERENTIALS
   ========================================= */
.solutions-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.solutions-list {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solutions-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.solutions-list i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.solutions-list strong {
    display: block;
    color: white;
    margin-bottom: 0.25rem;
}

.solutions-list span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.solutions-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-visual i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.3));
}

/* =========================================
   9. ABOUT & OTHERS
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-item {
    border-left: 2px solid var(--primary-color);
    padding-left: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {

    .hero-container,
    .solutions-wrapper,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .service-card {
        align-items: center;
        text-align: center;
    }

    .service-icon-wrapper {
        margin: 0 auto var(--spacing-md);
    }

    .solutions-list li {
        text-align: left;
    }

    .about-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease;
    }

    .nav-menu.show {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }
}

/* =========================================
   12. CAROUSEL & VISUAL UPDATES
   ========================================= */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    /* Ensure layout inside slide matches section */
    flex-direction: column;
    justify-content: center;
    /* Vertically center content if needed */
    padding-top: 80px;
    /* Match hero padding */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.slide-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   13. PROCESS SECTION
   ========================================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.process-step {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: var(--spacing-xs);
}

/* =========================================
   14. STICKY WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-pulse {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50%;
    z-index: 999;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   15. REFINED VISUALS & CONTACT FORM
   ========================================= */

/* Nav WhatsApp Button */
.nav-whatsapp {
    color: var(--br-green) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.nav-whatsapp:hover {
    color: var(--br-green-light) !important;
}

/* Solutions Visual Image Fix */
.solutions-wrapper {
    overflow: hidden;
    /* Ensure image bg doesn't spill */
}

.solutions-visual {
    /* Styles handled inline for image path, but structure here */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 968px) {
    .solutions-visual {
        min-height: 250px;
        border-radius: 0 0 16px 16px !important;
    }
}

/* Contact Form Overhaul */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-form-wrapper {
    padding: var(--spacing-lg);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    /* Space for icon */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.input-wrapper textarea {
    padding-top: 1rem;
    /* Align text top with icon */
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* =========================================
   16. FINAL ADJUSTMENTS (PHASE 4)
   ========================================= */

/* Fix Dropdown Color */
.input-wrapper select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Horizontal Nav Menu on Desktop */
@media (min-width: 769px) {
    .nav-list {
        display: flex;
        flex-direction: row;
        /* Enforce horizontal */
        align-items: center;
        gap: 2rem;
    }
}

/* Center Footer */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}