                    :root {
            --color-env: #0077B2;
            --color-env2: #006699;
            --color-flap: #004466;
            --color-bg: #e6f2f8;
            --color-heart: #D00000;
            --env-border-radius: 6px;
            --env-width: 300px;
            --env-height: 200px;
            --heart-width: 50px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--color-bg);
            font-family: 'Arial', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            overflow: auto;
        }

        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--color-bg);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: opacity 1s ease, transform 1s ease;
        }

        .envlope-wrapper {
            height: calc(var(--env-height) + 200px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #envelope {
            position: relative;
            width: var(--env-width);
            height: var(--env-height);
            border-bottom-left-radius: var(--env-border-radius);
            border-bottom-right-radius: var(--env-border-radius);
            margin: 0 auto;
            background-color: var(--color-flap);
            box-shadow: 0 10px 30px rgba(0,0,0,.3);
            cursor: pointer;
        }

        .front { 
            position: absolute;
            width: 0;
            height: 0;
            z-index: 3;
        }

        .flap {
            border-left: calc(var(--env-width) / 2) solid transparent;
            border-right: calc(var(--env-width) / 2) solid transparent;
            border-bottom: calc(var(--env-height) / 2 - 10px) solid transparent;
            border-top: calc(var(--env-height) / 2 + 10px) solid var(--color-flap);
            transform-origin: top;
            pointer-events: none;
        }

        .pocket {
            border-left: calc(var(--env-width) / 2) solid var(--color-env);
            border-right: calc(var(--env-width) / 2) solid var(--color-env);
            border-bottom: calc(var(--env-height) / 2) solid var(--color-env2);
            border-top: calc(var(--env-height) / 2) solid transparent;
            border-bottom-left-radius: var(--env-border-radius);
            border-bottom-right-radius: var(--env-border-radius);
        }

        .letter {
            position: relative;
            background: white;
            width: 90%;
            margin: 0 auto;
            height: 90%;
            top: 5%;
            border-radius: var(--env-border-radius);
            box-shadow: 0 5px 20px rgba(0,0,0,.15);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        .letter-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--env-border-radius);
        }

        .open .flap {
            transform: rotateX(180deg);
            transition: transform .8s ease;
            z-index: 1;
        }

        .close .flap {
            transform: rotateX(0deg);
            transition: transform .8s .8s ease;
            z-index: 5;
        }

        .close .letter {
            transform: translateY(0px); 
            transition: transform .6s ease;
            z-index: 1;
        }

        .open .letter {
            transform: translateY(-120px);
            transition: transform .8s .8s ease;
            z-index: 2;
        }

        /* Resim yukarı çıkış animasyonu */
        .letter-float {
            animation: floatUp 2s ease-in-out forwards;
            animation-delay: 1.5s;
        }

        @keyframes floatUp {
            0% {
                transform: translateY(-120px) scale(1);
                opacity: 1;
            }
            50% {
                transform: translateY(-250px) scale(1.1);
                opacity: 0.8;
            }
            100% {
                transform: translateY(-600px) scale(0.8);
                opacity: 0;
            }
        }

        /* Loading screen kaybolma animasyonu */
        .fade-out {
            opacity: 0;
            transform: scale(1.1);
            pointer-events: none;
        }

        /* Ana içerik */
        .main-content {
            display: none;
            text-align: center;
            padding: 40px 20px;
            max-width: 800px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 1s ease;
        }

        .main-content.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .main-content h1 {
            color: var(--color-env);
            margin-bottom: 20px;
            font-size: 2.5em;
        }

        .main-content p {
            color: #333;
            font-size: 1.2em;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        /* Progress bar */
        .progress-bar {
            width: 200px;
            height: 4px;
            background: rgba(0,119,178,0.2);
            border-radius: 2px;
            margin: 20px auto;
            overflow: hidden;
        }

        .progress {
            width: 0%;
            height: 100%;
            background: var(--color-env);
            transition: width 3s ease;
        }

        .progress-full {
            width: 100%;
        }




/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }
/*** Spinner End ***/
        /* Video arka plan için stiller */
        .video-container {
            position: relative;
            width: 100%;
            height: 100vh; 
            overflow: hidden;
        }
        
        .video-background {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translateX(-50%) translateY(-50%);
            z-index: -1;
        }
        
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
        }
        
        .carousel-content {
            position: relative;
            z-index: 1;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        
        .border-style-double {
            border-style: double !important;
        }
        
        /* İçerik sonrası normal bölüm */
        .normal-content {
            padding: 80px 0;
            background-color: #f8f9fa;
        } 
        
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-primary-outline-0 {
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0 {
    color: var(--bs-primary) !important;
    border: 1px solid var(--bs-light);
}

.btn-primary-outline-0:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-secondary);
}

.img-border {
    border-color: var(--bs-secondary);
    border-style: double;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Great Vibes', cursive;
    font-weight: 700;
}


/*** Navbar Start ***/
.sticky-top {
    transition: 0.5s;
    background: var(--bs-white);
}


.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-family: 'Petit Formal Script', cursive;
    font-weight: 600;
    font-size: 16px;
    transition: .5s;
    position: sticky;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top.bg-white .navbar .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (min-width: 1200px) {
    .navbar .navbar-collapse .border-top {
        border-top: none !important;
    }
}
/*** Navbar End ***/

/*** Carousel Start ***/
.carousel-item {
    position: relative;
    min-height: 100vh
    
}

.carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: end;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.4));
    background-size: cover;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
}

.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
    background: transparent;
}

#carouselId .carousel-indicators {
    padding-bottom: 30px;
}

#carouselId .carousel-indicators li {
    border-top: 10px solid var(--bs-white);
    border-bottom: 10px solid var(--bs-white);
    border-right: 5px solid var(--bs-white);
    border-left: 5px solid var(--bs-white);
    margin-right: 10px;
    transition: 0.5s;
}

#carouselId .carousel-indicators li.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    border-right: 15px solid var(--bs-primary);
    border-left: 15px solid var(--bs-primary);
}
/*** Carousel End ***/


/*** Wedding Story Start ***/
.story .story-timeline,
.story .story-timeline .row {
    position: relative;
}

.story .story-timeline::before,
.story .story-timeline::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 15px;
    background: var(--bs-secondary);
    border-radius: 10px;
    left: 50%;
    top: -7px;
    transform: translateX(-50%);
}

.story .story-timeline::after {
    top: auto;
    bottom: -7px;
}

.story .story-timeline .row::after {
    position: absolute;
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 30px;
    color: var(--bs-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .story .story-timeline::before,
    .story .story-timeline::after,
    .story .story-timeline .row::after  {
        display: none;
    }
}
/*** Wedding Story End ***/

/*** Wedding Date Start ***/
.wedding-date-bg .wedding-date {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(../img/wedding-date-bg.jpg) center;
    object-fit: cover;
    background-repeat: no-repeat;
}

.wedding-date-bg .wedding-date::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.wedding-date-bg .wedding-date .wedding-date-content {
    position: relative;
    z-index: 9;
}
/*** Wedding Date End ***/


/*** Wedding Timeline Start ***/
@media (max-width: 576px) {
    .wedding-timeline .wedding-content .heart-circle {
        display: none;
    }
}
/*** Wedding Timeline End ***/


/*** Gallery Start ***/
.gallery .gallery-img {
    position: relative;
    overflow: hidden;
}

.gallery .gallery-img .hover-style {
    width: 0;
    height: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 1s;
}

.gallery .gallery-img:hover .hover-style {
    width: auto;
    height: auto;
    border: 600px solid rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.gallery .gallery-img img {
    transition: 0.5s;
}

.gallery .gallery-img:hover img {
    transform: scale(1.3);
}

.gallery .gallery-item .gallery-overlay {
    transition: 0.5s;
}

.gallery .gallery-item:hover .gallery-overlay {
    background: transparent !important;
    border: 0 !important;
}

.gallery .gallery-img .search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 2;
    
}

.gallery .gallery-img:hover .search-icon {
    opacity: 1;
}
/*** Gallery End ***/


/*** team Start ***/
.team .team-item {
    position: relative;
    overflow: hidden;
}

.team .team-item .team-content {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    transition: 0.5s;
    z-index: 4;
}

.team .team-item:hover .team-content {
    background: rgba(0, 0, 0, .5);
}

.team .team-item .team-content {
    text-align: center;
}

.team .team-item .team-social {
    position: absolute;
    top: -180px;
    right: 15px;
    z-index: 5;
    transition: 0.5s;
}

.team .team-item:hover .team-social {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}

.team .team-item .team-img {
    position: relative;
    overflow: hidden;
    border-color: var(--bs-secondary);
    border-style: double;
}

.team .team-item .team-img .team-img-main {
    position: relative;
    z-index: 3;
}

.team .team-item .team-img .team-img-main img,
.team .team-item .team-img .team-img-bg img {
    transition: 0.5s;
}

.team .team-item:hover .team-img .team-img-main img,
.team .team-item:hover .team-img .team-img-bg img {
    transform: scale(1.1);
}
/*** Team End ***/


/*** Contact Us Start ***/
.RSVP-form {
    background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
    object-fit: cover;
}
/*** Contact Us End ***/


/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/footer-bg.jpg) center center;
    background-size: cover;
    background-repeat: no-repeat;
  
}

.footer .footer-item a.btn-link,
.footer .footer-item p {
    line-height: 35px;
    font-size: 17px;
    color: var(--bs-light);
    transition: 0.5s;
}

.footer .footer-item a.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .footer .text-start,
    .footer .text-center,
    .footer .text-end {
        text-align: center !important;
    }
}
/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}
/*** copyright end ***/

/* Takvim Stilleri */
.datepicker-container {
    position: relative;
    width: 100%;
}

.datepicker-container .form-control[type="date"] {
    width: 100%;
    padding: 15px 45px 15px 15px;
    font-size: 16px;
    border: none;
    background-color: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.datepicker-container::after {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 18px;
    pointer-events: none;
}

/* Takvim açıldığında stil */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
}

/* Tarih input'unun placeholder'ı */
input[type="date"]:invalid::-webkit-datetime-edit {
    color: #999;
}

/* Takvim dropdown stil */
input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

input[type="date"]::-webkit-clear-button {
    display: none;
}

/* Takvim açıldığında arka plan */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: transparent;
}

/* Mobilde takvim stilleri */
@media (max-width: 768px) {
    .datepicker-container .form-control[type="date"] {
        font-size: 16px !important;
        padding: 12px 40px 12px 12px;
    }
    
    .datepicker-container::after {
        font-size: 16px;
        right: 12px;
    }
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .carousel-content h1.display-1 {
        font-size: 2.5rem !important;
    }
    
    .carousel-content .d-inline-block h4 {
        font-size: 1rem !important;
    }
    
    /* Hello! bölümü mobil düzeni */
    .container-fluid.position-relative.py-5 .d-flex {
        flex-direction: column !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    
    .container-fluid.position-relative.py-5 .d-flex .text-end,
    .container-fluid.position-relative.py-5 .d-flex .text-start {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .container-fluid.position-relative.py-5 .d-flex img {
        margin-bottom: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* About bölümü mobil düzeni */
    .container-fluid.position-relative.overflow-hidden.bg-secondary.py-5 .d-flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .tab-class .nav.d-flex.mb-4 {
        flex-direction: column !important;
    }
    
    .tab-class .nav.d-flex.mb-4 .nav-item {
        margin-bottom: 10px !important;
    }
    
    .tab-class .nav.d-flex.mb-4 .nav-item a {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Story bölümü mobil düzeni */
    .story .story-timeline .row {
        flex-direction: column !important;
        margin-bottom: 30px !important;
    }
    
    .story .story-timeline .col-md-6 {
        width: 100% !important;
        border: none !important;
        padding: 15px !important;
    }
    
    .story .story-timeline .col-md-6.text-end {
        text-align: center !important;
    }
    
    .story .story-timeline .d-inline-flex.align-items-center.h-100 {
        justify-content: center !important;
        margin-bottom: 20px !important;
    }
    
    .story .story-timeline .d-inline-flex.align-items-center.h-100 img {
        margin-left: 0 !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Wedding date timer */
    .wedding-date-bg .wedding-date .d-flex.align-items-center.justify-content-center.mb-5 {
        flex-wrap: wrap !important;
    }
    
    .wedding-date-bg .wedding-date .d-flex.align-items-center.justify-content-center.mb-5 > div {
        margin: 10px !important;
        flex: 0 0 calc(50% - 20px) !important;
    }
    
    /* Wedding timeline */
    .wedding-timeline .wedding-content .row.g-4 {
        flex-direction: column !important;
    }
    
    .wedding-timeline .wedding-content .col-6,
    .wedding-timeline .wedding-content .col-md-6,
    .wedding-timeline .wedding-content .col-xl-3 {
        width: 100% !important;
        border: none !important;
        margin-bottom: 20px !important;
    }
    
    /* Gallery */
    .gallery .col-md-6 {
        margin-bottom: 20px !important;
    }
    
    /* RSVP Form */
    .RSVP-form .form-control {
        font-size: 16px !important;
    }
    
    /* İletişim bilgileri */
    .RSVP-form .row.g-5.justify-content-center.text-center .col-md-4 {
        margin-bottom: 20px !important;
    }
    
    /* Footer */
    .footer .row.g-5.justify-content-center .col-lg-4 {
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .footer .row.g-5.justify-content-center .text-start,
    .footer .row.g-5.justify-content-center .text-end {
        text-align: center !important;
    }
    
    /* Harita */
    .RSVP-form iframe {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .carousel-content h1.display-1 {
        font-size: 2rem !important;
    }
    
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    h1.display-4 {
        font-size: 1.8rem !important;
    }
    
    /* Video container */
    .video-container {
        height: 80vh !important;
    }
    
    .carousel-content {
        height: 80vh !important;
        padding: 20px !important;
    }
    
    /* Butonlar */
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .btn.py-3.px-5 {
        padding: 12px 24px !important;
    }
    
    /* Navbar */
    .navbar-nav {
        text-align: center !important;
    }
    
    /* Form alanları */
    .form-check {
        justify-content: center !important;
    }
    
    .RSVP-form .border-secondary.p-4 {
        padding: 15px !important;
    }
    
    /* Copyright */
    .copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 400px) {
    .carousel-content h1.display-1 {
        font-size: 1.5rem !important;
    }
    
    .display-1 {
        font-size: 2rem !important;
    }
    
    .btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .carousel-content .d-inline-block h4 {
        font-size: 0.9rem !important;
        padding: 5px 10px !important;
    }
}