@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Libre Baskerville", serif;
}


:root {
    --primary-color: #d24625;
    --secondary-color: #2c569d;
    --addtional-color: #c72027;
    --white-color: #fff;
    --black-color: #000000a2;
    --button-background-color: #d24625;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* Header Styles */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar Styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    background-color: var(--secondary-color) !important;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    color: var(--black-color);
}

.top-bar a {
    transition: color 0.3s ease;
    color: var(--white-color) !important;
}

.top-bar a:hover {
    color: var(--primary-color) !important;
}

.top-bar i {
    margin-right: 8px;
    color: var(--white-color) !important;
}

.top-bar-social a {
    margin-left: 15px;
    font-size: 1rem;
}

@media(max-width:768px){
    .top-bar{
        display: none !important;
    }
}

/* Main Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 6% !important;
}

.nav-logo img {
    height: 100px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black-color);
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: "Libre Baskerville", serif;
}

/* Menu Hover Effect */
.nav-link:hover {
    color: var(--primary-color);
}

/* Active Menu Style */
.nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.nav-button {
    background-color: var(--button-background-color);
    color: var(--white-color);
    padding: 8px 35px !important;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

.logo-img{
    margin-top: 100px;
    width: 400px !important;
}

@media(max-width:425px){
    .logo-img{
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 4px;
        display: flex;
        /* ✅ show on mobile */
        text-align: center;
        padding: 6px 10px;
    }

    .top-bar-contact,
    .top-bar-email,
    .top-bar-social {
        margin: 3px 0;
    }

    .top-bar-social a {
        margin: 0 8px;
        font-size: 1rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        /* Adjust this based on your header height */
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-button {
        display: none;
        /* Mobile la buttona a kaatama irukalam, or menu kulla vekalam */
    }
}

@media (max-width: 480px) {

    .top-bar-contact,
    .top-bar-email {
        font-size: 0.8rem;
    }

    .nav-menu.active {
        top: 66px !important;
        /* Adjust if top-bar wraps to more lines */
    }

    .nav-logo img {
        height: 80px;
    }
}


/* =================================== */
/* == Floating Action Buttons ==     */
/* =================================== */

.float-button {
    position: fixed;
    bottom: 105px;
    z-index: 1000;
    /* To make sure it's on top of everything */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* Hover Animation */
.float-button:hover {
    transform: translateY(-5px);
}

/* Positioning */
.float-call {
    left: 25px;
}

.float-whatsapp {
    right: 25px;
}

/* Text bubble above the icon */
.float-text {
    color: var(--white-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Icon circle */
.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* --- Specific Colors --- */

/* Call Button Colors (Using our theme) */
.float-call .float-text {
    background-color: var(--secondary-color);
    /* Blue */
}

.float-call .icon-circle {
    background-color: var(--primary-color);
    /* Orange */
}

/* WhatsApp Button Colors (Using standard WhatsApp colors for user recognition) */
.float-whatsapp .float-text {
    background-color: #075E54;
    /* Dark WhatsApp Green */
}

.float-whatsapp .icon-circle {
    background-color: #25D366;
    /* Bright WhatsApp Green */
}


/* Responsive Adjustments for smaller screens */
@media (max-width: 767px) {
    .float-button {
        bottom: 20px;
    }

    .float-call {
        left: 20px;
    }

    .float-whatsapp {
        right: 20px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .float-text {
        font-size: 0.8rem;
    }
}


/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Popup Content */
.popup-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    max-width: 700px !important;
    width: 100%;
    animation: popupFadeIn 0.4s ease;
}

.popup-image {
    width: 100%;
    border-radius: 8px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #d24625;
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    background: #2c569d;
}

/* Fade Animation */
@keyframes popupFadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .popup-content{
        max-width: 500px;
    }
}