* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #333;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 20px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.btn-apply {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-apply:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    margin-top: 90px;
    padding: 100px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    overflow: hidden;
    --hero-bg-opacity: 0.35;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Img/hero_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--hero-bg-opacity);
    z-index: 0;
    transition: opacity 0.1s ease-out;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
    text-shadow:
        0 2px 10px rgba(255, 255, 255, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.mobile-br {
    display: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.05);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.btn-cta {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Products Section */
.products {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 80px;
    color: var(--primary-color);
}

.product-tier {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-tier.visible {
    opacity: 1;
    transform: translateY(0);
}

.tier-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA Section with Fixed Background */
.cta-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('Img/background.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--secondary-color);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.btn-cta-white {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cta-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column p {
    margin-bottom: 8px;
    color: #ccc;
}

.footer-contact {
    text-align: right;
}

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

.admin-link {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.modal-close:hover {
    color: #999;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Tier Selection */
.tier-selection {
    margin-bottom: 30px;
}

.tier-selection h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.tier-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tier-btn {
    background-color: var(--light-gray);
    border: 2px solid transparent;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.tier-btn:hover {
    border-color: #ccc;
    background-color: #e8e8e8;
}

.tier-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Product Selection */
.product-selection {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-selection.active {
    max-height: 800px;
    opacity: 1;
    margin-bottom: 30px;
}

.product-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.product-selection-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.product-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--light-gray);
    padding: 8px 16px;
    border-radius: 20px;
}

.product-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    animation: slideUp 0.5s ease;
}

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

.product-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    border-color: #ccc;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.active {
    border-color: var(--primary-color);
    background-color: #e8e8e8;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.product-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Form Title and Summary */
.form-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.selected-products-summary {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.selected-products-summary p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 5px 0;
}

.selected-products-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.selected-products-summary .summary-item:last-child {
    border-bottom: none;
}

.selected-products-summary .summary-label {
    font-weight: 600;
    color: var(--primary-color);
}

.selected-products-summary .summary-value {
    font-weight: 500;
}

/* Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .mobile-br {
        display: inline;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-tier {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .tier-title {
        font-size: 1.6rem;
    }

    .cta-section {
        height: 400px;
        background-attachment: fixed;
    }

    .cta-title {
        font-size: 1.8rem;
        word-break: keep-all;
        line-height: 1.4;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tier-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 30px 20px;
    }

    .product-selection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .btn-apply {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-cta, .btn-cta-white {
        padding: 15px 35px;
        font-size: 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .tier-title {
        font-size: 1.4rem;
    }

    .cta-section {
        height: 350px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .tier-buttons {
        grid-template-columns: 1fr;
    }

    .product-items-grid {
        grid-template-columns: 1fr;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .tier-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* Smooth Scroll Animation */
html {
    scroll-behavior: smooth;
}