﻿:root {
    --primary: #a878fc;
    --secondary: rgb(50, 0, 165);
    --accent: #F472B6;
    --bg-main: #F8FAFC;
    --text-main: #0b0b0b;
    --card-bg: rgb(49, 0, 128);
    --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);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

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));    
}

.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 {
    position: relative;
    left: 0;
    top: 0;
}

.nav-brand img {
    height: 48px;
    width: auto !important;
    display: block;
}

.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;
}

.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);
    font-size: 18px;
    transform: translateY(-5px);
}

.nav-menu a.active {
    color: var(--primary);
}

.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 5% 4rem;
    padding-top: 10rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 80px;
        padding: 2rem 5% 3rem;
        padding-top: 2rem;
    }
}

.hero-visual {
    width: 100%;
    text-align: center;
}

.hero-visual-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-visual-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-main);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.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
}

.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;
    }
    
    .nav-menu a {
        font-size: 15px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 5rem 3% 5rem;
    }
}

@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 {
        font-size: 1.2rem;
        margin-left: 0;
        order: 1;
    }
    
    .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;
        font-size: 1rem;
    }
    
    .hero {
        padding: 5rem 5% 3rem;
        min-height: 30vh;
    }
    
    .hero-visual-content h1 {
        font-size: 2rem;
    }
    
    .hero-visual-content p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand img {
        width: 70px !important;
        height: auto;
    }
    
    .hero {
        padding: 3rem 4% 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
