/* 
  Justtech Premium Corporate Design System
  Focus: Modern, High-Performance, Accessible
*/

:root {
    /* Colors */
    --bg-dark: #0f172a;
    /* Deep Slate Navy */
    --bg-glass: rgba(30, 41, 59, 0.7);
    --accent-blue: #38bdf8;
    /* Sky Blue */
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#logo img {
    filter: brightness(0) invert(1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.glass-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: var(--accent-blue);
}

/* Section Containers */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Typography Scale */
h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
}

/* Buttons */
.btn-premium {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.5);
    position: relative;
    z-index: 5;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.7);
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.contact-info-card i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info-card a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--accent-blue);
}

/* Hero Section Specifics */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url('../images/background/hero_premium.png') center/cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
    pointer-events: none;
}

/* Spectacular Product Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    padding: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(2deg);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 0.3;
}

.product-card .badge {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 1rem;
    display: block;
    width: fit-content;
    margin-left: auto;
    padding: 0.5rem 1.5rem;
    background: var(--primary-gradient);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card h3 {
    margin-top: 0.5rem;
    text-align: left;
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.75rem;
    margin: 0.5rem 0.5rem 0 0;
    color: var(--accent-blue);
    border: 1px solid var(--border-glass);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
}

.lang-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-glass);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

nav a:hover,
nav a.active {
    color: var(--accent-blue);
}

/* Grid Layouts */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    display: block;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: white;
    transition: var(--transition-smooth);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Performance Optimizations */
.lazy-bg {
    background-size: cover;
    background-position: center;
}

/* Mobile Menu Toggle */
#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

#menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

#menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    #menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav ul.active {
        right: 0;
    }

    .sm-hide {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 3rem;
    }

    section {
        padding: 60px 5%;
    }

    .glass {
        padding: 2rem !important;
    }
}