/* =============================================
   RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, sans-serif;
    background: #080a0f;
    color: #ffffff;
    overflow-x: hidden;
}

:root {
    --primary:   #00f2ff;
    --secondary: #4facfe;
    --accent:    #0061ff;
    --bg-card:   rgba(255, 255, 255, 0.03);
}

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

.header-nav ul, 
.mobile-menu ul, 
.logo-frame,
.lang-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-contact-btn,
.custom-option,
.mini-store-btn {
    user-select: none;
    -webkit-user-select: none;
}

/* =============================================
   HEADER
   ============================================= */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: fit-content;
    height: 60px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 40px;
    background: rgba(18, 16, 25, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.right-content, .lang-container {
    display: flex;
    align-items: center;
}

#custom-language-selector {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-frame {
    width: 150px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    cursor: pointer;
}

.logo-full {
    height: 30px;
    min-width: 150px;
    display: block;
}

#header.scrolled .logo-frame {
    width: 22px;
}

#header.scrolled .logo-frame:hover {
    /* filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.8)); */
}

.logo {
    height: 22px;
    cursor: pointer;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.4));
}

.header-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: 13px;
    color: #9ca3af;
}

.header-nav ul li {
    position: relative;
    padding: 5px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.header-nav ul li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.header-nav ul li:hover {
    color: #ffffff;
}

.header-nav ul li:hover::after {
    width: 100%;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 200px;
    background: rgba(18, 16, 25, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* =============================================
   SCROLL SPY
   ============================================= */

.header-nav ul li.active {
    color: #ffffff;
}

.header-nav ul li.active::after {
    width: 100%;
}

.header-nav ul li.active {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
    transition: all 0.3s ease;
}

/* =============================================
   LANGUAGE SELECTOR
   ============================================= */
.lang-container {
    position: relative;
}

.select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.circle-flag {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.circle-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.chevron-icon svg {
    width: 14px;
    transition: transform 0.3s ease;
}

.custom-select.open .chevron-icon svg {
    transform: rotate(180deg);
}

.select-options {
    width: 200px;
    top: 80px;
    left: auto;
    border-radius: 20px;
    overflow: hidden;
    position: fixed !important;
    z-index: 9999 !important;
    
    background: rgba(18, 16, 25, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
}

.select-options.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: background 0.2s;
}

.custom-option:hover {
    background: rgba(0, 242, 255, 0.1);
    color: #ffffff;
}

.custom-option.selected {
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

.custom-option svg,
.custom-option .flag-icon {
  pointer-events: none;
}

.flag-icon svg {
    width: 20px;
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

/* =============================================
   HERO
   ============================================= */
.hero-modern {
    background-color: #101016;
    padding: 100px 0 20px;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-min {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    align-items: center;
}

.logo-hero {
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.4));
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-desc {
    color: #9ca3af;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 750px;
}

.pill-badge {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.2)); */
}

.visual-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

/* =============================================
   SECTIONS (SHARED)
   ============================================= */
.features-modern {
    padding: 60px 0 80px;
    background-color: #0d0d12;
}

.features-modern-light {
    padding: 60px 0 80px;
    background: #101016;
}

.features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.features-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 800px;
}

/* =============================================
   SERVICES CARDS
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    cursor: default;
    border-color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.icon-box svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    display: block;
}

/* =============================================
   TEAM AND ADN
   ============================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%) brightness(1); 
    transform: scale(1.075);
}

.team-card h4 {
    font-size: 0.75rem;
    color: #ffffff;
    margin-bottom: 0;
}

.team-card span {
    font-size: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adn-details-grid {
    display: grid;
    padding-left: 0!important;
    padding-right: 0!important;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
    padding-bottom: 40px;
}

.adn-card {
    text-align: left;
    padding: 0 20px;
    /* border-left: 1px solid rgba(0, 242, 255, 0.2); */
}

.adn-card:last-child {
    /* border-right: 1px solid rgba(0, 242, 255, 0.2); */
}

.adn-card .title-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.adn-card .title-box .icon-box {
    margin-bottom: 0;
}

.adn-card h3 {
    font-size: 1.1rem;
    color: #ffffff;
}

.adn-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .adn-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =============================================
   PRODUCT / PORTFOLIO
   ============================================= */
.product-featured {
    margin-top: 50px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1000px;
    margin: 0 auto;
}

.product-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.product-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.product-info p {
    color: #9ca3af;
    margin-bottom: 30px;
    line-height: 1.6;
}

.q24-inline-logo {
    height: 1em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    padding-top: 5px;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* =============================================
   BUTTONS
   ============================================= */
.store-button-glass {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
}

.store-button-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
}

.store-button-glass:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.15);
    text-decoration: none;
}

.store-button-glass:hover::before {
    left: 125%;
    transition: left 0.75s ease;
}

.store-button-glass span {
    position: relative;
    z-index: 3;
}

.button-text {
    color: #9ca3af;
    font-size: 14px;
}

/* =============================================
   CONTACT
   ============================================= */
.status-badge {
    margin-bottom: 16px;
}

.contact-actions {
    display: flex;
    justify-content: center;
}

.whatsapp-btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.whatsapp-btn-glow:hover::before {
    left: 125%;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-modern {
    padding: 30px 0;
    background: linear-gradient(to top, rgba(0, 242, 255, 0.03), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
}

.footer-legal-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-hours {
    color: #374151;
    font-size: 0.8rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

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

.team-card.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay); 
}

.team-card.reveal {
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-property: opacity, transform;
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-whatsapp {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    header {
        width: fit-content;
        transform: unset;
        left: 20px;
        justify-content: space-between;
        top: 5px;
        padding: 0px 20px;
        gap: 20px;
    }

    .flag-icon svg {
        width: 35px;
        border-radius: 10px;
    }

    .select-options {
        position: absolute;
        top: 80px;
        left: 20px;
        right: auto;
    }

    .circle-flag {
        width: 35px;
        height: 35px;
    }

    .chevron-icon {
        display: none;
    }
    
    .header-nav { display: none; }
    
    .mobile-menu {
      top: 80px;
      height: auto;
      width: 200px;
      background: rgba(18, 16, 25, 0.3);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
      border: none;
      transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    .mobile-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0); 
        top: 80px;
        height: auto;
        width: 200px;
        right: unset;
        border-radius: 20px;
        overflow: hidden;
    }
    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        list-style: none;
        padding: 0px;
        margin: 0px;
        gap: 30px;
    }
    .mobile-menu ul li {
        color: rgb(156, 163, 175);
        font-size: 16px;
        cursor: pointer;
        text-align: center;
        transition: color 0.3s;
    }
    .mobile-menu ul li.active {
        color: var(--primary) !important;
        font-weight: bold;
    }
    .header-nav { display: none; }
    .hero-grid,
    .features-grid,
    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
        margin: 0;
    }
    .product-info {
        align-items: center;
        padding: 40px 20px;
    }
    .adn-card .title-box {
        justify-content: center;
        padding-right: 25px;
    }
    .adn-card p {
        text-align: center;
    }
    .team-card h4 {
        font-size: 0.85rem;
    }
    .feature-card {
        align-items: center;
        text-align: center;
    }
    .hero-img {
        max-width: 300px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card {
        margin: 0 20px;
        padding-bottom: 39px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .whatsapp-btn-glow {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .features-modern, .features-modern-light {
        padding: 50px 0;
    }

    .logo-hero {
        margin-bottom: 40px;
    }

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

    .hero-img {
        max-width: unset;
    }

    .product-info h3 {
        font-size: 1.5rem;
    }

    .product-image {
        padding: 0 20px;
    }

    .store-button-glass {
      width: 100%;
      height: 60px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }
}