:root[data-theme="light"] {
    --primary-color: #3498db;
    --secondary-color: #4fa3d1;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f3f4f6;
    --white: #ffffff;
}

:root[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #4fa3d1;
    --accent-color: #3498db;
    --text-color: #e0e0e0;
    --light-bg: #2d2d2d;
    --white: #363636;
}






* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Georgian', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Instructor Section */
.instructor-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.instructor-profile {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image {
    position: relative;
    flex-shrink: 0;
}

.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: -25px;
    right: -40px;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.credentials {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.credentials span {
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.credentials span i {
    margin-right: 8px;
    color: var(--accent-color);
}

.contact-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-btn i {
    font-size: 1rem;
}

.contact-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-btn a,
.contact-btn a:visited,
.contact-btn a:hover,
.contact-btn a:active {
    color: white;
    text-decoration: none;
}

.contact-methods {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent; /* Changed from var(--block-bg) to transparent */
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* This creates the hover effect border */
}

.contact-button:hover {
    transform: translateY(-3px);
    border-color: var(--hover-color); /* Shows border on hover */
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-button i {
    font-size: 20px;
}

.contact-button.whatsapp {
    color: #25D366;
}

.contact-button.viber {
    color: #665CAC;
}

.contact-button.phone {
    color: var(--hover-color);
}

@media screen and (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-button {
        width: 100%;
        justify-content: center;
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 2.5rem;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px; /* Increased from 20px */
    padding: 30px; /* Increased from 20px */
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    background-color: var(--white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.video-item {
    aspect-ratio: 16/9;
    cursor: pointer;
    height: 320px; /* Add fixed height for video items */

}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide video controls by default */
.video-item video::-webkit-media-controls {
    display: none !important;
}

.video-item video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1005; /* Lower than navigation buttons */
}

.modal.active img {
    transform: scale(1);
}

.modal.video-modal {
    background: rgba(0, 0, 0, 0.95);
}

.modal.video-modal video {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1005; /* Lower than navigation buttons */
}

.modal.video-modal.active video {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* Updated Modal Close Button Styles */
.modal .modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 24px;
    z-index: 10000; /* Ensure it's above all other modal content */
    transition: background-color 0.3s;
}

.modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Modal Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 24px;
    z-index: 1010; /* Ensure buttons are above modal content */
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: var(--white);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Remove different styling for featured card */
.pricing-card.featured {
    background: var(--white);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price .period {
    color: var(--text-color);
    opacity: 0.8;
}

.pricing-body ul {
    list-style: none;
    padding: 0;
}

.pricing-body li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-body li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pricing-body li.highlight-offer {
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px 0;
    position: relative;
    background: linear-gradient(to right, var(--light-bg), transparent);
    border-radius: 6px;
    padding-left: 10px;
    margin: 5px 0;
}

.pricing-body li.highlight-offer i {
    color: #2ecc71;
    font-size: 1.2rem;
}



.pricing-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.info-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    width: 320px;
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var (--text-color);
}

.info-card p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pricing-card {
        width: 100%;
        max-width: 320px;
    }
    
    .info-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructor-profile {
        flex-direction: column;
        text-align: center;
    }

    .credentials {
        flex-direction: column;
        gap: 10px;
    }

    .contact-btn {
        margin: 20px auto 0; /* Center the button */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px; /* Increased from 15px */
        padding: 20px; /* Increased from 10px */
    }
    
    .video-item {
        height: 200px;
        grid-column: span 2;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-nav.prev {
        left: 10px;
    }

    .modal-nav.next {
        right: 10px;
    }
}

/* Add mobile styles for watermark */
@media screen and (max-width: 380px) {
    .video-item {        
        height: 90px; /* Slightly smaller height on mobile */
        grid-column: span 1; /* Make videos span 2 columns by default */
    }
}

@media (min-width: 1200px) {
    .video-item {
        height: 125px; /* Larger height on bigger screens */
        grid-column: span 1; /* Make videos span 2 columns by default */
    }
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .instructor-profile {
        padding: 20px;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .profile-info h2 {
        font-size: 1.8rem;
    }

    .credentials span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .credentials span i {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .gallery-item {
        aspect-ratio: 1;
        height: auto;
    }

    .video-item {
        grid-column: span 2;
        height: 180px;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 1rem;
        margin: 20px auto 0; /* Center the button */
        width: fit-content; /* Ensure proper width */
    }

    .modal img,
    .modal.video-modal video {
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .footer-info i {
        font-size: 1rem;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

.footer-info i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}
