/* --- Global Typography Overrides --- */
body {
    font-family: 'Inter', sans-serif;;
    color: #2b2b2b;
    overflow-x: hidden;
    background-color: #fcfcfc;
    letter-spacing: -0.2px; /* Sleek high-end tech UI aesthetic */
}

/* --- Navbar Brand Logo Customizations --- */
.navbar {
    border-bottom: 3px solid #0076c0; /* Blue line baseline for navbar branding */
}

.navbar-nav .nav-link {
    font-family: 'Space Grotesk', sans-serif; /* Fixed to match Google Fonts link */
    font-weight: 700; /* Chunky stylish menu fonts */
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111111;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: #f39200 !important; /* Premium branding orange hover link styling */
}

.dropdown-menu {
    border-top: 3px solid #f39200 !important; /* Top boundary accent line */
}

.dropdown-menu-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    color: #333333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu-item:hover {
    background-color: #f8f9fa;
    color: #0076c0;
    padding-left: 1.8rem; /* Dynamic smooth slide action inside selection */
}

.navbar-logo {
    height: 55px; /* Perfect desktop visualization matrix */
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* --- Hero Slider Layout Features --- */
/* --- Premium Carousel Slider Matrix --- */
.carousel-item {
    height: 75vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Align slider text positioning layer controls */
.carousel-caption {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding-bottom: 0 !important;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 4.2rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    max-width: 620px;
    font-size: 1.1rem;
    line-height: 1.65;
}

.tracking-wide {
    letter-spacing: 0.5px;
}

/* Custom Styled Indicators */
.carousel-indicators [data-bs-target] {
    width: 35px;
    height: 4px;
    background-color: #ffffff;
    opacity: 0.4;
    transition: all 0.3s ease;
}
.carousel-indicators .active {
    width: 50px;
    background-color: #f39200 !important; /* Activates with brand orange highlight */
    opacity: 1;
}



/* --- High-End 3D Flip Carousel Transition --- */
.custom-flip-carousel {
    perspective: 1500px; /* Gives realistic 3D depth field during flip */
}

.custom-flip-carousel .carousel-inner {
    overflow: visible;
}

.custom-flip-carousel .carousel-item {
    backface-visibility: hidden;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955), opacity 0.8s ease-in-out;
    transform: rotateY(90deg); /* Starts hidden edge-on */
    position: absolute;
    display: block;
    width: 100%;
    top: 0;
    left: 0;
}

/* Active Slide position */
.custom-flip-carousel .carousel-item.active {
    position: relative;
    opacity: 1;
    transform: rotateY(0deg); /* Rotates back perfectly to face user */
    z-index: 1;
}

/* Next / Prev standard setup overrides to maintain structure layout stability */
.custom-flip-carousel .carousel-item-next.carousel-item-start,
.custom-flip-carousel .carousel-item-prev.carousel-item-end {
    transform: rotateY(0deg);
    opacity: 1;
}

.custom-flip-carousel .carousel-item-start.active {
    transform: rotateY(-90deg); /* Flips outward to the left */
    opacity: 0;
}

.custom-flip-carousel .carousel-item-end.active {
    transform: rotateY(90deg); /* Flips outward to the right */
    opacity: 0;
}

/* Smooth internal text delay action tracking */
.custom-flip-carousel .carousel-item.active .hero-title {
    animation: fadeInDelayed 0.5s 0.3s ease forwards;
    opacity: 0;
}

@keyframes fadeInDelayed {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Responsive Layout Handling --- */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 60vh;
    }
    .hero-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 55vh;
        min-height: 380px;
    }
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Custom Styled Buttons Matching Brand Color Elements */
.btn-primary {
    background-color: #0076c0 !important;
    border-color: #0076c0 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #f39200 !important; /* Switches elegantly to Orange theme elements */
    border-color: #f39200 !important;
}

/* --- Collections Grid Core Layout --- */
.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111111;
    font-size: 2.3rem;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 75px;
    height: 4px;
    background-color: #f39200; /* Double color accent line highlight decoration */
    border-radius: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 2px 4px rgba(0, 118, 192, 0.2);
}

.category-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border-bottom: 3px solid transparent !important;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 118, 192, 0.12) !important;
    border-bottom: 3px solid #0076c0 !important; /* Bottom card activation highlights */
}

.category-card .card-title {
    font-family: 'Space Grotesk', sans-serif; /* Fixed to match Google Fonts link */
    font-weight: 700; /* Sharp corporate look */
    font-size: 1.35rem;
    letter-spacing: -0.2px;
    color: #111111;
}

.category-card .card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555555;
}
.category-card .img-wrapper {
    height: 340px; /* Increased from 250px to 340px for a beautiful taller matrix display */
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa; /* Safe skeleton background fallback */
}

.category-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps images scaled correctly without squeezing */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover .img-wrapper img {
    transform: scale(1.08);
}

@media (max-width: 767.98px) {
    .category-card .img-wrapper {
        height: 280px; /* Perfectly adjusted for smaller mobile screens to prevent over-stretching */
    }
}


.btn-link {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #0076c0 !important;
    transition: color 0.3s ease;
}

.category-card:hover .btn-link {
    color: #f39200 !important; /* Label change toggle reaction */
}

/* --- Footer Elements Matrix --- */
/* ==========================================================================
   Premium Slate Dark Footer Styles
   ========================================================================== */
.footer-links-matrix li a {
    transition: all 0.3s ease;
}

/* Elegant Text Shifting on Link Hover */
.footer-links-matrix li a:hover {
    color: #0076bd !important; /* Shifts text to Brand Blue */
    padding-left: 4px;
}

/* Social Icon Hover Glow */
.footer-social-matrix a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-social-matrix a:hover {
    background-color: #0076bd !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer Map & Layout Tuning
   ========================================================================== */
.footer-map-wrapper iframe {
    filter: grayscale(20%) invert(90%) contrast(100%); /* Optional: Gives an elite premium dark theme map look to match footer */
    transition: all 0.4s ease;
}

.footer-map-wrapper:hover iframe {
    filter: none; /* Restores original colors when client hovers on map */
}

/* Social Matrix Alignment */
.footer-social-matrix a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-matrix a:hover {
    background-color: #0076bd !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
footer {
    border-top: 5px solid #f39200; /* Premium Orange boundary separator layout line */
}

footer h5 {
    font-family: 'Space Grotesk', sans-serif; /* Fixed to match Google Fonts link */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
footer .bi-chevron-right {
    color: #f39200 !important;
}

footer .bi-geo-alt-fill,
footer .bi-telephone-fill,
footer .bi-envelope-fill {
    color: #0076c0 !important;
}

/* --- Ultra Fluid Device Support --- */

@media (max-width: 767.98px) {
    .navbar-logo {
        height: 42px; /* Auto downscaled profile heights for sleek mobiles viewports */
    }
    .carousel-item {
        height: 50vh;
        min-height: 360px;
    }
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* --- About Us Premium CSS Styles --- */
/* --- About Us Premium CSS Styles --- */
#about-us {
    overflow: hidden;
}

#about-us .tracking-wide {
    letter-spacing: 1.5px;
}

#about-us img {
    transition: transform 0.8s ease;
}

#about-us:hover img {
    transform: scale(1.03); /* Soft zoom effect on hover */
}

/* Strict Mobile Matrix Fixes (320px optimized) */
@media (max-width: 575.98px) {
    #about-us .display-5 {
        font-size: 1.8rem !important; /* Scaled down heading for micro screens */
        line-height: 1.2 !important;
    }
    
    #about-us .lead {
        font-size: 0.95rem !important;
    }
    
    #about-us .position-absolute.bg-primary {
        display: none; /* Removes structural clutter behind image on mobile */
    }
    
    #about-us .bg-warning.p-4 {
        position: relative !important;
        margin-top: 15px !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
}
/* Service Section */
.fw-extrabold {
    font-weight: 800 !important;
}

.bento-box {
    border-radius: 16px !important; /* Premium curved modern edges */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 118, 189, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fluid Hover Scales for Premium Feel */
.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

.blur-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.max-w-400 { max-width: 400px; }
.max-w-600 { max-width: 600px; }

.hover-lift:hover {
    transform: translateX(4px);
}

/* --- Bento Box Image Engine --- */
.bento-img-box {
    border-radius: 20px !important; /* Premium rounded panels */
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* Semi-transparent dark layer to make sure text is 100% readable */
.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Rounded Micro Containers for Font Awesome Icons */
.bento-fa-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex !important;      /* Forces center flex matrix */
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Cinematic Hover Zoom FX */
.bento-img-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.bento-fa-icon i, .bento-fa-icon .fas {
    font-family: "Font Awesome 6 Free" !important; /* Forces Font Awesome engine rendering */
    font-weight: 900 !important;                  /* Solid icons require 900 weight */
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}
.blur-effect {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Responsiveness Fix for Small Screens (320px) */
@media (max-width: 575.98px) {
    .bento-img-box {
        min-height: 340px !important;
        border-radius: 14px !important;
    }
    
    .bento-img-box h3 {
        font-size: 1.35rem !important;
    }
    
    .bento-img-box p {
        font-size: 0.82rem !important;
    }
}

/* Strict Mobile Fixes for 320px / Small Phones */
@media (max-width: 575.98px) {
    #services .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important; /* Forces layout safely inside 320px boundaries */
        white-space: normal !important;
    }
    
    .bento-box {
        padding: 1.8rem 1.2rem !important; /* Compact internal spaces for tiny screens */
        border-radius: 12px !important;
    }
    
    .bento-box h3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }
    
    .bento-box p {
        font-size: 0.8rem !important;
        line-height: 1.6 !important;
    }
    
    #services .btn-lg {
        width: 100% !important; /* Mobile view-la button full-width-ah aகிடும், click பண்ண ஈஸியா இருக்கும் */
        text-align: center !important;
    }
}

/* ==========================================================================
   New Minimalist Split Why Choose Us Engine
   ========================================================================== */
@media (min-width: 992px) {
    .sticky-sidebar-panel {
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        z-index: 10;
    }
}

/* Big Bold Numeric Matrix Styling */
.feature-number-matrix {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 118, 189, 0.12); /* Subtle blue opacity */
    transition: all 0.4s ease;
    padding-top: 2px;
}

.feature-number-matrix.text-warning-shade {
    color: rgba(243, 146, 0, 0.12); /* Subtle orange opacity */
}

.feature-number-matrix.text-dark-shade {
    color: rgba(33, 37, 41, 0.12); /* Subtle dark opacity */
}

/* Elegant Split Row Hover Motion */
.split-feature-row {
    transition: all 0.4s ease;
    position: relative;
}

.split-feature-row:hover {
    transform: translateX(10px);
}

/* Highlight numbers on row hover */
.split-feature-row:hover .feature-number-matrix {
    color: #0076bd !important;
    transform: scale(1.08);
}

.split-feature-row:nth-child(2):hover .feature-number-matrix {
    color: #f39200 !important;
}

.split-feature-row:nth-child(3):hover .feature-number-matrix {
    color: #212529 !important;
}

.style-badge {
    font-size: 0.95rem;
}

/* Responsiveness adjustments for mobile screens */
@media (max-width: 575.98px) {
    .feature-number-matrix {
        font-size: 2rem;
    }
    
    .split-feature-row h4 {
        font-size: 1.15rem !important;
    }
    
    #why-choose-us .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}

/* ==========================================================================
   Premium Minimal Accordion FAQ Style Engine
   ========================================================================== */
.faq-wrapper {
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base style for accordion trigger button */
.faq-btn {
    background-color: #ffffff !important;
    color: #212529 !important;
    padding: 1.5rem 1.8rem !important;
    font-size: 0.95rem;
    letter-spacing: -0.3px;
    box-shadow: none !important; /* Removes ugly bootstrap focus rings */
}

/* Dynamic State when accordion is opened */
.faq-btn:not(.collapsed) {
    color: #0076bd !important; /* Brand Blue color text on active */
    background-color: #ffffff !important;
}

/* Subtle accent line inside the active answer body */
.faq-wrapper .accordion-body {
    padding-left: 1.8rem !important;
    padding-right: 1.8rem !important;
    padding-bottom: 1.5rem !important;
}

/* Soft hover effect to guide user eyes */
.faq-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Micro Responsive Rules */
@media (max-width: 575.98px) {
    .faq-btn {
        padding: 1.2rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .faq-wrapper .accordion-body {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 1.2rem !important;
    }
    
    #faq-section .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}

/* ==========================================================================
   Premium Testimonial Matrix UI Styles
   ========================================================================== */
.testimonial-card {
    border-radius: 16px !important;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

/* Elegant lift pop on profile hover */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

/* Micro Initials Avatar Framework */
.client-avatar-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.position-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Testimonial Section Overlap Bug Fix */
#testimonials .display-5 {
    font-size: 2.5rem !important; /* Forces the huge bold title to sit nicely */
    letter-spacing: -1px !important;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    #testimonials .display-5 {
        font-size: 2rem !important;
    }
}

/* Small Device Layout Alignment Rules */
@media (max-width: 575.98px) {
    .testimonial-card {
        padding: 1.8rem 1.2rem !important;
    }
    
    #testimonials .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}

/*Floating Trigger Styles */
/* ==========================================================================
   Premium Left-Aligned WhatsApp Floating Widget Styles
   ========================================================================== */
.whatsapp-floating-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Aligned to the left side as per official layout rules */
    width: 56px;
    height: 56px;
    background-color: #25d366; /* Official WhatsApp Green */
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 9999; /* Ensures it stays on top of all layers */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

/* Smooth pop and rotation on hover */
.whatsapp-floating-trigger:hover {
    transform: scale(1.1) rotate(8deg);
    background-color: #20ba5a;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/* Core Micro-Animation Pulse Ring */
.whatsapp-icon-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    left: 0;
    top: 0;
    z-index: -1;
    animation: whatsappPulse 2s infinite ease-out;
    opacity: 0.4;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Rule for Small Mobile Screens */
@media (max-width: 575.98px) {
    .whatsapp-floating-trigger {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   Premium Left-Aligned Phone Floating Widget Styles
   ========================================================================== */
.phone-floating-trigger {
    position: fixed;
    bottom: 100px; /* Positioned exactly above the WhatsApp widget (30px + 56px + 14px gap) */
    right: 30px;    /* Perfectly left-aligned as requested */
    width: 56px;
    height: 56px;
    background-color: #0076bd; /* Brand Blue Theme Color */
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 118, 189, 0.3);
    z-index: 9999; /* Higher layer priority */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

/* Smooth zoom and rotation on profile hover */
.phone-floating-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #005c96;
    box-shadow: 0 12px 30px rgba(0, 118, 189, 0.4);
}

/* Phone Micro-Animation Pulse Ring */
.phone-icon-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0076bd;
    border-radius: 50%;
    left: 0;
    top: 0;
    z-index: -1;
    animation: phonePulse 2.2s infinite ease-out;
    opacity: 0.4;
}

@keyframes phonePulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Strict Responsive Rule for Small Mobile Screens */
@media (max-width: 575.98px) {
    .phone-floating-trigger {
        bottom: 84px; /* Adjusts clearance gap over WhatsApp on smaller grids */
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}