/* 1. Global Setup */
html {
    scroll-behavior: smooth;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* 2. Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    background: white;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    letter-spacing: 5px;
}

nav ul { 
    display: flex; 
    list-style: none; 
}

nav ul li { 
    margin-left: 30px; 
}

nav ul li a { 
    text-decoration: none; 
    color: #1a1a1a; 
    text-transform: uppercase; 
    font-size: 11px; 
    letter-spacing: 2px; 
}

/* 3. Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f9f9f9; 
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 50px;
    letter-spacing: 12px;
    margin-bottom: 10px;
}

.hero p {
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 40px;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn:hover { 
    background: #1a1a1a; 
    color: #fff; 
}

/* 4. Product Grid & Images */
.products { 
    padding: 80px 10%; 
    text-align: center; 
}

.products h2 { 
    font-family: 'Cinzel', serif; 
    margin-bottom: 50px; 
    letter-spacing: 4px; 
}

.grid {
    display: grid;
    /* This creates a clean grid that fits 2 or 4 items perfectly */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-photo {
    width: 100%;
    height: 400px;      /* Consistent height for all screenshots */
    object-fit: cover;  /* This ensures the screenshots don't look squashed */
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee; /* Light border to define the image edges */
}

/* 5. Hover Effects */
.item { 
    transition: transform 0.3s ease; 
    cursor: pointer;
    margin-bottom: 20px;
}

.item:hover {
    transform: translateY(-10px);
}

.item h3 { 
    font-size: 14px; 
    letter-spacing: 1px; 
    font-weight: 400; 
    text-transform: uppercase; 
    margin-top: 10px;
}

.item p { 
    color: #777; 
    font-size: 13px; 
    margin-top: 5px;
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
    nav { 
        flex-direction: column; 
        gap: 20px; 
    }
    nav ul { 
        padding: 0; 
    }
    .hero h1 { 
        font-size: 32px; 
        letter-spacing: 6px; 
    }
    .product-photo { 
        height: 350px; 
    }
}