/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #90C346;
    /* BUY Green */
    --secondary-color: #E92126;
    /* Logo Red */
    --dark-color: #010101;
    /* TOWN Black */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo img {
    height: 55px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav ul li {
    margin: 0;
}

.nav ul li a {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

.header-spacer {
    width: 100px;
}

.app-download {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-codes {
    display: flex;
    gap: 10px;
}

.qr-code {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #faf8f5 0%, #f0ede8 100%);
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(144, 195, 70, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.hero-modern-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

.hero-modern-text {
    z-index: 2;
}

.hero-modern-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #1a1a2e;
}

.gradient-text {
    background: linear-gradient(135deg, #1a1a2e 0%, #1a1a2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 800;
}

.hero-modern-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 35px;
    max-width: 550px;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-get-started {
    background: var(--secondary-color);
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(233, 33, 38, 0.3);
}

.btn-get-started:hover {
    background: #c91d21;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 33, 38, 0.4);
}

.btn-call-now {
    background: transparent;
    color: #666;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-call-now:hover {
    color: #1a1a2e;
    transform: translateX(5px);
}

.app-download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.store-button img {
    height: 50px;
    width: auto;
}

.hero-modern-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-phone-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: white;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 33, 38, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

/* Modern Features Section */
.features-modern {
    padding: 120px 0;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
}

.features-modern-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 100px;
    line-height: 1.3;
}

.features-modern-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 700px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Feature Card Positions */
.feature-top-left {
    grid-column: 1;
    grid-row: 1;
}

.feature-top-right {
    grid-column: 3;
    grid-row: 1;
}

.feature-bottom-left {
    grid-column: 1;
    grid-row: 3;
}

.feature-bottom-right {
    grid-column: 3;
    grid-row: 3;
}

.feature-phone-center {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-mockup-center {
    position: relative;
    width: 280px;
    height: 570px;
    background: #1a1a2e;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    z-index: 3;
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-screen-center {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: white;
}

.phone-screen-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-gradient-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(144, 195, 70, 0.2) 0%, rgba(233, 33, 38, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

/* Animations */
@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Old Hero Styles - Keep for compatibility */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}


.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.hero-video,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Animated Slider */
.animated-slider {
    padding: 80px 0;
    background-color: #fff;
}

.animated-slider h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-slide {
    flex: 0 0 300px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.product-slide:hover {
    transform: translateY(-10px);
}

.product-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-slide h3 {
    padding: 20px;
    font-size: 1.2rem;
}

.product-slide p {
    padding: 0 20px 20px;
    color: #666;
}

/* About Us - Modern */
.about-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
}

.about-header {
    text-align: center;
    margin-bottom: 70px;
}

.about-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.about-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
}

.about-content-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-icon i {
    font-size: 2.2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

/* Old About Styles - Keep for compatibility */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
}

/* Why BuyTown */
.why-buytown {
    padding: 80px 0;
    background-color: #fff;
}

.why-buytown h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
}

/* Services */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
}

.service i {
    font-size: 3rem;
    color: #ff6a00;
    margin-bottom: 20px;
}

/* Product Categories */
.product-categories {
    padding: 80px 0;
    background-color: #fff;
}

.product-categories h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.category {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category:hover img {
    transform: scale(1.1);
}

.category h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: white;
    padding: 25px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    backdrop-filter: blur(10px);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.step {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
}

/* Team */
.team {
    padding: 80px 0;
    background-color: #fff;
}

.team h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial cite {
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-map iframe {
    width: 100%;
    border-radius: 15px;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-qr-codes {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-qr-item {
    text-align: center;
}

.qr-code-small {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

.footer-qr-item p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.footer-social-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-social-row h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.app-store-icon {
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

/* App Download Section */
.app-download-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.app-download-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.app-download-section p {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #666;
}

.app-qr-container {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.qr-item {
    text-align: center;
}

.qr-code-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.qr-item h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Popup Modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 25px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
}

.popup-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.popup-image {
    background: linear-gradient(135deg, #faf8f5 0%, #f0ede8 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.popup-text {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.popup-text>p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.popup-features li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-popup-primary {
    background: var(--secondary-color);
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(233, 33, 38, 0.3);
}

.btn-popup-primary:hover {
    background: #c91d21;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(233, 33, 38, 0.4);
}

.btn-popup-secondary {
    background: transparent;
    color: #1a1a2e;
    padding: 16px 30px;
    border: 2px solid #1a1a2e;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-popup-secondary:hover {
    background: #1a1a2e;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        padding: 15px 20px;
    }

    .logo img {
        height: 45px;
    }

    .nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
    }

    .nav ul li {
        margin: 0;
    }

    .header-spacer {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 30px;
    }

    .slider-container,
    .testimonial-slider {
        padding: 20px;
    }

    .product-slide,
    .testimonial {
        flex: 0 0 280px;
    }

    /* Modern Hero Responsive */
    .hero-modern {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-modern-container {
        padding: 0 20px;
    }

    .hero-modern-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-modern-title {
        font-size: 2.2rem;
    }

    .hero-modern-description {
        font-size: 1rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-get-started,
    .btn-call-now {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-phone-image {
        max-width: 100%;
    }

    .phone-mockup {
        width: 280px;
        height: 570px;
    }

    .floating-pattern {
        width: 350px;
        height: 350px;
    }

    /* Modern Features Responsive */
    .features-modern {
        padding: 80px 0;
    }

    .features-modern-title {
        font-size: 1.8rem;
        margin-bottom: 60px;
        padding: 0 20px;
    }

    .features-modern-container {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 30px;
        padding: 0 20px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-phone-center {
        order: 3;
        margin: 30px 0;
    }

    .phone-mockup-center {
        width: 240px;
        height: 490px;
    }

    .center-gradient-blob {
        width: 300px;
        height: 300px;
    }

    /* About Modern Responsive */
    .about-modern {
        padding: 60px 0;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .about-content-modern {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 30px;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* Popup Responsive */
    .popup-content {
        width: 95%;
        max-height: 85vh;
    }

    .popup-body {
        grid-template-columns: 1fr;
    }

    .popup-image {
        padding: 30px;
        order: 2;
    }

    .popup-image img {
        max-width: 250px;
    }

    .popup-text {
        padding: 40px 30px 30px;
        order: 1;
    }

    .popup-text h2 {
        font-size: 2rem;
    }

    .popup-text>p {
        font-size: 1rem;
    }

    .popup-features li {
        font-size: 0.95rem;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .btn-popup-primary,
    .btn-popup-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        padding: 10px 20px;
    }

    .nav ul {
        margin: 20px 0;
    }

    .nav ul li {
        margin: 0 10px;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #333;
        margin-top: 10px;
    }

    .nav.active ul {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 30px;
    }

    .slider-container,
    .testimonial-slider {
        padding: 20px;
    }

    .product-slide,
    .testimonial {
        flex: 0 0 280px;
    }

    /* Modern Hero Responsive */
    .hero-modern {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-modern-container {
        padding: 0 20px;
    }

    .hero-modern-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-modern-title {
        font-size: 2.5rem;
    }

    .hero-modern-description {
        font-size: 1rem;
    }

    .phone-mockup {
        width: 280px;
        height: 570px;
    }

    .floating-pattern {
        width: 350px;
        height: 350px;
    }

    /* Modern Features Responsive */
    .features-modern {
        padding: 80px 0;
    }

    .features-modern-title {
        font-size: 2rem;
        margin-bottom: 60px;
        padding: 0 20px;
    }

    .features-modern-container {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 30px;
        padding: 0 20px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-phone-center {
        order: 3;
        margin: 30px 0;
    }

    .phone-mockup-center {
        width: 240px;
        height: 490px;
    }

    .center-gradient-blob {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .features-grid,
    .services-grid,
    .categories-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .product-slide,
    .testimonial {
        flex: 0 0 250px;
    }

    /* Modern Hero Mobile */
    .hero-modern-title {
        font-size: 2rem;
    }

    .hero-modern-description {
        font-size: 0.95rem;
    }

    .store-button img {
        height: 50px;
    }

    .phone-mockup {
        width: 240px;
        height: 490px;
    }

    /* Modern Features Mobile */
    .features-modern-title {
        font-size: 1.5rem;
    }

    .phone-mockup-center {
        width: 200px;
        height: 410px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }
}