:root {
    --text-color: #ffffff;
    --primary-font: 'Poppins', sans-serif;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: var(--primary-font);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('backgroundpic.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax-like effect */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
}

/* Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.0rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}

/* Typography */
.main-title {
    font-family: 'Forum', serif;
    font-size: 95px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: none;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0px;
    line-height: 1.1;
}

.slogan {
    font-family: 'Aileron', 'Helvetica Neue', Arial, sans-serif;
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* Button Styling */
.cta-button {
    text-decoration: none;
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 35px;
    border: 1px solid #fff;
    background: transparent;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    /* Rounded pill shape for modern look */
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .slogan {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2.5rem;
        font-size: 1rem;
    }
}

/* Information Page Styles */
.info-page-container {
    padding: 100px 10%;
    /* Top padding for navbar, side padding for centering */
    background-color: #0a0a0a;
    /* Dark background matching the theme */
    color: #fff;
    min-height: 100vh;
}

.info-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 100px;
    gap: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.info-section:nth-child(2) {
    animation-delay: 0.3s;
}

.info-section:nth-child(3) {
    animation-delay: 0.6s;
}

.info-section.reverse {
    flex-direction: row-reverse;
}

.info-text {
    flex: 1;
    font-family: 'Aileron', sans-serif;
}

.info-text h2 {
    font-family: 'Forum', serif;
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    display: inline-block;
}

.info-text p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.info-image-container {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
}

.info-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-image-container:hover .info-img {
    transform: scale(1.05);
}

/* "Soft Transition" / Fade Effect */
/* Fade towards the text side */
.fade-left {
    mask-image: linear-gradient(to left, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 80%, transparent 100%);
}

.fade-right {
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

/* Responsive Info Page */
@media (max-width: 900px) {
    .info-section {
        flex-direction: column;
        text-align: center;
        margin-bottom: 60px;
    }

    .info-section.reverse {
        flex-direction: column;
    }

    .info-image-container {
        width: 100%;
        order: -1;
        /* Image always on top on mobile */
    }

    .fade-left,
    .fade-right {
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    }
}

/* Products Page Styles */
.products-page-container {
    padding: 120px 8% 80px;
    /* Top padding clears fixed navbar */
    background-color: #0a0a0a;
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-title {
    font-family: 'Forum', serif;
    font-size: 64px;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.product-img-container {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-name {
    font-family: 'Forum', serif;
    font-size: 28px;
    color: #fff;
}

.product-price {
    font-family: 'Aileron', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.product-cta {
    margin-top: 15px;
    padding: 12px 0;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .products-title {
        font-size: 42px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* Authentication Page Styles */
.auth-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('backgroundpic.png');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-title {
    font-family: 'Forum', serif;
    font-size: 36px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.auth-btn {
    padding: 12px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.auth-link {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Profile Dropdown Styles in Navbar */
.profile-dropdown-container {
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.profile-icon svg {
    stroke: #fff;
    width: 28px;
    height: 28px;
    transition: stroke 0.3s ease;
}

.profile-dropdown-container:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}
.dropdown-menu .logout-link,
.mobile-nav-link.logout-link {
    color: #ff4d4f;
    font-weight: 700;
}

/* Admin Orders Table */
.admin-container {
    padding: 120px 10%;
    color: #fff;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.orders-table th {
    background: rgba(255, 255, 255, 0.1);
    font-family: 'Forum', serif;
    font-size: 18px;
}

.orders-table td {
    font-family: 'Mulish', sans-serif;
}

/* Product Details Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #aaa;
}

.modal-body {
    display: flex;
    flex-direction: row;
}

.modal-img-container {
    flex: 1;
    background: #000;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-family: 'Forum', serif;
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}

.buy-btn {
    padding: 15px 30px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    transition: transform 0.2s, background 0.2s;
    align-self: start;
}

.buy-btn:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
}

.product-description {
    color: #888;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.product-description p {
    margin-bottom: 10px;
}

.product-description ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.product-description li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-img-container {
        height: 250px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-title {
        font-size: 28px;
    }
}