﻿:root {
    --primary: #a878fc;
    --secondary: rgb(50, 0, 165);
    --accent: #F472B6;
    --bg-main: #F8FAFC;
    --text-main: #0b0b0b;
    --card-bg: rgb(98, 0, 255);
    --glass: rgba(0, 0, 0, 0.559);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0);
    --gradient: linear-gradient(135deg, var(--secondary), var(--secondary));
    --dark-bg: #1a1a1a;
    --dark-text: #ffffffab;
    --dark-card-bg: rgb(157, 0, 255);
}

input:root:checked + :root {
    --primary: #000000;
    --secondary: rgb(62, 0, 206);
    --text-main: #ffffff;
    --glass: rgba(83, 0, 190, 0.712);

}

body > .theme-switch-wrapper {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1001;
    display: none; 
}

nav > .theme-switch-wrapper {
    position: relative;
    top: auto;
    left: auto;
    z-index: auto;
}

.nav-menu .theme-switch-wrapper {
    display: none;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(70, 0, 130);
    transition: all 0.4s ease;
}

input:checked + .slider {
    background-color: rgb(175, 0, 200);
}

.slider:before {
    position: absolute;
    content: '\f185' !important; 
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff200;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #000000;
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: '\f186' !important; 
    color: #fff200;
        background-color: rgb(0, 0, 0);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

[data-theme="dark"] {
    --bg-main: var(--dark-bg);
    --text-main: var(--dark-text);
    --card-bg: var(--dark-card-bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    background-image:linear-gradient(rgba(251, 0, 255, 0.235), rgba(0,0,0,0.5));    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(255, 0, 0);
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    width: 100%;
    height: 100%;
    padding: 0 0 0 2%;
}

.nav-brand img {
    height: 48px;
    width: auto !important;
    min-width: 150px;
    display: block;
    object-fit: contain;
}
.nav-brand .logo-light {
    display: block;
}

.nav-brand .logo-dark {
    display: none;
}

[data-theme="light"] .nav-brand .logo-light {
    display: none;
}

[data-theme="light"] .nav-brand .logo-dark {
    display: block;
}

.nav-brand {
    position: relative;
    left: 0;
    top: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 1000;
    font-size: 17px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--primary);
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 6.5rem 5% 10rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-button,
.secondary-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button {
    background: var(--gradient);
    color: white;
    border: none;
}

.secondary-button {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary);
}

.cta-button {
    background: #15cd00;
    color: #ffffff;
    border-radius: 100px;
    border: 2px solid #000000;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .cta-button {
    background: #15cd00;
    color: #000000;
    border-color: #000000
}

.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-visual {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-visual-content {
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-main);
    opacity: 0.9;
}

.courses-section {
    padding: 4rem 5%;
    min-height: auto;
}

.courses-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.course-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.course-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(175, 0, 200, 0.1), rgba(70, 0, 130, 0.1));
    transition: background 0.3s ease;
}

.course-header:hover {
    background: linear-gradient(135deg, rgba(175, 0, 200, 0.2), rgba(70, 0, 130, 0.2));
}

.course-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
}

.course-header i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.course-card.active .course-header i {
    transform: rotate(180deg);
}

.course-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.course-card.active .course-content {
    max-height: 600px;
    padding: 2rem;
}

.course-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.course-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(175, 0, 200, 0.3);
}

.detail-item i {
    color: white;
    font-size: 1.3rem;
}

.detail-item span {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

.pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(175, 0, 200, 0.2);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.site-footer {
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 4rem 5%;
    border-top: 1px solid var(--primary);
    margin-top: auto;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-section p {
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    nav {
        padding: 1rem 3%;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .courses-section h2 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.2rem;
        font-size: 30px;
    }
    
    .cc1 { left: 5%; }
    .cc2 { left: 37%; }
    .cc3 { right: 5%; }
}

@media (max-width: 768px) {
    
    nav > .theme-switch-wrapper {
        display: none;
    }
    
    
    .nav-menu .theme-switch-wrapper {
        display: block;
        position: static;
        margin-bottom: 1rem;
    }
    
    
    .nav-menu .slider {
        background-color: rgb(175, 0, 200);
    }
    
    .nav-menu input:checked + .slider {
        background-color: rgb(70, 0, 130);
    }
    
    .nav-menu .slider:before {
        background-color: #000000;
        color: #fff200;
    }
    
    .nav-menu input:checked + .slider:before {
        background-color: #fff200;
        color: #000000;
    }
    
    .theme-switch {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
        font-size: 0.7rem;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
    
    
    .menu-toggle {
        display: flex;
        order: 3;
        position: absolute;
        right: 1rem;
    }
    
    nav {
        padding: 0.8rem 3%;
        justify-content: flex-start;
        position: relative;
    }
    
    
    .nav-brand {
        order: 1;
        margin-left: 0;
    }
    
    .nav-brand img {
        height: 48px;
        width: auto !important;
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 999;
        order: 2;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
    
    .nav-menu a:hover {
        transform: none;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
    }
    
    .cta-button {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    
    .hero {
        margin-top: 80px;
        padding: 2rem 5% 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .courses-section {
        padding: 2rem 1rem;
    }
    
    .courses-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .courses-container {
        gap: 1rem;
    }
    
    .course-header {
        padding: 1rem 1.5rem;
    }
    
    .course-header h3 {
        font-size: 1.2rem;
    }
    
    .course-content {
        padding: 0 1.5rem;
    }
    
    .course-card.active .course-content {
        padding: 1.5rem;
    }
    
    .course-description {
        font-size: 0.95rem;
    }
    
    .course-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
    
    .pricing {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .price {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .pricing .cta-button {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-brand img {
        width: 70px !important;
        display: block;
    }
    
    .card {
        font-size: 20px;
        padding: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
