/* =========================
   1. Root Variables & Base
   ========================= */
:root {
    --primary-color: #28295C;
    --secondary-color: #CA8828;
    --accent-purple: #6366f1;
    --text-dark: #1f2937;
    --text-light: #62748E;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    background-color: #F1F3FD;
}

/* =========================
   2. Layout & Structure
   ========================= */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    height: 60px;
}

.footer {
    background: #FFF;
    color:var(--primary-color);
    padding: 0 0 3rem;
}

.footer-logo {
    height: 70px;
}

.footer-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 1.4rem;
    font-weight: 400;
}

.footer-bottom-text{
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1.3rem;
}

.social-links a {
    color: var(--primary-color);
    margin-right: 1.3rem;
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-social-text{
    margin-right: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* =========================
   3. Sections
   ========================= */
.hero-section {
    background-color: #F1F3FD;
    background: url('../img/header-grid.png') no-repeat;
    background-size: cover;
    padding: 10rem 0 0;
    text-align: center;
    position: relative;
    height: 100vh;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #fbbf24);
    animation: underlineExpand 2s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.partners-section {
    padding: 3rem 0;
}

.partner-dt::-webkit-scrollbar{
    display: none;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.partner-logo {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

.partner-logo-container {
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    background: #FFFFFF;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 2.5rem;
    min-width: 200px;
}

.partner-logo-container:hover {
    transform: translateY(-5px);
}

.deals-section {
    /* background: linear-gradient(135deg, var(--primary-color) 0%, #363672 100%); */
    background: #2F3279;
    padding: 4rem 0 8rem;
    color: white;
}

.deals-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.category-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 230px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1.5rem;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.category-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-10px) scale(1.02);
    /* box-shadow: 0 15px 35px rgba(0,0,0,0.2); */
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(45deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2)); */
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover::before {
    background: linear-gradient(45deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-container{
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 50%;
    overflow: hidden;
    background: linear-gradient(360deg, var(--primary-color) 0%, rgba(40, 41, 92, 0) 100%);
    backdrop-filter: blur(1px);
    opacity: 1; 
    border-top-left-radius: 4px; 
    border-top-right-radius: 4px;
    z-index: 100;
}

.category-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2;
    transition: all 0.4s ease;
    transform: translateY(0);
    z-index: 100;
}

.category-card:hover .category-label {
    transform: translateY(-35px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }
.category-card:nth-child(10) { animation-delay: 1.0s; }
.category-card:nth-child(11) { animation-delay: 1.1s; }
.category-card:nth-child(12) { animation-delay: 1.2s; }


.category-card.animate-in {
    animation: slideInUp 0.6s ease-out both;
}

.contact-section {
    padding: 5rem 0;
    background: url('../img/header-grid-reverse.png') no-repeat center center;
    background-size: cover;
    background-color: #FBF6EB;
    position: relative;
    overflow: hidden;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.contact-title .highlight {
    color: var(--secondary-color);
}

.contact-image {
    border-radius: 16px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-image:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-form-container {
    background: #FFFFFF;
    box-shadow: 0px 9px 19px 0px #0000000F;
    border-radius: 8px;
}

.contact-section-form-title{
    color: var(--primary-color);
    font-weight: 700;
}

.contact-form-form-label{
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.88rem;
}

/* =========================
   4. Components
   ========================= */
.btn-partner {
    background: linear-gradient(180deg, #343799 0%, #343799 100%);
    color: white;
    border: 1px solid #3A41BB;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0px 1px 0px 0px #586ED978 inset;
}

.btn-partner:hover {
    background-color: #5b5bf5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-submit {
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #343799 0%, #343799 100%);
    box-shadow: 0px 1px 0px 0px #586ED978 inset;
    border: 1px solid #3A41BB
}

.btn-submit:hover {
    background-color: #5b5bf5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-1px);
    color: var(--accent-purple) !important;
}

/* =========================
   5. Utilities & Animations
   ========================= */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   6. Responsive
   ========================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .deals-title {
        font-size: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .category-card {
        height: 150px;
    }

    .category-card:hover {
        transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px) scale(1.01);
    }

    .contact-image {
        height: 300px;
        margin-bottom: 2rem;
    }

    .navbar:hover {
        transform: none;
    }

    .partner-logo-container:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .category-card {
        height: 120px;
        margin-bottom: 1rem;
    }

    .category-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .deals-title {
        font-size: 1.75rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .category-card {
        height: 160px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}