* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

body {
    background: #0f172a;
    color: white;
}

/* ==========================================
   PROJECTS
   ========================================== */
.projects {
    padding: 50px;
    display: grid;
    /* This grid rule makes the cards automatically responsive! */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.category {
    color: #94a3b8;
    margin-top: 10px;
}

.price {
    color: #38bdf8;
    font-size: 24px;
    margin-top: 15px;
    font-weight: bold;
}

/* ==========================================
   UTILITIES & FORMS
   ========================================== */
.active {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px #38bdf8;
    font-weight: bold;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    padding: 20px; /* Added padding so it doesn't touch screen edges on mobile */
}

.form-box {
    background: #1e293b;
    padding: 40px;
    width: 100%; /* Changed from 400px to 100% for mobile */
    max-width: 400px; /* Limits the max size on desktops */
    border-radius: 15px;
}

.form-box h2 {
    margin-bottom: 25px;
    text-align: center;
}

.form-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    background: #334155;
    color: white;
}

.form-box button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #38bdf8;
    font-weight: bold;
    cursor: pointer;
}
/* ==========================================
PREMIUM NAVBAR
========================================== */

.navbar {
display: flex;
justify-content: space-between;
align-items: center;


padding: 18px 60px;

position: sticky;
top: 0;
z-index: 1000;

background: rgba(15, 23, 42, 0.92);
backdrop-filter: blur(15px);

border-bottom: 1px solid rgba(255,255,255,.05);


}

.logo {
font-size: 30px;
font-weight: 800;
}

.logo a {
color: #38bdf8;
text-decoration: none;
}

.nav-links {
display: flex;
align-items: center;
gap: 28px;
list-style: none;
}

.nav-links a {
color: #f8fafc;
text-decoration: none;
font-weight: 500;
position: relative;
transition: all .3s ease;
}

.nav-links a:hover {
color: #38bdf8;
}

.nav-links a::after {
content: '';
position: absolute;
left: 0;
bottom: -6px;


width: 0;
height: 2px;

background: #38bdf8;
transition: .3s;


}

.nav-links a:hover::after {
width: 100%;
}

.active {
color: #38bdf8 !important;
text-shadow: 0 0 10px rgba(56,189,248,.5);
}

.active::after {
width: 100%;
}

.nav-cart-link {
position: relative;
display: inline-flex !important;
align-items: center;
gap: 6px;
}

.cart-badge {
position: absolute;
top: -8px;
right: -15px;


background: #ef4444;
color: white;

font-size: 11px;
font-weight: bold;

padding: 2px 6px;
border-radius: 999px;

box-shadow: 0 2px 8px rgba(239,68,68,.4);


}

.hamburger {
display: none;
cursor: pointer;
flex-direction: column;
gap: 5px;
}

.hamburger .bar {
width: 25px;
height: 3px;


background: white;

border-radius: 20px;
transition: .3s;


}

/* ==========================================
MOBILE NAVBAR
========================================== */

@media (max-width:768px) {


.navbar {
    padding: 18px 20px;
}

.logo {
    font-size: 24px;
}

.hamburger {
    display: flex;
    z-index: 1001;
}

.nav-links {
    position: fixed;

    top: 0;
    left: -300px;

    width: 260px;
    height: 100vh;

    background: #111827;

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 25px;

    padding-top: 90px;
    padding-left: 30px;

    transition: .4s ease;

    box-shadow: 5px 0 25px rgba(0,0,0,.5);

    z-index: 1000;
}

.nav-links.active-mobile {
    left: 0;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    width: 100%;
    display: block;
    font-size: 18px;
}

.hamburger.toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.toggle .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.projects {
    padding: 20px;
}

.hero {
    padding: 50px 20px;
}

.hero h1 {
    font-size: 38px;
}


}
