@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
    /* Primary Colors */
    --primary: #CC33FF;
    --primary-glow: rgba(204, 51, 255, 0.5);
    --secondary: #7000FF;
    --secondary-glow: rgba(112, 0, 255, 0.5);
    
    /* Neutral / Dark Palette */
    --bg-deep: #050505;
    --bg-card: rgba(20, 20, 25, 0.7);
    --text-main: #FFFFFF;
    --text-muted: #A0A0A8;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    /* Layout */
    --container-max: 1200px;
    --section-padding: 100px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Utilities --- */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Form Elements --- */
input, textarea, select {
    font-family: inherit;
    font-size: 1.15rem !important;
    padding: 18px !important;
}

input::placeholder, textarea::placeholder {
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Preloader / Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header Section --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu logic in JS later */
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent, var(--bg-deep));
    z-index: -1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* --- Tech Stack --- */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.tech-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.tech-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

.tech-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/* --- Services Grid --- */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.service-card {
    padding: 40px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- Products Showcase --- */
.product-showcase {
    background: linear-gradient(to bottom, var(--bg-deep), #0a0a0f);
}

.product-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.product-card:nth-child(even) {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {
    .product-card, .product-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
}

.product-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.product-img img {
    width: 100%;
    display: block;
}

.product-info {
    flex: 1;
}

/* --- Footer --- */
footer {
    padding: 60px 0 30px;
    background: #020202;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* --- Mobile Native Navigation --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 9999;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    gap: 4px;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Space for bottom nav */
    }
    .mobile-nav {
        display: flex;
    }
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000; /* Higher than bottom nav */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px; /* Above bottom nav */
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}
