@font-face {
    font-family: 'BPG Nino Mtavruli Bold';
    src: url('fonts/bpg-nino-mtavruli-bold-webfont.eot');
    src: url('fonts/bpg-nino-mtavruli-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/bpg-nino-mtavruli-bold-webfont.woff2') format('woff2'),
         url('fonts/bpg-nino-mtavruli-bold-webfont.woff') format('woff'),
         url('fonts/bpg-nino-mtavruli-bold-webfont.ttf') format('truetype'),
         url('fonts/bpg-nino-mtavruli-bold-webfont.svg#bpg_nino_mtavrulibold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BPG Arial';
    src: url('fonts/bpg-arial-webfont.eot');
    src: url('fonts/bpg-arial-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/bpg-arial-webfont.woff2') format('woff2'),
         url('fonts/bpg-arial-webfont.woff') format('woff'),
         url('fonts/bpg-arial-webfont.ttf') format('truetype'),
         url('fonts/bpg-arial-webfont.svg#bpg_arialregular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   1. ფერების ცვლადები (Variables)
   ========================================= */
:root {
    /* --- Light Mode --- */
    --bg-color: #f4f7fa; /* ოდნავ მოლურჯო თეთრი */
    --card-bg: rgba(255, 255, 255, 0.8); /* გამჭვირვალე ბარათები */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: rgba(226, 232, 240, 0.8);
    --input-bg: rgba(249, 250, 251, 0.8);
    --navbar-bg: rgba(255, 255, 255, 0.7);

    /* Brand Colors */
    --primary: #BB30FC;
    --primary-dark: #9a25d1;
    --accent: #00899B;
    --accent-dark: #006e7d;

    --primary-transparent: rgba(187, 48, 252, 0.15);
    --accent-transparent: rgba(0, 137, 155, 0.15);

    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #4f46e5;

    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.6);

    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);

    --star-color: #1f2937;
    --star-opacity: 0.15; /* მსუბუქი ვარსკვლავები ღია ფონზე */
}

/* --- Dark Mode --- */
body.dark-mode {
    --bg-color: #0b0f19;
    --card-bg: rgba(22, 27, 46, 0.8);
    --text-dark: #e2e8f0;
    --text-gray: #94a3b8;
    --border-color: rgba(45, 55, 72, 0.8);
    --input-bg: rgba(15, 23, 42, 0.8);
    --navbar-bg: rgba(11, 15, 25, 0.8);

    --glass-bg: rgba(30, 41, 59, 0.5);
    --glass-border: rgba(148, 163, 184, 0.1);

    --primary: #c65cfc;
    --primary-dark: #BB30FC;
    --accent: #00aebf;
    --accent-dark: #00899B;

    --primary-transparent: rgba(187, 48, 252, 0.25);
    --accent-transparent: rgba(0, 137, 155, 0.25);

    --shadow-soft: 0 4px 20px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.7);

    --star-color: #fff;
    --star-opacity: 0.8;
}

/* =========================================
   2. გლობალური სტილები
   ========================================= */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body, input, textarea, select, button {
    margin: 0;
    padding: 0;
    font-family: 'BPG Arial', sans-serif; /* Changed to BPG Arial */
    background: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.3s ease;
    position: relative;
}

/* Headings & Brand Font */
h1, h2, h3, h4, h5, h6, .brand, .btn-main, .btn-outline, .nav-links a, .price-tag, .cat-pill, .stat-title, .sidebar-header {
    font-family: 'BPG Nino Mtavruli Bold', sans-serif;
    text-transform: uppercase; /* Ensure caps look */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; position: relative; z-index: 2; }
.container-fluid { max-width: 100%; margin: 0 auto; padding: 0 40px; width: 100%; position: relative; z-index: 2; }

/* Utility Classes */
.w-100 { width: 100%; display: block; border: none; cursor: pointer; }
.mb-10 { margin-bottom: 10px !important; }
.mt-10 { margin-top: 30px !important; } /* Changed from 10px to 30px */
.font-bold { font-weight: 700 !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-gray-small { color: var(--text-gray); font-size: 0.85rem; display: block; }
.text-center { text-align: center; }

/* =========================================
   3. Background Animation (Galaxy & Stars)
   ========================================= */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Galaxy Nebula Effect */
.galaxy-nebula {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 20%, var(--primary-transparent) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, var(--accent-transparent) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(100, 100, 255, 0.03) 0%, transparent 60%);
    filter: blur(80px);
    animation: nebulaPulse 20s infinite alternate;
}

@keyframes nebulaPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Stars Animation */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.star {
    position: absolute;
    background: var(--star-color);
    border-radius: 50%;
    opacity: var(--star-opacity);
    animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: calc(var(--star-opacity) * 0.3); transform: scale(0.8); }
    50% { opacity: var(--star-opacity); transform: scale(1.2); }
}

/* =========================================
   4. Navbar
   ========================================= */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s;
}

.navbar .container, .navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-links a { font-weight: 600; font-size: 1rem; color: var(--text-dark); position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background-color: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.auth-actions { display: flex; align-items: center; gap: 15px; }

/* Theme Toggle */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; font-size: 1.2rem;
}
.theme-toggle-btn:hover {
    background: var(--input-bg);
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.hamburger { 
    display: none; 
    background: none;
    border: none;
    padding: 0;
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--text-dark); 
    transition: 0.3s;
}
.hamburger:hover { color: var(--primary); }

/* =========================================
   5. Buttons & Inputs
   ========================================= */
.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(187, 48, 252, 0.3);
    font-family: 'BPG Nino Mtavruli Bold', sans-serif;
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 48, 252, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'BPG Nino Mtavruli Bold', sans-serif;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--input-bg);
}

.search-box {
    background: var(--card-bg); padding: 8px; border-radius: 50px; display: flex;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(187, 48, 252, 0.1);
}
.search-icon { padding: 0 15px; color: var(--text-gray); display: flex; align-items: center; }
.search-box input {
    border: none; outline: none; flex-grow: 1; font-size: 1rem; font-family: inherit;
    background: transparent; color: var(--text-dark);
}
.btn-search {
    background: var(--primary);
    color: white; border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.btn-search:hover { background: var(--primary-dark); }

/* =========================================
   6. Hero & Sections
   ========================================= */
.hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem; color: var(--text-gray); margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto;
}

.badge-new {
    background: var(--input-bg); padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: bold;
    color: var(--primary); border: 1px solid var(--border-color); display: inline-block; margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero-text {
    width: 100%;
    max-width: 1400px;
    z-index: 2;
}

/* Hero Services Blocks */
.hero-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
    gap: 2rem;
    margin-top: 1rem;
}

.hero-service-card {
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    width: 100%;
    height: 250px; /* Slightly taller */
    transition: 0.4s ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.hero-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient from top-left (Primary) to bottom-right (Accent), with dark middle for text */
    background: linear-gradient(135deg, rgba(187, 48, 252, 0.6) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 137, 155, 0.6) 100%);
    z-index: 1;
    transition: 0.3s;
}

.hero-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.hero-service-card:hover::before {
    background: linear-gradient(135deg, rgba(187, 48, 252, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 137, 155, 0.8) 100%);
}

.hero-service-card h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transition: 0.3s;
}

.hero-service-card:hover h3 {
    transform: translateY(-5px);
}

/* Specific Backgrounds */
.hero-card-natal { background-image: url('https://placehold.co/800x600/1e293b/ffffff?text=Natal+Chart'); }
.hero-card-school { background-image: url('https://placehold.co/800x600/1e293b/ffffff?text=Astrology+School'); }
.hero-card-courses { background-image: url('https://placehold.co/800x600/1e293b/ffffff?text=Courses'); }


.categories-wrapper {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.cat-pill {
    background: var(--glass-bg); padding: 10px 22px; border-radius: 30px;
    font-size: 0.95rem; font-weight: 500; border: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 8px; color: var(--text-dark);
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.cat-pill:hover, .cat-pill.active {
    background: var(--card-bg); color: var(--primary);
    border-color: var(--primary); transform: translateY(-2px);
}

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-color);
}
section:first-of-type .section-header { border-top: none; }
.section-header h2 { margin: 0; font-size: 1.5rem; color: var(--text-dark); }
.view-all { font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.view-all:hover { gap: 10px; }

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

/* =========================================
   7. Cards
   ========================================= */
.course-card {
    background: var(--card-bg); border-radius: 20px; overflow: hidden;
    transition: 0.4s ease; box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(5px);
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-img-holder { position: relative; height: 200px; width: 100%; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.course-card:hover .card-img { transform: scale(1.1); }

.price-tag {
    position: absolute; bottom: 10px; right: 10px;
    color: white; padding: 5px 14px; border-radius: 20px;
    font-weight: 700; font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}

.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.meta-tags { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-gray); margin-bottom: 12px; }
.card-title {
    margin: 0 0 10px 0; font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--text-dark);
}
.card-footer { margin-top: auto; }

/* =========================================
   8. Footer
   ========================================= */
.footer {
    background: var(--card-bg);
    padding: 4rem 0 1rem 0; border-top: 1px solid var(--border-color);
    margin-top: 6rem; position: relative; z-index: 2;
    backdrop-filter: blur(10px);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--text-dark); font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 700; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-gray); font-size: 0.95rem; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); display: inline-block; margin-bottom: 1rem; }
.brand-col p { color: var(--text-gray); line-height: 1.6; margin-bottom: 1.5rem; max-width: 300px; }

.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; background: var(--input-bg);
    display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: 0.3s;
    border: 1px solid var(--border-color);
}
.social-btn:hover { transform: translateY(-3px); color: white; border-color: transparent; }
.social-btn.facebook:hover { background: #1877f2; }
.social-btn.instagram:hover { background: #e4405f; }
.social-btn.youtube:hover { background: #ff0000; }

.newsletter-form {
    display: flex; background: var(--input-bg); border-radius: 50px; padding: 5px;
    border: 1px solid var(--border-color); margin-bottom: 10px;
}
.newsletter-form input { background: transparent; border: none; outline: none; padding: 10px 15px; flex: 1; color: var(--text-dark); }
.newsletter-form button {
    background: var(--primary); color: white; border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center;
}

.footer-bottom { border-top: 1px solid var(--border-color); padding: 2rem 0; display: flex; justify-content: space-between; align-items: center; color: var(--text-gray); font-size: 0.9rem; }

/* =========================================
   9. Media Queries
   ========================================= */
/* Desktop: Hide mobile-auth inside nav-links */
@media (min-width: 993px) {
    .mobile-auth { display: none; }
}

@media (max-width: 992px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: var(--card-bg); flex-direction: column; padding: 2rem; transition: 0.4s;
        z-index: 999; border-top: 1px solid var(--border-color);
        backdrop-filter: blur(15px);
    }
    .nav-links.active { left: 0; }
    .auth-actions { display: none; } /* Hide desktop auth actions on mobile */

    /* Show mobile auth inside menu */
    .mobile-auth { display: block; margin-top: 20px; width: 100%; text-align: center; }
    .mobile-auth .btn-main { width: 100%; display: block; }

    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-services { grid-template-columns: 1fr; } /* Stack on mobile */
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .brand-col p { margin: 0 auto 1.5rem auto; }
    .hero h1 { font-size: 2rem; }
    .search-box { flex-direction: column; border-radius: 20px; padding: 15px; }
    .btn-search { width: 100%; margin-top: 10px; }
    .hero-services { grid-template-columns: 1fr; }
}

/* =========================================
   10. Infobar
   ========================================= */
.infobar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.infobar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.infobar-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.infobar-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.3s;
    line-height: 1;
}

.infobar-close:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .infobar { font-size: 0.8rem; padding: 10px 40px 10px 20px; text-align: left; }
    .infobar .container { justify-content: flex-start; }
}
