:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: #ecf0f1 !important;
    font-weight: 500;
    margin: 0 0.75rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 30s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

.hero-section {
    padding-top: 10px;   
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px;  
    }
}

/*  Weather Card Preview */
.weather-card-preview {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.weather-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.weather-animation {
    position: relative;
    margin-bottom: 1.5rem;
}

.weather-card-preview .weather-icon {
    font-size: 5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.4));
}

.weather-particles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; right: 25%; animation-delay: 1s; }
.particle:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.weather-card-preview .temp {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.weather-card-preview .condition {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.weather-card-preview .location {
    font-size: 1rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    color: white;
    transform: scale(1.2);
}

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

/* Sections */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.search-section {
    background: white;
    position: relative;
}

.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: var(--transition);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

/*  Search Form */
.search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.input-group .form-control {
    border-radius: 30px 0 0 30px;
    border: 3px solid #e9ecef;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.input-group .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    background: white;
}

.input-group .btn {
    border-radius: 0 30px 30px 0;
    background: var(--primary-gradient);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.input-group .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Popular Cities */
.popular-cities {
    text-align: center;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.city-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.city-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem 0;
    color: var(--primary-color);
}

.loading-spinner p {
    margin-top: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/*  Weather Cards */
.weather-main-card, .weather-details-card, .map-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.weather-main-card {
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.weather-main-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.weather-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.weather-header p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.weather-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.weather-icon-large {
    font-size: 6rem;
    color: #ffd700;
    margin-bottom: 1rem;
    filter: drop-shadow(0 8px 25px rgba(255, 215, 0, 0.4));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.weather-temp {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.weather-condition {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.weather-location {
    font-size: 1.1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Weather Details */
.weather-details-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    font-size: 1.8rem;
    color: #667eea;
    width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.detail-item div {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Map Styling */
.map-card {
    position: relative;
    min-height: 550px;
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

#map {
    height: 450px !important;
    width: 100% !important;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #f8f9fa;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Leaflet Control Customization */
.leaflet-container {
    font-family: inherit;
    border-radius: 20px;
}

.leaflet-control-zoom {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    border-radius: 0 !important;
    color: #667eea !important;
    font-weight: bold;
    font-size: 16px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    transition: var(--transition);
}

.leaflet-control-zoom a:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
    background: white;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.leaflet-popup-tip {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    font-family: inherit;
}

/* About Section */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.weather-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 600;
}

/* Error Message */
.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    border-radius: 20px;
    color: white;
    padding: 1.5rem 2rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Scroll To Top Button  */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #7441c7;   
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    background: #0284c7;
}

@media (max-width: 768px) {
    #scrollTopBtn {
        width: 42px;
        height: 42px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

/* Footer */
.footer {
    background: var(--dark-gradient);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.footer-brand {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-brand-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.footer-brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.footer h6 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.footer-links {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
}

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

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.contact-info {
    position: relative;
    z-index: 2;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.footicon {
    margin-right: 15px;
    width: 25px;
    text-align: center;
    color: #667eea;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 3rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-copyright {
    opacity: 0.9;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.footer-copyright .text-danger {
    color: #ff6b6b !important;
    margin: 0 0.25rem;
}

.footer-brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links li {
    margin-bottom: 6px;
}

.contact-icons {
    margin-top: 8px;
    display: flex;
    gap: 12px;
}

.contact-icons i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer-brand-container {
        justify-content: center;
    }

    .social-links,
    .contact-icons {
        justify-content: center;
    }

    .contact-info p {
        justify-content: center;
    }
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .weather-temp {
        font-size: 4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .weather-temp {
        font-size: 3.5rem;
    }
    
    .weather-details-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .weather-main-card,
    .weather-details-card,
    .map-card {
        padding: 2rem;
    }
    
    #map {
        height: 350px !important;
    }
    
    .city-tags {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .weather-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .weather-icon-large {
        font-size: 4.5rem;
    }
    
    .weather-temp {
        font-size: 3rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .input-group .form-control,
    .input-group .btn {
        border-radius: 30px;
        width: 100%;
    }
    
    #map {
        height: 300px !important;
    }
    
    .map-card,
    .weather-main-card,
    .weather-details-card {
        padding: 1.5rem;
    }
    
    .weather-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    .city-tags {
        gap: 0.5rem;
    }
    
    .city-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(33, 37, 41, 0.98) !important;
    }
    
    .search-section {
        background: #1a1a1a;
        color: white;
    }
    
    .features-section,
    .about-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.form-control:focus,
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .scroll-indicator {
        display: none;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    #map {
        display: none;
    }
    
    .weather-main-card {
        background: white !important;
        color: black !important;
    }
}