/* Playfair Display Font */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/Playfair_Display/static/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/Playfair_Display/static/PlayfairDisplay-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Homepage Parallax Background */
.homepage-parallax-wrapper {
    position: relative;
    background-image: var(--homepage-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .homepage-parallax-wrapper {
        background-attachment: scroll;
    }
}

/* Header Styles */
header {
    z-index: 1000;
}

.navbar-nav .nav-link {
    color: #1a1a1a;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #2563eb;
}

/* Banner Styles */
.banner-section {
    position: relative;
    height: calc(100vh - 90px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    width: 100%;
    background-image: var(--banner-desktop);
    overflow: hidden;
}

.banner-section .mobile-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}
@media(min-width: 992px) {
    .banner-section .mobile-wrapper {
        background-color: rgba(255, 255, 255, 0.3);
    }
}

.banner-section .container-fluid {
    align-self: stretch;
    z-index: 2;
}

.banner-section .row {
    align-items: flex-start;
    min-height: 100%;
}

/* .banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 20%, rgba(255, 255, 255, 0.75) 30%, rgba(255, 255, 255, 0.65) 40%, rgba(255, 255, 255, 0.55) 54%, transparent 66%);
    pointer-events: none;
    z-index: 1;
} */
@media(max-width: 992px) {
    .banner-section::before {
        background: rgba(255, 255, 255, 0.75);
    }
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 80px 60px;
    text-align: left;
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.banner-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.btn-primary-custom {
    background-color: #5C6BC0;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(92, 107, 192, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: #4A5BB0;
    color: white;
    box-shadow: 0 4px 12px rgba(92, 107, 192, 0.4);
    transform: translateY(-2px);
}

/* Apply Playfair Display to all titles */
h1, h2, h3, h4, h5, h6,
.banner-title {
    font-family: 'Playfair Display', serif;
}

/* Partners Slider Styles */
.partners-section {
    background: linear-gradient(180deg, #F5F7FA 0%, #E8ECF4 100%);
    overflow: hidden;
}

.partners-swiper {
    padding: 20px 0;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo a {
    text-decoration: none;
    display: block;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 992px) {
    .banner-section {
        min-height: 500px;
    }
    
    .banner-content {
        padding: 60px 0;
    }
    
    .col-lg-6.offset-lg-6 {
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-description {
        font-size: 1.1rem;
    }
    
    .banner-section {
        min-height: 450px;
        background-image: var(--banner-mobile);
        align-items: center;
    }
    
    .banner-section .container-fluid {
        align-self: stretch;
        display: flex;
        align-items: center;
    }
    
    .banner-section .row {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .banner-section .col-lg-6 {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .banner-content {
        padding: 40px 0;
        text-align: center;
    }
    
    .partner-logo {
        height: 80px;
        padding: 15px;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
}

/* Structure Problem Section */
.structure-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.structure-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(92, 107, 192, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(92, 107, 192, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.structure-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.2;
}

.structure-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
}

.structure-problems {
    margin-top: 1rem;
}

.structure-problem-item {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.structure-problem-item i {
    color: #5C6BC0;
    font-size: 1.2rem;
}

.structure-solution {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.structure-solution strong {
    color: #2C3E50;
    font-weight: 600;
}

.structure-image-wrapper {
    position: relative;
    padding: 20px;
}

.structure-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* What We Deliver Section */
.delivers-section {
    background-color: transparent;
    padding: 80px 0;
}

.delivers-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 3rem;
}

.deliver-card {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.deliver-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.deliver-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.deliver-card-header i {
    color: #5C6BC0;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.deliver-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C3E50;
    margin: 0;
}

.deliver-card-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .structure-heading {
        font-size: 2.25rem;
    }
    
    .delivers-heading {
        font-size: 2rem;
    }
    
    .structure-image-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .structure-heading {
        font-size: 1.75rem;
    }
    
    .structure-intro,
    .structure-problem-item,
    .structure-solution {
        font-size: 1rem;
    }
    
    .delivers-heading {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .deliver-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .deliver-card-title {
        font-size: 1.25rem;
    }
}

/* Homepage Popup */
.homepage-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.homepage-popup.is-closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.homepage-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.homepage-popup-content {
    position: relative;
    max-width: 60vw;
    max-height: 60vh;
    z-index: 1;
}
@media(max-width: 768px) {
    .homepage-popup-content {
        max-width: 90vw;
        max-height: 90vh;
    }
}

.homepage-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #2C3E50;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.homepage-popup-close:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.homepage-popup-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
