* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.nav-header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.nav-center {
    display: flex;
    align-items: center;
    height: 36.66px;
    width: 75%;
}

.logo img {
    height: 36.6px;
    width: 200px;
    display: block;
    object-fit: contain;
    background-size: contain;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-size: 16px;
    margin-right: 16px;
    transition: color 0.5s;
}

.nav-links a:hover {
    color: #6364f6;
}

.contact {
    text-decoration: none;
    color: white;
    background-color: #6364f6;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background 0.18s;
    box-shadow: 0 3px 9px rgba(76, 86, 255, .08);
    margin-left: auto;

}

.contact:hover {
    background-color: #4546b0;
}

.hero {
    height: 340px;
    width: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url(img/veg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin: 32px auto 0 auto;
    box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.hero::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.45);
}

.hero:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(76, 86, 255, 0.15);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: #fff;
    text-align: center;
    z-index: 1;
    width: 95%;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 0.01em;
    letter-spacing: 0.03em;
}

.hero-text h4 {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.015em;
    margin: 0;

}

.recipes-container {
    display: flex;
    height: 100%;
    width: 75%;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 32px auto 32px auto;
    gap: 56px;
}

.recipes-container-heading {
    width: 75%;
    margin: 0 auto;
}

.recipes-container-heading h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.class-container {
    width: 200px;
}

.class-container h4 {
    color: black;
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 0px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.recipes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    justify-content: end;
    flex: 1;
    align-items: start;
    justify-items: stretch;
}

.recipes-list a {
    text-decoration: none;
    margin: 0;
}

.recipe-card {
    box-sizing: border-box;
    height: 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: box-shadow 0.3s, transform 0.25s ease-in-out;
}

.recipe-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(76, 86, 255, 0.15);
}

.recipe-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.recipe-card h5 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #334155;
    margin: 8px 16px 6px 16px;
}

.recipe-card .meta {
    margin: 0 16px 16px 16px;
    font-size: 0.8rem;
    color: #7a7a7a;
    font-weight: 300;
}

.tags-list {
    display: flex;
    flex-direction: column;
}

.tags-list a {
    text-decoration: none;
    color: gray;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0.5em;
    transition: color 0.3s ease-in-out;
}

.tags-list a:hover {
    color: #6364f6;
}

.copyright {
    background-color: #2D2E5F;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F7FAFC;
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: -8px;
}

.copyright a {
    text-decoration: none;
    color: #A3BFFA;
}

.about-section {
    display: flex;
    width: 75%;
    height: 100%;
    margin: 0 auto;
    padding-bottom: 48px;
}

.about-container {
    width: 50%;
    margin-right: 16px;
}

.about-container h2 {
    color: #0F172A;
    font-size: 40px;
}

.about-container p {
    color: #0F172A;
    font-size: 16px;
}

.about-image {
    background-image: url(img/about.jpg);
    width: 50%;
    background-position: center;
    background-size: cover;
    margin-left: 16px;
    border-radius: 8px;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.about-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(76, 86, 255, 0.15);
}

.featured-recipes {
    width: 75%;
    margin: 0 auto;
    padding-bottom: 48px;
}

.featured-recipes h5 {
    color: #0F172A;
    font-size: 20px;
    font-weight: 100;
}

.featured-recipes p {
    color: #0F172A;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
}

.tags-wrapper {
    width: 75%;
    margin: 32px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 32.65vh;
}
.tags-wrapper a {
    text-decoration: none;
    display: block;
}

.tag-card {
    background: linear-gradient(135deg, #6364f6, #4f46e5);
    height: 128px;
    color: white;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
    box-shadow: 0px 4px 18px rgba(99, 100, 246, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(99, 100, 246, 0.25);
}

.tag-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.tag-card p {
    font-size: 16px;
    font-weight: 200;
    margin-bottom: 12px;
    
}

.recipe-hero {
    width: 75%;
    margin: 10px auto;
    display: flex;
    gap: 48px;
}

.recipe-hero-img {
    height: 400px;
    width: 42%;
    background-image: url(img/chole-bhature.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: none;
    border-radius: 12px;
    align-self: center;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.recipe-hero-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(99, 100, 246, 0.25);
}

.recipe-hero-article {
    width: 58%;
}

.recipe-hero-article h4 {
    font-size: 2rem;
    font-weight: 400;
    color: #0F172A;
}

.recipe-hero-article p {
    color: #475569;
    font-size: 16px;
}

.recipe-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 32px;
}

.recipe-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.recipe-icon i {
    color: #4f46e5;
    font-size: 24px;
    margin-bottom: 2px;
}

.recipe-icon h5 {
    font-size: 0.85rem;
    font-weight: 400;
    color: #0F172A;
    margin-top: 4px;
    margin-bottom: 4px;
}

.recipe-icon p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 300;
}

.recipe-tags {
    display: flex;
    margin-top: 32px;
    align-items: center;
}

.recipe-tags p {
    margin: 0;
    color: black;
    font-size: 0.7em;
    font-weight: 600;
    color: #475569;
}

.recipe-tags a {
    text-decoration: none;
    font-size: 0.7em;
    color: white;
    padding: 4px 8px;
    background-color: #645cff;
    margin-left: 8px;
    border-radius: 4px;
}

.recipe-content {
    width: 75%;
    margin: 32px auto;
    display: flex;
    gap: 48px;
}

.recipe-content-article {
    width: 58%;
}

.recipe-content h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 24px;
}

.recipe-step {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.recipe-step h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #6364f6;
    margin-bottom: 8px;
    text-transform: capitalize;
    letter-spacing: 0.05em;
}

.recipe-step p {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
}

.recipe-sidebar {
    width: 42%;
}

.recipe-sidebar h4 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #0F172A;
    margin-bottom: 16px;
}

.ingredients-list,
.tools-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li,
.tools-list li {
    color: #475569;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tools-section {
    margin-top: 40px;
}

.tools-list li {
    color: #6364f6;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tools-list li:hover {
    color: #4f46e5;
}

.contact-container {
    width: 75%;
    margin: 32px auto;
    display: flex;
    gap: 48px;
    justify-content: space-between;
}

.contact-article {
    width: 45%;
}

.contact-article h4 {
    font-size: 2rem;
    font-weight: 400;
    color: #0F172A;
    margin-bottom: 24px;
}

.contact-article p {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-form {
    width: 40%;
    padding: 32px;                              /* Creates inner spacing */
    background-color: #ffffff;                  /* White background */
    border-radius: 12px;                        /* Rounded corners */
    box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(99, 100, 246, 0.25);
}


.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    height: 32px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6364f6;
    box-shadow: 0 0 0 3px rgba(99, 100, 246, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: #6364f6;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #4f46e5;
}

/* FOR MOBILE */
/* Navigation Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 32px;
    margin-left: 16px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #222;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    background: #6364f6;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    width: 50px;
    height: 100%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 100, 246, 0.2);
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.sidebar-toggle:hover {
    background: #5753e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 100, 246, 0.3);
}

.hamburger-box {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-inner {
    width: 20px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.sidebar-toggle.active .hamburger-inner:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active .hamburger-inner:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active .hamburger-inner:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Page Overlay */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Navigation Mobile */
    .nav-center {
        width: 90%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 96px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 96px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1rem;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        max-width: 250px;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 16px 24px;
        width: 100%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
        background: #f8f9ff;
        color: #333;
        font-weight: 500;
    }
    
    .nav-links a:hover {
        background: #6364f6;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(99, 100, 246, 0.3);
    }
    
    .contact {
        margin-top: 1.5rem !important;
        margin-left: 0 !important;
    }
    
    /* Hero Mobile */
    .hero {
        width: 90%;
        height: 250px;
        margin: 16px auto 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h4 {
        font-size: 1.1rem;
    }
    
    /* Recipes Container Mobile */
    .recipes-container {
        width: 90%;
        flex-direction: column;
        gap: 24px;
    }
    
    .recipes-container-heading {
        width: 90%;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    /* Recipe Categories Sidebar */
    .class-container {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
        padding: 120px 24px 24px 24px;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    
    .class-container.active {
        left: 0;
    }
    
    .class-container h4 {
        color: #6364f6;
        border-bottom: 2px solid #6364f6;
        padding-bottom: 12px;
        margin-bottom: 24px;
        font-size: 1.4rem;
        font-weight: 600;
        text-align: center;
    }
    
    .tags-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .tags-list a {
        display: block;
        padding: 14px 18px;
        margin: 0;
        border-radius: 10px;
        background: white;
        transition: all 0.3s ease;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        font-size: 1rem;
    }
    
    .tags-list a:hover {
        background: #6364f6;
        color: white;
        transform: translateX(8px);
        box-shadow: 0 4px 15px rgba(99, 100, 246, 0.3);
    }
    
    /* Recipe Grid Mobile */
    .recipes-list {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    
    .recipe-card {
        height: 280px;
    }
    
    .recipe-card img {
        height: 200px;
    }
    
    /* Recipe Template Mobile */
    .recipe-hero {
        width: 90%;
        flex-direction: column;
        gap: 24px;
    }
    
    .recipe-hero-img {
        width: 100%;
        height: 250px;
    }
    
    .recipe-hero-article {
        width: 100%;
    }
    
    .recipe-hero-article h4 {
        font-size: 1.5rem;
    }
    
    .recipe-content {
        width: 90%;
        flex-direction: column;
        gap: 24px;
    }
    
    .recipe-content-article,
    .recipe-sidebar {
        width: 100%;
    }
    
    .recipe-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
        padding: 120px 24px 24px 24px;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    
    .recipe-sidebar.active {
        left: 0;
    }
    
    .recipe-sidebar h4 {
        color: #6364f6;
        border-bottom: 2px solid #6364f6;
        padding-bottom: 12px;
        margin-bottom: 20px;
        font-size: 1.3rem;
        font-weight: 600;
        text-align: center;
    }
    
    /* Other Mobile Pages */
    .about-section {
        width: 90%;
        flex-direction: column;
        gap: 24px;
    }
    
    .about-container {
        width: 100%;
        margin-right: 0;
    }
    
    .about-container h2 {
        font-size: 28px;
    }
    
    .about-image {
        width: 100%;
        height: 250px;
        margin-left: 0;
    }
    
    .tags-wrapper {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20vh;
    }
    
    .tag-card {
        height: 100px;
    }
    
    .tag-card h3 {
        font-size: 18px;
    }
    
    .tag-card p {
        font-size: 14px;
    }
    
    .contact-container {
        width: 90%;
        flex-direction: column;
        gap: 24px;
    }
    
    .contact-article {
        width: 100%;
    }
    
    .contact-form {
        width: 100%;
    }
    
    .contact-article h4 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-center {
        width: 95%;
    }
    
    .class-container,
    .recipe-sidebar {
        width: 260px;
        left: -280px;
    }
    
    .hero {
        width: 95%;
        height: 200px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h4 {
        font-size: 1rem;
    }
    
    .recipes-container,
    .recipes-container-heading {
        width: 95%;
    }
    
    .recipe-card h5 {
        font-size: 1.1rem;
    }
}

/* Tablet Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-center {
        width: 85%;
    }
    
    .hero {
        width: 85%;
        height: 300px;
    }
    
    .recipes-container,
    .recipes-container-heading {
        width: 85%;
    }
    
    .recipes-container {
        gap: 40px;
    }
    
    .recipes-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
