@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #0a0a0c;
    --card-bg: #131317;
    --text-color: #fff;
    --main-color: #00f2fe;
    --accent-color: #ff007f;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8%;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    text-transform: uppercase;
}

.logo span {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

.navlist {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navlist a {
    font-size: 16px;
    color: #ccc;
    font-weight: 500;
    transition: var(--transition);
}

.navlist a:hover, .navlist a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    cursor: pointer;
}

.cart-icon {
    position: relative;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

#menu-icon {
    display: none;
}

/* Sections */
section {
    padding: 120px 8% 80px;
}

/* Hero Section Layout Alignment */
.home {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 2rem;
}

.home-content {
    max-width: 550px;
    z-index: 2;
}

.home-content h1 {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.home-content h1 span {
    color: var(--main-color);
    text-shadow: 0 0 20px var(--main-color);
}

.home-content p {
    font-size: 15px;
    color: #aaa;
    margin-bottom: 35px;
    line-height: 1.6;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--main-color);
    color: #0a0a0c;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.8);
}

.btn-video {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

.btn-video i {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.btn-video:hover i {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Hero Image Wrapper */
.home-img-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-img {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FIXED: Image is now straight, perfectly centered, and floating smoothly */
#mainShoeImg {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    transform: rotate(0deg); 
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.7));
    animation: floatShoe 4s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes floatShoe {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.shoe-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotateCircle 25s linear infinite;
    z-index: 0;
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Color Selector */
.color-selector {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    z-index: 10;
}

.color-box {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-box.red { background: #ff4d4d; }
.color-box.blue { background: #1e90ff; }
.color-box.black { background: #333; border: 1px solid #555; }
.color-box.yellow { background: #ffd700; }

.color-box:hover, .color-box.active {
    transform: scale(1.25);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Shop Section & Filters */
.shop {
    background: var(--card-bg);
}

.heading {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 30px;
}

.heading span {
    color: var(--main-color);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-bar input {
    padding: 12px 20px;
    width: 300px;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.filter-bar input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.filter-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--main-color);
    color: #0a0a0c;
    border-color: var(--main-color);
    font-weight: 600;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: #0a0a0c;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
}

.card-img {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #0d0d11;
}

/* FIXED: Product images look neat and uniform */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .card-img img {
    transform: scale(1.1);
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-info .price {
    font-size: 16px;
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.add-cart-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--main-color);
    color: #0a0a0c;
    box-shadow: 0 0 15px var(--main-color);
}

/* Features Section with Hover Effects */
.feature-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.box {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
}

.box:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.2);
    background: #17171d;
}

.box i {
    font-size: 45px;
    color: var(--main-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.box:hover i {
    transform: scale(1.2) rotate(10deg);
}

.box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.box p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

/* Reviews Section */
.reviews {
    background: var(--card-bg);
}

.review-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-box {
    background: #0a0a0c;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.review-box:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
}

.stars {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 15px;
}

.review-box p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-box h4 {
    font-size: 15px;
    color: var(--main-color);
}

/* Cart Drawer / Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #121216;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: 0.4s ease;
}

.cart-modal.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-header h3 {
    font-size: 18px;
}

.cart-header i {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}

.cart-header i:hover { color: #fff; }

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0a0c;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--main-color);
}

.remove-btn {
    background: transparent;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 18px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a0a0c;
}

.total-bill {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--main-color);
    color: #0a0a0c;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    box-shadow: 0 0 15px var(--main-color);
}

/* Footer */
footer {
    background: #050507;
    padding: 30px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 14px;
    color: #888;
}

.dev-credit span {
    color: var(--accent-color);
}

.dev-credit strong {
    color: var(--main-color);
}

/* Responsive */
@media (max-width: 991px) {
    header { padding: 15px 5%; }
    section { padding: 100px 5% 60px; }
    .home { flex-direction: column; text-align: center; gap: 3rem; }
    .home-btn { justify-content: center; }
    .footer-content { flex-direction: column; gap: 15px; }
    .cart-modal { width: 100%; right: -100%; }
}

@media (max-width: 768px) {
    #menu-icon { display: block; cursor: pointer; }
    .navlist {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: #0a0a0c;
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navlist.active { left: 0; }
    .home-content h1 { font-size: 45px; }
    .home-img { width: 280px; height: 280px; }
    .shoe-circle { width: 250px; height: 250px; }
}
