/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-blue: #1E5AA8;
    --red: #D32F2F;
    --orange: #FF9800;
    --light-blue: #03A9F4;
    --green: #4CAF50;
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: var(--primary-blue);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    animation: logoSlideIn 0.8s ease-out;
}

@keyframes logoSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-squares {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.square {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    animation: squaresDrop 0.6s ease-out forwards;
    opacity: 0;
}

.square:nth-child(1) { animation-delay: 0.2s; }
.square:nth-child(2) { animation-delay: 0.3s; }
.square:nth-child(3) { animation-delay: 0.4s; }
.square:nth-child(4) { animation-delay: 0.5s; }

@keyframes squaresDrop {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.square.red { background: var(--red); }
.square.orange { background: var(--orange); }
.square.light-blue { background: var(--light-blue); }
.square.green { background: var(--green); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    animation: menuFadeIn 1s ease-out 0.3s both;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: textureMove 20s linear infinite;
}

@keyframes textureMove {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(100px) translateY(100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--white);
    animation: heroTitleSlide 1s ease-out 0.3s both;
}

.hero-logo-squares {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    animation: heroSquaresDrop 1s ease-out 0.5s both;
}

.hero-logo-squares .square {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    opacity: 0;
    animation: squaresDrop 0.6s ease-out forwards;
}

.hero-logo-squares .square:nth-child(1) { animation-delay: 0.6s; }
.hero-logo-squares .square:nth-child(2) { animation-delay: 0.7s; }
.hero-logo-squares .square:nth-child(3) { animation-delay: 0.8s; }
.hero-logo-squares .square:nth-child(4) { animation-delay: 0.9s; }

@keyframes heroSquaresDrop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: heroTitleSlide 1s ease-out 1s both;
}

@keyframes heroTitleSlide {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: heroSubtitleFade 1s ease-out 1.2s both;
}

@keyframes heroSubtitleFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroButtonsSlide 1s ease-out 1.4s both;
}

@keyframes heroButtonsSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #e68900;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Section Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

.services h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--light-blue), var(--green));
    border-radius: 2px;
    animation: underlineExpand 0.8s ease-out 0.5s both;
}

@keyframes underlineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.6s ease;
}

.service-card.clickable {
    cursor: pointer;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card.clickable:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card.clickable:active {
    transform: translateY(-5px) scale(1.01);
    transition: all 0.1s ease;
}

/* Staggered animation for service cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon::after {
    width: 80%;
    height: 80%;
}

.service-icon.red { background: var(--red); }
.service-icon.orange { background: var(--orange); }
.service-icon.light-blue { background: var(--light-blue); }
.service-icon.green { background: var(--green); }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-blue);
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--light-blue), var(--green));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat:hover h3 {
    transform: scale(1.1);
}

/* Stores Section */
.stores {
    padding: 80px 0;
    background: var(--white);
}

.stores h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.store-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.store-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(30, 90, 168, 0.05), transparent);
    transition: top 0.5s ease;
}

.store-card:hover::before {
    top: 100%;
}

.store-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.store-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.store-card:hover h3 {
    transform: scale(1.05);
}

.store-details p {
    margin-bottom: 0.5rem;
    color: #666;
    transition: all 0.3s ease;
}

.store-card:hover .store-details p {
    color: #333;
}

.btn-store {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-store::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.btn-store:hover::before {
    width: 200%;
    height: 200%;
}

.btn-store:hover {
    background: #45a049;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    color: #666;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(30, 90, 168, 0.1);
    transform: scale(1.02);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Modal with Simple Reliable Display */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    /* Simple animation that actually works */
    animation: modalFadeIn 0.3s ease-out;
    /* Ensure visibility */
    opacity: 1;
    transform: scale(1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-blue);
    background: rgba(30, 90, 168, 0.1);
    transform: rotate(90deg) scale(1.2);
}

/* Store Detail Modal Styles */
.store-detail-content {
    margin: 1rem 0;
    animation: contentSlideUp 0.8s ease-out 0.3s both;
}

@keyframes contentSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-info,
.store-services,
.store-description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.store-info {
    border-left-color: var(--primary-blue);
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.store-services {
    border-left-color: var(--green);
    animation: slideInLeft 0.6s ease-out 0.6s both;
}

.store-description {
    border-left-color: var(--orange);
    animation: slideInLeft 0.6s ease-out 0.8s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.store-info:hover,
.store-services:hover,
.store-description:hover {
    background: rgba(30, 90, 168, 0.02);
    border-left-width: 6px;
    transform: translateX(5px);
}

.store-info h3,
.store-services h3,
.store-description h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    position: relative;
}

.store-services ul {
    list-style: none;
    padding-left: 0;
}

.store-services li {
    padding: 0.25rem 0;
    color: #666;
    transition: all 0.3s ease;
    opacity: 0;
    animation: listItemFade 0.4s ease-out forwards;
}

.store-services li:nth-child(1) { animation-delay: 1s; }
.store-services li:nth-child(2) { animation-delay: 1.1s; }
.store-services li:nth-child(3) { animation-delay: 1.2s; }
.store-services li:nth-child(4) { animation-delay: 1.3s; }

@keyframes listItemFade {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.store-services li:before {
    content: "✓ ";
    color: var(--green);
    font-weight: bold;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.store-services li:hover {
    color: var(--green);
    transform: translateX(5px);
}

.store-services li:hover:before {
    transform: scale(1.3);
}

.store-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: actionsSlideUp 0.6s ease-out 1s both;
}

@keyframes actionsSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-actions .btn-primary,
.store-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem 0;
        animation: mobileMenuSlide 0.3s ease-out;
    }
    
    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .services h2,
    .about h2,
    .stores h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .store-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .store-actions {
        flex-direction: column;
    }
    
    .store-actions .btn-primary,
    .store-actions .btn-secondary {
        width: 100%;
    }
}