/* --- ძირითადი პარამეტრები --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0a133a;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    color: #011e47;
    line-height: 1.6; 
    overflow-x: hidden;
}

/* --- ზედა პანელი (Premium Header) --- */
.main-header {
    background: rgba(204, 211, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(255, 236, 236);
    padding: 10px 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(201, 196, 196, 0.979);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.logo {
    width: 45px; 
    height: 45px;
    background: #fff; 
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 4px 10px rgba(255, 237, 237, 0.3);
    border: 3px solid #64b5f6 !important;
    overflow: hidden;
    display: block;
}

.brand-info h1 {
    font-size: 22px; 
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.slogan {
    font-size: 12px; 
    color: #94a3b8;
    font-weight: 500;
}

.header-btn {
    background: linear-gradient(135deg, #ff8f00 0%, #ff6d00 100%);
    color: white;
    padding: 10px 25px; 
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(255, 109, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 109, 0, 0.5);
    transform: translateY(-3px);
}

.header-btn:active {
    transform: scale(0.95);
}

/* --- მთავარი სექცია --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65vh;
    padding: 60px 5%;
    background: 
        linear-gradient(135deg, rgba(10, 15, 37, 0.8) 0%, rgba(26, 35, 126, 0.7) 100%),
        url('https://i.postimg.cc/hG46JCLP/map.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px; 
    height: 300px;
    background: radial-gradient(circle, rgba(255,109,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-text {
    flex: 1;
    max-width: 650px;
    z-index: 1;
}

.hero-text h2 {
    font-size: 42px; 
    margin-bottom: 15px; 
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 17px; 
    margin-bottom: 25px; 
    color: #e3f2fd;
    line-height: 1.6;
}

.globe-meaning {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 5px solid #ff6d00;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.globe-meaning:hover {
    transform: translateX(10px) translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.globe-meaning h3 {
    margin-bottom: 5px; 
    color: #ffca28;
    letter-spacing: 1px;
    font-size: 16px;
}

.globe-meaning p {
    font-size: 14px;
    color: #cbd5e1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 280px; 
    height: 280px;
    background: rgba(0, 212, 255, 0.15);
    filter: blur(50px);
    border-radius: 50%;
    z-index: -1;
}

.hero-image img {
    width: 320px; 
    height: 320px;
    object-fit: cover;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image img:hover {
    transform: scale(1.08) rotate(3deg);
}

/* --- საერთო სექციების სტილი --- */
.section-title {
    text-align: center;
    margin-bottom: 40px; 
}

.section-title h2 {
    font-size: 32px; 
    color: #64b5f6;
    margin-bottom: 10px; 
    font-weight: 800;
}

.section-title p {
    color: #94a3b8;
    font-size: 17px; 
}

/* --- ვიდეოები და პოსტები --- */
.content-section, .projects-section, .registration-section {
    padding: 60px 5%; 
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; 
    max-width: 1100px;
    margin: 0 auto;
}

.video-card, .post-card {
    background: #151a30;
    padding: 25px; 
    border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.video-card:hover, .post-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.video-placeholder {
    width: 100%;
    height: 350px; 
    background: linear-gradient(-45deg, #1a237e, #3949ab, #0d47a1, #00d4ff);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; 
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.post-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card h3 {
    color: #e2e8f0;
    margin-bottom: 15px; 
    font-size: 22px; 
    font-weight: 800;
}

.post-card p {
    margin-bottom: 20px; 
    color: #94a3b8;
    font-size: 16px; 
    line-height: 1.6;
}

.text-link {
    color: #ff6d00;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px; 
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: #ff8f00;
    transform: translateX(5px);
}

/* --- გალერეა (Premium ბარათები) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #5669c0;
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    background: #0a0f25;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card p {
    padding: 15px; 
    font-weight: 700;
    text-align: center;
    color: #e2e8f0;
    font-size: 16px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}

.project-card::after {
    content: 'დააკლიკე სანახავად';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6d00;
    color: white;
    padding: 4px 10px; 
    border-radius: 15px; 
    font-size: 11px; 
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.project-card:hover::after {
    bottom: 12px; 
    opacity: 1;
}

/* --- მოდალის (Popup) სტილები --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #586ed1;
    padding: 30px; 
    border-radius: 20px; 
    max-width: 650px; 
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px); 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.1);
    max-height: 85vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::-webkit-scrollbar {
    width: 6px; 
}
.modal-content::-webkit-scrollbar-track {
    background: #0a0f25; 
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #3949ab; 
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #1a237e; 
}

.close-btn {
    position: absolute;
    top: 15px; 
    right: 15px; 
    width: 35px; 
    height: 35px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #e2e8f0;
    font-size: 20px; 
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff6d00;
    color: white;
    transform: rotate(90deg);
}

#modalMedia img, #modalMedia iframe {
    width: 100%;
    border-radius: 14px; 
    max-height: 350px; 
    object-fit: cover;
    margin-bottom: 20px; 
    background: #3750be;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease;
}

#modalMedia img:hover {
    transform: scale(1.02);
}

#modalTitle {
    color: #64b5f6;
    font-size: 26px; 
    margin-bottom: 8px; 
    font-weight: 800;
    line-height: 1.3;
}

.student-info {
    display: inline-block;
    background: rgba(255, 109, 0, 0.15);
    color: #ff8f00;
    padding: 4px 12px; 
    border-radius: 15px; 
    font-weight: 700;
    margin-bottom: 20px; 
    font-size: 14px; 
    letter-spacing: 0.5px;
}

#modalDesc {
    color: #cbd5e1;
    line-height: 1.6; 
    font-size: 16px; 
}

/* --- სარეგისტრაციო ფორმა --- */
.registration-section {
    background: transparent;
}

.form-container {
    max-width: 600px; 
    margin: 0 auto;
    background: rgba(21, 26, 48, 0.8);
    backdrop-filter: blur(15px);
    padding: 40px 35px; 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.form-container h2 {
    color: #e2e8f0;
    margin-bottom: 10px; 
    font-size: 28px; 
    font-weight: 800;
}

.form-container p {
    margin-bottom: 35px; 
    color: #94a3b8;
    font-size: 16px; 
}

.input-group {
    text-align: left;
    margin-bottom: 18px; 
}

.input-group label {
    display: block;
    margin-bottom: 6px; 
    font-weight: 700;
    color: #cbd5e1;
    font-size: 14px; 
    letter-spacing: 0.5px;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 14px 16px; 
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px; 
    font-size: 15px; 
    outline: none;
    background: #0a0f25;
    color: white;
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    background: #151a30;
    border-color: #64b5f6;
    box-shadow: 0 0 0 4px rgba(100, 181, 246, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    padding: 16px; 
    border: none;
    border-radius: 10px; 
    font-size: 17px; 
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-top: 10px; 
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #1a237e 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px); 
}

.submit-btn:active {
    transform: scale(0.98);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px 20px; 
    background: #0a0f25;
    color: #64748b;
    font-size: 14px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- ანიმაციების კლასები (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px); 
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- სექციების დიზაინი (მუქი თემა) --- */
.tech-stack-section {
    background: rgba(13, 17, 40, 0.5);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap; 
}

.tech-stack-section p {
    font-weight: 700;
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

.tech-logos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-logos span {
    background: #0a0f25;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    cursor: pointer; 
}

.tech-logos span:hover {
    background: #3949ab;
    color: white;
    border-color: #3949ab;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 73, 171, 0.3);
}

.values-section {
    padding: 60px 5%;
    background: transparent;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.value-card {
    background: #151a30;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: #ff6d00;
}

.v-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.value-card h4 {
    color: #e2e8f0;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 800;
}

.value-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.curriculum-section {
    padding: 60px 5%;
    background: rgba(10, 15, 37, 0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: #151a30;
    padding: 25px;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #ff6d00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 109, 0, 0.2);
}

.step-num {
    background: linear-gradient(135deg, #ff8f00 0%, #ff6d00 100%);
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(255, 109, 0, 0.3);
}

.step-card h4 {
    color: #e2e8f0;
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.faq-section {
    padding: 60px 5%;
    background: transparent;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #151a30;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden; 
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #ff6d00;
}

.arrow {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
    color: #ff6d00;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; 
    background: #0a0f25;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   გაუმჯობესებული რესპონსიულობა (მობილურისთვის)
   ========================================= */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px; 
    }
    
    .hero-text h2 {
        font-size: 30px; 
    }

    .hero-image {
        margin-top: 40px; 
    }

    .hero-image img {
        width: 250px; 
        height: 250px;
    }
    
    .media-grid, .values-grid, .steps-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        flex-direction: column;
        gap: 15px; 
        padding: 15px; 
        text-align: center;
    }
    
    .form-container {
        padding: 30px 20px; 
    }

    .tech-logos span {
        padding: 10px 20px; 
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .section-title h2 {
        font-size: 26px;
    }
}

/* =========================================
   კურსების კაბინეტის და ვიდეო პლეერის სტილები
   ========================================= */
.course-portal {
    background: #0d122b;
    min-height: 100vh;
    padding: 40px 5%;
}

.video-player-wrapper {
    background: #151a30;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.custom-video-player {
    width: 100%;
    border-radius: 12px;
    outline: none;
    background: #000;
}

/* =========================================
   ადმინ პანელის სტილები
   ========================================= */
.admin-dashboard {
    background: #0a0f25;
    color: white;
    min-height: 100vh;
    padding: 30px;
}

.admin-card {
    background: #151a30;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-table th {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
}

/* ახალი: scrollbar ადმინ პანელის სიებისთვის */
#adminScheduleList::-webkit-scrollbar,
#adminLessonList::-webkit-scrollbar,
#adminGalleryList::-webkit-scrollbar {
    width: 5px;
}
#adminScheduleList::-webkit-scrollbar-thumb,
#adminLessonList::-webkit-scrollbar-thumb,
#adminGalleryList::-webkit-scrollbar-thumb {
    background: #3949ab;
    border-radius: 5px;
}