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

:root {
    --bg-color: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --card-bg: #16213e;
    --text-dark: #ffffff;
    --text-light: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: rgba(0, 0, 0, 0.3);
    --nav-height: 70px;
    --border-radius: 12px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-color: #f5f7fa;
    --bg-secondary: #ffffff;
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --card-bg: #ffffff;
    --text-dark: #1a202c;
    --text-light: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Light theme card borders */
[data-theme="light"] .card,
[data-theme="light"] .result-card,
[data-theme="light"] .calculator-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Light theme navbar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .nav-menu a {
    color: var(--text-dark);
}

[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a.active {
    color: #ffffff;
    background: var(--primary-color);
}

/* Light theme mobile menu background */
@media (max-width: 1024px) {
    [data-theme="light"] .nav-menu {
        background: var(--bg-secondary);
    }
    
    [data-theme="light"] .nav-menu li {
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Light theme footer */
[data-theme="light"] .footer {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .footer-section h3,
[data-theme="light"] .footer-section h4 {
    color: var(--text-dark);
}

[data-theme="light"] .footer-section p {
    color: var(--text-light);
}

[data-theme="light"] .footer-section ul li a {
    color: var(--text-light);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid #e2e8f0;
    color: var(--text-light);
}

/* Light theme snowflakes (hide in light mode for cleaner look) */
[data-theme="light"] .snowflakes {
    opacity: 0.3;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 1000;
    height: var(--nav-height);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

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

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    position: relative;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-dark);
    background: var(--primary-color);
}

.nav-menu a.admin-login-btn {
    background: var(--primary-dark);
    color: var(--text-dark);
    border: 2px solid var(--primary-light);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.nav-menu a.admin-login-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.theme-toggle:hover {
    color: var(--text-dark);
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Light theme toggle button visibility */
[data-theme="light"] .theme-toggle {
    color: var(--text-dark);
}

[data-theme="light"] .theme-toggle:hover {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

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

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

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

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.hero .tagline {
    font-size: 1.2rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 5px;
}

.hero .subtitle {
    font-size: 1rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.page-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    margin: 30px auto;
    border-radius: var(--border-radius);
    max-width: 900px;
    backdrop-filter: blur(10px);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.page-header p {
    font-size: 0.95rem;
    opacity: 0.7;
    color: var(--text-light);
}

.intro-section {
    text-align: center;
    padding: 20px 20px 40px;
    animation: fadeIn 1s ease-out;
}

.intro-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.main-content-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 30px;
    width: 100%;
}

.main-content-wrapper .form-section {
    width: 100%;
    max-width: 700px;
}

.ad-space {
    min-height: 300px;
}

.ad-placeholder {
    background: var(--card-bg);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.ad-container {
    display: none;
    margin: 20px 0;
    padding: 10px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.card-header-text {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.card-header-text h1,
.card-header-text h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.sidebar-ad-box {
    background: var(--card-bg);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-ad-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.sidebar-ad-box h3 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.sidebar-ad-box .ad-content {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-ads-container {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.form-section {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.toggle-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.toggle-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
    color: white;
}

.btn-primary span,
.btn-primary {
    position: relative;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #E8F4F8;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.hidden {
    display: none !important;
}

.results-section {
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-out;
}

.results-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.current-weather-info {
    text-align: center;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow);
}

.current-weather-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.result-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    animation: slideUp 0.5s ease-out backwards;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }

.result-card:hover {
    transform: translateY(-5px);
}

.result-card .date {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.result-card .weather-icon {
    font-size: 3rem;
    margin: 15px 0;
}

.result-card .weather-desc {
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: capitalize;
}

.result-card .temp {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.result-card .snow-chance {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
}

.result-card .message {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 10px;
}

.chance-low { color: var(--success); }
.chance-medium { color: var(--warning); }
.chance-high { color: var(--danger); }

.content-area {
    max-width: 900px;
    margin: 40px auto;
}

.content-placeholder {
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.info-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.info-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.info-section ul li::before {
    content: "❄️";
    position: absolute;
    left: 0;
}

.info-section .bold-link {
    font-weight: 700;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-section .bold-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.info-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Mobile responsiveness for How It Works section */
@media (max-width: 768px) {
    .info-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .info-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .info-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .info-section ul li {
        font-size: 0.9rem;
        padding: 8px 0;
        padding-left: 28px;
    }
}

@media (max-width: 480px) {
    .info-section {
        margin: 30px auto;
    }
    
    .info-section h2 {
        font-size: 1.3rem;
    }
    
    .info-section p {
        font-size: 0.9rem;
    }
    
    .info-section ul li {
        font-size: 0.85rem;
        padding-left: 25px;
    }
}

.snow-fact {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    min-height: 80px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.page-content {
    padding: 20px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 25px;
}

.content-section .card {
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.content-section .card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.content-section h2 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-section h3 {
    color: var(--primary-color);
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.content-section ul {
    color: var(--text-light);
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 3px;
}

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

.faq-item {
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

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

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.8;
}

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

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

.contact-section {
    margin-top: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.contact-form-container {
    margin-bottom: 0;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-method h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-method p {
    color: var(--text-light);
    margin: 0;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.footer {
    background: var(--bg-secondary);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3 i {
    color: var(--primary-color);
}

.footer-section p {
    color: #BDC3C7;
    line-height: 1.8;
}

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

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

.footer-section ul li a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

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

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(139, 92, 246, 0.6);
    font-size: 1.5rem;
    animation: fall linear infinite;
    cursor: pointer;
    pointer-events: auto;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 14s; animation-delay: 4s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 13s; animation-delay: 3s; }

@keyframes fall {
    0% {
        top: -10%;
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0.5;
    }
}

.snowflake.fast {
    animation-duration: 3s !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Latest Updates Styles */
.updates-list {
    margin-top: 20px;
}

.update-item {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.update-item:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateX(5px);
}

.update-item h3 {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.update-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.update-date {
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
    margin-top: 10px;
}

.content-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-style: italic;
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-ads-container {
        display: none;
    }
    
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ad-space {
        display: none;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .card-header-text h1,
    .card-header-text h2 {
        font-size: 1.4rem;
    }
    
    .card-header-text p {
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .snowflake {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.7rem;
    }
    
    .intro-section h2 {
        font-size: 1.3rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-header-text h1,
    .card-header-text h2 {
        font-size: 1.2rem;
    }
    
    .card-header-text p {
        font-size: 0.85rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .nav-menu {
        width: 80%;
    }
}

/* Ad Containers */
.ad-container {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed rgba(139, 92, 246, 0.3);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ad-container:empty::before {
    content: "Advertisement Space";
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Calculation Statistics Section */
.stats-section {
    margin: 30px 0;
}

.stats-section .card {
    background: var(--card-bg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.stats-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.chart-container {
    position: relative;
    height: 300px;
    padding: 20px 0;
    width: 100%;
    overflow: hidden;
}

.chart-container canvas {
    max-height: 300px;
    max-width: 100%;
}

/* Mobile responsive adjustments for charts */
@media (max-width: 768px) {
    .chart-container {
        height: 280px;
        padding: 15px 5px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .stats-section h2 {
        font-size: 1.3rem;
    }
    
    .stats-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 260px;
        padding: 10px 0;
    }
    
    .stats-section h2 {
        font-size: 1.1rem;
    }
    
    .stats-subtitle {
        font-size: 0.8rem;
    }
}

/* App Links in Footer */
.app-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.app-links a {
    color: var(--text-dark);
    font-size: 32px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.app-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-dark);
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

/* Home Content Section */
.home-content-area {
    margin: 40px 0;
}

.home-content-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(139, 92, 246, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.home-content-scrollable::-webkit-scrollbar {
    width: 8px;
}

.home-content-scrollable::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

.home-content-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.home-content-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.home-content-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.home-content-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.home-content-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.home-content-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.home-content-item ul,
.home-content-item ol {
    margin: 15px 0;
    padding-left: 25px;
}

.home-content-item li {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.home-content-item strong {
    color: var(--primary-light);
}

/* Calculators Page */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.calculator-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--primary-color);
}

.calculator-card.active {
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.1));
    padding-left: 27px;
}

.calculator-card.coming-soon {
    opacity: 0.85;
}

.calculator-card.coming-soon:hover {
    opacity: 1;
}

.calculator-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.calculator-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.calculator-card p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.calculator-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-badge i {
    font-size: 0.9rem;
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.calculator-card .btn-primary,
.calculator-card .btn-secondary {
    width: 100%;
    margin-top: 10px;
}

.calculator-card .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
    color: var(--text-light);
    border-color: var(--text-light);
}

.cta-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: 15px;
    padding: 60px 30px;
    text-align: center;
    margin: 60px 0;
}

.cta-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    width: auto;
    padding: 15px 40px;
    display: inline-block;
}

@media (max-width: 768px) {
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .calculator-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .calculator-card h3 {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }
}
