/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #D90012;
    --secondary: #0033A0;
    --accent: #F2A800;
    --light: #f8f9fa;
    --dark: #121212;
    --dark-surface: #1e1e1e;
    --dark-card: #2d2d2d;
    --gray: #6c757d;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    transition: var(--transition);
}

body.dark-mode {
    background-color: var(--dark);
    color: #e0e0e0;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--dark);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #ffffff;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

body.dark-mode a {
    color: #4a7cff;
}

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

body.dark-mode a:hover {
    color: #ff4d4d;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 3rem 0;
}

.section-alt {
    background-color: #f8f9fa;
}

body.dark-mode .section-alt {
    background-color: #1a1a1a;
}

body.dark-mode section {
    background-color: var(--dark-surface);
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

body.dark-mode header {
    background-color: var(--dark-card);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

/* Logo with Armenian Flag Colors */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
}

.logo::before {
    content: "Armenia";
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--primary) 33%, 
        var(--secondary) 33%, 
        var(--secondary) 66%, 
        var(--accent) 66%, 
        var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline-block;
}

.logo span {
    color: #333;
    font-weight: normal;
}

body.dark-mode .logo span {
    color: #fff;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
    transition: var(--transition);
}

body.dark-mode .theme-toggle {
    color: #e0e0e0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

body.dark-mode .mobile-menu-btn {
    color: #e0e0e0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('./img/armenia-tourism.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

/* Content Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    margin: 0.5rem auto;
    border-radius: 2px;
}

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

.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

body.dark-mode .card {
    background-color: var(--dark-card);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--accent);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-content {
    padding: 1.5rem;
}

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

body.dark-mode .card h3 {
    color: var(--accent);
}

.icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

body.dark-mode .icon {
    color: #4a7cff;
}

/* Widget Links */
.widget-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: var(--transition);
}

.widget-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

/* Widget Content */
.widget-content {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.widget-link:hover .widget-content {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .widget-content {
    background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
}

body.dark-mode .widget-link:hover .widget-content {
    background: linear-gradient(135deg, #3a3a3a, #444);
}

/* Widget Icon */
.widget-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.widget-link:hover .widget-icon {
    transform: scale(1.1);
}

/* Widget Text */
.widget-text h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

body.dark-mode .widget-text h4 {
    color: #4a7cff;
}

.widget-text p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

body.dark-mode .widget-text p {
    color: #adb5bd;
}

/* Widget CTA */
.widget-cta {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
}

.widget-link:hover .widget-cta {
    color: var(--accent);
    transform: translateX(5px);
}

body.dark-mode .widget-cta {
    color: #ff6b6b;
}

body.dark-mode .widget-link:hover .widget-cta {
    color: var(--accent);
}

/* Widget Hover Effects */
.widget {
    transition: var(--transition);
}

.widget-link:hover .widget {
    transform: translateY(-5px);
}

/* Remove old placeholder styles */
.widget-placeholder {
    display: none;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .faq-item {
    border-color: #555;
}

.faq-question {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
    color: var(--secondary);
}

body.dark-mode .faq-question {
    background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
    color: #4a7cff;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

body.dark-mode .faq-question:hover {
    background: linear-gradient(135deg, #3a3a3a, #444);
}

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

.faq-answer.active {
    padding: 1rem;
    max-height: 500px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    transition: var(--transition);
}

body.dark-mode footer {
    background: linear-gradient(135deg, #002a80 0%, #b3000d 100%);
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

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

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

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

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    nav {
        width: 100%;
        margin-top: 1rem;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .widget-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
}
.card-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.card-link:hover {
    background-color: #1e3d6f;
    color: white;
    text-decoration: none;
}

/* Ensure proper spacing in card content */
.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-link {
    margin-top: auto; /* This pushes the link to the bottom */
}
/* Random Facts Section */
#facts {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark-mode #facts {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.facts-subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: normal;
    margin-top: 0.5rem;
}

body.dark-mode .facts-subtitle {
    color: #4a7cff;
}

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

/* Main Fact Card */
.fact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

body.dark-mode .fact-card {
    background: var(--dark-card);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fact-card::before {
    content: '✨ FUN FACT';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.fact-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.fact-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

body.dark-mode .fact-content h3 {
    color: var(--accent);
}

.fact-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
    margin-bottom: 1.5rem;
}

body.dark-mode .fact-content p {
    color: #ccc;
}

.fact-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

body.dark-mode .fact-controls {
    border-top-color: #444;
}

.fact-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fact-button:hover {
    background: var(--primary);
    transform: translateX(5px);
}

.fact-counter {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

body.dark-mode .fact-counter {
    color: #aaa;
}

/* Quick Facts Grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.quick-fact {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid #eee;
}

body.dark-mode .quick-fact {
    background: rgba(45, 45, 45, 0.7);
    border-color: #444;
}

.quick-fact:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

body.dark-mode .quick-fact:hover {
    background: var(--dark-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.quick-fact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.quick-fact p {
    margin: 0;
    font-weight: 500;
    color: #333;
}

body.dark-mode .quick-fact p {
    color: #ddd;
}

/* Responsive Design for Facts */
@media (max-width: 768px) {
    .fact-card {
        padding: 1.5rem;
    }
    
    .fact-content h3 {
        font-size: 1.3rem;
    }
    
    .fact-content p {
        font-size: 1rem;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .fact-icon {
        font-size: 2.5rem;
    }
}

/* Random Facts Section - Mobile Fixes */

/* Fix for small screens (under 768px) */
@media (max-width: 768px) {
    /* Main Fact Card mobile adjustments */
    .fact-card {
        padding: 1.2rem;
        margin: 0 -0.5rem; /* Add negative margin to use full width */
        border-radius: 12px; /* Slightly larger radius for mobile */
    }
    
    .fact-card::before {
        font-size: 0.7rem;
        padding: 3px 10px;
        top: 8px;
        right: 8px;
    }
    
    .fact-icon {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .fact-content h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .fact-content p {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 0.5rem;
        margin-bottom: 1.2rem;
    }
    
    /* Fix fact controls layout */
    .fact-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .fact-button {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .fact-counter {
        text-align: center;
        font-size: 0.9rem;
    }
    
    /* Quick Facts Grid mobile fixes */
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .quick-fact {
        padding: 1rem;
        gap: 0.8rem;
        border-radius: 10px;
    }
    
    .quick-fact-icon {
        font-size: 1.5rem;
        min-width: 40px; /* Prevent icon from shrinking */
    }
    
    .quick-fact p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Container adjustments */
    .facts-container {
        padding: 0 0.5rem;
    }
    
    /* Adjust section title for mobile */
    #facts .section-title {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .facts-subtitle {
        font-size: 1rem;
        margin-top: 0.3rem;
    }
}

/* Fix for very small screens (under 480px) */
@media (max-width: 480px) {
    .fact-card {
        padding: 1rem;
        margin: 0 -0.75rem; /* More negative margin for small screens */
    }
    
    .fact-content h3 {
        font-size: 1.2rem;
        padding: 0;
    }
    
    .fact-content p {
        font-size: 0.95rem;
        padding: 0;
    }
    
    .fact-icon {
        font-size: 2.5rem;
    }
    
    .quick-fact {
        padding: 0.8rem;
    }
    
    .quick-fact p {
        font-size: 0.9rem;
    }
}

/* Fix for landscape mobile and tablet */
@media (max-width: 768px) and (orientation: landscape) {
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .fact-card {
        padding: 1.5rem;
    }
    
    .fact-content h3 {
        font-size: 1.2rem;
    }
    
    .fact-content p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
}

/* Tablet specific fixes (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .facts-container {
        max-width: 95%;
    }
    
    .fact-card {
        padding: 1.8rem;
    }
    
    .fact-content h3 {
        font-size: 1.4rem;
    }
    
    .fact-content p {
        font-size: 1.05rem;
    }
    
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

/* Ensure content doesn't overflow on mobile */
.fact-content, .quick-fact p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Prevent text from being too close to edges on mobile */
.container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

/* Fix animation for mobile */
@media (max-width: 768px) {
    @keyframes float {
        0%, 100% { transform: translateY(0) scale(0.9); }
        50% { transform: translateY(-5px) scale(0.95); }
    }
}

/* Fix for section headers on mobile */
@media (max-width: 768px) {
    .section-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .facts-subtitle {
        font-size: 1.1rem;
        color: var(--secondary);
        margin-top: 0.5rem;
        display: block;
    }
    
    body.dark-mode .facts-subtitle {
        color: #4a7cff;
    }
    
    /* Button text adjustments */
    .button-text {
        display: inline;
    }
    
    .button-arrow {
        display: inline;
        margin-left: 5px;
    }
}

/* Fix for very small screens - adjust button text */
@media (max-width: 360px) {
    .fact-button {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }
    
    .button-text {
        display: inline-block;
    }
    
    .quick-fact p {
        font-size: 0.85rem;
    }
}

/* Ensure proper spacing on all mobile devices */
.fact-card, .quick-fact {
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
















