:root {
    /* Palette: https://coolors.co/palette/99d5c9-6c969d-645e9d-392b58-2d0320 */
    --color-mint: #99d5c9;
    --color-cadet-blue: #6c969d;
    --color-purple: #645e9d;
    --color-dark-purple: #392b58;
    --color-dark-plum: #2d0320;
    --color-white: #ffffff;

    --primary-color: var(--color-mint);
    --secondary-color: var(--color-purple);
    --dark-bg: var(--color-dark-plum);
    --dark-card: var(--color-dark-purple);
    --text-light: var(--color-white);
    --text-muted: #b0b0d0;

    --gradient-text: linear-gradient(45deg, var(--color-mint), var(--color-purple));
}

body {
    font-family: "BPG Nino Mtavruli", sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Font application for form elements */
input,
button,
select,
textarea {
    font-family: "BPG Nino Mtavruli", sans-serif;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #ffffff;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fs-7 {
    font-size: 0.9rem;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    background-color: rgba(45, 3, 32, 0.95);
    /* Matches --color-dark-plum */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand span {
    font-weight: 800;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #fff;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin-right: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(100%);
}

/* Burger Menu Alignment */
@media (max-width: 991px) {
    .navbar-nav {
        align-items: flex-start !important;
        text-align: left;
    }

    .navbar-nav .nav-link {
        text-align: left;
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(100, 94, 157, 0.3), transparent 50%);
    /* Purple glow */
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6c969d;
    /* Cadet Blue on hover */
    border-color: #6c969d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(153, 213, 201, 0.3);
    /* Mint shadow */
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #000;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Stats Strip */
.stats-strip {
    background: linear-gradient(90deg, #2d0320, #392b58);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.bg-dark-2 {
    background-color: #1f0116;
    /* Darker shade of plum */
}

/* Course Cards */
.course-card {
    background-color: var(--dark-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    color: #fff;
}

.card-footer {
    border-top: none;
}

/* Images */
.rounded-4 {
    border-radius: 20px !important;
}

/* Footer */
.footer {
    background-color: #1a0112;
    /* Very dark plum */
}

.footer-links a {
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #000 !important;
    transform: translateY(-3px);
}

/* Spacing and Text Utilities */
.text-secondary {
    color: var(--text-muted) !important;
}

.bg-dark-subtle {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Form Styles */
.form-control {
    color: var(--color-white) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.form-select {
    color: var(--color-white) !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.form-select option {
    background-color: var(--color-dark-purple);
    color: #fff;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }

    .hero-image-container {
        margin-top: 3rem;
    }
}

/* Modern UI Enhancements */

/* Mesh Background */
.mesh-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: blob-bounce 10s infinite alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--color-purple);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--color-mint);
    animation-delay: -5s;
}

@keyframes blob-bounce {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Glassmorphism */
.glass-card {
    background: rgba(57, 43, 88, 0.4) !important;
    /* Semi-transparent dark purple */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    background: rgba(57, 43, 88, 0.6) !important;
    border-color: rgba(153, 213, 201, 0.4) !important;
    /* Mint border on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-modal {
    background: linear-gradient(135deg, #2d0320, #392b58) !important;
    /* Brand gradient */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.glass-card-primary {
    background: linear-gradient(135deg, rgba(153, 213, 201, 0.9), rgba(108, 150, 157, 0.9)) !important;
    backdrop-filter: blur(12px);
}

.glass-strip {
    background: rgba(45, 3, 32, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-caption {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(5px);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hero Carousel */
.hero-img .carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}