:root {
    --primary-color: #d81b60;
    --secondary-color: #ffb300;
    --background-color: #fef8f9;
    --text-color: #3f3f3f;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-font: 'Hind Siliguri', sans-serif;
    --body-font: 'Hind Siliguri', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #f06292;
    --secondary-color: #ffca28;
    --background-color: #212121;
    --text-color: #e0e0e0;
    --header-bg: #2c2c2c;
    --card-bg: #373737;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="blue"] {
    --primary-color: #1e88e5;
    --secondary-color: #64b5f6;
    --background-color: #e3f2fd;
    --text-color: #0d47a1;
    --header-bg: #bbdefb;
    --card-bg: #ffffff;
    --shadow-color: rgba(33, 150, 243, 0.3);
}

[data-theme="violet"] {
    --primary-color: #7e57c2;
    --secondary-color: #b39ddb;
    --background-color: #f3e5f5;
    --text-color: #4a148c;
    --header-bg: #d1c4e9;
    --card-bg: #ffffff;
    --shadow-color: rgba(142, 36, 170, 0.3);
}

[data-theme="misty-rose"] {
    --primary-color: #ff8a80;
    --secondary-color: #ffccbc;
    --background-color: #ffebee;
    --text-color: #bf360c;
    --header-bg: #ffcdd2;
    --card-bg: #ffffff;
    --shadow-color: rgba(244, 67, 54, 0.3);
}

[data-theme="light-gray"] {
    --primary-color: #616161;
    --secondary-color: #9e9e9e;
    --background-color: #f5f5f5;
    --text-color: #212121;
    --header-bg: #e0e0e0;
    --card-bg: #ffffff;
    --shadow-color: rgba(97, 97, 97, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    transition: background-color 0.5s, color 0.5s;
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Header --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 25px;
    background: transparent;
    transition: background-color 0.4s ease;
}

.menu-icon {
    font-size: 1.6rem; /* পরিবর্তিত */
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 3px; /* পরিবর্তিত */
    transition: transform 0.3s ease;
}

.menu-icon:hover {
    transform: scale(1.1);
}

.style-switcher-toggler {
    margin-left: auto;
    font-size: 1.6rem; /* পরিবর্তিত */
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.5s ease;
    padding: 3px; /* পরিবর্তিত */
    border: none;
    background: none;
}
.style-switcher-toggler:hover {
    transform: rotate(90deg);
}

/* Theme Panel */
.theme-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 25px var(--shadow-color);
    padding: 15px;
    z-index: 1001;
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-panel.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    animation: fadeInUp 0.5s ease;
}

.theme-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.active {
    border: 2px solid var(--text-color);
    transform: scale(1.1);
}

.theme-option[data-theme="default"] {
    background: linear-gradient(135deg, #d81b60 50%, #ffb300 50%);
}

.theme-option[data-theme="dark"] {
    background: linear-gradient(135deg, #212121 50%, #f06292 50%);
}

.theme-option[data-theme="blue"] {
    background: linear-gradient(135deg, #1e88e5 50%, #64b5f6 50%);
}

.theme-option[data-theme="violet"] {
    background: linear-gradient(135deg, #7e57c2 50%, #b39ddb 50%);
}

.theme-option[data-theme="misty-rose"] {
    background: linear-gradient(135deg, #ff8a80 50%, #ffccbc 50%);
}

.theme-option[data-theme="light-gray"] {
    background: linear-gradient(135deg, #616161 50%, #9e9e9e 50%);
}

/* --- Side Navigation Menu --- */
.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    background-color: var(--header-bg);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 3px 0 10px var(--shadow-color);
}

.side-nav.active {
    width: 280px;
}

.side-nav a {
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    display: block;
    transition: 0.3s;
    transform: translateX(-20px);
    opacity: 0;
}

.side-nav.active a {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.side-nav a:nth-child(1) { transition-delay: 0.1s; }
.side-nav a:nth-child(2) { transition-delay: 0.2s; }
.side-nav a:nth-child(3) { transition-delay: 0.3s; }
.side-nav a:nth-child(4) { transition-delay: 0.4s; }
.side-nav a:nth-child(5) { transition-delay: 0.5s; }
.side-nav a:nth-child(6) { transition-delay: 0.6s; }
.side-nav a:nth-child(7) { transition-delay: 0.7s; }

.side-nav a:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.05);
}

.side-nav .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    transition: transform 0.3s ease;
}

.side-nav .close-btn:hover {
    transform: rotate(90deg);
}

/* --- Section Control --- */
.view-container {
    display: none;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

.view-container.active {
    display: block;
}

.scroll-section,
.page-section-inner {
    min-height: 100vh;
    padding: 100px 25px 60px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.scroll-section {
    border-bottom: 1px solid var(--shadow-color);
}

#journey.scroll-section {
    border-bottom: none;
}

.page-section-inner.list-view {
    justify-content: flex-start;
}

.btn {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover:not(:disabled) {
    background: #c2185b;
    transform: translateY(-3px);
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 600;
    position: relative;
}

#home h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

#home h1 a {
    color: var(--primary-color);
}

.typewrite > .wrap {
    border-right: 0.08em solid var(--primary-color);
}

#home p {
    font-size: 1.2rem;
    max-width: 600px;
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* --- Timeline --- */
.timeline-container {
    position: relative;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    animation: growHeight 1.5s ease-out;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--card-bg);
    border: 4px solid var(--primary-color);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: left;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.timeline-item.visible .timeline-content {
    transform: translateX(0);
    opacity: 1;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.slider-container {
    width: 100%;
    max-width: 60vw;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease;
}

.slider-headline {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.03);
}

.slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    text-align: center;
    padding: 20px 10px 10px 10px;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.image-wrapper:hover .slide-title {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
  .slider-container {
    max-width: 90vw;
  }
}

/* --- Story / Content Boxes --- */
.story-layout {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px var(--shadow-color);
    max-width: 900px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.story-layout.animate {
    opacity: 1;
    transform: translateY(0);
}

.story-image {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden; /* Ensures the hover effect respects the border radius */
}

.story-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    transition: transform 0.3s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-text p {
    text-align: justify;
}

/* Clearfix for the container of the floated image */
.story-text::after {
    content: "";
    display: table;
    clear: both;
}

.content-list {
    width: 100%;
    max-width: 800px;
}

.content-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px var(--shadow-color);
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.content-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.content-list .content-box:last-child {
    margin-bottom: 0;
}

.content-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-box p {
    line-height: 2;
    text-align: justify;
    white-space:pre-line;
}

/* New styles for Letter section */
.letter-content-wrapper {
    max-height: 100px; /* Initial collapsed height */
    overflow: hidden;
    position: relative;
    text-align: justify;
    transition: max-height 0.4s ease-in-out; /* পরিবর্তিত */
}

.letter-content-wrapper.expanded {
    max-height: 1000px; /* A large value to allow full expansion */
}

/* Fade-out effect for collapsed text */
.letter-content-wrapper:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--card-bg), transparent);
    pointer-events: none; /* Allows clicking through the gradient */
}

.see-more-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background: var(--primary-color);
    color: #fff;
}


/* --- Contact Form --- */
.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    width: 100%;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 1s ease;
}

.contact-form-container p {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--shadow-color);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.2);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growHeight {
    from { height: 0; }
    to { height: 100%; }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

/* Heart Animation */
.heart-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.heart {
    position: absolute;
    font-size: 24px;
    animation: float 4s ease-in-out forwards;
    opacity: 0.7;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .scroll-section,
    .page-section-inner {
        padding: 80px 15px 40px 15px;
    }

    #home h1 {
        font-size: 2.2rem;
    }

    #home p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        left: 0 !important;
    }

    .timeline-item::after {
        left: 11px;
        right: auto;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .slide img {
        height: auto;
    }

    .story-layout {
        padding: 25px;
    }

    .story-image {
        float: none; /* মোবাইলে ফ্লোট বন্ধ করা হলো */
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 150px; /* মোবাইলের জন্য ছবির আকার ছোট করা হলো */
        margin-left: auto;
        margin-right: auto;
    }

    .content-box {
        padding: 25px;
    }

    .content-box h3 {
        font-size: 1.5rem;
    }

    .contact-form-container {
        padding: 25px;
    }
    
    .theme-panel {
        right: 10px;
        padding: 10px;
    }
    
    .theme-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Borel&display=swap');
    h1 {
  font-family: "Borel", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style:normal;

     }