@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-dark: #152c6e;
    --secondary: #facc15;
    --secondary-dark: #e6b80b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #22c55e;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #3b5e9e 100%);
    --gradient-reverse: linear-gradient(135deg, #3b5e9e 0%, #1e3a8a 100%);
    --gradient-gold: linear-gradient(135deg, #facc15 0%, #fbbf24 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-colored: 0 10px 40px -15px var(--primary);
    --shadow-gold: 0 10px 40px -15px var(--secondary);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

html {
    scroll-behavior: smooth;
}

body { 
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
    color: #1e293b; 
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Simplified Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* NAVIGATION BAR */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

header.scrolled {
    padding: 0.7rem 5%;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 800; 
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: scale(1.02);
}

/* RIGHT SIDE BUTTONS */
.nav-buttons { 
    display: flex; 
    align-items: center;
    gap: 10px;
}

.nav-btn {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-btn:not(.btn-primary):hover { 
    color: var(--primary);
    background: rgba(30, 58, 138, 0.05);
}

.btn-primary { 
    background: var(--gradient);
    color: white !important; 
    box-shadow: 0 4px 15px -5px var(--primary);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    /* Simplified button - easier to click */
    min-width: 100px;
    text-align: center;
    display: inline-block;
}

.btn-primary:hover { 
    background: var(--gradient-reverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px var(--primary);
    color: white !important;
}

.btn-primary:active {
    transform: translateY(0);
}

/* HERO SECTION */
.hero {
    min-height: 85vh;
    background: linear-gradient(115deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.85) 100%),
                url('https://images.unsplash.com/photo-1496181133206-80ce9b88a853?q=80&w=1500');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero h1 { 
    font-size: 4.5rem; 
    font-weight: 800;
    color: var(--secondary); 
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease 0.2s backwards;
    opacity: 0.95;
    line-height: 1.6;
}

.hero .cta-button {
    margin-top: 40px;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-gold);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    /* Simplified button for better clicking */
    display: inline-block;
    border: none;
    min-width: 200px;
}

.hero .cta-button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #facc15 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -8px var(--secondary);
}

.hero .cta-button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* PRODUCT & FORM CARDS */
.container { 
    padding: 80px 5%; 
    max-width: 1400px; 
    margin: auto; 
}

.container h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.card { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

input, textarea, select { 
    width: 100%; 
    padding: 14px 18px; 
    margin: 8px 0; 
    border: 2px solid #e2e8f0; 
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

input:hover, textarea:hover, select:hover {
    border-color: var(--secondary);
}

label {
    font-weight: 500;
    color: var(--dark);
    margin-top: 10px;
    display: block;
}

button[type="submit"] {
    background: var(--gradient);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px -5px var(--primary);
}

button[type="submit"]:hover {
    background: var(--gradient-reverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px var(--primary);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    background: white;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-info .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
}

.product-info .btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    /* Simplified button for better clicking */
    min-width: 120px;
    text-align: center;
}

.product-info .btn:hover {
    background: var(--gradient-reverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px var(--primary);
}

.product-info .btn:active {
    transform: translateY(0);
}

/* Badge for products */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-gold);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* FOOTER */
footer { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white; 
    text-align: center; 
    padding: 3rem 2rem; 
    margin-top: 80px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-gold);
}

.footer-section p, .footer-section a {
    color: #cbd5e1;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 1rem 3%;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-primary {
        min-width: 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .hero .cta-button {
        padding: 12px 32px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .container {
        padding: 40px 4%;
    }
    
    .container h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Loading Animation - Simplified */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(30,58,138,0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--gradient-reverse);
    box-shadow: var(--shadow-lg);
}

/* Simple Hover Effects */
.hover-zoom {
    overflow: hidden;
    border-radius: 15px;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Glass Effect - Simplified */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
}

/* Text Gradient */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body {
            margin: 0;
            font-family: 'Segoe UI', sans-serif;
            background: #0f172a;
            color: white;
        }

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #0f172a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== LOGO ===== */
.logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

/* ===== NAV BUTTON CONTAINER ===== */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== NAV LINKS ===== */
.nav-btn {
    text-decoration: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background: #1e3a8a;
}

/* ===== PRIMARY BUTTON (Login / Logout) ===== */
.btn-primary {
    background: #1e3a8a;
    font-weight: 500;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* ===== USER DISPLAY ===== */
#userDisplay {
    font-size: 14px;
    font-weight: 500;
    color: #38bdf8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
}

        /* Hero Section with real laptop background */
        .hero {
            text-align: center;
            padding: 120px 20px 80px 20px;
            background: url('https://images.pexels.com/photos/18105/pexels-photo.jpg?auto=compress&cs=tinysrgb&w=1600') no-repeat center center/cover;
            position: relative;
        }

        .hero::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            /* dark overlay for text clarity */
        }

        .hero h1,
        .hero p,
        .hero button {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 20px;
        }

        .hero p {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 40px;
            max-width: 700px;
            margin: auto;
        }

        .hero button {
            padding: 15px 35px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            cursor: pointer;
            background: #facc15;
            transition: 0.3s;
        }

        .hero button:hover {
            transform: scale(1.05);
            background: #eab308;
        }

        /* Highlights Section */
        .highlights {
            display: flex;
            justify-content: center;
            gap: 40px;
            padding: 40px;
            text-align: center;
        }

        .highlight-box {
            background: rgba(255, 255, 255, 0.1);
            padding: 25px;
            border-radius: 15px;
            width: 250px;
            transition: 0.3s;
        }

        .highlight-box:hover {
            transform: translateY(-8px);
            background: rgba(255, 255, 255, 0.2);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 20px;
            background: #0f172a;
            font-size: 0.9rem;
        }