/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- RƏNG PALİTRASI VƏ TEMA DƏYİŞKƏNLƏRİ --- */
:root {
    /* Gündüz Rejimi (light-mode) */
    --primary-color: #221e1f;       /* Dəyişdirildi: Əsas Rəng Tünd Boz/Qara oldu */
    --accent-color: #394857;        /* Vurğu Qızılı */
    --text-color: #221e1f;          /* Tünd Mətn (Primary) */
    --background-color: #fffcf9;    /* Açıq Fon (Cream) */
    --card-background: #ffffff;
    --header-text-color: #fffcf9;   /* Açıq Rəng */
    --border-color: #e5e5e5;
    --link-hover-color: #b58b39;    /* Vurğu rəngi */
    --control-btn-color: #fffcf9;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-mode {
    /* Gecə Rejimi (dark-mode) */
    --primary-color: #b58b39;       /* Əsas Qızılı */
    --accent-color: #221e1f;        /* Vurğu Tünd Boz/Qara */
    --text-color: #fffcf9;          /* Açıq Mətn */
    --background-color: #1a1a1a;    /* Tünd Fon */
    --card-background: #282828;
    --header-text-color: #fffcf9;
    --border-color: #3a3a3a;
    --link-hover-color: #8a6a28;    /* Tündləşdirilmiş Qızılı */
    --control-btn-color: #fffcf9;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* --- ƏSAS STİLLƏR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; 
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

.container {
    max-width: 650px; 
    margin: 0 auto;
    background-color: var(--card-background);
    box-shadow: var(--shadow-light);
    min-height: 100vh;
    padding: 0 1.5rem; 
    position: relative;
}

/* --- HEADER VƏ İDARƏETMƏ DÜYMƏLƏRİ --- */
.main-header {
    height: 240px; 
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 30px 30px; 
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.0); 
    border-radius: inherit;
}

.header-controls-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    z-index: 10; 
}

.left-controls,
.right-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    /* Glassmorphism/Akrilik Efekti */
    background-color: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--header-text-color);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .control-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.control-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* --- LOQO VƏ MƏRKƏZLƏŞDİRMƏ --- */
.logo-container {
    display: flex;
    justify-content: center;
    margin-top: -90px; 
    margin-bottom: 25px;
    position: relative;
    z-index: 5;
}

.circular-logo {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--card-background); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: border-color 0.4s ease;
}

/* --- ƏSAS KONTENT VƏ DÜYMƏLƏR --- */
.main-content {
    padding-top: 20px; 
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.main-cta-btn {
    background-color: var(--primary-color);
    color: var(--header-text-color);
    border: none;
    padding: 18px 40px;
    border-radius: 50px; 
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 40px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.main-cta-btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- MENYU KATEQORİYALARI (2 SÜTUNLU GRID) --- */
.menu-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin-bottom: 50px;
}

.category-item {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 20px 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.dark-mode .menu-categories-grid .category-item i {
    color: var(--header-text-color); 
}

.category-item:hover {
    background-color: var(--accent-color);
    color: var(--header-text-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border-color: var(--accent-color);
}

.category-item i {
    font-size: 2.5rem; 
    margin-bottom: 8px;
    color: var(--accent-color); /* Gündüz Rejimində ikon rəngi vurğu rəngi olur */
    transition: color 0.3s ease;
}

.category-item:hover i {
    color: var(--header-text-color); /* Hoverdə açıq rəng */
}

.category-item span {
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

/* --- ƏLAQƏ MƏLUMATLARI --- */
.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-background);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #221e1f;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.contact-item:hover {
    background-color: var(--background-color);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
    color: var(--accent-color); /* Gündüz rejimində vurğu rəngi (#b58b39) */
}

/* --- XÜSUSİ DÜZƏLİŞ: Qaranlıq rejimdə əlaqə ikonlarının rəngi --- */
.dark-mode .contact-item i {
    color: #b58b39; 
}

/* --- FOOTER --- */
.main-footer {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.8;
}

/* --- SCROLL TO TOP DÜYMƏSİ --- */
.scroll-to-top-btn {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 100; 
    
    background-color: var(--primary-color);
    color: var(--header-text-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--accent-color); /* Hoverdə vurğu rəngi */
}

.dark-mode .scroll-to-top-btn {
    background-color: var(--primary-color); 
}

/* Yardımçı siniflər */
.hidden {
    display: none !important;
}

/* --- MOBİL CİHAZLAR ÜÇÜN ADAPTASİYA (RESPONSİVLİK) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }

    .main-header {
        height: 180px; 
        border-radius: 0 0 20px 20px;
    }
    
    .circular-logo {
        width: 120px; 
        height: 120px;
        border-width: 6px;
    }
    
    .logo-container {
        margin-top: -60px;
        margin-bottom: 15px; 
    }

    .section-title {
        font-size: 2rem;
    }

    .main-cta-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        max-width: 90%;
    }

    .menu-categories-grid {
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }
    
    .category-item {
        padding: 15px 5px;
    }
    
    .category-item i {
        font-size: 2rem;
    }
    
    .category-item span {
        font-size: 0.8rem; 
    }

    .control-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .control-btn span {
        display: none; 
    }
    
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}