/* =========================================================
   ===== RESET =====
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

/* Logo animation */
.logo-text {
    font-size: 2rem;
    color: #38bdf8;
    letter-spacing: 2px;
    animation: glowText 2s ease-in-out infinite alternate;
}

/* Glow animation */
@keyframes glowText {
    0% {
        opacity: 0.5;
        text-shadow: 0 0 5px #38bdf8;
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px #38bdf8, 0 0 40px #38bdf8;
    }
}

/* =========================================================
   ===== BODY =====
========================================================= */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    line-height: 1.6;
}


/* =========================================================
   ===== GLOBAL ELEMENTS =====
========================================================= */

/* Images */
img {
    max-width: 100%;
    border-radius: 10px;
    align-items: center;
}

/* Buttons */
button {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: larger;
    width: 50;
    padding: 15px 30px;
    border: none;
    background: #38bdf8;
    color: #0f172a;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    transform: scale(1.1);
}

button:hover {
    background: #270b64;
    color: #e2e8f0;
    transform: scale(1.2);
}


/* =========================================================
   ===== NAVBAR =====
========================================================= */
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
    background: #020617;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* Navbar hover underline */
.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: 0.3s;
}

.navbar a:hover {
    color: #38bdf8;
    transform: scale(1.1);
}

.navbar a:hover::after {
    width: 100%;
}


/* =========================================================
   ===== LAYOUT CONTAINERS =====
========================================================= */
.container {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.container h1, .container h2 {
    text-align: center;
}

.center-img {
    display: block;
    margin: 20px auto;
}


/* =========================================================
   ===== HERO SECTION =====
========================================================= */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #38bdf8;
}

.hero p {
    max-width: 700px;
    margin: auto;
    color: #94a3b8;
}

.hero img {
    margin-top: 30px;
    border-radius: 12px;
    max-width: 100%;
}


/* =========================================================
   ===== SERVICES SECTION =====
========================================================= */
.services {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Service card */
.service-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.service-card h2 {
    margin-bottom: 10px;
    color: #38bdf8;
}

.service-card p {
    color: #cbd5f5;
    margin-bottom: 15px;
}

.service-card:hover {
    transform: translateY(-4px);
    background: #334155;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}


/* =========================================================
   ===== PRODUCTS SECTION =====
========================================================= */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Product card */
.product-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-4px);
    background: #334155;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.product-card img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
}

.product-card h3 {
    margin: 0.5rem 0;
}

.product-card p {
    font-size: 0.9rem;
    color: #f3efef;
}

.product-card .buy-btn {
    margin-top: 0.5rem;
    cursor: pointer;
}

/* Price badge */
.price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 20px;
}


/* =========================================================
   ===== CART / FLOATING ELEMENTS =====
========================================================= */
.cart-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#checkout-btn,
.cart-icon {
    background: #ff0101;
    color: #fff;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 10px;
    z-index: 1000;
}

/* Back to top button */
.back-to-top {
    width: 20;
    height: 40;
    position: fixed;
    bottom: 5px;
    right: 10px;
    color: #0f172a;
    padding: 12px 16px;
    transition: 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    transform: scale(1.1);
}


/* =========================================================
   ===== FORMS =====
========================================================= */
form {
    max-width: 400px;
    margin: 20px auto;
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
}

form button {
    width: 100%;
}

.butt:hover {
    background: #fe0909;
    color: #e2e8f0;
    transform: scaleY(1.2); 
    cursor: pointer;
}


/* =========================================================
   ===== TUTORIALS / VIDEOS =====
========================================================= */

/* Tutorials grid */
.tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Video card */
.video-card video{
    width: 100;
    height: 250px;
}
.video-card {
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
    text-align: center;
}

.video-card h3 {
    color: #38bdf8;
    margin-bottom: 10px;
}

/* Video preview */
.video-card video {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.85;
    transition: 0.3s ease;
}

.video-card video:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Card hover */
.video-card:hover {
    transform: translateY(-5px);
    background: #334155;
}


/* =========================================================
   ===== VIDEO MODAL =====
========================================================= */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Active modal */
.video-modal.active {
    display: flex;
}

.video-modal video {
    width: 80%;
    max-width: 80%;
    border-radius: 10px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}


/* =========================================================
   ===== FOOTER =====
========================================================= */
footer {
    margin-top: 50px;
    background: #020617;
    padding: 20px;
    text-align: center;
}

footer h2 {
    margin-bottom: 10px;
}

footer p {
    color: #94a3b8;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: 0.3s;
}

.social-icons img:hover {
    transform: scale(1.2);
}


/* =========================================================
   ===== RESPONSIVE =====
========================================================= */
@media (max-width: 768px) {
    .back-to-top{
        display: none;
    }
    .cart-icon{
        position: fixed;
        top: 70px;
        right: 20px;
        z-index: 1000;
    }
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}