@font-face {
    font-family: 'Cafe24Anemone';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/Cafe24Ohsquare.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Presentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

:root {
    /* Primary Colors - Navy Base (유지) */
    --primary-color: #031F47;
    --primary-light: #0a3d6e;
    --primary-lighter: #1a5490;

    /* Accent Color - Harmonious Blue-Purple */
    --accent-color: #5B7FDB;

    /* Text Colors */
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;

    /* Border & Divider */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Functional Colors - Refined Palette */
    --color-info: #5B7FDB;
    /* Blue - 정보/강조 */
    --color-success: #10b981;
    /* Green - 성공/긍정 */
    --color-warning: #f59e0b;
    /* Amber - 경고/주의 */
    --color-danger: #ef4444;
    /* Red - 위험/오류 */
    --color-purple: #8b5cf6;
    /* Purple - 특별/프리미엄 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;

    /* Legacy Color Aliases (하위 호환성) */
    --icon-purple: var(--color-purple);
    --icon-blue: var(--color-info);
    --icon-yellow: var(--color-warning);
    --icon-red: var(--color-danger);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Presentation';
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;

    display: flex;
    justify-content: center;
}

.page-frame {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 1440px;
    border-radius: 15px;
    /* 큰 라운드 처리 */
    position: relative;
    overflow: hidden;

    /* Sticky Footer Logic */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

/* Header & Nav */
.header {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1360px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 10px 24px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Hero Background Video (Sample 3) */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 배경처럼 꽉 채움 */
    object-position: center 5%;
    z-index: 0;
    pointer-events: none;
    /* 클릭 방해 방지 */
    border-radius: 24px;
    /* hero-visual 라운드 유지 */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    width: 95%;
    display: flex;
    gap: 4px;
    justify-content: space-evenly;
    /* 메뉴 항목 간 간격 조정 */
}

.nav-links li {
    position: relative;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px 15px;
    border-radius: 6px;
    display: block;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(3, 31, 71, 0.05);
    width: 95%;
}

.nav-links a.active {
    color: var(--primary-color);
    background: rgba(3, 31, 71, 0.08);
    font-weight: 700;
    width: 95%;
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 240px;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

.nav-links li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.section {
    scroll-margin-top: 100px;
    position: relative;
}

.sub-menu li {
    width: 100%;
    text-align: center;
}

.sub-menu li a {
    padding: 10px 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.sub-menu li a:hover {
    background: #f0f4f8;
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-text {
    background: transparent;
    color: var(--text-main);
}

.btn-primary {
    background: #000;
    color: white;
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-cta {
    background: var(--accent-color);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    margin-top: 32px;
    box-shadow: 0 10px 20px rgba(91, 127, 219, 0.25);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(91, 127, 219, 0.35);
}

/* Hero Section */
.hero-section {
    padding: 180px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 1440px;
    height: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    height: 450px;
    width: 100%;
    max-width: 1440px;
    position: relative;
    margin: 0 auto;
}

/* Program Carousel - Circular Arc Design */
.program-carousel {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 60px;
}

.carousel-track {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    width: 360px;
    height: 270px;
    background: #f5f5f7;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform-origin: center;
    overflow: hidden;
}

.carousel-item-image {
    font-size: 72px;
    transition: all 0.8s ease;
}

/* Circular positioning - 5 cards in arc */
.carousel-item[data-position="0"] {
    /* Center */
    transform: translate(0, -60px) scale(1);
    z-index: 10;
    opacity: 1;
}

.carousel-item[data-position="1"] {
    /* Right 1 */
    transform: translate(400px, 40px) scale(0.85) rotate(8deg);
    z-index: 5;
    opacity: 0.7;
}

.carousel-item[data-position="2"] {
    /* Right 2 - appears from below */
    transform: translate(700px, 350px) scale(0.7) rotate(15deg);
    z-index: 3;
    opacity: 0;
}

.carousel-item[data-position="-1"] {
    /* Left 1 */
    transform: translate(-400px, 40px) scale(0.85) rotate(-8deg);
    z-index: 5;
    opacity: 0.7;
}

.carousel-item[data-position="-2"] {
    /* Left 2 - disappears below */
    transform: translate(-700px, 350px) scale(0.7) rotate(-15deg);
    z-index: 3;
    opacity: 0;
}

/* Carousel Info */
.carousel-info {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    transition: opacity 0.5s ease;
}

.carousel-info-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.carousel-info-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
}

.floating-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-icon {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(30, 62, 167, 0.3);
    overflow: hidden;
    padding: 10px;
}

.floating-item {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.floating-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    background: white;
}

.icon-box.yellow {
    background: var(--icon-yellow);
    color: #856404;
}

.icon-box.blue {
    background: var(--icon-blue);
    color: white;
}

.icon-box.red {
    background: var(--icon-red);
    color: white;
}

.icon-box.purple {
    background: var(--icon-purple);
    border: 1px solid var(--border-color);
}

.emoji {
    font-size: 24px;
}

/* Positions for floating items */
.item-1 {
    left: 10%;
    top: 30%;
    animation-delay: 0s;
    width: 80px;
    height: 80px;
}

.item-2 {
    left: 25%;
    top: 10%;
    animation-delay: 1s;
}

.item-3 {
    left: 28%;
    top: 60%;
    animation-delay: 2s;
}

.item-4 {
    right: 20%;
    top: 15%;
    animation-delay: 1.5s;
    width: 70px;
    height: 70px;
}

.item-5 {
    right: 22%;
    top: 65%;
    animation-delay: 0.5s;
}

.item-6 {
    right: 5%;
    top: 35%;
    animation-delay: 1.2s;
    width: 80px;
    height: 80px;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-lines path {
    stroke: #e0e0e0;
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 5;
}

/* Hero Text */
.hero-title {
    font-size: 64px;
    font-weight: 800;
    font-family: 'Cafe24Anemone';
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 15px;
    word-break: keep-all;
}

.hero-text-box {
    max-width: 1440px;
    margin: 0 auto;
    z-index: 20;
}

.hero-leadcopy {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 1440px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    margin: 15px 0;
}

/* Solutions Section (Refined) */
.solutions-section {
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.solutions-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.solutions-center {
    text-align: center;
    z-index: 20;
    max-width: 1400px;
    width: 100%;
}

.user-badge {
    width: 50px;
    height: 50px;
    background: #f0ebff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--icon-purple);
}

.solutions-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 20px;
}

.solutions-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

.btn-purple {
    background: #031f47da;
    /* Purple color from image */
    color: white;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-purple:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
}

/* Program Preview Cards */
.program-preview-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: var(--transition);
    text-align: center;
}

.program-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--icon-purple);
}

.program-preview-card h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.program-preview-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Competency Grid */
.competency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1250px;
}

.competency-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.reason-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0ebff;
    color: var(--icon-purple);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.competency-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.competency-card h4 {
    font-size: 16px;
    color: var(--icon-purple);
    margin-bottom: 15px;
    line-height: 1.4;
}

.competency-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Trust & Stats */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
}

.trust-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    .face-4,
    .face-5,
    .face-9,
    .face-10 {
        display: none;
    }

    .solutions-container {
        height: 600px;
    }

    .main-container {
        height: max-content;
    }
}

@media (max-width: 768px) {
    .face-card {
        width: 100px;
        height: 100px;
    }

    .solutions-title {
        font-size: 40px;
    }

    .solutions-container {
        height: 800px;
    }

    .main-container {
        height: max-content;
    }

    .face-card {
        opacity: 0.4;
    }
}

/* Footer */
.footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, -15px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
    opacity: 1;
    visibility: visible;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Important for scaling */
}

.intro-scaler {
    width: 100%;
    height: 100%;
    display: block;
    transform: scale(1.5);
    transform-origin: center center;
}

#intro-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    /* Force visibility */
    visibility: visible !important;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State (Hamburger Animation) */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Breakpoint - 820px or .is-mobile class triggered by JS */
@media (max-width: 820px) {
    /* Existing logic is kept for fallback */
}

/* 
 * Explicit Mobile Mode Styles 
 * These apply when JS detects mobile width, even if media query fails due to zoom 
 */
/* 
 * Explicit Mobile Mode Styles 
 * These apply when JS detects mobile width via .is-mobile class
 */
.is-mobile .nav-links {
    display: block;
    position: fixed;
    top: 0;
    right: -105%;
    width: 100%;
    max-width: 220px;
    height: max-content;
    /* Enable vertical scrolling */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 3px;
    /* Ensure bottom content is accessible */
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.is-mobile .nav-links.active {
    right: 0;
}

.is-mobile .nav-links li {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.is-mobile .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
}

.is-mobile .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.is-mobile .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
}

.is-mobile .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
}

.is-mobile .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
}

.is-mobile .nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
}

.is-mobile .nav-links.active li:nth-child(6) {
    transition-delay: 0.35s;
}

.is-mobile .nav-links.active li:nth-child(7) {
    transition-delay: 0.4s;
}

.is-mobile .nav-links.active li:nth-child(8) {
    transition-delay: 0.45s;
}

.is-mobile .nav-links.active li:nth-child(9) {
    transition-delay: 0.5s;
}

.is-mobile .nav-links.active li:nth-child(10) {
    transition-delay: 0.55s;
}

.is-mobile .nav-links.active li:nth-child(11) {
    transition-delay: 0.6s;
}

.is-mobile .nav-links a {
    font-size: 14px;
    padding: 10px 0;
    display: inline-block;
}

.is-mobile .sub-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f3f4f6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    margin-top: 5px;
    opacity: 1;
    visibility: visible;
    width: 100%;
    min-width: unset;
    text-align: center;
}

.is-mobile .has-dropdown.active .sub-menu {
    max-height: 500px;
    padding: 10px 0;
}

.is-mobile .hamburger-menu {
    display: flex !important;
}

/* Mobile Header Resize (1.5x) */
@media (max-width: 768px) {


    .solutions-title {
        font-size: 54px;
        /* PC 64px */
    }

    .trust-number {
        font-size: 41px;
        /* PC 48px */
    }

    .carousel-info-title {
        font-size: 24px;
        /* PC 28px */
    }

    .hero-subtitle {
        font-size: 20px;
        /* PC 24px */
    }

    .competency-card h3 {
        font-size: 19px;
        /* PC 22px */
    }

    .hero-leadcopy {
        font-size: 17px;
        /* PC 20px */
    }

    .solutions-subtitle {
        font-size: 15px;
        /* PC 18px */
    }

    .program-preview-card h4 {
        font-size: 15px;
        /* PC 18px */
    }

    .competency-card h4,
    .trust-label {
        font-size: 14px;
        /* PC 16px */
    }

    .competency-card p,
    .program-preview-card p,
    .carousel-info-desc {
        font-size: 13px;
        /* PC 15-16px */
    }

    .header {
        padding: 15px 36px;
        /* 1.5x padding */
    }

    .logo img {
        height: 42px !important;
        /* 1.5x logo size */
    }

    .hamburger-menu {
        width: 14px;
        /* Refined size */
        height: 12px;
        /* reduced height for tighter spacing */
        right: 15px;
        /* 1.5x position */
    }

    .hamburger-menu span {
        height: 2px;
        /* Thinner lines */
        border-radius: 2px;
    }

    /* Adjust animation for new size (12px height) */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

}

/* Fallback Media Query for non-JS scenarios (Duplicate styles) */
@media (max-width: 820px) {
    .nav-links {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 200px;
        height: max-content;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(8) {
        transition-delay: 0.45s;
    }

    .nav-links.active li:nth-child(9) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(10) {
        transition-delay: 0.55s;
    }

    .nav-links.active li:nth-child(11) {
        transition-delay: 0.6s;
    }

    .nav-links a {
        font-size: 14px;
        padding: 10px 0;
        display: inline-block;
    }

    .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f3f4f6;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: unset;
        text-align: center;
    }

    .has-dropdown.active .sub-menu {
        max-height: 500px;
        padding: 10px 0;
    }

    .hamburger-menu {
        display: flex !important;
    }

    .intro-scaler {
        transform: scale(1);
        transform-origin: center center;
    }

}