/* Global Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif; /* Newspaper feel */
    background-color: #f4f4f0; /* Slightly off-white/newsprint color */
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.newspaper-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marker-text {
    font-family: 'Permanent Marker', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #f4f4f0;
    border-bottom: 2px solid #1a1a1a; /* Thick newspaper border */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    font-family: 'Permanent Marker', cursive;
    color: #e91e63; /* Pink accent */
    font-size: 1.2rem;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e91e63;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(244, 244, 240, 0.9), rgba(244, 244, 240, 0.9)), url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><text x="5" y="20" font-family="serif" font-size="10" fill="%23ddd">The Daily News</text></svg>');
    border-bottom: 5px double #1a1a1a;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    transform: rotate(-2deg);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1a1a1a;
    color: #f4f4f0;
    text-decoration: none;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background-color: transparent;
    color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
}

/* Products Section */
.products {
    padding: 80px 50px;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    border-bottom: 2px solid #1a1a1a;
    display: inline-block;
    padding-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #f4f4f0;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.product-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 10px 10px 20px rgba(0,0,0,0.1);
    border-color: #1a1a1a;
}

.product-card img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 15px;
    filter: contrast(1.1);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.product-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.product-card .price {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    color: #d32f2f;
}

/* About Section */
.about {
    padding: 80px 50px;
    background-color: #1a1a1a;
    color: #f4f4f0;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 50px;
    background-color: #f4f4f0;
    border-top: 5px double #1a1a1a;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-form {
    margin-top: 40px;
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #1a1a1a;
    background: transparent;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.success-msg {
    color: green;
    font-weight: bold;
    margin: 20px 0;
    padding: 10px;
    border: 2px dashed green;
    font-family: 'Permanent Marker', cursive;
}

/* Footer */
footer {
    background-color: #111;
    color: #ccc;
    padding: 50px 50px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.footer-section {
    margin-bottom: 20px;
    min-width: 250px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e91e63;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.section-animate.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #f4f4f0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 2px solid #1a1a1a;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .nav-links.nav-active {
        transform: translateX(0%);
    }
    .burger {
        display: block;
    }
    .hero h1 {
        font-size: 3rem;
    }
}
