:root {
        --primary-color: #D0B8A8;
        --secondary-color: #333;
        --accent-color: #FF676D;
        --bg-light: #f6f5ee;
        --text-dark: #2f415e;
        --white: #fff;
    }

    body, html {
        margin: 0;
        padding: 0;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 26px;
        overflow-x: hidden; 
        width: 100%;
    }

    html {
        scroll-behavior: smooth;
    }

    #about-section, #profiles, #service-providers-section, #overview, #header {
        scroll-margin-top: 130px;
    }

    /* Navbar */
    .navbar {
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #c0c0c0;
        padding: 10px 40px;
        box-shadow: 0 4px 30px 10px rgba(0,0,0,0.1);
        width: 100%;
        height: 110px;
        position: fixed;
        top: 0;
        z-index: 1000;
        box-sizing: border-box; 
    }

    .navbar-left h1 {
        margin: 0;
        font-family: 'Calistoga', cursive;
        font-size: 50px;
        line-height: 1;
    }

    .navbar-center {
        flex: 1; 
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin: 0 20px; 
    }

    .search-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 650px; 
    }

    .navbar-center input { 
        width: 100%;
        height: 40px;
        padding: 5px 70px 5px 15px; 
        border: 1px solid #ccc;
        outline: none;
        border-radius: 20px;
        transition: box-shadow 0.3s ease;
        font-size: 16px;
    }

    .navbar-center input:focus {
      box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }
    
    .search-icons-group {
        position: absolute;
        right: 10px;
        display: flex;
        align-items: center;
        gap: 5px;
        height: 100%;
    }

    .navbar-center .icon-link {
        border: none;
        background: none;
        cursor: pointer;
        padding: 5px;
        color: #666;
        font-size: 16px;
        margin: 0;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-center .icon-link:hover {
        background-color: rgba(0,0,0,0.1);
        color: #333;
        transform: none; 
    }

    .navbar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-right button.nav-link {
    font-size: 16px;
    padding: 10px 26px;
    border-radius: 30px;
    cursor: pointer;
}
    
    .navbar-right button.nav-link:hover {
        background: #333;
        color: #fff;
    }

    .profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.profile-icon i {
    font-size: 32px;
}

.bell-icon {
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.bell-icon i {
    font-size: 32px;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Notification Badge */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF3B30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 50%;
    min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
    .navbar-icons {
        flex-direction: column; 
        gap: 20px;
        margin-top: 10px;
    }
}

.hamburger {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
    }

    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: #333;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Header/Hero */
    header {
        width: 100%;
        height: 610px; 
        margin-top: 90px;
        background-image: url(/img/Homebackground.jpg);
        background-size: 100% 100%; 
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }

    #header h1 {
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%);
        top: 60px; 
        text-align: center;
        width: 100%;
        margin: 0;
        font-size: clamp(32px, 4vw, 65px);
        background: url('https://media.giphy.com/media/U3qYN8S0j3bpK/giphy.gif') repeat; 
        background-position: 40% 50%; 
        background-clip: text; 
        -webkit-background-clip: text; 
        color: transparent; 
        text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.2); 
        font-family: 'Oleo Script', system-ui; 
        font-weight: 400;
        font-style: normal;
        padding: 0 10px;
        box-sizing: border-box; 
    }

    #header p {
        color: whitesmoke;
        font-weight: 750;
        font-family: 'DM Serif Display', serif; 
        position: absolute; 
        left: 50%; /* Modified from 52% */
        transform: translateX(-50%);
        bottom: 50px; 
        letter-spacing: 0.1rem;
        margin: 0;
        text-align: center;
        width: 100%;
        font-size: 1.5vw;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }

    .icon-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        color: white;
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .icon-link:not(.navbar-center .icon-link):hover {
        transform: scale(1.1);
    }

    .fas, .fab {
        color: inherit;
    }
    
    /* Popups */
    .user-popup {
        width: 250px; 
        position: absolute;
        top: calc(100% + 45px); 
        right: 0; 
        left: auto;
        transform: translateY(-10px);
        background-color: #fff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        visibility: hidden;
        opacity: 0;
        z-index: 1001;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    
    /* Arrow for popup */
    .user-popup::before {
        content: "";
        position: absolute;
        top: -10px;
        right: 15px; 
        left: auto; 
        transform: none; 
        border-width: 0 10px 10px 10px;
        border-style: solid;
        border-color: transparent transparent #fff transparent;
    }
    
    .user-popup.open-popup {
       visibility: visible;
       opacity: 1;
       transform: translateY(0);
    }

    .user-popup h6 {
        font-family: 'DM Serif Display', serif; 
        font-size: 15px; 
        font-weight: 600; 
        margin: 5px 0 10px 0;
        text-align: center;
        line-height: 1.3;
    }

    .user-popup button {
        font-family: 'DM Serif Display', serif;
        font-weight: 700; 
        font-size: 14px; 
        width: 100%; 
        padding: 5px;
        border-radius: 15px; 
        background: #D0B8A8;
        border: none;
        color: white;
        cursor: pointer;
    }

    .profile-container {
        position: relative;
    }
    
    .profile-icon-btn {
        background: none;
        border: none;
        padding: 0;
        height: auto;
        width: auto;
    }
    
    .profile-icon i {
        color: black;
    }

    .popup {
        width: 85%; 
        max-width: 320px; 
        background-color: #fff;
        border-radius: 12px;
        position: absolute;
        top: 50%;
        left: 50%; 
        transform: translate(-50%, -50%) scale(0.1);
        text-align: center;
        padding: 15px 20px; 
        color: #333;
        visibility: hidden;
        transition: transform 0.4s, top 0.4s;
        box-shadow: 0 5px 30px rgba(0,0,0,0.3);
        z-index: 10000;
        word-wrap: break-word; 
    }

    .open-popup {
        visibility: visible;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
    }

    .popup p, .popup ul {
        color: black;
        text-align: left;
        font-size: 16px; 
        margin: 0;
        padding: 0;
    }
    
    .popup h5 {
        font-size: 20px; 
        font-weight: 600;
        margin: 10px 0;
        color: #333;
    }

    .popup-list {
        list-style: none;
        padding: 0;
        margin: 10px 0;
        width: 100%;
        text-align: left;
    }

    .popup-list li {
        margin-bottom: 8px;
        font-size: 16px; 
        display: flex;
        align-items: center;
        gap: 8px;
        color: #444;
        word-break: break-all;
    }
    
    .popup h2 {
        font-size: 32px;
        font-weight: 500;
        margin: 10px 0;
    }

    .popup button {
        width: 100%;
        margin-top: 20px;
        padding: 10px 0;
        background-color: #D0B8A8;
        color: #fff;
        border: 0;
        outline: none;
        font-size: 18px;
        border-radius: 4px;
        cursor: pointer;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    }

    /* Sections */
    .how-it-works {
        background: linear-gradient(180deg, #fff 0%, #f6f5ee 100%); 
        padding: 80px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }
    .content-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px; 
        align-items: center;
        max-width: 1200px; 
        width: 100%;
        margin: 0 auto; 
    }
    .text-content {
        text-align: left;
    }

    .how-it-works h2 {
        font-family: 'DM Serif Display', serif;
        font-size: 2rem;
        color: #333;
        margin-bottom: 30px;
        position: relative;
        display: inline-block;
    }

    .tabs {
        display: inline-flex;
        background-color: #eaeaea;
        padding: 5px;
        border-radius: 50px;
        gap: 0;
        margin-bottom: 30px;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    }
    .tab {
        padding: 12px 25px;
        font-size: 1rem;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #777;
        font-weight: 600;
        border-radius: 40px;
        transition: all 0.3s ease;
        font-family: 'Poppins', sans-serif;
    }
    .tab.active {
        background-color: #fff;
        color: #333;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .checklist {
        list-style: none;
        padding: 0; 
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .checklist li {
        font-size: 1rem; 
        color: #444;
        background: #fff;
        padding: 15px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        display: flex;
        align-items: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid rgba(0,0,0,0.03);
    }
    
    .checklist li:hover {
        transform: translateX(10px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }

    .checkmark {
        background: linear-gradient(135deg, #34d399 0%, #059669 100%);
        color: white;            
        border-radius: 50%;      
        width: 32px; 
        height: 32px; 
        display: flex;           
        align-items: center;     
        justify-content: center; 
        font-size: 16px;
        margin-right: 20px; 
        flex-shrink: 0; 
        box-shadow: 0 4px 10px rgba(52, 211, 153, 0.3);
    }
    .get-started {
        background: linear-gradient(135deg, #D0B8A8 0%, #bca595 100%);
        color: white;
        border: none;
        font-size: 1.2rem;
        padding: 15px 40px;
        cursor: pointer;
        border-radius: 50px;
        transition: all 0.3s ease;
        font-weight: 600;
        box-shadow: 0 10px 20px rgba(208, 184, 168, 0.4);
        font-family: 'DM Serif Display', serif;
        letter-spacing: 0.5px;
    }
    .get-started:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(208, 184, 168, 0.5);
    }
    
    .tab-content {
        display: none;
        animation: fadeIn 0.5s ease-out forwards;
    }
    .tab-content.active {
        display: block;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .image-content {
        display: flex;
        justify-content: center;
        position: relative;
    }
    .image-content img {
        width: 100%; 
        max-width: 600px;
        height: auto; 
        object-fit: contain;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    }
    
    /* About Section */
    .about-section {
        padding: 60px 20px;
        background-color: #fff;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center; 
    }
    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 100px; 
        max-width: 1200px; 
        width: 100%;
        align-items: center;
        margin: 0 auto; 
    }
    .image-section {
        width: 100%;
        max-width: 500px;
        perspective: 1000px; 
    }

    .flip-card {
        width: 100%;
        height: auto;
        cursor: pointer;
        background-color: transparent;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s;
        transform-style: preserve-3d;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front, .flip-card-back {
        position: relative; 
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .flip-card-front img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
    }

    .flip-card-back {
        position: absolute;
        top: 0;
        left: 0;
        background-color: #333; 
        color: white;
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%; 
        border-radius: 12px;
    }
    .description-section {
        padding: 20px;
    }
    .description-section h2 {
        font-size: 1.5rem;
        margin-top: 0; 
        margin-bottom: 25px;
    }
    .description-section p {
        font-size: 0.75rem;
        line-height: 1.7;
        margin-bottom: 25px;
        color: #555;
    }
    .learn-more {
        background-color: var(--primary-color);
        color: #fff;
        padding: 12px 30px;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        border-radius: 8px;
        font-weight: 600;
        font-family: 'DM Serif Display', serif;
    }
    .learn-more:hover {
        background-color: #bfa08e;
    }

    /* Profiles & Services Section Headers */
    .section-header-container {
        font-family: 'DM Serif Display', serif; 
        letter-spacing: 0.05rem; 
        position: relative; 
        text-align: center;
        padding-top: 40px;
    }
    
    .section-header-title {
        font-size: 2rem;
        margin: 20px 0;
        color: #333;
    }

    .section-header-container h3 {
        font-size: 1.5rem;
        margin: 10px 0 30px;
        color: #666;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 50px;
        box-sizing: border-box;
    }

    .filter-container {
        max-width: 1500px;
        margin: 0 auto 20px;
        padding: 0 50px; 
        display: flex;
        justify-content: flex-end;
        position: relative;
        box-sizing: border-box;
    }
    
    .filter-btn {
        background-color: #D0B8A8; 
        padding: 10px 20px; 
        cursor: pointer; 
        font-size: 16px; 
        display: inline-flex; 
        align-items: center; 
        border-radius: 8px;
        border: none;
        color: #fff;
        font-weight: 600;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    #filterDropdown {
        display: none; 
        background-color: #fff; 
        padding: 20px; 
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        width: 200px; 
        position: absolute; 
        top: 50px; 
        right: 40px; 
        z-index: 50;
        text-align: left;
        border: 1px solid #eee;
    }
    
    #filterDropdown label { 
        font-size: 14px; 
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: #555;
    }
    #filterDropdown select { 
        margin-bottom: 15px; 
        width: 100%; 
        padding: 8px; 
        border-radius: 5px; 
        border: 1px solid #ddd;
    }
    #filterDropdown button { 
        background-color: #D0B8A8; 
        padding: 10px; 
        width: 100%; 
        cursor: pointer; 
        border-radius: 5px; 
        border: none; 
        color: white;
        font-weight: bold;
    }

    /* Contact Us */
    .contact-section {
        background-color: #f6f5ee;
        padding: 60px 20px;
        margin-top: 50px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center; 
    }

    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 100px;
        max-width: 1200px;
        margin: 0 auto;
        align-items: start;
    }

    .contact-form h2 {
        font-family: 'DM Serif Display', serif;
        font-size: 2rem;
        color: #333;
        margin-bottom: 30px;
    }

    .contact-form form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-form input, .contact-form textarea {
        width: 100%;
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 16px;
        font-family: 'Poppins', sans-serif;
        box-sizing: border-box;
    }

    .contact-form textarea {
        resize: vertical;
        min-height: 120px;
    }

    .contact-form button {
        background-color: #D0B8A8;
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
        font-weight: 600;
        transition: background-color 0.3s;
        align-self: flex-start;
    }

    .contact-form button:hover {
        background-color: #333;
    }

    .contact-info {
        padding-top: 20px;
    }

    .contact-info h3 {
        font-family: 'DM Serif Display', serif;
        font-size: 1.5rem;
        margin-bottom: 25px;
        color: #333;
    }

    .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #555;
    }

    .contact-info a {
        display: inline-block;
        margin-top: 10px;
        color: #333;
        text-decoration: underline;
        font-weight: 600;
    }

    @media (max-width: 768px) {
        .contact-container {
            grid-template-columns: 1fr;
            gap: 40px;
        }
    }

    /* Cards & Swiper */
    .swiper {
        width: 100%;
        max-width: 1250px;
        margin: 0 auto !important; 
        padding: 40px 20px 60px !important; 
        box-sizing: border-box;
        padding: 40px 50px 60px !important; 
        box-sizing: border-box;
    }

    .card {
        width: 100%;
        height: 450px !important; 
        position: relative;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        margin: 0 auto; 
    }

    .card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        transform: translateY(-15px) !important; 
    }

    .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 190px; 
        width: 100%;
        background: #D0B8A8;
        border-radius: 20px 20px 0 0;
    }

    .card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px 20px;
        position: relative;
        z-index: 100;
        width: 100%;
        box-sizing: border-box;
        height: 100%;
    }

    .card .image {
        height: 150px;
        width: 150px;
        border-radius: 50%;
        padding: 4px;
        background-color: #fff;
        margin-top: 60px; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .card .image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .name-profession {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 35px; 
        text-align: center;
        flex-grow: 1;
    }

    .name-profession .name {
        font-size: 26px; 
        font-weight: 600;
        color: #333;
    }
    .name-profession .profession {
        font-size: 18px; 
        font-weight: 700; 
        margin-top: 5px;
        color: #666;
    }

    .card-btn {
        background: #FF676D;
        outline: none;
        border: none;
        color: #fff;
        padding: 10px 30px;
        border-radius: 25px;
        font-size: 16px;
        transition: all 0.3s ease;
        cursor: pointer;
        margin-bottom: 20px;
        box-shadow: 0 4px 10px rgba(255, 103, 109, 0.3);
    }
    
    .card-btn.secondary {
        background-color: #D0B8A8;
        font-family: 'DM Serif Display', serif;
        font-size: 18px;
        font-weight: 400;
        box-shadow: 0 4px 10px rgba(208, 184, 168, 0.4);
    }
    
    .card-btn:hover {
         transform: translateY(-2px);
         box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

    .swiper-pagination {
        bottom: 0 !important;
    }

    .swiper-pagination-bullet {
        height: 8px;
        width: 8px;
        transition: width 0.3s;
        border-radius: 4px;
        background: #D0B8A8;
        opacity: 0.5;
    }
    
    .swiper-pagination-bullet-active {
        width: 24px;
        background: #FF676D;
        opacity: 1;
    }

    .swiper-button-prev, .swiper-button-next {
        color: #D0B8A8;
        transition: all 0.3s ease;
        width: 50px;
        height: 50px;
        background: transparent;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -10px; 
        z-index: 10;
        cursor: pointer;
    }
    .swiper-button-prev {
        left: 0px; 
    }
    .swiper-button-next {
        right: 0px; 
    }
    .swiper-button-prev::after, .swiper-button-next::after {
        font-size: 30px;
        font-weight: bold;
    }
    
    .swiper-button-prev:hover, .swiper-button-next:hover {
        background: transparent;
        color: #FF676D;
        box-shadow: none; 
    }

    /* Footer */
    #footer-section {
        background-color: rgb(53, 49, 49);
        position: relative;
    }

    footer {
        color: rgb(165, 160, 160);
        font-family: 'Calistoga', cursive;
        padding: 60px 20px;
        display: grid; 
        grid-template-columns: 1.2fr 1fr 1fr; 
        gap: 80px;
        max-width: 1200px; 
        margin: 0 auto;
        justify-items: center; 
        align-items: start;
    }

    footer .feet {
        max-width: 100%;
        justify-self: start; 
    }
    footer .feet h1 {
        font-size: 50px; 
        color: white;
        margin-bottom: 20px;
        margin-top: 0;
    }
    footer .feet p {
        font-size: 16px; 
        line-height: 1.8;
        font-family: 'Poppins', sans-serif;
        margin: 0;
        font-weight: 400;
    }
    .feet .copyright p {
        font-size: 14px;
        opacity: 0.7;
        margin-top: 20px;
    }
    footer .feet2, footer .contact {
        min-width: 150px;
    }
    footer .feet2 p, footer .contact p {
        font-size: 28px; 
        color: white;
        margin-top: 0;
        margin-bottom: 25px;
    }

    footer .feet2 a {
        text-decoration: none;
        color: rgb(165, 160, 160);
        font-family: 'Poppins', sans-serif;
        display: block;
        text-align: left;
        margin-bottom: 12px;
        font-size: 18px; 
        transition: all 0.3s ease;
    }
    footer .feet2 a:hover {
        color: white;
        padding-left: 5px;
    }

    footer .contact a {
        text-decoration: none;
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px; 
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        margin-right: 10px;
        font-size: 24px;
        transition: all 0.3s ease;
    }
    
    footer .contact a:hover {
        background: #FF676D;
        transform: translateY(-3px);
    }
    
    /* Laptop/Desktop adjustments for footer spacing */
    @media (max-width: 1440px) {
        footer {
            gap: 30px;
            grid-template-columns: 1.3fr 0.8fr 0.8fr;
        }
        footer .feet h1 {
            font-size: 40px; 
        }
        footer .feet p {
            font-size: 16px; 
        }
        footer .feet2 p, footer .contact p {
            font-size: 26px; 
        }
        footer .feet2 a {
            font-size: 18px; 
        }
    }

    .scroll-top-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        font-size: 24px;
        background-color: #D0B8A8;
        color: white;
        padding: 0;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: none;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }

    .scroll-top-btn:hover {
        background-color: #333;
        transform: translateY(-3px);
    }

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

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

    ::-webkit-scrollbar-thumb {
        background-color: #D0B8A8;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background-color: #bfa08e;
    }

/* Student Home */
.chat-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
    z-index: 10;
}

.chat-icon:hover {
    background-color: #333; 
    transform: scale(1.1);
}

.popping-text {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background-color: #fff;
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    font-family: 'DM Serif Display', serif;
    font-size: 14px;
    animation: pop 2s infinite;
    transition: transform 0.3s ease;
    z-index: 10;
}

.popping-text span {
    margin-right: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.service-providers-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    margin-top: 30px;
}

.service-providers-section h2 {
    font-size: 28px;
    color: #222;
    font-weight: 600;
    margin: 20px auto;
    text-align: center;
}

.service-providers-table-container {
    overflow-x: auto;
    margin: 0 auto;
    width: 90%;
}

.service-providers-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    min-width: 600px;
}

.service-providers-table th,
.service-providers-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}

.service-providers-table th {
    background-color: #D0B8A8;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-providers-table tr:hover {
    background-color: #f5faff;
    transition: background-color 0.3s ease;
}

.service-providers-table td a {
    color: #D0B8A8;
    text-decoration: none;
    font-weight: 500;
}

.service-providers-table td a:hover {
    text-decoration: underline;
}

/* Service Filters */
.service-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #D0B8A8;
    background-color: transparent;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Serif Display', serif;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #D0B8A8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(208, 184, 168, 0.4);
}

.decorated-heading {
  font-size: 28px;
  text-align: center;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
}

.decorated-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #D0B8A8;
  margin: 10px auto 0;
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
    .decorated-heading {
        font-size: 22px; 
    }

    .service-providers-section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .service-providers-table-container {
        width: 100%;
        padding: 0 10px;
    }

    .service-providers-table {
        font-size: 14px;
        min-width: 600px; 
    }

    .service-providers-table th,
    .service-providers-table td {
        padding: 10px 12px;
        white-space: nowrap; 
    }
}


.roommateSwiper .card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
    position: relative;
    min-height: 350px; 
}

.roommateSwiper .card:hover {
    transform: translateY(-6px);
}

.image-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 120px;
    background-color: #D0B8A8;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.image-container img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #fff;
    position: absolute;
    bottom: -60px; 
    left: 50%;
    transform: translateX(-50%);
}

.roommateSwiper .card h3 {
    margin: 190px 0 10px;
    font-size: 20px;
    color: #333;
}

.roommateSwiper .card p {
    font-size: 14px;
    color: #444;
    margin: 5px 10px;
    line-height: 1.4;
    word-wrap: break-word;
}

    /* Responsive Design */
    @media (max-width: 1024px) {
        .popping-text {
            position: absolute;
            top: auto;
            bottom: 90px; 
            left: auto;
            transform: none;
            width: auto;
            max-width: 60%; 
            right: 20px;
            justify-content: flex-end; 
            z-index: 1001;
            flex-wrap: nowrap; 
            padding: 8px 12px; 
            animation: none; 
        }
        
        .popping-text span {
            font-size: 11px !important;
            white-space: nowrap; 
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 5px;
            flex: 1; 
        }

        .navbar {
            padding: 10px 20px;
        }

        .navbar-left {
            order: 1;
        }

        .navbar-center {
            order: 2;
            flex: 1; 
            display: flex;
            margin: 0 20px;
        }

        .hamburger {
            display: block; 
            order: 3;
            margin-left: 0;
            z-index: 1002;
        }

        .navbar-right {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: #c0c0c0;
            flex-direction: column;
            gap: 20px;
            padding: 20px 0;
            display: none; 
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            order: 4;
        }

        .navbar-right.active {
            display: flex;
        }
        
        header {
            height: 500px; 
        }
        
        #header h1 {
            font-size: 48px;
        }
        
        #header p {
            font-size: 20px;
        }

        .how-it-works h2 {
            font-size: 3.3rem; 
        }

        .content-container, .grid-container {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 50px;
        }
        
        .text-content {
            text-align: center;
        }

        .tabs {
            justify-content: center;
        }

        .checklist {
            display: inline-block; 
            text-align: left;
        }

        .image-content, .image-section {
            justify-content: center;
        }

        .image-section {
            margin: 0 auto;
        }
    }


    @media (max-width: 768px) {
        .user-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 80%;
            max-width: 300px;
            box-shadow: 0 0 0 1000px rgba(0,0,0,0.5); /* Backdrop overlay */
        }

        .user-popup.open-popup {
            transform: translate(-50%, -50%) scale(1);
        }

        /* Hide arrow on mobile */
        .user-popup::before {
            display: none;
        }

        header {
            margin-top: 90px;
            height: 400px;
        }
        
        #header h1 {
            font-size: 42px; /* Increased */
            top: 60px;
        }
        
        #header p {
            font-size: 18px; /* Increased */
            bottom: 30px;
        }
        
        .content-container, .grid-container {
            grid-template-columns: 1fr;
            text-align: center;
        }
        
        .text-content {
            text-align: center;
        }
        
        .tabs {
            justify-content: center;
        }
        
        .image-section img {
            width: 100%;
            height: auto;
            margin-bottom: 20px;
        }
        
        footer {
            display: flex; 
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 40px 20px;
        }

        footer .feet {
            justify-self: center; 
        }
        
        footer .feet2 a {
            text-align: center;
        }
        
        .swiper {
             padding-top: 20px !important;
             padding-bottom: 50px !important;
        }
        
        .swiper-button-prev, .swiper-button-next {
            display: flex; 
        }

        footer .feet h1 {
            font-size: 40px;
        }
        footer .feet p {
            font-size: 18px;
        }
        footer .feet2 p, footer .contact p {
            font-size: 26px;
        }
        footer .feet2 a {
            font-size: 20px;
        }

        .how-it-works h2 {
            font-size: 3.5rem;
        }

        .image-section {
            margin: 0 auto;
        }
    }

    @media (max-width: 550px) {
        .navbar {
            flex-wrap: wrap; 
            height: auto;
            padding: 15px 20px;
            position: fixed;
            justify-content: space-between; 
        }

        .navbar-left {
            order: 1;
            flex: 0 1 auto; 
        }

        .hamburger {
            order: 2;
            margin-left: 0; 
            display: block;
        }
        
        .navbar-center {
            order: 3;
            width: 100%;
            margin-top: 15px; 
            display: flex;
            justify-content: center;
            margin-left: 0;
            margin-right: 0;
            flex: 1 1 100%; 
        }

        .search-container {
            width: 100%; 
            max-width: none;
        }
        
        header {
            margin-top: 200px; 
        }

        .how-it-works {
            padding: 30px 10px; 
        }

        .how-it-works h2 {
            font-size: 1.8rem;
        }

        .tabs {
            flex-direction: column; 
            width: 100%;
            border-radius: 20px; 
            height: auto;
        }

        .tab {
            width: 100%;
            text-align: center;
            margin-bottom: 5px; 
            border-radius: 15px;
            font-size: 0.95rem;
        }

        .checklist li {
            font-size: 0.95rem; 
            padding: 10px 10px;
        }

        .content-container {
            gap: 30px;
        }

        .description-section h2 {
            font-size: 1.8rem;
        }

        .description-section p {
            font-size: 1rem;
        }
    }

    @media (max-width: 425px) {
        header {
            margin-top: 120px;
        }

        #header h1 {
            top: 30px;
        }
    }

    @media (max-width: 375px) {
        header {
            margin-top: 130px;
        }

        #header h1 {
            top: 30px;
        }
    }

    @media (max-width: 320px) {
        header {
            margin-top: 120px;
        }

        #header h1 {
            top: 30px;
        }
    }
    
    @media (max-width: 400px) {
        .card {
            height: 470px !important; 
        }
    }

    .contact-privacy {
        margin-top: 20px;
        color: #777;
    }
    .contact-privacy-list {
        padding-left: 20px;
        margin: 0;
        list-style-type: disc;
    }
    .contact-privacy-item {
        margin-bottom: 5px;
    }

    /* Success Modal Styles */
    .modal {
        display: none; 
        position: fixed; 
        z-index: 2000; 
        left: 0;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        background-color: rgba(0,0,0,0.5); 
        animation: fadeIn 0.4s;
    }

    .modal-content {
        background-color: #fefefe;
        margin: 15% auto; 
        padding: 30px;
        border: 1px solid #888;
        width: 80%; 
        max-width: 400px;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        position: relative;
        animation: slideIn 0.4s;
    }
    
    @keyframes slideIn {
        from {transform: translateY(-50px); opacity: 0;}
        to {transform: translateY(0); opacity: 1;}
    }

    .close-modal {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
    }

    .close-modal:hover,
    .close-modal:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    
    .modal-body h2 {
        font-family: 'DM Serif Display', serif;
        color: #333;
        margin-top: 10px;
    }
    
    .modal-btn {
        background-color: #34d399;
        color: white;
        border: none;
        padding: 10px 30px;
        border-radius: 20px;
        font-size: 16px;
        cursor: pointer;
        margin-top: 20px;
        font-weight: 600;
        transition: background-color 0.3s;
    }
    
    .modal-btn:hover {
        background-color: #059669;
    }

    /* Checkmark Animation */
    .checkmark-circle {
        width: 80px;
        height: 80px;
        position: relative;
        display: inline-block;
        vertical-align: top;
        margin-bottom: 20px;
    }
    .checkmark-circle .background {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: #34d399;
        position: absolute;
    }
    .checkmark-circle .checkmark {
        border-radius: 5px;
    }
    .checkmark-circle .checkmark.draw:after {
        content: '';
        width: 40px;
        height: 20px;
        position: absolute;
        border-left: 6px solid #fff;
        border-bottom: 6px solid #fff;
        top: 45%; 
        left: 50%; 
        transform: translate(-50%, -50%) rotate(-45deg); 
        animation: checkmark 0.8s ease-in-out forwards;
        opacity: 0;
    }
    
    @keyframes checkmark {
        0% {   width: 0; height: 0; opacity: 0; }
        50% {  width: 0; height: 20px; opacity: 1; }
        100% { width: 40px; height: 20px; opacity: 1; }
    }

@keyframes centeredSlideIn {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

/* Logout Modal Styles */
.logout-modal-content {
    max-width: 350px;
    width: 90%;
    margin: 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DM Serif Display', serif;
    animation: centeredSlideIn 0.4s ease-out;
    box-sizing: border-box;
}

.logout-title {
    font-size: 24px;
    font-weight: 550;
    margin-bottom: 20px;
    color: #333;
}

.logout-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-logout {
    padding: 8px 25px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    font-family: 'DM Serif Display', serif;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-logout:hover {
    transform: scale(1.05);
}

.btn-yes {
    background-color: #D0B8A8;
    color: white;
}

.btn-yes:hover {
    background-color: #bfa08e;
}

.btn-no {
    background-color: #ccc;
    color: white;
}

.btn-no:hover {
    background-color: #bbb;
}

/* Modal Background */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

/* Auth Modal */
#auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: calc(100% - 40px);
    width: 350px;
    font-family: inherit;
    animation: fadeIn 0.3s ease-out;
    box-sizing: border-box;
}

.auth-modal-icon {
    margin-bottom: 15px;
    color: #d9534f;
}

.auth-modal-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1rem;
}

.auth-modal-message {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.8rem;
}

#auth-modal-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: 500;
}

#auth-modal-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .auth-modal-content {
        padding: 20px;
        width: 90%; 
    }
    .auth-modal-title {
        font-size: 0.8rem;
    }
    .auth-modal-message {
        font-size: 0.7rem;
    }
    #auth-modal-btn {
        font-size: 0.7rem;
        padding: 8px 20px;
    }
}

/* Service Cards (Mobile/Portrait View) */
.service-cards-container {
    display: none; 
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card-header {
    background: linear-gradient(135deg, #f6f5ee 0%, #eaeaea 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap; 
}

.service-icon {
    font-size: 24px;
    color: #D0B8A8;
    flex-shrink: 0;
}

.service-card-header h3 {
    margin: 0;
    font-size: 0.75rem; 
    color: #333;
    flex: 1;
    min-width: 120px; 
}

.service-category-tag {
    background-color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    color: #666;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-info-row strong {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-info-row p {
    margin: 0;
    color: #444;
    font-size: 0.6rem;
    line-height: 1.4;
    word-break: break-word; 
    overflow-wrap: anywhere; 
}

.service-action-row {
    margin-top: 10px;
    text-align: right;
}

.view-chart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #D0B8A8;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap; /* Prevent button text wrapping */
}

.view-chart-btn:hover {
    background-color: #bfa08e;
}

/* Visibility Toggles */
@media (min-width: 769px) {
    .service-providers-table-container {
        display: block;
    }
    .service-cards-container {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .service-providers-table-container {
        display: none;
    }
    .service-cards-container {
        display: flex;
    }
}

/* Video Player Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Controls Overlay */
.video-controls-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-wrapper:hover .video-controls-overlay {
    opacity: 1;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.control-btn:hover {
    background: rgba(110, 87, 224, 0.9);
}

/* Menu Dropdown */
.menu-container {
    position: relative;
}

.speed-menu {
    display: none;
    position: absolute;
    right: 40px;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 5px 0;
    min-width: 80px;
}

.speed-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: left;
    cursor: pointer;
    font-size: 0.8rem;
}

.speed-menu button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Video Modal (Expanded View) */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    position: relative;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* When expanded, adjust video wrapper to fit modal */
.video-expanded {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
}

.close-modal-video {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.flip-card-back {
    padding: 0; 
    background: transparent;
}


/* Refined Big Play Button */
.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    background: #222; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Gradient Border Effect */
.big-play-btn::before {
    content: "";
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    background: linear-gradient(135deg, #ff9a9e 0%, #ff6a00 50%, #d966ff 100%);
    border-radius: 50%;
    z-index: -1;
}

/* Centering the icon perfectly */
.big-play-btn i {
    font-size: 2.5rem;
    color: white;
    margin-left: 8px;
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.video-wrapper:hover .big-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background: #000; 
}

/* Video Timeline */
.video-timeline-container {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    opacity: 1;
    gap: 15px;
}

/* Start and End Time */
.video-time {
    color: white;
    font-size: 12px; /* Decreased font size */
    font-family: monospace;
    font-weight: 500;
    min-width: 40px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.video-progress-bar {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.video-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #ff6a00; /* Matching the orange in play button */
    border-radius: 2px;
    pointer-events: none;
}

.video-progress-thumb {
    position: absolute;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: left 0.1s linear;
}

.video-progress-bar:hover {
    height: 6px;
}

/* Controls Overlay */
.video-controls-overlay {
    top: 15px;
    right: 15px;
    bottom: auto; 
    display: flex;
    gap: 10px;
}

/* New Menu Styles */
.settings-menu {
    position: absolute;
    right: 0;
    top: 40px;
    width: 200px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 5px 0;
    display: none; /* Toggled by JS */
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 30;
}

.menu-item {
    background: none;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: background 0.2s;
    width: 100%;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.submenu {
    display: none;
    background: rgba(30, 30, 30, 0.95);
    width: 100%;
}

.menu-item.active-speed {
    color: #ff6a00;
}

/* Custom Video Player Play Button */
.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; 
    height: 80px;
    background: linear-gradient(to bottom right, #ff8a00, #e52e71); /* Gradient Background */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: none;
}

/* Inner Dark Circle to create border effect */
.big-play-btn::after {
    content: '';
    position: absolute;
    inset: 4px; 
    background: #2b2b2b; 
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.big-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.big-play-btn i {
    z-index: 2; 
    position: relative;
    color: white;
    font-size: 50px;
    margin-left: -6px; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
