/* pt-sans-narrow-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    src: url('pt-sans-narrow-v19-latin-regular.woff2') format('woff2');
}

/* pt-sans-narrow-700 - latin */
@font-face {
    font-display: swap; 
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    src: url('pt-sans-narrow-v19-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-color: #ffffff;
    --text-main: #121212;
    --text-muted: #5a5a5a;
    --text-light: #cccccc;
    --border-light: #e2e8f0;
    --font-family: 'PT Sans Narrow', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    
    /* Core Theme Colors */
    --nav-bg: #000000;
    --nav-dropdown-bg: #37a9d6;
    --nav-mobile-bg: #0079a8;
    --color-firebrick: firebrick;
    --color-red: red;
    --color-accent: goldenrod;
    --footer-dark: #222222;

    /* Gradient Themes for 3D Boxes */
    --theme-1-c1: #00f2fe; --theme-1-c2: #4facfe;
    --theme-2-c1: #ff0844; --theme-2-c2: #ffb199;
    --theme-3-c1: #43e97b; --theme-3-c2: #38f9d7;
    --theme-4-c1: #fa709a; --theme-4-c2: #fee140;
    --theme-5-c1: #37a9d6; --theme-5-c2: #006c97;
    --theme-6-c1: #434343; --theme-6-c2: #000000;
    --theme-7-c1: #f83600; --theme-7-c2: #f9d423;
    
    /* Consolidated Radii & Shadows */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --shadow-light: 0 10px 25px rgba(55, 169, 214, 0.23);
    --shadow-dark: 0 4px 4px rgba(0, 178, 248, 0.73);
    --shadow-heavy: rgba(0, 183, 255, 0.01) 0px 20px 25px 5px, rgba(0, 0, 0, 0.01) 0px 10px 10px 5px;
    --shadow-heavy-hover: rgba(0, 183, 255, 0.25) 0px 20px 25px 5px, rgba(0, 0, 0, 0.04) 0px 10px 10px 5px;
    --shadow-hero: rgba(0, 183, 255, 0.25) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1.2rem;
    background-color: var(--bg-color);
    color: var(--text-main);
    letter-spacing: 0.01rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
    outline: 3px solid var(--nav-bg);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   ACCESSIBILITY: SKIP TO CONTENT
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--nav-bg);
    color: var(--bg-color);
    padding: 8px;
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.submenu-inner > li {
    list-style: none;
}

.container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4rem;    
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 1024px) {
    .container { 
        flex-direction: column;
        gap: 2rem;
    }
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mx-auto { margin-inline: auto; }
.max-w-600 { max-width: 600px; }
.max-w-900 { max-width: 1100px; }
.highlight-text { color: var(--nav-dropdown-bg); font-weight: 700; }
.mt-3 {margin-top: 3rem;}
.mb-3 {margin-bottom: 3rem;}
.gap-15 {gap: 1.5rem;}
.justify-center {justify-content: center;}
.align-items-center {align-items: center;}
.hero-turnon-wrapper {
    display: flex;
}

.hero-turnon-wrapper a:link, .hero-turnon-wrapper a:visited {
            color: var(--theme-5-c2);
            text-decoration: none;
        }

.hero-turnon-wrapper a:hover {
            color: var(--text-main);
            text-decoration: underline;
            text-decoration-style: wavy;
            text-underline-offset: 4px;
        }

@media (max-width: 1320px) {
    .hero-turnon-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth Intersection Observer Animation */
.reveal-element {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(80px) scale(0.92);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.reveal-element.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   BRAND LOGO STYLES
   ========================================================================== */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--bg-color);
    font-family: var(--font-family);
}

.brand-oza {
    display: inline-block; 
    background-color: var(--nav-dropdown-bg);
    padding: 0.15rem 0.6rem 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-text {
    color: var(--nav-bg);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    word-spacing: 0.1rem;
    margin-top: 0.1rem;
    text-align: center;
}

/* ==========================================================================
   NAVIGATION HEADER & SUBMENU
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: calc(100% - 0.5rem);
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 0.05rem);
    right: 0;
    min-width: 310px;
    width: 100%;
    background-color: var(--nav-mobile-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    list-style: none;
    
    transform: scale(0.1);
    transform-origin: top right;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-radius 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease, visibility 0.4s;
}

.nav-menu.is-open {
    transform: scale(1);
    border-radius: var(--radius-md);
    opacity: 1;
    visibility: visible;
    box-shadow: var(--shadow-light);
}

.nav-item {
    width: 100%;
    position: relative;
}

.nav-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    padding: 0.35rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (max-width: 1024px) {
    .nav-link {
        text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    }
}

.nav-link-discover {
    display: flex;
    width: max-content;
    border: 1px solid var(--bg-color);
    align-items: center;
    background: var(--color-red);
    color: var(--bg-color);
    position: relative;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    margin: 1.25rem auto 0 auto;
    text-align: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* GSAP-Style Submenu Animations */
.nav-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submenu-toggle[aria-expanded="true"] .nav-arrow {
    transform: rotate(180deg);
}

.submenu-wrapper {
    display: grid;
    height: 0;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    filter: drop-shadow(var(--shadow-dark));
}

.submenu-wrapper.is-open {
    grid-template-rows: 1fr;
    height: auto;
    opacity: 1;
    visibility: visible;
}

.submenu-inner {
    min-height: 0; /* Critical for grid animation */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    padding: 0.5rem;
    text-align: center;
}

.submenu-link {
    display: block;
    color: var(--bg-color);
    text-decoration: none;
    /* Updated right padding to 2rem to prevent the new arrow from overlapping text */
    padding: 0.275rem 2rem 0.275rem 1rem; 
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    position: relative;
    transition: padding-left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    z-index: 1;
}

.submenu-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--nav-dropdown-bg);
    border-radius: var(--radius-sm);
    border: 1px dashed rgb(51, 132, 185);
    opacity: 0;
    z-index: -1;
    transform: scaleX(0.95);
    transform-origin: left;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Injecting the unicode &#8677; (Hex: \21E5) */
.submenu-link::after {
    content: '\1F806'; 
    position: absolute;
    color: cyan;
    top: 50%;
    left: 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0;
    /* Starts 15px to the right to create the right-to-left fade-in effect */
    transform: translateY(-50%) translateX(15px);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none; /* WCAG AA compliance: prevents the arrow from interfering with link clicks */
}

.submenu-link:hover,
.submenu-link:focus-visible {
    color: var(--bg-color);
    padding-left: 1.5rem;
}

.submenu-link:hover::before,
.submenu-link:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

/* Triggering the animation on hover and focus */
.submenu-link:hover::after,
.submenu-link:focus-visible::after {
    opacity: 1;
    /* Slides into its natural resting place */
    transform: translateY(-50%) translateX(0);
}

/* Delay staggered setup */
.nav-menu.is-open .nav-item:nth-child(1) .nav-link { transition-delay: 0.10s; }
.nav-menu.is-open .nav-item:nth-child(3) .nav-link { transition-delay: 0.20s; }
.nav-menu.is-open .nav-item:nth-child(5) .nav-link { transition-delay: 0.30s; }
.nav-menu.is-open .nav-item:nth-child(7) .nav-link { transition-delay: 0.40s; }
.nav-menu.is-open .nav-item:nth-child(9) .nav-link-discover { transition-delay: 0.50s; }

.nav-menu.is-open .nav-link, .nav-menu.is-open .nav-link-discover {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--nav-bg), var(--nav-bg));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease 0.05s;
}

.nav-link:hover::before, 
.nav-link:focus-visible::before {
    opacity: 1;
}

.divider {
    display: block;
    height: 1px;
    width: 50%;
    background: linear-gradient(90deg, transparent, var(--bg-color), transparent);
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.5s ease 0.25s;
}

.nav-menu.is-open .divider {
    opacity: 1;
}

/* Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger .line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--nav-bg);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.is-active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Nav Breakpoint */
@media (min-width: 1025px) {
    .hamburger { display: none; }

    .nav-menu {
        position: static;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        align-items: center;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }

    .nav-item { width: auto; }

    .nav-link {
        opacity: 1;
        transform: none;
        padding: 0.5rem 1rem;
        color: var(--nav-bg);
    }

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

    .nav-link::before {
        background: linear-gradient(180deg, #fafcff, var(--border-light));
        border-radius: var(--radius-sm);
    }
    
    .submenu-wrapper {
        position: absolute;
        top: 100%;
        left: 50%;
        width: 250px;
        transform: translateX(-50%) translateY(10px);
        transition: grid-template-rows 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                    opacity 0.4s ease;
    }

    .submenu-wrapper.is-open {
        transform: translateX(-50%) translateY(0);
    }

    .submenu-inner {
        background: var(--nav-mobile-bg);
        box-shadow: var(--shadow-heavy);
        padding: 0.25rem 0.5rem;
        margin-top: 0.25rem;
        gap: 0.25rem;
    }
    
    .submenu-link {
        padding: 0.275rem 1rem;
    }
    
    .submenu-link:hover,
    .submenu-link:focus-visible {
        padding-left: 1.5rem;
    }

    .nav-link-discover {
        background: var(--color-red);
        opacity: 1;
        transform: none; 
        margin: 0;
        padding: 0.5rem 1.5rem;
        border: 2px solid var(--bg-color);
        animation: RedGlow 2s ease-in-out infinite alternate;
    }

    .nav-link-discover:hover { background: var(--color-firebrick); }

    .divider {
        width: 1px;
        height: 1.25rem;
        background: linear-gradient(180deg, transparent, var(--nav-bg), transparent); 
        margin: 0 0.5rem;
        opacity: 1;
    }
}

@keyframes RedGlow {
    0%, 100% { box-shadow: 0 0 1px var(--bg-color); }
    50% { box-shadow: 0 0 15px var(--color-red); }
}


@media (max-height: 768px) {

    .submenu-inner {
        padding: 0.05rem;
    }

    .submenu-link {
        padding: 0.175rem 1rem 0.175rem 1rem;
    }
}

/* ==========================================================================
   BUTTONS & HERO SECTION
   ========================================================================== */
.btn-primary {
    font-family: var(--font-family);
    position: relative;
    display: block;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 0.5rem 2.5rem;
    margin: 0 auto;
    text-align: center;
    width: 210px;
    font-size: 1.15rem;
    font-weight: 400;
    text-decoration: none;
    border: 2px solid var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, border-color 0.4s ease;
    box-shadow: var(--shadow-heavy);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; 
    width: 0%; height: 100%;
    background: var(--nav-dropdown-bg);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover, 
.btn-primary:focus-visible {
    color: var(--bg-color);
    border-color: var(--nav-dropdown-bg);
    box-shadow: var(--shadow-heavy-hover);
}

.btn-primary:hover::before, 
.btn-primary:focus-visible::before {
    width: 100%;
}

/* Injecting the unicode &#8677; (Hex: \21E5) */
.btn-primary::after {
    content: '\1F806'; 
    position: absolute;
    color: white;
    top: 50%;
    left: 1.25rem;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0;
    /* Starts 15px to the right to create the right-to-left fade-in effect */
    transform: translateY(-50%) translateX(15px);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none; /* WCAG AA compliance: prevents the arrow from interfering with link clicks */
}

/* Triggering the animation on hover and focus */
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
    opacity: 1;
    /* Slides into its natural resting place */
    transform: translateY(-50%) translateX(0);
}



/* ==========================================================================
   FOOTER
   ========================================================================== */


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

.site-footer {
    background: linear-gradient(180deg, var(--nav-bg), var(--nav-bg), var(--footer-dark) 100%);
    color: var(--bg-color);
    padding: 5rem 0 2rem 0;
    border-top: 2.5rem solid var(--footer-dark);
    background-size: cover;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--bg-color);
    margin-bottom: 1.5rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--color-accent);
}
.footer-col h3 { font-size: 1.5rem; }
.footer-col h4 { font-size: 1.125rem; }

.footer-col p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }

.footer-links a, .webestra {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-links a:focus-visible, .webestra:hover {
    color: var(--bg-color);
}

.footer-bottom {
    border-top: 1px solid var(--footer-dark);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03rem;
}

.wcag-notice { font-weight: 500; }

@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .wcag-notice {
        text-align: right;
        max-width: 50%;
    }
}

@media (max-width: 1023px) {
    .footer-grid { text-align: center; }
}

@media (max-width: 576px) {
    .footer-col { max-width: 75%; width: 100%; margin: 0 auto; }
}

.img-fluid { max-width: 100%; height: auto; }
.hero-turnon { max-width: 600px; width: 100%; margin: 0 auto 3rem auto; }

@media (max-width: 1024px) {
    .order-1 { order: -1; }
}