/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #00c6ff, #0072ff, #43cea2, #185a9d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    transition: 0.4s;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* ================= GLASS EFFECT ================= */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ================= HEADER ================= */
header {
    padding: 20px;
    text-align: center;
    position: relative;
    color: white;
}

.toggle-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ================= NAV ================= */
nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.5);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    background: white;
    color: black;
    border-radius: 8px;
}

/* ================= HERO ================= */
.hero {
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.hero h1 {
    font-size: 42px;
}

.hero p {
    max-width: 700px;
    margin: 20px auto;
}

/* ================= SLIDER ================= */
.slider {
    position: relative;
    width: 90%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 20px;
}

.slides {
    display: flex;
    transition: 0.8s;
}

.slides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-buttons button {
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: white;
    margin: 5px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}

.dots .active-dot {
    opacity: 1;
}

/* ================= CARDS ================= */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
}

.card {
    transition: 0.4s;
    color: white;
}

.card:hover {
    transform: translateY(-10px);
}

.card button {
    margin-top: 15px;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ================= COUNTER ================= */
.counter-section {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.counter {
    font-size: 40px;
    font-weight: bold;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
}

/* ================= DARK MODE ================= */
.dark {
    background: #111;
    animation: none;
}

.dark nav {
    background: black;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){
    .hero h1 { font-size: 28px; }
    .slides img { height: 250px; }
}