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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4c6ef5;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #4c6ef5;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4c6ef5;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Snow Animation */
.snow-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    animation: snowfall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 3s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 4s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 3.5s; animation-delay: 0.5s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 5s; animation-delay: 1.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 4.5s; animation-delay: 2s; }

@keyframes snowfall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Weather Form */
.weather-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #4c6ef5;
}

.btn-primary {
    background: linear-gradient(135deg, #4c6ef5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 110, 245, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #4c6ef5;
    border: 2px solid #4c6ef5;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4c6ef5;
    color: white;
    transform: translateY(-2px);
}

.form-help {
    text-align: center;
}

.form-help small {
    color: #666;
    font-size: 0.9rem;
}

/* Loading and Error States */
.loading {
    text-align: center;
    color: white;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.hidden {
    display: none !important;
}

/* Weather Results */
.weather-results {
    background: white;
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.results-header {
    background: linear-gradient(135deg, #4c6ef5 0%, #7c3aed 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.results-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.location-name {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Snow Day Probability Card */
.snow-day-card {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #f8faff 0%, #e0e7ff 100%);
}

.probability-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.circle-progress {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#4c6ef5 0deg, #e0e7ff 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
}

.circle-progress span {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: 700;
    color: #4c6ef5;
}

.probability-content {
    flex: 1;
}

.probability-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.probability-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.recommendation-icon {
    font-size: 3rem;
    color: #4c6ef5;
}

/* Weather Cards */
.weather-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.weather-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f4ff;
}

.weather-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #4c6ef5;
    font-size: 1.3rem;
}

.weather-info .temp {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.weather-info .temp-range {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.weather-info .condition {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.weather-info .details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weather-info .details div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.weather-info .details i {
    color: #4c6ef5;
    width: 20px;
}

/* Factors Analysis */
.factors-analysis {
    padding: 40px;
    background: #f8faff;
}

.factors-analysis h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.factor-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.factor-item i {
    font-size: 2rem;
    color: #4c6ef5;
    margin-bottom: 10px;
}

.factor-item span {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.factor-impact {
    height: 8px;
    background: #e0e7ff;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.factor-impact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* Educational Content */
.educational-content {
    padding: 80px 20px;
    background: white;
}

.educational-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.content-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #f8faff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-card i {
    font-size: 3rem;
    color: #4c6ef5;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.content-card p {
    color: #666;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background: #f8faff;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #4c6ef5;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

/* Page Hero Styles */
.page-hero {
    padding: 120px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* About Page Styles */
.about-content,
.privacy-content,
.faq-content {
    padding: 60px 20px;
    background: white;
}

.content-section {
    max-width: 800px;
    margin: 0 auto 50px;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4c6ef5;
}

.content-section p,
.content-section li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.features-grid,
.differences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card,
.difference-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #f8faff;
    border: 2px solid #e0e7ff;
}

.feature-card i {
    font-size: 3rem;
    color: #4c6ef5;
    margin-bottom: 20px;
}

.feature-card h3,
.difference-item h3 {
    margin-bottom: 15px;
    color: #333;
}

.feature-card p,
.difference-item p {
    color: #666;
}

.algorithm-steps {
    margin: 40px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: #4c6ef5;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
}

.accuracy-list {
    background: #f8faff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4c6ef5;
}

.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #4c6ef5 0%, #7c3aed 100%);
    border-radius: 20px;
    color: white;
    margin: 50px 0;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Privacy Page Styles */
.privacy-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.summary-item {
    text-align: center;
    padding: 25px;
    background: #f8faff;
    border-radius: 15px;
    border: 2px solid #e0e7ff;
}

.summary-item i {
    font-size: 2.5rem;
    color: #4c6ef5;
    margin-bottom: 15px;
}

.summary-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.contact-info {
    background: #f8faff;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #4c6ef5;
}

/* FAQ Page Styles */
.faq-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e0e7ff;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
}

.search-box input:focus {
    border-color: #4c6ef5;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 2px solid #e0e7ff;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: #4c6ef5;
    color: white;
    border-color: #4c6ef5;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-container .faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8faff;
}

.faq-question h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question i.fa-chevron-down {
    transition: transform 0.3s ease;
    color: #4c6ef5;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: #f8faff;
    border-radius: 20px;
}

.faq-contact h2 {
    margin-bottom: 15px;
    color: #333;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-option {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-option i {
    font-size: 3rem;
    color: #4c6ef5;
    margin-bottom: 20px;
}

.contact-option h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #4c6ef5;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo i {
    margin-right: 10px;
    color: #4c6ef5;
}

.footer-section p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4c6ef5;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(76, 110, 245, 0.2);
    border-radius: 50%;
    color: #4c6ef5;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4c6ef5;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .weather-form {
        padding: 30px 20px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .snow-day-card {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-cards {
        grid-template-columns: 1fr;
    }
    
    .factors-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    
    .weather-form {
        padding: 20px 15px;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .probability-circle,
    .circle-progress {
        width: 120px;
        height: 120px;
    }
    
    .circle-progress::before {
        width: 95px;
        height: 95px;
    }
    
    .circle-progress span {
        font-size: 1.5rem;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Color Classes */
.text-blue { color: #4c6ef5; }
.text-gray { color: #666; }
.text-white { color: white; }
.bg-blue { background: #4c6ef5; }
.bg-light { background: #f8faff; }
