:root {
    --background-color: #101016;
    --text-color: #EAEAEA;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-background: rgba(22, 22, 30, 0.5);
    --glow-color-1: #6A11CB;
    --glow-color-2: #2575FC;
    --hero-text-gradient: linear-gradient(90deg, #FFF, #AAA);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme {
    --background-color: #F0F2F5;
    --text-color: #1c1e21;
    --border-color: #dce1e6;
    --card-background: #FFFFFF;
    --glow-color-1: #007BFF;
    --glow-color-2: #00C6FF;
    --hero-text-gradient: linear-gradient(90deg, #333, #555);
}

#aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: -1;
    transition: opacity 0.5s ease;
}

body.light-theme #aurora-background {
    opacity: 0;
}

#aurora-background::before, #aurora-background::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
}

#aurora-background::before {
    background: radial-gradient(circle, var(--glow-color-1), transparent 60%);
    top: -200px;
    left: -200px;
    animation: pulse 10s infinite alternate;
}

#aurora-background::after {
    background: radial-gradient(circle, var(--glow-color-2), transparent 60%);
    bottom: -200px;
    right: -200px;
    animation: pulse 12s infinite alternate-reverse;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.2; }
    to { transform: scale(1.2); opacity: 0.3; }
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: transparent;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.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: #2c2c34;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    z-index: 1;
}

input:checked + .slider {
    background: linear-gradient(90deg, var(--glow-color-1), var(--glow-color-2));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider .icon-sun, .slider .icon-moon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    font-size: 1rem;
    transition: opacity 0.4s ease;
}

.slider .icon-sun {
    opacity: 0;
}

.slider .icon-moon {
    opacity: 1;
}

input:checked + .slider .icon-sun {
    opacity: 1;
}

input:checked + .slider .icon-moon {
    opacity: 0;
}



.hero {
    text-align: center;
    padding: 100px 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    background: var(--hero-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0a0b0;
    margin-top: 10px;
}

body.light-theme .hero-subtitle {
    color: #65676b;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.dark-theme .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--glow-color-1), var(--glow-color-2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .card:hover::before {
    opacity: 1;
}


.card-content p {
    color: #a0a0b0;
    line-height: 1.6;
}

body.light-theme .card-content p {
    color: #65676b;
}

.card-action {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--glow-color-1), var(--glow-color-2));
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: #8a8d91;
}

body.light-theme .footer {
    color: #65676b;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}
