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

:root {
    /* Brand Colors - Professional Corporate Palette */
    --primary-color: #0F2C59;
    --primary-light: #1A4D8F;
    --primary-dark: #0A1F3F;
    --accent-color: #2B7FFF;
    --accent-light: #5BA0FF;
    --accent-dark: #1A5FCC;

    /* Secondary Colors */
    --secondary-color: #64748B;
    --secondary-light: #94A3B8;
    --secondary-dark: #475569;

    /* Status Colors */
    --success-color: #059669;
    --success-light: #10B981;
    --warning-color: #D97706;
    --warning-light: #F59E0B;
    --error-color: #DC2626;
    --error-light: #EF4444;
    --info-color: #0284C7;
    --info-light: #0EA5E9;

    /* Neutral Colors - Enhanced Gray Scale */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --black: #020617;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-dark: #0F172A;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --text-inverse: #FFFFFF;

    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, #0F2C59 0%, #1A4D8F 100%);
    --gradient-accent: linear-gradient(135deg, #2B7FFF 0%, #1A5FCC 100%);
    --gradient-dark: linear-gradient(135deg, #0A1F3F 0%, #0F2C59 100%);
    --gradient-light: linear-gradient(135deg, #5BA0FF 0%, #2B7FFF 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 44, 89, 0.95) 0%, rgba(26, 77, 143, 0.95) 100%);

    /* Typography */
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;

    /* Font Sizes - Enhanced Hierarchy (1.25 ratio) */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.563rem;
    /* 25px */
    --font-size-3xl: 1.953rem;
    /* 31px */
    --font-size-4xl: 2.441rem;
    /* 39px */
    --font-size-5xl: 3.052rem;
    /* 49px */
    --font-size-6xl: 3.815rem;
    /* 61px */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 1.75;

    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;

    /* Spacing - Consistent 8px Base */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 0.75rem;
    /* 12px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2rem;
    /* 32px */
    --spacing-2xl: 3rem;
    /* 48px */
    --spacing-3xl: 4rem;
    /* 64px */
    --spacing-4xl: 6rem;
    /* 96px */
    --spacing-5xl: 8rem;
    /* 128px */

    /* Border Radius - Unified System */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-2xl: 1.5rem;
    /* 24px */
    --radius-full: 9999px;

    /* Shadows - Professional Depth System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Brand Shadows with Color */
    --shadow-primary: 0 10px 25px -5px rgba(15, 44, 89, 0.3);
    --shadow-accent: 0 10px 25px -5px rgba(43, 127, 255, 0.3);

    /* Transitions - Refined Timing */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
}

html {
    /* scroll-behavior: smooth; Removed to prevent scroll jank on iOS */
    font-size: 16px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* Lock the main viewport */
    position: fixed;
    /* Prevent bouncing on iOS */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-primary);

    /* Make body the scroll container */
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
}

a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Buttons - Professional System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    gap: var(--spacing-sm);
    letter-spacing: var(--letter-spacing-wide);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    /* Increased opacity, removed backdrop-filter for performance */
    border-bottom: 1px solid var(--gray-200);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom-color: transparent;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--gray-50);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section - Professional Corporate Style */
.hero {
    position: relative;
    height: 100vh;
    /* Default full height */
    min-height: 600px;
    /* Minimum height constraint */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-inverse);
    overflow: hidden;
    padding: 0;
    /* Remove padding to ensure full height */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(43, 127, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(43, 127, 255, 0.15) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 44, 89, 0.2);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    z-index: 1;
    padding: 0 var(--spacing-xl);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-6xl);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease-out;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    font-weight: var(--font-weight-bold);
    color: #FFFFFF;
    word-break: keep-all;
}

.hero-title .highlight {
    color: var(--accent-light);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-3xl);
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

/* Section Styles */
.section {
    padding: var(--spacing-5xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    display: inline-block;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    text-shadow: 0 2px 4px rgba(15, 44, 89, 0.1);
    letter-spacing: var(--letter-spacing-tight);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 5px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: var(--spacing-2xl) auto 0;
    line-height: var(--line-height-relaxed);
}

/* About Section */
.about {
    background-color: #EFF6FF;
    /* More distinct blue-gray background */
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: inset 0 0 30px rgba(15, 44, 89, 0.03);
    /* Subtle inner shadow for depth */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.about-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.about-mission {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    line-height: var(--line-height-snug);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(90deg, rgba(43, 127, 255, 0.05) 0%, transparent 100%);
    border-radius: var(--radius-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-2xl);
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Technology Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}

.tech-card,
.product-card,
.service-item {
    background-color: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
}

.tech-card::before,
.product-card::before,
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
    pointer-events: none;
}

.tech-card:hover,
.product-card:hover,
.service-item:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.tech-card:hover::before,
.product-card:hover::before,
.service-item:hover::before {
    opacity: 0.05;
}

.tech-image,
.product-image,
.service-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.tech-img,
.product-img,
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tech-card:hover .tech-img,
.product-card:hover .product-img,
.service-item:hover .service-img {
    transform: scale(1.05);
}

.tech-image::before,
.product-image::before,
.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.3));
    z-index: 1;
    pointer-events: none;
}

.tech-content,
.product-content,
.service-content {
    padding: var(--spacing-2xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.tech-title,
.product-title,
.service-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.tech-description,
.service-content p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

/* Products Section */
.products {
    background-color: #EFF6FF;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: inset 0 0 30px rgba(15, 44, 89, 0.03);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}



.product-features {
    list-style: none;
    flex: 1;
}

.product-features li {
    padding: var(--spacing-md) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--spacing-xl);
    line-height: var(--line-height-relaxed);
    transition: color var(--transition-fast);
}

.product-features li:hover {
    color: var(--text-primary);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--spacing-md);
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

/* Services Section */
.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}



/* Membership Section */
.membership {
    background-color: #EFF6FF;
    border-top: 1px solid var(--gray-200);
    box-shadow: inset 0 0 30px rgba(15, 44, 89, 0.03);
}

.membership-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
}

.membership-item {
    background: var(--bg-primary);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.membership-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.membership-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.membership-item:hover::before {
    transform: scaleX(1);
}

.membership-logo {
    width: 140px;
    height: 90px;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

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

.membership-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter var(--transition-normal);
}

.membership-text h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.membership-text p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
    font-size: var(--font-size-base);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--text-inverse);
    padding: var(--spacing-5xl) 0 var(--spacing-2xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-logo span {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

.footer-section h3 {
    color: var(--text-inverse);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    font-size: var(--font-size-base);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: var(--spacing-sm);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.footer-contact i {
    color: var(--accent-light);
    width: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-2xl);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    font-size: var(--font-size-sm);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-12px);
    }

    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    grid-auto-flow: dense;
}

.bento-item {
    /* Default 1x1 item style handled by specific card classes */
    position: relative;
}

.bento-item-wide {
    grid-column: span 2;
}

.bento-item-tall {
    grid-row: span 2;
}

.bento-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Fallback for smaller screens or when grid support is limited */
@media (max-width: 768px) {

    .bento-item-wide,
    .bento-item-large {
        grid-column: span 1;
    }

    .bento-item-tall,
    .bento-item-large {
        grid-row: span 1;
    }
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    display: none;
    /* Hidden by default (Desktop) */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    /* Increased opacity, removed backdrop-filter */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px var(--spacing-md);
    /* Reduced vertical padding further */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    /* Highest priority */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
    /* Fixed padding instead of safe-area to avoid gap */
    height: auto;
}

/* Safe guard for bouncing scroll or viewport gaps */
.bottom-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 200px;
    /* Extend background below the viewport */
    background-color: rgba(255, 255, 255, 0.95);
    pointer-events: none;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    /* Ensure consistent color */
    text-decoration: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius-full);
    /* Circular touch target */
    transition: all var(--transition-fast);
    width: 40px;
    /* Reduced from 48px */
    height: 40px;
    /* Reduced from 48px */
}

.bottom-nav-item:visited {
    color: var(--text-tertiary);
    /* Prevent visited link color change */
}

.bottom-nav-item i {
    font-size: 1.125rem;
    /* Reduced to 75% of 1.5rem */
    transition: transform var(--transition-bounce);
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
    font-weight: 900 !important;
    /* Ensure Solid style */
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.bottom-nav-item.active {
    color: var(--primary-color) !important;
    /* Force active color */
    background-color: rgba(15, 44, 89, 0.05);
    /* Subtle background for active state */
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}