:root {
--background: hsl(210, 29%, 97%);
--foreground: hsl(0, 0%, 10%);
--primary: hsl(194, 100%, 46%);
--primary-foreground: hsl(0, 0%, 100%);
--primary-glow: hsl(194, 100%, 60%);
--secondary: hsl(189, 100%, 23%);
--muted: hsl(186, 67%, 94%);
--border: hsl(186, 67%, 88%);
--card: hsl(0, 0%, 100%);
--card-foreground: hsl(0, 0%, 10%);
}

.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(246, 248, 250, 0.8); backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header.scrolled {
    background: rgba(246, 248, 250, 0.95);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: var(--foreground);
    position: relative;
}

.logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 4px 24px hsla(194, 100%, 46%, 0.4), 0 0 40px hsla(194, 100%, 46%, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo:hover .logo-icon {
transform: scale(1.08) rotate(-5deg);
box-shadow: 0 8px 32px hsla(194, 100%, 46%, 0.5), 0 0 60px hsla(194, 100%, 46%, 0.3);
}

.logo-text {
    font-size: 1.625rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}

.nav-center {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.625rem;
    margin-left: 0.35rem;
    transition: transform 0.3s ease;
}

.nav-item.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsla(194, 100%, 46%, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 24px hsla(194, 100%, 46%, 0.35);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-glow), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px hsla(194, 100%, 46%, 0.5);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(246, 248, 250, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 1rem;
    min-width: 240px;
    box-shadow: 0 16px 48px rgba(0, 180, 233, 0.15), 0 0 0 1px rgba(0, 180, 233, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    margin-top: 0.875rem;
    z-index: 100;
    overflow: hidden;
    }

    .nav-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    background: transparent;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 180, 233, 0.08);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

.language-selector { position: relative; display: inline-block; }
.language-btn {
    background: transparent; border: 2px solid var(--border); border-radius: 0.75rem;
    padding: 0.625rem 1rem; display: flex; align-items: center; gap: 0.625rem;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600; font-size: 0.875rem; position: relative; overflow: hidden;
}

.language-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0, 180, 233, 0.1), transparent); opacity: 0; transition: opacity 0.3s ease;
}
.language-btn:hover { background: var(--muted); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px hsla(194, 100%, 46%, 0.15); }
.language-btn:hover::before { opacity: 1; }
.language-flag {
    width: 1.375rem;
    height: 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    background: white;
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.language-dropdown {
    position: absolute; top: 100%; right: 0;
    background: rgba(246, 248, 250, 0.95); backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border); border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,180,233,0.1);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none;
    margin-top: 0.625rem; z-index: 100; min-width: 180px; overflow: hidden;
}
.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.language-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    font-weight: 500;
    background: transparent;
    position: relative;
}

.language-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.language-option:hover { background: rgba(0, 180, 233, 0.08); color: var(--primary); padding-left: 1.75rem; }

.language-option.active::before {
    transform: scaleY(1);
}

.language-option.active {
    background: linear-gradient(90deg, rgba(0, 180, 233, 0.1), transparent);
    color: var(--primary);
    font-weight: 600;
}

.language-option.active:hover {
    background: rgba(0, 180, 233, 0.08);
    padding-left: 1.75rem;
}
[x-cloak] { display: none !important; }
@media (max-width: 768px) {
.header-container {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-center {
    order: 3;
    width: 100%;
    gap: 1rem;
    justify-content: flex-start;
    display: none;
    flex-direction: column;
}

.nav-center.mobile-open {
    display: flex;
    background: rgba(246, 248, 250, 0.95);
    padding: 1rem;
    border-radius: 0.875rem;
    margin-top: 0.5rem;
}

.nav-buttons {
    gap: 0.75rem;
}
}
.menu-toggle{
  display:none; align-items:center; justify-content:center; background:transparent; border:2px solid var(--border); border-radius:10px; padding:.45rem; cursor:pointer;
}
.hamburger{ display:inline-block; width:22px; height:16px; position:relative; }
.hamburger span{ display:block; position:absolute; left:0; right:0; height:2px; background:var(--foreground); transition: all .25s; border-radius:2px; }
.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:7px; }
.hamburger span:nth-child(3){ bottom:0; }

.menu-toggle.open .hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .hamburger span:nth-child(2){ opacity:0; transform:scaleX(.2); }
.menu-toggle.open .hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px){
  .nav-center{ display:none; order:3; width:100%; gap:.5rem; justify-content:flex-start; flex-direction:column; padding:0; }
  .nav-center.mobile-open{ display:flex; background:rgba(246,248,250,0.98); padding:1rem; border-radius:12px; margin-top:.6rem; box-shadow:0 10px 30px rgba(10,10,10,0.04); }
  .menu-toggle{ display:flex; }
  .header-container{ padding:.8rem 1rem; }
  .nav-buttons{ display:flex; gap:.5rem; align-items:center; margin-left:auto; }
  .nav-action{ padding:.55rem .85rem; font-size:.9rem; }
  .language-dropdown{ right:auto; left:0; min-width:100%; box-sizing:border-box; }
  .language-btn{ padding:.45rem .6rem; }
  .logo-text{ display:none; }
  .logo-icon{ width:40px; height:40px; }
}

@media (max-width:480px){
  .btn{ padding:.5rem .7rem; font-size:.86rem; border-radius:10px; }
  .nav-center.mobile-open{ padding:.75rem; gap:.4rem; }
  .language-option span:nth-child(2){ display:inline-block; }
}