/* static/css/main.css - FINAL PRODUCTION VERSION */

/* ========================================= */
/* 0. GLOBAL IMPORTS & VARIABLES             */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Rajdhani:wght@600&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #12141D;
    --color-bg-light: #1A1D2A;
    --color-text: #E0E0E0;
    --color-text-dim: #999;
    

    --color-accent: #00A3FF; 
    
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Exo', sans-serif;
}

/* REAL MOBILE FIX: Prevents random font zooming on landscape/android */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; 
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ========================================= */
/* 1. BODY & LAYOUT                          */
/* ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    
    /* BACKGROUND: Faint Blueprint Grid + Indigo Top Glow */
    background-image: 
        /* Layer 1: Vertical Lines - FAINT WHITE */
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 50px),
        /* Layer 2: Horizontal Lines - FAINT WHITE */
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 50px),
        /* Layer 3: The Glow - Deep Industrial Indigo */
        radial-gradient(circle at 50% 0%, rgba(127, 90, 240, 0.25) 0%, transparent 60%);
    
    background-attachment: fixed;
    
    color: var(--color-text);
    font-size: 18px; 
    line-height: 1.6;

    /* REAL MOBILE FIX: Use dvh for full height including address bar */
    min-height: 100vh; 
    min-height: 100dvh; 
    
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================= */
/* 2. NAVBAR                                 */
/* ========================================= */
.navbar {
    background: rgba(18, 20, 29, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Light hitting top edge */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Faint bottom edge */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 200000 !important;
    height: 70px; 
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 15px; 
}

/* --- LOGO --- */
.logo-container {
    position: relative;
    z-index: 200001;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 200002;
}

/* Text Logo Styles */
.logo-text {
    font-family: 'Audiowide', cursive;
    font-size: 28px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.logo-text .saffron {
    color: #FF9933; 
    text-shadow: 0 0 10px rgba(255, 153, 51, 0.3); 
}

.logo-text .blue {
    color: #00A3FF; /* Kept blue for logo consistency */
    text-shadow: 0 0 10px rgba(0, 163, 255, 0.3); 
}

@media (max-width: 768px) {
    .logo-text { font-size: 20px; }
}

/* --- NAV BUTTON --- */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0; 
}

.btn-primary {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; 
    height: 36px;
    padding: 0 20px;
    font-size: 12px;
}

.btn-primary:hover {
    background: rgba(127, 90, 240, 0.2); /* Indigo Hover */
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(127, 90, 240, 0.4);
}

@media (min-width: 768px) {
    .navbar { height: 80px; }
    .btn-primary { height: 48px; padding: 0 32px; font-size: 15px; }
}

/* ========================================= */
/* 3. HERO SECTION                           */
/* ========================================= */
.hero {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 0 0; 
    text-align: center;
    width: 100%; 
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(38px, 6vw, 64px); 
    margin-bottom: 25px;
    line-height: 1.2;
    /* Gradient updated to include Indigo */
    background: linear-gradient(90deg, var(--color-accent), #ffffff, #ff00c3, var(--color-accent));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-flow 10s linear infinite;
}

.hero .subtitle {
    font-size: clamp(18px, 3vw, 22px);
    color: var(--color-text-dim);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(30px, 5vw, 60px);
    margin-top: 5px;
}

.hero-stats .stat h3 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    color: var(--color-accent);
    margin: 0;
}

.hero-stats .stat p {
    font-size: 16px;
    color: var(--color-text-dim);
    margin: 0;
}

/* ========================================= */
/* 4. HIGHLIGHT GRID (SMART INTERACTION)     */
/* ========================================= */

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 20px;
    margin: 20px auto 30px auto;
    width: 100%;
    max-width: 1100px;
}

.highlight-card {
    background: rgba(26, 29, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Smooth transition for everything */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    /* CLEANUP: Removes default browser outlines on tap */
    outline: none; 
    -webkit-tap-highlight-color: transparent;
}

.h-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: color 0.3s ease;
}
.h-icon svg { width: 32px; height: 32px; }

.h-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #fff;
}
.h-content p {
    font-size: 16px;
    color: var(--color-text-dim);
    margin: 0;
}

/* ------------------------------------------------------- */
/* 1. BASE STATE (Apply "Subtle Glow" to Desktop AND Mobile) */
/* ------------------------------------------------------- */

/* Blue - Subtle Resting State */
.card-blue { 
    border-color: rgba(0, 163, 255, 0.3); 
    box-shadow: 0 0 50px rgba(0, 163, 255, 0.1); /* Faint Glow */
}

/* Orange - Subtle Resting State */
.card-orange { 
    border-color: rgba(255, 153, 51, 0.3); 
    box-shadow: 0 0 50px rgba(255, 153, 51, 0.1); 
}

/* Cyan - Subtle Resting State */
.card-cyan { 
    border-color: rgba(0, 229, 255, 0.3); 
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.1); 
}

/* Green - Subtle Resting State */
.card-green { 
    border-color: rgba(0, 255, 153, 0.3); 
    box-shadow: 0 0 50px rgba(0, 255, 153, 0.1); 
}


/* ------------------------------------------------------- */
/* 2. DESKTOP INTERACTION (Mouse Hover) -> Float Up        */
/* ------------------------------------------------------- */
@media (hover: hover) {
    
    /* Blue Hover */
    .card-blue:hover { 
        border-color: #00A3FF; 
        transform: translateY(-5px); 
        box-shadow: 0 0 2000px rgba(0, 163, 255, 0.5), inset 0 0 10px rgba(0, 163, 255, 0.2);
    }
    .card-blue:hover .h-icon { color: #00A3FF; }

    /* Orange Hover */
    .card-orange:hover { 
        border-color: #FF9933; 
        transform: translateY(-5px);
        box-shadow: 0 0 2000px rgba(255, 153, 51, 0.5), inset 0 0 10px rgba(255, 153, 51, 0.2);
    }
    .card-orange:hover .h-icon { color: #FF9933; }

    /* Cyan Hover */
    .card-cyan:hover { 
        border-color: #00E5FF; 
        transform: translateY(-5px);
        box-shadow: 0 0 2000px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.2);
    }
    .card-cyan:hover .h-icon { color: #00E5FF; }

    /* Green Hover */
    .card-green:hover { 
        border-color: #00FF99; 
        transform: translateY(-5px);
        box-shadow: 0 0 2000px rgba(0, 255, 153, 0.5), inset 0 0 10px rgba(0, 255, 153, 0.2);
    }
    .card-green:hover .h-icon { color: #00FF99; }
}


/* ------------------------------------------------------- */
/* 3. MOBILE (Touch -> Sticky Focus)                       */
/* ------------------------------------------------------- */
/* This uses :focus to keep the light ON until you tap background */

@media (hover: none) {
    
    /* BLUE STICKY */
    .card-blue:focus { 
        border-color: #00A3FF !important; 
        background: rgba(0, 163, 255, 0.25); 
        box-shadow: 0 0 50px rgba(0, 163, 255, 0.8); /* Massive Glow */
        transform: scale(0.98);
    }

    /* ORANGE STICKY */
    .card-orange:focus { 
        border-color: #FF9933 !important; 
        background: rgba(255, 153, 51, 0.25); 
        box-shadow: 0 0 50px rgba(255, 153, 51, 0.8);
        transform: scale(0.98);
    }

    /* CYAN STICKY */
    .card-cyan:focus { 
        border-color: #00E5FF !important; 
        background: rgba(0, 229, 255, 0.25); 
        box-shadow: 0 0 50px rgba(0, 229, 255, 0.8);
        transform: scale(0.98);
    }

    /* GREEN STICKY */
    .card-green:focus { 
        border-color: #00FF99 !important; 
        background: rgba(0, 255, 153, 0.25); 
        box-shadow: 0 0 50px rgba(0, 255, 153, 0.8);
        transform: scale(0.98);
    }
}
/* ========================================= */
/* 5. TECH CAROUSEL                          */
/* ========================================= */
.tech-section-title {
    text-align: center;
    color: var(--color-text-dim);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 0;
}

.tech-carousel-wrapper {
    width: 100%;
    max-width: 900px;
    height: 200px;
    position: relative;
    overflow: hidden; 
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.tech-swiper {
    width: 100%;
    height: 100%;
    padding-top: 50px;
    overflow: visible;
}

.swiper-slide {
    width: 90px !important;
    height: 90px !important;
    margin: 0 35px !important;
    opacity: 0.3;
    transform: scale(1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1.5) translateY(-10px) !important;
    z-index: 100;
}

.swiper-slide-prev, .swiper-slide-next {
    opacity: 0.6 !important;
    transform: scale(1.2) !important;
    z-index: 50;
}

.tech-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}
.swiper-slide-active .tech-icon-box img {
    filter: grayscale(0%);
    /* Updated shadow to Indigo */
    filter: drop-shadow(0 0 15px rgba(127, 90, 240, 0.6));
}

.tech-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    text-align: center;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0;
    transition: 0.3s;
}
.swiper-slide-active .tech-label { opacity: 1; }

/* ========================================= */
/* 6. CONTACT PAGE & FORMS                   */
/* ========================================= */
.contact-hero {
    text-align: center;
    padding: 0 0 10px 0;
}

.contact-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 58px); 
    margin-bottom: 15px;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-accent), #ffffff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.contact-hero .subtitle {
    color: var(--color-text-dim);
    font-size: clamp(16px, 2vw, 20px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px;
    align-items: start;
    margin-bottom: 80px;
}

.glass-card {
    background: rgba(26, 29, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 25px; 
    margin-bottom: 25px; 
}

.info-card:hover {
    transform: translateX(5px);
    border-color: var(--color-accent);
}

.info-card .icon-box {
    width: 64px; 
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}
.info-card .icon-box svg { width: 32px; height: 32px; }

.info-card h3 { margin: 0 0 5px 0; font-size: 20px; color: #fff; }
.info-card p { margin: 0; color: var(--color-text-dim); font-size: 16px; }

/* --- FORM INPUTS (Fixed Indigo Glow) --- */
.form-box h3 {
    margin-top: 0;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 28px;
    color: #fff;
}

.input-group { margin-bottom: 25px; }
.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input, select, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 18px;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none; /* Prevent iOS styles */
}

/* Focus State: INDIGO GLOW */
input:focus, select:focus, textarea:focus {
    border-color: var(--color-accent);
    background: rgba(127, 90, 240, 0.1); 
    box-shadow: 0 0 15px rgba(127, 90, 240, 0.3);
}

::placeholder { color: rgba(255, 255, 255, 0.3); }

.full-width {
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    border: 1px solid var(--color-accent); 
}

select option {
    background-color: #12141D; 
    color: #fff;
    padding: 12px;
    font-size: 16px;
}

/* ========================================= */
/* 7. FOOTER                                 */
/* ========================================= */
.footer {
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid var(--color-bg-light);
    color: var(--color-text-dim);
    font-size: 14px;
    flex-shrink: 0;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ========================================= */
/* 8. MOBILE SPECIFIC FIXES                  */
/* ========================================= */
@media (max-width: 768px) {
    /* Fix background scrolling issues on iPhone */
    body {
        background-attachment: scroll !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .info-card { padding: 20px; }
    .contact-hero { padding: 30px 0; }
}

/* Phone Number Fix: Prevents Blue Links on Mobile */
a[href^="tel"] {
    color: inherit !important; 
    text-decoration: none !important; 
}
.info-card p a {
    color: var(--color-text-dim) !important; 
}

