/* ViVia - Main Stylesheet */
/* Digital Dept Srls - 2024 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #48BECE;
    --primary-dark: #36a3b3;
    --primary-light: #6dd5e5;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    transition: transform 0.3s ease;
    z-index: 1002;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--primary);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 190, 206, 0.3);
    font-size: 14px;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 190, 206, 0.4);
}

/* Megamenu Desktop */
.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 850px;
}

.nav-item:hover .megamenu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.megamenu-column h3 {
    color: var(--primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.megamenu-column h3 svg {
    width: 20px;
    height: 20px;
}

.megamenu-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.megamenu-item:last-child {
    border-bottom: none;
}

.megamenu-item:hover {
    padding-left: 10px;
}

.megamenu-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.megamenu-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.megamenu-link:hover {
    color: var(--primary);
}

.megamenu-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    margin-left: 28px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        width: 100%;
        padding: 20px 0;
        justify-content: space-between;
    }
    
    .megamenu {
        position: static;
        transform: none;
        min-width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        display: none;
        background: #f8f9fa;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item.active .megamenu {
        display: block;
    }
    
    .megamenu-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .megamenu-column {
        border-bottom: 1px solid #e0e0e0;
        padding: 20px 25px;
    }
    
    .megamenu-column:last-child {
        border-bottom: none;
    }
    
    .megamenu-column h3 {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .megamenu-item {
        padding: 12px 0;
    }
    
    .megamenu-item:hover {
        padding-left: 0;
    }
    
    .megamenu-desc {
        margin-left: 0;
        font-size: 12px;
    }
    
    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .logo img {
        height: 35px;
    }
}
