/* 
    Envara Modern Premium CSS
    Author: Antigravity
*/

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #64748b;
    /* Blue Grey */
    --accent-vibrant: #2563eb;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.3s ease;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 20px 60px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 32px 64px rgba(15, 23, 42, 0.1);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 2rem 0;
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1001;
}

/* Nav & Dropdown */
.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 240px;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1.02);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-alt);
    color: var(--accent-vibrant);
    padding-left: 1.5rem;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-vibrant);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(100, 116, 139, 0.05) 0%, transparent 40%);
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-vibrant);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1.05;
    color: var(--primary);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-alt);
    color: var(--accent-vibrant);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.service-card:hover .service-icon {
    background: var(--accent-vibrant);
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--accent-vibrant);
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
}

.about-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

/* Why Us */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(100, 116, 139, 0.1);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.process-grid {
    grid-template-columns: repeat(3, 1fr);
}

.contact-section-grid {
    grid-template-columns: 1fr 1fr;
}

.product-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--primary);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-visual {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav-list.active {
        right: 0;
    }

    .header-cta {
        display: none;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .benefits-grid,
    .footer-grid,
    .product-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-section-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .cta-section-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem !important;
        padding: 60px 2rem !important;
    }

    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 580px) {

    h1,
    h2,
    h1[style*="font-size"],
    h2[style*="font-size"] {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    .hero-title,
    .hero-title[style*="font-size"] {
        font-size: 2.5rem !important;
    }

    .benefits-grid,
    .footer-grid,
    .product-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .hero-actions,
    .cta-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .hero-actions .btn,
    .cta-actions .btn,
    .btn {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .about-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: -30px;
        z-index: 2;
        padding: 1.5rem;
    }

    .selection-content {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .selection-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header {
        padding: 1rem 0;
    }
}

/* Premium Contact Form System */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-label {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    opacity: 0.7;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    padding-top: 1.5rem;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary);
    transition: var(--transition-fast);
    min-height: 60px;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
}

.form-input:focus {
    outline: none;
    background: white;
    border-color: var(--accent-vibrant);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 10px 20px rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: 0.4rem;
    transform: translateY(0);
    left: 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-vibrant);
    opacity: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2.5rem;
    }
}

.dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.8;
}

/* Premium Selection Grid */
.selection-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.selection-item {
    position: relative;
}

.selection-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.selection-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.selection-content i {
    font-size: 1.2rem;
    color: var(--accent-vibrant);
}

.selection-item input:checked+.selection-content {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.selection-item input:checked+.selection-content i {
    color: white;
}

.selection-item:hover .selection-content {
    border-color: var(--accent-vibrant);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .selection-grid {
        grid-template-columns: 1fr;
    }
}

/* Exception for Textarea labels to keep them at the top */
textarea.form-input+.form-label {
    top: 1.2rem;
    transform: translateY(0);
}

textarea.form-input:focus+.form-label,
textarea.form-input:not(:placeholder-shown)+.form-label {
    top: 0.4rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding: 2.5rem;
        margin: 0 1rem;
    }

    .hero-visual::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    }
}