/* Global Styles with Enhanced Artistic and Scientific Elements */
:root {
    /* Scientific Color Palette with Mineral-inspired Colors */
    --primary-color: #1E3A8A;      /* Deep Sapphire */
    --primary-light: #3B82F6;      /* Azure */
    --primary-dark: #1E40AF;       /* Royal Blue */
    --secondary-color: #DC2626;    /* Ruby Red */
    --secondary-light: #EF4444;    /* Coral */
    --secondary-dark: #B91C1C;     /* Garnet */
    --accent-color: #10B981;       /* Emerald */
    --accent-light: #34D399;       /* Jade */
    --accent-dark: #059669;        /* Forest Green */
    --gold-color: #F59E0B;         /* Gold */
    --silver-color: #94A3B8;       /* Silver */
    --bronze-color: #B45309;       /* Bronze */
    --text-color: #1F2937;         /* Graphite */
    --text-light: #6B7280;         /* Slate */
    --background-light: #F9FAFB;   /* Quartz */
    --background-dark: #111827;    /* Obsidian */
    
    /* Artistic Gradients with Mineral-inspired Transitions */
    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #60A5FA 100%);
    --gradient-secondary: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #F87171 100%);
    --gradient-accent: linear-gradient(135deg, #10B981 0%, #34D399 50%, #6EE7B7 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #1F2937 50%, #374151 100%);
    --gradient-light: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 50%, #F3F4F6 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #FCD34D 100%);
    --gradient-silver: linear-gradient(135deg, #94A3B8 0%, #CBD5E1 50%, #E2E8F0 100%);
    --gradient-bronze: linear-gradient(135deg, #B45309 0%, #D97706 50%, #F59E0B 100%);
    
    /* Scientific Shadows with Precise Measurements */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
    --shadow-primary: 0 4px 14px rgba(59, 130, 246, 0.25);
    --shadow-secondary: 0 4px 14px rgba(239, 68, 68, 0.25);
    --shadow-accent: 0 4px 14px rgba(16, 185, 129, 0.25);
    --shadow-gold: 0 4px 14px rgba(245, 158, 11, 0.25);
    
    /* Mathematical Spacing System */
    --spacing-xxs: 0.25rem;    /* 4px */
    --spacing-xs: 0.5rem;      /* 8px */
    --spacing-sm: 1rem;        /* 16px */
    --spacing-md: 2rem;        /* 32px */
    --spacing-lg: 3rem;        /* 48px */
    --spacing-xl: 5rem;        /* 80px */
    --spacing-xxl: 8rem;       /* 128px */
    
    /* Geometric Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    
    /* Precise Transitions */
    --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);
}

/* Modern Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    color: #333;
    font-size: 13px; /* Further reduced base font size */
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* Professional Container */
.container {
    width: 100%;
    max-width: 900px; /* Further reduced container size */
    margin: 0 auto;
    padding: 0 8px; /* Reduced horizontal padding */
    position: relative;
}

/* Enhanced Typography with Scientific Precision */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px; /* Reduced bottom margin for headings */
    color: var(--text-color);
    letter-spacing: -0.02em;
    position: relative;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Reduced font size */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem); /* Reduced font size */
    margin-bottom: var(--spacing-md);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem); /* Reduced font size */
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem; /* Reduced paragraph font size */
}

/* Enhanced Buttons with Mineral-inspired Effects */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: 0.025em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.btn:hover::after {
    opacity: 1;
}

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

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

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-secondary);
}

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

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

/* Enhanced Cards with Mineral-inspired Design */
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 0.05;
}

/* Enhanced Grid System with Golden Ratio */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Enhanced Form Elements with Scientific Precision */
.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

input, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-normal);
    font-size: 1rem;
    box-shadow: var(--shadow-inner);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--shadow-inner);
    transform: translateY(-1px);
}

/* Enhanced Animations with Scientific Timing */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Alerts with Mineral-inspired Design */
.alert {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideIn var(--transition-normal);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info-color);
    color: var(--info-color);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

/* Enhanced Responsive Design with Scientific Breakpoints */
@media (max-width: 1024px) {
    .container {
        max-width: 850px;
    }
    
    .hero-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        max-width: 100%;
        padding: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-xs);
    }
    
    .hero-content {
        max-width: 100%;
        padding: var(--spacing-sm);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* Enhanced Hero Section with Parallax */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.svg') repeat;
    opacity: 0.1;
    transform: translateZ(-1px) scale(2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px; /* Increased content width for more text */
    animation: fadeIn var(--transition-slow);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    animation: bounceIn var(--transition-bounce);
}

.hero p {
    font-size: 1.1rem; /* Increased hero paragraph size */
    color: rgba(53, 50, 50, 0.9);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    max-width: 700px; /* Increased max-width for more text */
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn var(--transition-slow) 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    animation: fadeIn var(--transition-slow) 0.4s forwards;
}

/* Enhanced Stats Section with Floating Animation */
.stats {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/stats-pattern.svg') repeat;
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

.stat-card:nth-child(4) {
    animation-delay: 1.5s;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.stat-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Enhanced Footer with Gradient Overlay */
footer {
    background: var(--background-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem; /* Reduced footer font size */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/footer-pattern.svg') repeat;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px; /* Reduced footer container size */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-info {
    max-width: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

.footer-info p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95em;
}

.social-links {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.social-links a {
    color: white;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-primary);
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.1em;
    position: relative;
    padding-bottom: var(--spacing-xxs);
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background: var(--primary-light);
    border-radius: var(--border-radius-full);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
    font-size: 0.9em;
    padding: 2px 0;
}

.footer-links ul li a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-contact p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9em;
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1em;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 150px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9em;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button.btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9em;
}

.footer-bottom {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.8em;
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.8em;
}

.footer-bottom-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .footer-info,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        padding: var(--spacing-sm);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        justify-content: center;
    }
    
    .newsletter-form input,
    .newsletter-form button.btn-primary {
        width: auto;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .footer-info,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        text-align: center;
        align-items: center;
        padding: var(--spacing-sm) 0;
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--border-radius-md);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .footer-links h4::after,
    .footer-contact h4::after,
    .footer-newsletter h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .newsletter-form input,
    .newsletter-form button.btn-primary {
        width: 80%;
    }
}

/* Ensure text is visible against dark footer background */
footer *, footer a {
    color: rgba(255,255,255,0.9) !important;
}

footer h4 {
     color: white !important;
}

footer .social-links a i,
footer .footer-contact i {
     color: var(--primary-light) !important;
}

footer a:hover {
    color: white !important;
}

/* Mobile-First Typography Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: clamp(1.75rem, 3.5vw, 2.5rem);
        margin-bottom: var(--spacing-sm);
    }

    h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: var(--spacing-sm);
    }

    h3 {
        font-size: clamp(1.25rem, 2.5vw, 1.75rem);
        margin-bottom: var(--spacing-sm);
    }

    p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        max-width: 100%;
        padding: var(--spacing-md);
    }

    .hero h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .card {
        padding: var(--spacing-sm);
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-info p,
    .footer-links ul li a,
    .footer-contact p,
    .newsletter-form input,
    .newsletter-form button {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 11px;
    }

    h1 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    h2 {
        font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    }

    h3 {
        font-size: clamp(1.1rem, 2vw, 1.5rem);
    }

    p {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 var(--spacing-xs);
    }

    .hero-content {
        padding: var(--spacing-sm);
    }

    .hero h1 {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .footer-info,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        text-align: center;
        padding: var(--spacing-sm);
    }

    .footer-info p,
    .footer-links ul li a,
    .footer-contact p,
    .newsletter-form input,
    .newsletter-form button {
        font-size: 0.8rem;
    }

    .stat-card {
        padding: var(--spacing-sm);
    }

    .stat-card h3 {
        font-size: 1.25rem;
    }

    .stat-card p {
        font-size: 0.8rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

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

    .form-group {
        margin-bottom: var(--spacing-sm);
    }

    input, textarea {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }

    .alert {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* Ensure proper spacing in mobile views */
@media (max-width: 480px) {
    .spacing-sm { margin: var(--spacing-xs); }
    .spacing-md { margin: var(--spacing-sm); }
    .spacing-lg { margin: var(--spacing-md); }
    .spacing-xl { margin: var(--spacing-lg); }

    .padding-sm { padding: var(--spacing-xs); }
    .padding-md { padding: var(--spacing-sm); }
    .padding-lg { padding: var(--spacing-md); }
    .padding-xl { padding: var(--spacing-lg); }
}

/* Map Section Styles */
.map-section {
    padding: var(--spacing-lg) 0;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

.map-embed-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: var(--spacing-md) 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
}

.map-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius-lg);
}

/* Map Section Mobile Optimizations */
@media (max-width: 768px) {
    .map-section {
        padding: var(--spacing-md) 0;
    }
    
    .map-embed-wrapper {
        padding-bottom: 75%; /* Taller aspect ratio for mobile */
        margin: var(--spacing-sm) 0;
        border-radius: var(--border-radius-md);
    }
    
    .map-embed-wrapper iframe {
        border-radius: var(--border-radius-md);
    }
}

@media (max-width: 480px) {
    .map-section {
        padding: var(--spacing-sm) 0;
    }
    
    .map-embed-wrapper {
        padding-bottom: 100%; /* Square aspect ratio for small mobile */
        margin: var(--spacing-xs) 0;
        border-radius: var(--border-radius-sm);
    }
    
    .map-embed-wrapper iframe {
        border-radius: var(--border-radius-sm);
    }
}

/* Map Container Styles for Different Sections */
.operations-map-section .map-embed-wrapper,
.contact-map-section .map-embed-wrapper,
.about-map-section .map-embed-wrapper {
    max-width: 1000px;
    margin: var(--spacing-md) auto;
}

/* Map Info Overlay */
.map-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--spacing-sm);
    font-size: 0.9rem;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .map-info-overlay {
        font-size: 0.8rem;
        padding: var(--spacing-xs);
    }
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 1;
    display: flex;
    gap: var(--spacing-xs);
}

.map-control-btn {
    background: white;
    border: none;
    border-radius: var(--border-radius-full);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.map-control-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .map-controls {
        top: var(--spacing-xs);
        right: var(--spacing-xs);
    }
    
    .map-control-btn {
        width: 28px;
        height: 28px;
    }
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 1;
    visibility: visible;
}

.language-selector.closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.language-selector .close-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.2s ease;
}

.language-selector .close-btn:hover {
    color: #333;
}

#google_translate_element {
    display: inline-block;
}

#google_translate_element select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 120px;
    max-width: 150px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
}

#google_translate_element select:hover {
    border-color: #999;
}

#google_translate_element select:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .language-selector {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: auto;
        width: auto;
        max-width: 200px;
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.98);
        overflow: hidden;
    }

    .language-selector.closed {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: none;
    }

    #google_translate_element {
        width: auto;
        box-sizing: border-box;
    }

    #google_translate_element select {
        width: 120px;
        max-width: 100%;
        min-width: auto;
        font-size: 13px;
        padding: 8px 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .language-selector {
        bottom: 15px;
        right: 15px;
        left: auto;
        max-width: 180px;
        padding: 5px 8px;
        overflow: hidden;
    }

    .language-selector.closed {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: none;
    }

    #google_translate_element select {
        width: 100px;
        max-width: 100%;
        min-width: auto;
        font-size: 12px;
        padding: 6px 8px;
        box-sizing: border-box;
    }
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.contact-info a:hover {
    color: #ffd700;
    transform: translateY(-1px);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 25px;
    height: 25px;
    font-size: 0.85rem;
}

.social-links a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.search-toggle {
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    color: #ffd700;
}

/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1003;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-form input {
    flex: 1;
    padding: 1rem;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    outline: none;
}

.search-form button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-form button:hover {
    color: #ffd700;
}

.search-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: #ffd700;
    transform: rotate(90deg);
}

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