/* Custom Design System for Kalp Yetersizliği Kongresi */
:root {
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-dark: #0b090a;
    --text-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
    padding-top: 105px;
    /* Offset for fixed navbar */
}

/* Custom Red Scrollbar */
html {
    scrollbar-width: auto;
    scrollbar-color: var(--primary-color) #f1f5f9;
}

::-webkit-scrollbar {
    width: 18px !important;
}

::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color) !important;
    border-radius: 20px !important;
    border: 4px solid #f1f5f9 !important;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark) !important;
}

/* Sticky & Shrinking Navbar Redesign */
.navbar {
    position: fixed;
    /* Fixed to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 22px 0;
    /* Larger initial padding */
}

.navbar .navbar-brand img {
    height: 55px;
    /* Initial logo height */
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 0;
    /* Significantly smaller on scroll */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
    /* Smaller logo on scroll */
}

/* Animated Bottom Band */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e63946, #7d2ae8, #e63946);
    background-size: 200% 100%;
    animation: moveGradient 3s linear infinite;
    z-index: 10;
}

@keyframes moveGradient {
    0% {
        background-position: 100% 0%;
    }

    100% {
        background-position: -100% 0%;
    }
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 700;
    font-size: 0.78rem;
    /* Slightly smaller to fit */
    letter-spacing: 0.3px;
    /* Tighter letter spacing */
    padding: 8px 14px !important;
    /* Narrower padding */
    margin: 0 1px;
    /* Closer gaps between items */
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50px;
    z-index: 1;
    white-space: nowrap;
    /* Prevent individual link wrapping */
}

.navbar-nav {
    flex-wrap: nowrap;
    /* Prevent overall menu wrapping */
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(230, 57, 70, 0.08);
    /* Soft red glow */
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background: url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    overflow: visible;
    /* Essential for the shadow and overlap overlap */
}

/* Drifting Clouds Effect */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.cloud-1 {
    width: 320px;
    height: 180px;
    top: 5%;
    background-image: url('../img/cloud1.png');
    animation: drift 50s linear infinite;
}

.cloud-2 {
    width: 450px;
    height: 250px;
    top: 35%;
    background-image: url('../img/cloud2.png');
    animation: drift 65s linear infinite -15s;
    opacity: 0.6;
}

.cloud-3 {
    width: 380px;
    height: 200px;
    top: 15%;
    background-image: url('../img/cloud3.png');
    animation: driftReverse 55s linear infinite;
    opacity: 0.7;
}

@keyframes drift {
    0% {
        transform: translate3d(-400px, 0, 0);
    }

    100% {
        transform: translate3d(100vw, 0, 0);
    }
}

@keyframes driftReverse {
    0% {
        transform: translate3d(100vw, 0, 0);
    }

    100% {
        transform: translate3d(-400px, 0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.event-name-img {
    max-width: 500px;
    height: auto;
    animation: fadeInUp 1s ease-out;
}

.countdown-container {
    margin-top: 20px;
    margin-left: 80px;
    ;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 12px 5px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.15);
}

.countdown-value {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    display: block;
    margin-bottom: 2px;
}

.countdown-label {
    color: var(--secondary-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
}

.heart-container {
    position: relative;
    text-align: center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    padding-right: 20px;
    margin-top: -60px;
}

.heart-img {
    max-width: 90%;
    height: auto;
    animation: heartbeat 2s ease-in-out infinite, fadeInUp 1.2s ease-out;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 5;
    margin-right: -70px;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.08);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Access Cards Styling */
.quick-access-bar {
    margin-top: -65px;
    /* Deep overlap for integrated look */
    position: relative;
    z-index: 100;
}

.quick-action-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 20px 20px;
    border-radius: 20px;
    text-decoration: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.5s ease;
    z-index: -1;
}

.quick-action-card:hover::before {
    left: 0;
}

.quick-action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 20px;
    transition: all 0.4s ease;
}

.quick-action-card:hover .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(10deg);
}

.card-text-wrapper {
    flex: 1;
}

.card-label {
    display: block;
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 2px;
    transition: color 0.4s ease;
}

.card-sublabel {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    transition: color 0.4s ease;
}

.quick-action-card:hover .card-label,
.quick-action-card:hover .card-sublabel {
    color: #ffffff;
}

.card-arrow {
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.quick-action-card:hover .card-arrow {
    color: #ffffff !important;
    transform: translateX(5px);
}

/* Modern Layout Styles */
.section-padding {
    padding: 100px 0;
}

.bg-soft-primary {
    background-color: #f8fbff;
}

.premium-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    position: relative;
    margin-bottom: 30px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* Modern Accordion */
.modern-accordion .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 12px;
}

.modern-accordion .accordion-button {
    background: #ffffff !important;
    color: var(--secondary-color) !important;
    border-radius: 15px !important;
    font-weight: 700;
    padding: 18px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.modern-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.2);
}

.modern-accordion .accordion-button::after {
    filter: sepia(1) saturate(5) hue-rotate(180deg);
}

.modern-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.modern-accordion .accordion-body {
    background: #ffffff;
    border-radius: 0 0 15px 15px;
    margin-top: -10px;
    padding: 30px 25px 25px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.list-custom {
    list-style: none;
    padding-left: 0;
}

.list-custom li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #4a5568;
}

.list-custom li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

/* Info Cards */
.info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
    min-height: -webkit-fill-available;
}

.info-card:hover {
    transform: translateY(-12px);
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    transform: rotate(360deg) scale(1.1);
    background: var(--primary-color);
    color: #ffffff;
}

/* Genel Bilgiler Premium Design */
.genel-bilgiler-premium {
    background: linear-gradient(rgba(248, 250, 252, 0.72), rgba(248, 250, 252, 0.52)),
        url('../img/kibris.jpg') no-repeat center bottom;
    background-size: 110%;
    /* Initial zoom for the animation to work */
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: bgMovement 40s infinite linear alternate;
}

@keyframes bgMovement {
    0% {
        background-size: 110%;
        background-position: center bottom;
    }

    50% {
        background-size: 125%;
        background-position: center 20%;
    }

    100% {
        background-size: 110%;
        background-position: center bottom;
    }
}

.premium-bg-elements {
    display: none;
    /* Removed blobs for a cleaner photo-background look */
}

/* Davet Section Redesign */
.davet-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #eee;
    margin-top: -110px;
    padding-top: 120px;
}

.davet-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.15;
}

.shape-top {
    top: -100px;
    right: -100px;
    background: var(--primary-color);
}

.shape-bottom {
    bottom: -100px;
    left: -100px;
    background: var(--secondary-color);
}

.invitation-premium-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #f87171);
}

.invitation-icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
}

.invitation-lead {
    font-size: 1.25rem;
    color: var(--secondary-color) !important;
}

.davet-text-content p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.sig-item h6 {
    font-size: 1.05rem;
    font-weight: 800;
}

.sig-item span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Dates Glass Card */
.dates-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 40px 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    height: 100%;
    position: relative;
    z-index: 1;
}

.dates-header {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.modern-timeline {
    position: relative;
    padding-left: 30px;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    width: 2px;
    height: 80%;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.time-marker {
    position: absolute;
    left: -28px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item.active .time-marker {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.timeline-item.deadline .time-marker {
    border-color: #f59e0b;
}

.time-content label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-content strong {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.location-pill {
    background: rgba(230, 57, 70, 0.05);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.hotel-slider {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.hotel-slider .carousel-item img {
    height: 250px;
    object-fit: cover;
    transition: transform 5s ease;
}

.hotel-slider:hover .carousel-item img {
    transform: scale(1.1);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 10;
}

.hotel-slider .carousel-caption {
    z-index: 20;
    bottom: 10px;
    left: 20px;
    right: 20px;
    text-align: center;
}

.hotel-slider .carousel-control-prev-icon,
.hotel-slider .carousel-control-next-icon {
    background-color: var(--primary-color);
    background-size: 40% 40%;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hotel-slider .carousel-control-prev,
.hotel-slider .carousel-control-next {
    z-index: 100;
    width: 15%;
    opacity: 0 !important;
    /* Hidden by default */
    transition: opacity 0.4s ease;
}

.hotel-slider:hover .carousel-control-prev,
.hotel-slider:hover .carousel-control-next {
    opacity: 1 !important;
    /* Visible on hover */
}

@media (max-width: 991.98px) {
    .signature-grid {
        grid-template-columns: 1fr;
    }

    .invitation-premium-card {
        border-radius: 20px;
    }
}

/* Footer Section */
/* Advanced Footer Design */
.footer {
    background-color: #0f172a;
    /* Deep elegant dark */
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.footer-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: footerFloat 8s infinite alternate ease-in-out;
    opacity: 0.6;
}

.footer-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, transparent 70%);
    top: -100px;
    right: -5%;
}

.footer-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(125, 42, 232, 0.35) 0%, transparent 70%);
    bottom: -50px;
    left: -10%;
    animation-delay: -3s;
    animation-duration: 12s;
}

.footer-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.25) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: footerPulse 10s infinite alternate ease-in-out;
}

@keyframes footerFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(120px, 100px) scale(1.3) rotate(30deg);
    }
}

@keyframes footerPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.container-footer {
    position: relative;
    z-index: 10;
}


/* Responsive */
@media (max-width: 991.98px) {
    .event-name-img {
        max-width: 85%;
        /* Scaled for mobile */
        margin: 0 auto 30px;
    }

    .hero {
        text-align: center;
        height: auto;
        padding: 120px 0 60px;
    }

    .countdown-container .d-flex {
        justify-content: center !important;
        flex-wrap: wrap;
        /* Avoid vertical overflow on very small devices */
    }

    .countdown-item {
        min-width: 70px;
        /* Even smaller for mobile */
        padding: 10px 4px;
        margin-bottom: 5px;
    }

    .heart-container {
        justify-content: center !important;
        padding-right: 0 !important;
        margin-top: 20px;
    }

    .heart-img {
        max-width: 60%;
        margin-right: 0 !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .quick-access-bar {
        margin-top: -20px;
        /* Less overlap on mobile */
    }

    .davet-bg {
        margin-top: 0;
        /* No negative margin on mobile */
        padding-top: 40px;
        /* Standard padding */
    }
}

.minibaslik {
    font-size: 20px;
    font-weight: bold;
    color: #da6370;
}