@font-face {
    font-family: 'BPG Rioni Vera';
    src: url('../fonts/bpg-arial-webfont.woff2') format('woff2'),
         url('../fonts/bpg-arial-webfont.woff') format('woff'),
         url('../fonts/bpg-arial-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* =========================================
   1. ფერების ცვლადები (Variables)
   ========================================= */
:root {
    /* --- Light Mode (ნაგულისხმევი) --- */
    --bg-color: #f8f8f8;
    --card-bg: #ffffff;       /* ახალი: ბარათების ფონი */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #e2e8f0;  /* ახალი: ჩარჩოები */
    --input-bg: #f9fafb;      /* ახალი: ინპუტები */
    --navbar-bg: rgba(255, 255, 255, 0.85); /* ახალი: ნავიგაცია */

    --primary: #2a1466;
    --primary-dark: #15244e;
    --accent: #20b2aa;
    --accent-dark: #179890;

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

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);

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

    --combo-discount-color: #ef4444;
    --combo-border-color: #e2e8f0;
}

/* --- Dark Mode (JS-ით აქტიურდება) --- */
body.dark-mode {
    --bg-color: #15244e;       /* მომხმარებლის მთავარი ფერი 1 */
    --card-bg: #2a1466;        /* მომხმარებლის მთავარი ფერი 2 */
    --text-dark: #f1f5f9;      /* თეთრი ტექსტი */
    --text-gray: #cbbff0;      /* ღია ნაცრისფერი/იასამნისფერი */
    --border-color: #3b2b73;   /* მკაფიო ჩარჩოები */
    --input-bg: #15244e;
    --navbar-bg: rgba(21, 36, 78, 0.95);

    --glass-bg: rgba(42, 20, 102, 0.8);
    --glass-border: rgba(148, 163, 184, 0.2);

    --primary: #2a1466;        
    --primary-dark: #15244e;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.6);

    --combo-border-color: #334155;
}

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

html {
    scroll-behavior: smooth;
    /* Chrome Mobile Fix - ეს ხაზი აგვარებს პრობლემას */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'BPG Rioni Vera', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 16px; /* 16px უკეთესია მობილურისთვის ვიდრე 15px */
    line-height: 1.6;
    /* ფონტის ვიზუალური გაუმჯობესება */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; width: 100%; }

.w-100 { width: 100%; display: block; border: none; cursor: pointer; }
.mb-10 { margin-bottom: 10px !important; }
.mt-10 { margin-top: 10px !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-accent-green { color: var(--color-success) !important; }
.text-gray-medium { color: var(--text-gray); font-size: 1.0rem; display: block; margin-top: 5px; }
.text-danger-small { color: var(--color-danger); font-size: 0.8rem; display: block; margin-top: 5px; }
.text-gray-small { color: var(--text-gray); font-size: 0.85rem; display: block; }
.text-center { text-align: center; }

/* =========================================
   3. Blobs & Navbar
   ========================================= */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    transition: 0.3s;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: #dcd6ff;
    animation: move 10s infinite alternate;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #a8dadc;
    animation: move 15s infinite alternate-reverse;
}

/* Dark Mode-ში ბლობების ჩამუქება */
body.dark-mode .blob { opacity: 0.15; }
body.dark-mode .blob-1 { background: #4c1d95; }
body.dark-mode .blob-2 { background: #0f766e; }

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(70px, 70px); }
}

.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0; /* Padding გადავიდა კონტეინერზე */
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
}

/* კონტეინერი უზრუნველყოფს სწორ განლაგებას */
.navbar .container {
    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 {
    font-size: 1.6rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-links a { font-weight: 600; font-size: 1rem; color: var(--text-dark); }
.nav-links a:hover { color: var(--primary); }

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

/* Theme Toggle Button */
.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.1rem;
}
.theme-toggle-btn:hover {
    background: var(--input-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* =========================================
   4. ღილაკები (Buttons)
   ========================================= */
.btn-main {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    display: inline-block;
}
.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

.btn-accent {
    background: var(--accent) !important;
}
.btn-accent:hover {
    background: var(--accent-dark) !important;
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3);
}

.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;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================
   5. Hero & Search
   ========================================= */
.hero {
    padding: 6rem 0 4rem 0;
    position: relative;
    overflow: visible;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    text-align: left;
}

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

.badge-new {
    background: var(--card-bg); padding: 6px 16px; border-radius: 30px; font-size: 0.8rem; font-weight: bold;
    color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: inline-block; margin-bottom: 1.5rem;
}

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

.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.1rem; color: var(--text-gray); margin-bottom: 2.5rem; line-height: 1.6;
}

/* =========================================
   6. Sections & Cards
   ========================================= */
.info-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.section-header {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* =========================================
   7. Forms
   ========================================= */
.form-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
}

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

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%; padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px; font-size: 1rem; transition: 0.3s;
    background: var(--input-bg);
    color: var(--text-dark);
    font-family: inherit;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.1);
}

/* =========================================
   8. Testimonials
   ========================================= */
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.quote-icon { font-size: 1.5rem; color: var(--primary); opacity: 0.3; margin-bottom: 1rem; }
.review-text { font-style: italic; color: var(--text-dark); line-height: 1.6; margin-bottom: 1.5rem; }
.reviewer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.reviewer-info h4 { margin: 0; font-size: 1rem; color: var(--primary); }

/* =========================================
   9. Footer
   ========================================= */
.footer {
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    padding: 4rem 1rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

.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(--border-color);
    display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: 0.3s;
}
.social-btn:hover { transform: translateY(-3px); color: white; background: var(--primary); }

.newsletter-form {
    display: flex; background: var(--card-bg); border-radius: 12px; padding: 5px;
    border: 1px solid var(--border-color);
}
.newsletter-form input { background: transparent; border: none; outline: none; padding: 10px; flex: 1; color: var(--text-dark); }
.newsletter-form button {
    background: var(--primary); color: white; border: none; padding: 10px 15px;
    border-radius: 8px; cursor: pointer; transition: 0.3s;
}

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; text-align: center; color: var(--text-gray); font-size: 0.9rem; }

/* =========================================
   10. Matrix Specific
   ========================================= */
.matrix-container {
    padding: 2rem 0;
}

.matrix-layout-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.ai-text {
    line-height: 1.8;
    font-size: 1.05rem;
}

.matrix-visual { background: #f8fafc; }

.interpretation-section {
    margin-top: 3rem;
}

/* =========================================
   11. Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: var(--navbar-bg); flex-direction: column; padding: 2rem; transition: 0.4s;
        z-index: 999; backdrop-filter: blur(20px);
    }
    .nav-links.active { left: 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .brand-col p { max-width: 100%; }
    .newsletter-form { margin: 0 auto; max-width: 400px; }
    .reviewer { justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .badge-new { font-size: 0.7rem; }
}
/* =========================================
   12. Table Matrix Classes
   ========================================= */
.cell_gray { background-color: #E0E0E0 !important; }
.cell_sahasrara { background-color: #664074 !important; color: white; }
.cell_ajna { background-color: #155493 !important; color: white; }
.cell_vishuddha { background-color: #009ED1 !important; color: white; }
.cell_anahata { background-color: #009E52 !important; color: white; }
.cell_manipura { background-color: #EFBE3D !important; color: white; }
.cell_svadhisthana { background-color: #F28D3B !important; color: white; }
.cell_muladhara { background-color: #E54144 !important; color: white; }
.cell_total { background-color:#bcb395 !important; color: white; }

.table {
    width: 100%;
    padding: 10px;
    table-layout: fixed;
    margin-bottom: 1rem;
}
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > thead > tr > th {
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}
