/* Global Styles */
:root {
    --primary-color: #ff6600;
    --primary-hover: #e65c00;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #333;
    padding: 1rem;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Logo Styles */
.logo {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff3366, #ff8c00, #ffcc00, #33cc33, #3399ff, #cc33ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo:hover {
    animation: gradientFlow 3s ease infinite, float 2s ease infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3399ff, #cc33ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

/* Navigation */
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    position: absolute;
    right: 1rem;
    top: 0.8rem;
    color: white; /* Ensure visibility */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/shoe.jpg') no-repeat center center/cover;
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff9999;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffb3b3;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: bold;
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 102, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 102, 0, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 102, 0, 0.7);
    }
}

/* Reviews Section */
.reviews-container {
    padding: 60px 20px;
    background-color: var(--white);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-container h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.review {
    background-color: var(--bg-color);
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.review p {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 15px;
    font-style: italic;
}

.review h4 {
    margin-top: 15px;
    color: var(--text-color);
    font-weight: 600;
}

/* About Us Section */
.about-section {
    padding: 60px 20px;
    background-color: var(--bg-color);
    min-height: calc(100vh - 200px);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-box {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 0 auto;
    max-width: 800px;
}

.about-box h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.about-content {
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Featured Shoe Section */
.featured-shoe {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shoe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.shoe-image {
    flex: 1;
    min-width: 300px;
}

.shoe-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.shoe-details {
    flex: 1;
    min-width: 300px;
}

.shoe-details h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.specs-section {
    margin-bottom: 30px;
}

.specs-section h3 {
    color: #ff6600;
    margin: 20px 0 10px;
    font-size: 20px;
}

.specs-section ul {
    padding-left: 20px;
}

.specs-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--light-text);
}

.checkout-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.checkout-btn:hover {
    background-color: var(--primary-hover);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 20px;
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.8rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0.8rem;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 0.8rem;
    }
    
    /* Navigation */
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        align-items: center;
        padding: 70px 0 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
        height: 100vh;
        overflow-y: auto;
    }
    
    nav.active {
        display: flex;
        transform: translateY(0);
    }
    
    nav a {
        padding: 12px 0;
        width: 80%;
        text-align: center;
        margin: 5px 0;
        border-bottom: 1px solid #444;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 20px;
        min-height: 50vh;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Featured Shoe */
    .shoe-container {
        flex-direction: column;
    }
    
    .shoe-image, .shoe-details {
        min-width: 100%;
    }
    
    .shoe-details h2 {
        font-size: 24px;
    }
    
    .specs-section h3 {
        font-size: 18px;
    }
    
    /* About Us */
    .about-box {
        padding: 30px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* Further mobile adjustments */
    header {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.6rem;
        top: 0.6rem;
    }
    
    nav {
        padding-top: 60px;
    }
    
    nav a {
        font-size: 1rem;
    }
    
    /* Featured Shoe */
    .shoe-details h2 {
        font-size: 22px;
    }
    
    .specs-section {
        margin-bottom: 20px;
    }
    
    /* About Us */
    .about-box {
        padding: 20px;
    }
    
    .about-box h2 {
        font-size: 1.8rem;
    }
}

/* FORCE mobile menu button visibility rules */
.mobile-menu-btn { display: none !important; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block !important; }
}

/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    position: relative; /* Essential for positioning */
}

/* Logo Positioning */
.logo {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff3366, #ff8c00, #ffcc00, #33cc33, #3399ff, #cc33ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
    font-weight: 700;
    letter-spacing: 1px;
    position: static; /* Remove any absolute positioning */
    margin: 0; /* Remove default margins */
    z-index: 100; /* Keep above other elements */
    transform: none !important; /* Remove any transforms */
    left: auto !important; /* Reset positioning */
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Keep header fixed */
    header {
        position: sticky;
        top: 0;
        padding: 0;
    }
    
    .header-container {
        padding: 0.8rem 1rem;
        background-color: #333;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Navigation menu */
    nav {
        position: absolute;
        top: 100%; /* Starts right below header */
        left: 0;
        width: 100%;
        background-color: #444;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 200px; /* Adjust based on your content */
        padding: 10px 0;
    }
    
    nav a {
        padding: 12px 20px;
        width: 100%;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid #555;
    }
    
    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ===================== */
/* ANIMATED MOBILE MENU */
/* ===================== */
@media (max-width: 768px) {
    /* Menu Container */
    #main-nav {
        position: absolute;
        top: 100%; /* Starts right below header */
        left: 0;
        width: 100%;
        background: #333;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), 
                   opacity 0.3s ease;
        opacity: 0;
        transform-origin: top center;
    }

    /* Expanded State */
    #main-nav.active {
        max-height: 500px; /* Adjust based on content */
        opacity: 1;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    /* Menu Items Animation */
    #main-nav a {
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.4s ease, 
                   opacity 0.4s ease,
                   background 0.2s ease;
        transition-delay: calc(var(--i) * 0.1s);
    }

    #main-nav.active a {
        transform: translateY(0);
        opacity: 1;
    }

    /* Hover Effects */
    #main-nav a:hover {
        background: #444;
    }
}

/* Hide current page link */
nav a[href="index.html"].current,
nav a[href="about.html"].current,
nav a[href="featured-shoe.html"].current {
    display: none;
}

/* Mobile Menu Animation */
/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-link {
        transition: all 0.3s ease !important;
    }
    .nav-link:hover {
        transform: translateX(5px) !important; /* Slight right movement */
    }
    /* Hamburger icon animation */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
    }
    
    .bar {
        height: 2px;
        width: 100%;
        background-color: white;
        transition: all 0.3s ease;
    }
    
    /* Menu container */
    #main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #333;
        clip-path: circle(0% at 90% 5%);
        transition: all 0.8s cubic-bezier(0.86, 0, 0.07, 1);
        z-index: 100;
        overflow: hidden;
    }
    
    #main-nav.active {
        clip-path: circle(150% at 90% 5%);
    }
    
    /* Menu items */
    .nav-link {
        display: block;
        padding: 18px 25px;
        color: white;
        text-decoration: none;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    #main-nav.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered animation for links */
    #main-nav.active .nav-link:nth-child(1) {
        transition-delay: 0.2s;
    }
    #main-nav.active .nav-link:nth-child(2) {
        transition-delay: 0.3s;
    }
    #main-nav.active .nav-link:nth-child(3) {
        transition-delay: 0.4s;
    }
    
    /* Hide current page link */
    .nav-link.current {
        display: none;
    }
    
    /* Hamburger animation when active */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Navigation Link Styles - For Both Desktop and Mobile */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

/* Desktop Hover Effect */
@media (min-width: 769px) {
    nav a:hover {
        color: #ff0000 !important; /* Bright red */
    }
}

/* Mobile Hover/Tap Effect */
@media (max-width: 768px) {
    nav a:hover,
    nav a:active {
        color: #ff0000 !important;
        background-color: rgba(255, 0, 0, 0.1); /* Light red background */
    }
}

/* Current Page Indicator (Optional) */
nav a.current {
    font-weight: bold;
    color: #ff0000 !important;
}