:root {
    --bg-color: #030712;
    --surface-color: rgba(17, 24, 39, 0.4);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #00f0ff;
    --secondary-color: #7000ff;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
}

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

.w-100 {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .logo-link img {
        height: 30px;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add an overlay so text is readable over slides */
.hero-swiper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.6);
    /* dark overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-height: 7.5rem;
    /* Reserve space for 2 lines on desktop */
}

.type-text {
    display: inline-block;
    min-height: 1.2em;
    /* Ensure height is maintained even when empty */
    vertical-align: bottom;
    word-break: keep-all;
    /* Prevent unnatural breaking of Korean words */
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    margin-left: 0.1em;
    animation: blink 1s step-end infinite;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 1rem !important;
        /* Further reduce horizontal padding for maximum text width */
    }

    .hero-title {
        font-size: 1.8rem;
        /* Slightly larger but controlled font size */
        min-height: 15rem;
        /* Secure 3 lines of space to prevent vertical jump */
    }

    .type-text {
        min-height: 2.2em;
        /* Ensure at least two lines of space if wrapping occurs on very small screens */
    }

    .hero-desc {
        font-size: 1.1rem !important;
        min-height: 6rem;
        /* More space for wrapping text on mobile */
        margin-bottom: 2rem;
    }
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    min-height: 4rem;
    /* Reserve space for 2 lines on desktop */
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.about-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-normal);
}

.about-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
}

.about-card>img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Philosophy Cards (Icon + Text) */
.phil-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    gap: 2rem;
    transition: var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.phil-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
}

.phil-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.phil-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.phil-text {
    flex-grow: 1;
}

.phil-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
}

.phil-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Philosophy Cards */
@media (max-width: 768px) {
    .phil-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .phil-icon {
        width: 80px;
        height: 80px;
    }

    .phil-icon i {
        font-size: 2.8rem;
    }

    .phil-text h3 {
        font-size: 1.5rem;
    }

    .phil-text p {
        font-size: 1rem;
    }
}

.arrow-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tag:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
}

/* Text Timeline */
.text-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

/* Vertical Line - Consolidated to one element */
.text-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    z-index: 1;
}

/* Remove duplicated after line */
.text-timeline::after {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    clear: both;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    float: left;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item.right {
    float: right;
    padding-left: 3rem;
    text-align: left;
    margin-top: 5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    z-index: 10;
}

.timeline-item.left::before {
    right: -0.5rem;
}

.timeline-item.right::before {
    left: -0.5rem;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.timeline-event {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.timeline-item.left .timeline-event {
    flex-direction: row-reverse;
}

.timeline-month {
    display: inline-block;
    font-weight: 600;
    width: 3.5rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.timeline-item.left .timeline-month {
    text-align: left;
    margin-left: 1rem;
}

.timeline-item.right .timeline-month {
    margin-right: 1rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .text-timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        float: none !important;
        clear: both;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-top: 0 !important;
        margin-bottom: 3rem;
    }

    .timeline-item::before {
        left: 13px !important;
        right: auto !important;
    }

    .timeline-year {
        font-size: 1.5rem;
    }

    .timeline-item.left .timeline-event {
        flex-direction: row;
    }

    .timeline-item.left .timeline-month {
        text-align: left;
        margin-left: 0;
        margin-right: 1rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    text-align: left;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(112, 0, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    transition: var(--transition-normal);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.1);
}

.work-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.view-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    text-decoration: none;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.work-card:hover .view-btn {
    transform: translateY(0);
}

.work-info {
    padding: 1.5rem;
}

.work-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.work-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    word-break: keep-all;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-item h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-info {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Scroll Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Modal Overlay for Portfolio */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    /* white background required for original design popup images */
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-color);
    color: #fff;
    border: 1px solid var(--surface-border);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-color);
    color: #000;
}

.modal-body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for iOS */
}

.modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-btn-wrap {
    padding: 2rem;
    display: flex;
    justify-content: center;
    background: var(--bg-color);
}

/* Patents Grid Layout */
.patents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .patents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.patent-item {
    background: var(--surface-color);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    transition: var(--transition-fast);
}

.patent-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.patent-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.patent-item p {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

/* Responsive Details */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .section-padding {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .work-image {
        height: 180px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
        padding: 0.8rem;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-menu-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Extra Small Mobile Optimization (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .contact-wrapper {
        padding: 2rem 1.25rem;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-item i {
        font-size: 1.5rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

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

/* Specific Fix for 320px Terminals */
@media (max-width: 320px) {
    .container {
        padding: 0 1rem;
    }

    .contact-wrapper {
        padding: 1.5rem 1rem;
    }

    .contact-info h2 {
        font-size: 1.7rem;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-item h5 {
        font-size: 0.9rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }
}