/* --- ძირითადი სტილები --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden; /* სქროლვის გათიშვა, რადგან ანიმაცია მთელ ეკრანზეა */
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #000;
}

/* WebGL კანვასის სტილი, რომელიც მთელ ეკრანს ფარავს */
.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

/* --- მისასალმებელი კონტენტის კონტეინერი --- */
.welcome-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    z-index: 10; /* ეს უზრუნველყოფს, რომ ტექსტი იყოს ანიმაციის თავზე */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
}

/* --- მთავარი სათაურის გრადიენტული ანიმაცია --- */
.brand-title {
    font-size: 7rem;
    font-weight: bold;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #ff9800, #ff5722, #03a9f4, #9c27b0, #ff9800);
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-animation 20s ease infinite;
}

@keyframes text-gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- სლოგანის კონტეინერი პულსაციის ეფექტით --- */
.tagline-container {
    position: relative;
    padding: 10px 25px;
    border: 1px solid rgba(3, 169, 244, 0.2);
    border-radius: 50px;
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.tagline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(3, 169, 244, 0.4);
    animation: tagline-pulse 5s ease-in-out infinite;
    z-index: -1;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

@keyframes tagline-pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(3, 169, 244, 0.4); opacity: 0.7; }
    50% { transform: scale(1.03); box-shadow: 0 0 25px rgba(3, 169, 244, 0.7); opacity: 1; }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(3, 169, 244, 0.4); opacity: 0.7; }
}

/* --- მთავარი ღილაკების სტილები --- */
.buttons-container {
    display: flex;
    gap: 20px;
}

.enter-button {
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.enter-button:not(.secondary) {
    background: linear-gradient(45deg, #ff6b08, #ec5300);
    box-shadow: 0 4px 15px rgba(236, 83, 0, 0.4);
}

.enter-button.secondary {
    background: linear-gradient(45deg, #03a9f4, #2d51e3);
    box-shadow: 0 4px 15px rgba(47, 180, 252, 0.3);
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.enter-button:hover {
    transform: translateY(-3px);
}

.enter-button:not(.secondary):hover {
    box-shadow: 0 8px 25px rgba(236, 83, 0, 0.5);
}
.enter-button.secondary:hover {
    box-shadow: 0 8px 25px rgba(47, 180, 252, 0.4);
}

.enter-button:hover::before {
    left: 100%;
}

/* --- პარამეტრების ღილაკის განახლებული სტილი --- */
.settings-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001; /* ყველაზე წინ რომ იყოს */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.4s ease;
}

.settings-button svg {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* დინამიური ანიმაცია */
}

.settings-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ღილაკის დაჭერისას SVG ხატულა ბრუნავს */
.settings-button.active svg {
    transform: rotate(360deg) scale(0.9);
}

/* --- dat.GUI-ის ახალი, დახვეწილი დიზაინი (თქვენი მოთხოვნების მიხედვით) --- */
.dg.main {
    /* პოზიცია და ზომა */
    position: fixed !important;
    top: 80px !important; /* ღილაკის ქვემოთ */
    right: 20px !important;
    
    /* "გაყინული შუშის" ეფექტი */
    background: rgba(17, 24, 39, 0.6) !important; /* უფრო გამჭვირვალე */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    
    /* სხვა ვიზუალური სტილები */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    
    /* ანიმაცია გამოჩენისას/დამალვისას */
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px); /* საწყისი პოზიცია ანიმაციისთვის */
    z-index: 1000; /* ტექსტის თავზე რომ გამოჩნდეს */
}

.dg.main.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); /* საბოლოო პოზიცია ანიმაციისთვის */
}

/* "Close Controls" ტექსტის და ღილაკის დამალვა */
.dg .close-button {
    display: none !important;
}

/* კონტროლის ელემენტების სტილი */
.dg li:not(.folder) {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin: 0 10px !important;
    padding: 8px 0 !important; /* სიმაღლის შემცირება */
}
.dg li.cr.number {
    border: none !important;
}

/* ტექსტური ლეიბლების სტილი */
.dg .property-name {
    color: #f1f1f1 !important;
    font-weight: 500 !important;
    font-size: 13px !important; /* ტექსტის ზომის შემცირება */
}

/* სლაიდერის სტილი */
.dg .slider {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    height: 6px !important; /* სლაიდერის დაწვრილება */
    overflow: hidden !important;
}
.dg .slider .slider-fg {
    background: linear-gradient(90deg, #ff6b08, #03a9f4) !important;
    border-radius: 50px !important;
}

/* ფერის ამრჩევი კონტროლის სტილი */
.dg .cr.color .c {
    border-radius: 8px !important;
    width: 100% !important;
    height: 25px !important; /* სიმაღლის შემცირება */
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* --- ადაპტიური დიზაინი (Responsive Design) --- */
@media (max-width: 768px) {
    .brand-title { font-size: 4.5rem; letter-spacing: 6px; }
    .tagline { font-size: 1rem; }
    .buttons-container { flex-direction: column; gap: 15px; }
    .enter-button { width: 250px; }
}

@media (max-width: 480px) {
    .brand-title { font-size: 3.5rem; letter-spacing: 4px; }
    .tagline-container { padding: 8px 20px; }
    .tagline { font-size: 0.9rem; }
}
