:root {
    --navy: #091233;
    --white: #ffffff;
    --light-navy: #1a2350;
    --grey: #f5f5f5;
    --dark-grey: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: var(--dark-grey);
    background-color: var(--white);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(9,18,51,0.1);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    animation: rotateIn 1s ease;
}

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); }
    to { transform: rotate(0) scale(1); }
}

.logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navy);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--navy);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.icon-link {
    color: var(--dark-grey);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.icon-link:hover {
    color: var(--navy);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--light-navy) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M0 0 L100 100 M100 0 L0 100" stroke="white" stroke-width="1"/></svg>');
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(100px) translateY(100px); }
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

/* Hero Logo Image - WITH SHADOW EFFECT */
.hero-logo {
    max-width: 80%;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.hero-logo:hover {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.animate-text {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.animate-text span {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i, 1));
}

.animate-text span:nth-child(1) { --i: 1; }
.animate-text span:nth-child(2) { --i: 2; }
.animate-text span:nth-child(3) { --i: 3; }
.animate-text span:nth-child(4) { --i: 4; }
.animate-text span:nth-child(5) { --i: 5; }
.animate-text span:nth-child(6) { --i: 6; }
.animate-text span:nth-child(7) { --i: 7; }
.animate-text span:nth-child(8) { --i: 8; }
.animate-text span:nth-child(9) { --i: 9; }
.animate-text span:nth-child(10) { --i: 10; }
.animate-text span:nth-child(11) { --i: 11; }
.animate-text span:nth-child(12) { --i: 12; }
.animate-text span:nth-child(13) { --i: 13; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-subtitle {
    margin: 2rem 0;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.made-in-kenya {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 2px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--navy);
}

.cta-button:hover::before {
    left: 0;
}

.animate-pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Categories Section */
.categories {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--navy);
    animation: expandWidth 1s ease;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(9,18,51,0.1);
}

.category-card:nth-child(1) { background-image: linear-gradient(rgba(9,18,51,0.3), rgba(9,18,51,0.3)), url('https://images.unsplash.com/photo-1483985988355-763728e1935b?w=500'); }
.category-card:nth-child(2) { background-image: linear-gradient(rgba(9,18,51,0.3), rgba(9,18,51,0.3)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?w=500'); }
.category-card:nth-child(3) { background-image: linear-gradient(rgba(9,18,51,0.3), rgba(9,18,51,0.3)), url('https://images.unsplash.com/photo-1503919545889-a0f4f5e8b3b0?w=500'); }

.card-inner {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: var(--white);
    transition: bottom 0.5s ease;
}

.category-card:hover .card-inner {
    bottom: 0;
}

.card-inner h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-inner p {
    color: var(--dark-grey);
}

/* Products Section */
.products {
    padding: 5rem 2rem;
    background: var(--grey);
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(9,18,51,0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(9,18,51,0.2);
}

.product-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9,18,51,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    padding: 0.8rem 1.5rem;
    background: var(--white);
    color: var(--navy);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-view {
    transform: translateY(0);
}

.quick-view:hover {
    background: var(--navy);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--dark-grey);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.brand {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price {
    color: var(--dark-grey);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart:hover {
    background: var(--light-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9,18,51,0.3);
}

/* Brand Strip */
.brand-strip {
    background: var(--navy);
    padding: 2rem 0;
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 3rem;
    position: relative;
}

.marquee-content span::after {
    content: '•';
    position: absolute;
    right: -3rem;
    color: var(--white);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--navy), var(--light-navy));
    color: var(--white);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.newsletter-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--white);
    transform: scale(1.02);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--navy);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-form button:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9,18,51,0.3);
}

/* Footer */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--navy);
    animation: expandWidth 1s ease;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--navy);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .animate-text {
        font-size: 4rem;
    }
    
    .hero-logo {
        max-width: 70%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .animate-text {
        font-size: 3rem;
    }
    
    .hero-logo {
        max-width: 85%;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .animate-text {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 95%;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .made-in-kenya {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.3);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Scroll animations */
.scroll-animation {
    opacity: 0;
    transition: all 0.5s ease;
}

.scroll-animation.visible {
    opacity: 1;
    animation: slideInUp 0.5s ease forwards;
}