/* 
==========================================
Election Campaign Website
Candidate: Asylbaeva Gyulshat Kadyrovna
Electoral District №19, Sokuluk
Color Scheme: Blue (trust), Green (development), 
White (purity), Gold (achievements)
==========================================
*/

/* =================== Variables =================== */
:root {
    --primary-blue: #0056b3;
    --primary-red: #dc3545;
    --gold: #FFD700;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-border: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* =================== Reset & Base =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* Prevents text scaling on iOS */
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly improvements */
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Improve touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
    a,
    button,
    .btn,
    .nav-menu a,
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-red);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* =================== Container =================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================== Header & Navigation =================== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text {
    display: block;
    line-height: 1.2;
}

.logo small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-medium);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =================== Buttons =================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =================== Hero Section =================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,133.3C672,128,768,160,864,165.3C960,171,1056,149,1152,128C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.hero-image {
    flex: 0 0 400px;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: var(--dark);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.hero-badge i {
    font-size: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =================== Page Hero =================== */
.page-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* =================== Sections =================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-bottom: 3rem;
}

.section-header-icon {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.alt-bg {
    background: var(--gray-light);
}

/* =================== Countdown =================== */
.countdown-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0;
}

.countdown-wrapper {
    text-align: center;
}

.countdown-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
}

.countdown-label {
    font-size: 1rem;
    opacity: 0.9;
}

.countdown-date {
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0.95;
}

/* =================== Key Numbers =================== */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.number-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.number-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.number-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.number-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.number-label {
    font-size: 1.1rem;
    color: var(--gray-medium);
}

/* =================== Program =================== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.program-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.program-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.card-link:hover {
    gap: 1rem;
}

/* =================== Biography Titles =================== */
.bio-titles {
    list-style: none;
    margin-top: 1rem;
}

.bio-titles li {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.bio-titles li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

/* =================== Award List =================== */
.award-list {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 0;
}

.award-list li {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.award-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

/* =================== Quote Section =================== */
.quote-section {
    padding-top: 2rem;
}

/* =================== CTA Section =================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =================== Footer =================== */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-col h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

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

.footer-links li, .footer-contacts li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-contacts a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover, .footer-contacts a:hover {
    color: var(--gold);
}

.footer-contacts i {
    margin-right: 0.5rem;
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.election-info p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.disclaimer {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* =================== Language Switcher =================== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--gray-medium);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
}

.lang-btn:hover {
    color: var(--primary-blue);
}

.lang-btn.active {
    color: var(--primary-blue);
}

.lang-separator {
    color: var(--gray-border);
    font-weight: 300;
}

/* =================== Back to Top =================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

/* =================== Responsive Design =================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Base adjustments */
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px var(--shadow);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1.1rem;
    }
    
    .nav-menu a:hover {
        background: var(--gray-light);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .language-switcher {
        margin: 1rem 0;
        justify-content: center;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-image {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Badge */
    .hero-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* Countdown */
    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    /* Key Numbers */
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .number-card {
        padding: 1.5rem;
    }
    
    .number-value {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .checkmarks li {
        font-size: 0.95rem;
    }
    
    /* Program Cards */
    .program-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    /* Page Hero */
    .page-hero {
        padding: 3rem 0 2rem;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Biography Timeline */
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: -20px;
        width: 40px;
        height: 40px;
    }
    
    .timeline-year {
        font-size: 1.25rem;
    }
    
    /* Expertise Grid */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Awards Grid */
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* District Stats */
    .district-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    /* Aiyl Grid */
    .aiyl-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Problems Grid */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Solutions Timeline */
    .solutions-timeline {
        gap: 2rem;
    }
    
    .solution-item {
        padding: 1.5rem;
    }
    
    .solution-period {
        font-size: 0.9rem;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-form,
    .volunteer-form {
        padding: 1.5rem;
    }
    
    /* Support Options */
    .support-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Volunteer Benefits */
    .volunteer-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* CTA Section */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col {
        border-right: none;
        padding-right: 0;
    }
    
    .footer-links,
    .footer-contacts {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Buttons */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Tables */
    table {
        font-size: 0.9rem;
    }
    
    /* Modal adjustments if needed */
    .modal-content {
        width: 95%;
        margin: 2rem auto;
        padding: 1.5rem;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .logo {
        font-size: 1rem;
    }
    
    .nav-menu {
        padding: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }
    
    /* Hero */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .hero-image {
        max-width: 200px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Countdown */
    .countdown-title {
        font-size: 1.25rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    /* Numbers */
    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .number-value {
        font-size: 1.75rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Page Hero */
    .page-hero h1 {
        font-size: 1.5rem;
    }
    
    /* Stats */
    .district-stats,
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Forms */
    .contact-form,
    .volunteer-form {
        padding: 1rem;
    }
    
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-year {
        font-size: 1.1rem;
    }
    
    /* News Filter */
    .news-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }
    
    /* Social Links */
    .social-links-large a {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.35rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .countdown-timer {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* =================== Performance Optimizations =================== */

/* Hardware acceleration for animations */
.nav-menu,
.mobile-menu-toggle,
.hero-image img,
.back-to-top,
.btn,
.card,
.modal {
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Optimize images for mobile */
@media (max-width: 768px) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #003d82;
        --primary-red: #b30000;
        --gray-medium: #4a4a4a;
    }
}

/* Dark mode support (optional, ready for future) */
@media (prefers-color-scheme: dark) {
    /* Uncomment when dark mode is needed
    :root {
        --white: #1a1a1a;
        --dark: #ffffff;
        --gray-light: #2d2d2d;
        --gray-border: #404040;
        --shadow: rgba(255, 255, 255, 0.1);
    }
    */
}

/* Print styles */
@media print {
    .nav-menu,
    .mobile-menu-toggle,
    .back-to-top,
    .hero-buttons,
    .cta-section,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}