/* General Body & Container Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue';
    background-color: #f4f4f4;
    padding-top: 8rem;
}

/* Prevent horizontal scrolling */
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Ensure all elements stay within viewport */
* {
    box-sizing: border-box;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Scroll Functionality */
#page-header {
   position: fixed; /* Changed from sticky to fixed for more reliable behavior */
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s ease;
    will-change: transform;
}
#page-header.hidden {
    transform: translateY(-100%);
    box-shadow: none;
}
.nav-links {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}


/* Top Bar Styling */
#top-bar {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    font-size: 14px;
}

.contact-info a {
    margin-right: 20px;
}

.top-bar i {
    margin-right: 8px;
}

/* Main Navigation Styling */
#main-navigation {
    padding: 10px 0;
}

#site-logo img {
    max-height: 50px;
     transition: transform 0.3s ease;
}
#site-logo:hover img {
    transform: scale(1.1); /* Scales the image to 110% on hover */
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    font-weight: bold;
    font-size: 16px;
}

/* Button Styling */
.contact-button {
    border: 2px solid #3498db;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: bold;
    color: #3498db;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: #3498db;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.animate-roll-in {
    /* This helps align the character containers correctly */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.char-container {
    display: inline-block;
    overflow: hidden; /* This is the mask that hides the rolling character */
    vertical-align: top;
    line-height: 1.1; /* Adjust to fit font */
}
/* === Responsive Media Queries === */

/* For Tablets and Smaller Devices - Implements Horizontal Scroll */
@media (max-width: 992px) {
    #top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .contact-info {
        flex: 1;
        min-width: 0;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .contact-info::-webkit-scrollbar {
        display: none;
    }

    .support-link {
        flex-shrink: 0;
        padding-left: 15px;
    }
}

/* For Mobile Devices */
@media (max-width: 768px) {
    /* Hide desktop nav and show mobile toggle */
     .nav-links {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
         transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    .nav-links, .desktop-contact {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }

    /* Styling for the revealed mobile navigation */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
        gap: 0;
         max-height: 500px;
         opacity: 1;
    }

    .nav-links.active li {
        text-align: center;
        padding: 15px 0;
        width: 100%;
    }
   
    .nav-links.active li:hover {
        background-color: #f1f1f1;
    }
}

/*------------footer---------------------*/

/* Main Footer Section Wrapper */
.unik-footer-section {
    color: #e0e0e0;
    width: 100%;
    animation: fadeInOnLoad 1s ease-in-out;
}

/* Animation for page load */
@keyframes fadeInOnLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*------------------------------------*/
/* Top Call-to-Action (CTA) Bar       */
/*------------------------------------*/
.footer-cta-bar-unik {
    background-color: #363B46;
    padding: 10px 5%;
}

.cta-content-unik {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-text-unik {
    text-align: center;
    margin-right: 20px;
}

.cta-text-unik p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.cta-text-unik span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

.cta-image-unik img {
    max-height: 80px;
    vertical-align: middle;
}

/*------------------------------------*/
/* Enhanced Moving Text Banner         */
/*------------------------------------*/
.unik-marquee-banner {
    background-color: #1B1F28;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.unik-marquee-wrapper {
    display: flex;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.unik-marquee-segment {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding: 0 60px;
}

.unik-marquee-segment span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
    padding: 0 20px;
}

/* Animation with perfect loop */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover for better readability */
.unik-marquee-banner:hover .unik-marquee-wrapper {
    animation-play-state: paused;
}

/*------------------------------------*/
/* Main Footer Content Area           */
/*------------------------------------*/
.footer-main-content-unik {
    background-color: #20242E;
    padding: 50px 5%;
}

.footer-container-unik {
    display: grid;
   grid-template-columns: 1fr 6rem 11rem 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col-unik {
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Column 1: About Section */
.footer-about-unik .footer-logo-unik {
    max-width: 5rem;
    margin-bottom: 1.5rem;
}
.footer-logo-unik {
  transition: transform 0.3s ease; /* Smooth transition for the zoom effect */
}

.footer-logo-unik:hover {
  transform: scale(1.1); /* Scales the image to 110% of its original size */
}
.footer-about-unik p {
    margin: 0;
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Common Styles for Headings and Lists */
.footer-heading-unik {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
}

.footer-heading-unik::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #ffffff;
    margin-top: 8px;
}

.footer-links-unik,
.footer-contact-unik {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-unik li,
.footer-contact-unik li {
    margin-bottom: 12px;
}

.footer-links-unik a,
.footer-contact-unik a,
.footer-policies-unik a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
    max-width: 100%;
}

.footer-links-unik a:hover,
.footer-contact-unik a:hover,
.footer-policies-unik a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact-unik i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: #ffffff;
}

/* Column 4: Policies */
.policy-heading-unik {
    margin-top: 30px;
}

.footer-policies-unik {
    line-height: 1.8;
}

/*------------------------------------*/
/* Bottom Bar (Social & Copyright)    */
/*------------------------------------*/
.footer-bottom-unik {
    background-color: #20242E;
    padding: 20px 5% 30px;
    border-top: 1px solid #363B46;
    text-align: center;
}

.footer-social-icons-unik {
    margin-bottom: 20px;
}

.footer-social-icons-unik a {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 12px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-icons-unik a:hover {
    transform: scale(1.2) translateY(-2px);
    color: #cccccc;
}

.footer-copyright-unik p {
    margin: 0;
    font-size: 0.9rem;
}

/*------------------------------------*/
/* Responsive Design (Media Queries)  */
/*------------------------------------*/

/* For Mobile Devices */
@media (max-width: 768px) {
    /* General mobile overflow protection */
    * {
        overflow-wrap: break-word;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
    }

    /* CTA Bar adjustments */
    .cta-content-unik {
        flex-direction: column;
        gap: 15px;
    }

    .cta-text-unik {
        margin-right: 0;
    }
    
    .cta-text-unik p {
        font-size: 1rem;
    }
    
    .cta-text-unik span {
        font-size: 1.5rem;
    }

    /* Marquee Banner Mobile Optimization */
    .unik-marquee-banner {
        padding: 12px 0;
    }
    
    .unik-marquee-wrapper {
        animation-duration: 20s;
    }
    
    .unik-marquee-segment {
        padding: 0 20px;
    }
    
    .unik-marquee-segment span {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    /* Footer Content Fixes */
    .footer-container-unik {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-col-unik {
        min-width: 100%;
        padding: 0 15px;
    }
    
    .footer-about-unik .footer-logo-unik {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-heading-unik::after {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-contact-unik li,
    .footer-contact-unik li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact-unik i {
        margin-right: 0;
        margin-bottom: 5px;
    }

    /* Adjust footer padding */
    .footer-main-content-unik {
        padding: 30px 15px;
    }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
    .unik-marquee-segment span {
        font-size: 1rem;
    }
    
    .unik-marquee-wrapper {
        animation-duration: 15s;
    }
}