/* iOS 26 Liquid Glass Framework - VoiceOfOsh */
@import url('https://db.onlinewebfonts.com/c/053b8116972e0d37913364f8426ec0e0?family=Helvetica+Bold');
@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
    /* Light theme (default) */
    --bg: #f0f0f5;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --blur: 15px;
    /* Reduced from 20px for better iOS compatibility */
    --text: #000;
    --text-gray: #666;
    --light-x: 50%;
    --light-y: 50%;
    --gradient-1: rgba(200, 200, 210, 0.92);
    --gradient-2: rgba(220, 220, 230, 0.88);
    --gradient-3: rgba(190, 190, 200, 0.90);
    --gradient-4: rgba(180, 180, 195, 0.92);
}

/* Dark theme - Modern & Minimalist */
[data-theme="dark"] {
    --bg: #1a1a1f;
    --glass-bg: rgba(40, 40, 48, 0.28);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #e8e8ed;
    --text-gray: #8e8e93;
    --gradient-1: rgba(35, 35, 42, 0.92);
    --gradient-2: rgba(42, 42, 50, 0.88);
    --gradient-3: rgba(30, 30, 38, 0.90);
    --gradient-4: rgba(28, 28, 35, 0.92);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Helvetica Bold', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    background-image:
        linear-gradient(to bottom,
            var(--gradient-1) 0%,
            var(--gradient-2) 30%,
            var(--gradient-3) 70%,
            var(--gradient-4) 100%),
        url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: repeat;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.text-gray {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--text-gray);
}

/* Prevent horizontal scroll - all images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* SCROLL ANIMATIONS - Optimized for performance */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 50px, 0) rotateX(12deg) scale(0.94);
    filter: blur(4px);
    will-change: transform, opacity, filter;
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.5s ease-out;
}

.animate-on-scroll.pop-in {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0px);
    will-change: auto;
}

/* GLASS EFFECT - Optimized for performance with iOS fallbacks */
.glass-effect {
    /* Fallback for older iOS/Safari without backdrop-filter support */
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    background-image: radial-gradient(circle at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.4) 0%, transparent 50%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    position: relative;
    will-change: transform;
}

/* Progressive enhancement: Apply backdrop-filter only if supported */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .glass-effect {
        background: var(--glass-bg);
        backdrop-filter: blur(var(--blur)) saturate(180%);
        -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
    }
}

/* Dark mode glass refinement */
[data-theme="dark"] .glass-effect {
    /* Dark mode fallback for older devices */
    background: rgba(40, 40, 48, 0.92);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    background-image: radial-gradient(circle at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

/* Apply glass background for dark mode on supporting devices */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    [data-theme="dark"] .glass-effect {
        background: var(--glass-bg);
    }
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.12) 20%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.12) 80%,
            rgba(255, 255, 255, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* iOS Safari optimization - Force GPU acceleration and reduce blur complexity */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .glass-effect {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    /* Simplified backdrop-filter for mid-range iOS devices */
    @supports (-webkit-backdrop-filter: blur(10px)) {
        .glass-effect {
            -webkit-backdrop-filter: blur(12px) saturate(150%);
            backdrop-filter: blur(12px) saturate(150%);
        }
    }
}


/* Dark mode edge lighting - more subtle */
[data-theme="dark"] .glass-effect::before {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.06) 20%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.06) 80%,
            rgba(255, 255, 255, 0.12) 100%);
}

.glass-effect:hover {
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.20),
        0 15px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

/* Dark mode hover - refined */
[data-theme="dark"] .glass-effect:hover {
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35),
        0 15px 30px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* Performance: Force GPU acceleration */
.glass-effect,
.animate-on-scroll {
    transform: translate3d(0, 0, 0);
}

/* HEADER */
header {
    position: sticky;
    top: 1rem;
    z-index: 100;
    padding: 0 1rem;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

header.hidden {
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.nav-glass {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
}

.logo-glass {
    padding: 0.8rem 1.5rem;
}

.nav-logo {
    height: 50px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    margin-left: 2rem;
}

.nav-links a {
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    font-weight: 700;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* PHONE CONTACT */
.phone-contact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.phone-numbers span {
    font-size: 0.85rem;
    line-height: 1.3;
}

.phone-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* LANGUAGE SWITCHER */
.language-switcher {
    display: flex;
    flex-direction: row;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    margin-left: auto;
}

.lang-btn {
    background: transparent;
    border: none;
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-align: center;
    min-width: 36px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text);
}

/* Dark mode hover - subtle */
[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
    background: rgba(209, 231, 64, 0.85);
    color: #333;
    box-shadow: 0 2px 8px rgba(209, 231, 64, 0.4);
}

/* Dark mode active button - refined */
[data-theme="dark"] .lang-btn.active {
    background: rgba(209, 231, 64, 0.75);
    color: #1a1a1f;
    box-shadow: 0 2px 12px rgba(209, 231, 64, 0.25);
}

/* THEME TOGGLE */
.theme-toggle {
    padding: 0.6rem;
    background: var(--glass-bg);
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle svg {
    display: block;
    color: var(--text);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-45deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* SEARCH */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    padding: 0.6rem 1.2rem;
    border: none;
    font-family: 'SF Pro Display', sans-serif;
    font-size: 0.9rem;
    width: 200px;
    transition: width 0.3s;
}

.search-input:focus {
    outline: none;
    width: 300px;
}

.search-btn {
    cursor: pointer;
    opacity: 0.6;
    padding: 0.8rem;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 1;
}

/* HERO */
.hero {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.hero-content {
    text-align: center;
    padding: 4rem 6rem;
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: -0.04em;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* SECTIONS */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    /* Allow vertical overflow for IntersectionObserver */
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

/* NEWS - GRID LAYOUT for 1920x1080 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.news-card-modern {
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 350px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card-modern:hover .card-image img {
    transform: scale(1.1);
}

.card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Helvetica Bold', Helvetica, Arial, sans-serif;
}

.card-info h3 {
    font-size: 1.3rem;
    font-family: 'Helvetica Bold', Helvetica, Arial, sans-serif;
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    width: fit-content;
    font-family: 'Helvetica Bold', Helvetica, Arial, sans-serif;
}

.card-date {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-family: 'Helvetica Bold', Helvetica, Arial, sans-serif;
}

/* ===================================
   POST MODAL - IMMERSIVE VIEW
   =================================== */
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.5s;
    overflow-y: auto;
    overflow-x: hidden;
}

.post-modal.active {
    opacity: 1;
    visibility: visible;
}

.post-modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    line-height: 1;
}

.post-modal-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
}

.post-modal-inner {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* Left half: Image with gradient */
.post-modal-image {
    position: relative;
    width: 50%;
    min-height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
}

.post-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.post-modal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Right half: Content */
.post-modal-content {
    width: 50%;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

.post-modal-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-modal-content h1 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.post-modal-text {
    font-size: 1.05rem;
    line-height: 1.85;
    opacity: 0.9;
}

.post-modal-text p {
    margin-bottom: 1.25rem;
}

.post-modal-text p:last-child {
    margin-bottom: 0;
}

.post-modal-date {
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.5;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    padding: 3rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* SERVICES with PNG Icons */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
}

.service-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

/* FEATURES */
.features-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.feature-num {
    font-size: 2rem;
    opacity: 0.3;
}

.feature-item h3 {
    font-size: 1.5rem;
}

.feature-item p {
    margin-left: auto;
}

/* STATS */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    padding: 3rem 4rem;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* CONTACT */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'SF Pro Display', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Helvetica Bold', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-form button:hover {
    opacity: 0.8;
}

/* DECORATION */
.decoration {
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
}

.decoration-glass {
    padding: 2rem;
}

.decoration-glass img {
    max-width: 600px;
    width: 100%;
    display: block;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2.5rem 2rem;
    margin: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-phone-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-phone-numbers span {
    font-size: 0.95rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    font-family: 'Helvetica Bold', Helvetica, Arial, sans-serif;
}

.footer-email {
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-email:hover {
    color: var(--text);
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 3rem 4rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        padding: 2.5rem 3rem;
    }
}

/* MOBILE STANDARD (481px - 767px) */
@media (max-width: 767px) {

    /* Header - Simplified */
    header {
        padding: 0 0.5rem;
        top: 0.5rem;
    }

    .nav-glass {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo-glass {
        padding: 0.5rem 1rem;
    }

    .nav-logo {
        height: 35px;
    }

    /* Hide desktop navigation */
    .nav-links {
        display: none;
    }

    /* Compact language switcher */
    .language-switcher {
        order: 3;
        padding: 0.3rem 0.4rem;
        gap: 0.2rem;
    }

    .lang-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        min-width: 32px;
    }

    /* Theme toggle - touch optimized */
    .theme-toggle {
        padding: 0.5rem;
        order: 2;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* Search - mobile optimized */
    .search-container {
        order: 4;
        width: 100%;
        margin-top: 0.5rem;
    }

    .search-input {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .search-input:focus {
        width: 100%;
    }

    .search-btn {
        padding: 0.75rem;
    }

    /* Hero - mobile typography */
    .hero {
        min-height: 50vh;
        padding: 3rem 1rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Sections - tighter spacing */
    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* News - single column */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-image {
        height: 250px;
    }

    .card-info {
        padding: 1.25rem;
    }

    .card-info h3 {
        font-size: 1.1rem;
    }

    /* About - single column */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card {
        padding: 2rem;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    /* Services - two columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .service-icon-img {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    /* Features - simplified */
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .feature-num {
        font-size: 1.5rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-item p {
        margin-left: 0;
        font-size: 0.9rem;
    }

    /* Stats - stacked */
    .stats-grid {
        gap: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .stat-item {
        padding: 2rem 2.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.9rem 1.1rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
        gap: 1.25rem;
    }

    .footer-contact {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* Glass effects - reduced blur for performance */
    :root {
        --blur: 15px;
    }
}

/* MOBILE SMALL (320px - 480px) */
@media (max-width: 480px) {

    /* Even tighter spacing */
    .section {
        padding: 2.5rem 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Hero - compact */
    .hero {
        min-height: 40vh;
        padding: 2rem 0.75rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    /* Logo even smaller */
    .nav-logo {
        height: 30px;
    }

    /* Language switcher - ultra compact */
    .lang-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
        min-width: 28px;
    }

    /* News cards - compact */
    .card-image {
        height: 200px;
    }

    .card-info {
        padding: 1rem;
    }

    .card-info h3 {
        font-size: 1rem;
    }

    /* About cards - compact */
    .about-card {
        padding: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    /* Services - single column on very small screens */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon-img {
        width: 50px;
        height: 50px;
    }

    /* Features - compact */
    .feature-item {
        padding: 1.25rem;
    }

    .feature-num {
        font-size: 1.25rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    /* Stats - compact */
    .stat-item {
        padding: 1.5rem 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Contact form - compact */
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
    }

    /* Reduce blur even more */
    :root {
        --blur: 10px;
    }

    /* Optimize glass border radius */
    .glass-effect {
        border-radius: 18px;
    }

    .glass-effect::before {
        border-radius: 18px;
    }

    .card-image {
        border-radius: 16px 16px 0 0;
    }
}

/* LANDSCAPE MODE OPTIMIZATION */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }

    .section {
        padding: 3rem 1.5rem;
    }
}

/* POST MODAL - MOBILE */
@media (max-width: 767px) {
    .post-modal-inner {
        flex-direction: column;
    }

    .post-modal-image {
        width: 100%;
        min-height: 50vh;
        max-height: 50vh;
        position: relative;
    }

    .post-modal-image img {
        position: absolute;
    }

    .post-modal-content {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }

    .post-modal-content h1 {
        font-size: 1.75rem;
    }

    .post-modal-text {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .post-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .post-modal-image {
        min-height: 40vh;
        max-height: 40vh;
    }

    .post-modal-content {
        padding: 2rem 1.25rem;
    }

    .post-modal-content h1 {
        font-size: 1.5rem;
    }
}