/* ==============================================
   MEMBCIDAE - Custom CSS Styles
   Author: Membcidae Design Team
   Version: 1.0
   ============================================== */

/* CSS Variables */
:root {
    --primary-dark: #122c91;
    --primary-medium: #2a6fdb;
    --primary-turquoise: #48d6d2;
    --primary-light: #81e9e6;
    --primary-pale: #fefcbf;
    
    --font-primary: 'Heebo', sans-serif;
    --font-secondary: 'Alike', serif;
    --font-accent: 'Lora', serif;
    
    --shadow-soft: 0 10px 40px rgba(18, 44, 145, 0.15);
    --shadow-medium: 0 20px 60px rgba(18, 44, 145, 0.25);
    --shadow-strong: 0 30px 80px rgba(18, 44, 145, 0.35);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-turquoise) 100%);
    --gradient-secondary: linear-gradient(45deg, var(--primary-turquoise) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(90deg, var(--primary-pale) 0%, var(--primary-light) 100%);
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-family: var(--font-accent);
    position: relative;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 44, 145, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 0;
    z-index: 9999;
    transform: translateY(100%);
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(18, 44, 145, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 44, 145, 0.8) 0%, rgba(42, 111, 219, 0.6) 50%, rgba(72, 214, 210, 0.4) 100%);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 111, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(42, 111, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 111, 219, 0);
    }
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: #ffffff;
}

/* Benefits Section */
.benefits-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.benefit-card {
    background: white;
    border-top: 2px solid var(--primary-light);
}

/* Map Section */
.map-section {
    padding: 120px 0;
    background: white;
}

.map-container {
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(72, 214, 210, 0.1) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Blog Section */
.blog-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(72, 214, 210, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}
.navbar-brand img{
    max-width: 200px;
    width: 200px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}
.blog-date {
    font-size: 0.9rem;
    color: var(--primary-medium);
    font-weight: 500;
}

.blog-title {
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-link {
    color: var(--primary-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-turquoise);
    text-decoration: none;
}

/* Footer */
.footer-section {
    background: var(--gradient-primary);
    color: white;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-wave .shape-fill {
    fill: #f8f9ff;
}

.footer-title {
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact .contact-item i {
    color: var(--primary-light);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 40px 0 30px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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 {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 13px 33px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .benefit-card,
    .blog-card {
        margin-bottom: 30px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .floating-element-1,
    .floating-element-2 {
        display: none;
    }
    
    .shape {
        display: none;
    }
    
    .why-choose-section .row {
        text-align: center;
    }
    
    .feature-item {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 100vh;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefit-card,
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .footer-section .container {
        padding: 40px 15px;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Selection Colors */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

::-moz-selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-medium);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Preloader (optional) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    font-size: 3rem;
    color: white;
    font-family: var(--font-accent);
    animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .cookie-banner {
        display: none;
    }
    
    .hero-section {
        height: auto;
        padding: 50px 0;
    }
    
    body {
        color: #000;
        background: white;
    }
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

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

/* Why Choose Us Section */
.why-choose-section {
    padding: 120px 0;
    background: var(--gradient-accent);
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(18, 44, 145, 0.05);
    animation: floatSlow 8s ease-in-out infinite;
}

.floating-element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.2rem;
}

.why-choose-image {
    position: relative;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    opacity: 0.8;
    z-index: -1;
}

/* Gallery Section */
.gallery-section {
    padding: 120px 0;
    background: white;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(18, 44, 145, 0.9));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.7;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -80px;
}

.carousel-control-next {
    right: -80px;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: #f8f9ff;
}

.accordion-item {
    border: none;
    border-radius: 15px !important;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    padding: 25px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
}

.accordion-button::after {
    background-image: none;
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.accordion-button:not(.collapsed)::after {
    content: none;
}

.accordion-body {
    padding: 30px;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(72, 214, 210, 0.1);
    position: relative;
    overflow: hidden;
}
