/* assets/css/style.css */

:root {
    --primary-color: #0f0a63;      /* Your Custom Deep Royal Blue */
    --secondary-color: #1e1987;    /* Lighter Blue for hover states */
    --accent-red: #D90429;         /* Vibrant Red for main CTAs */
    --light-bg: #F8F9FA;           /* Off-white for section backgrounds */
    --text-dark: #1A1A1A;          /* Crisp dark text for white backgrounds */
    --text-muted: #6C757D;         /* Muted gray for smaller text */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Premium White Navbar with Soft Shadow */
.custom-navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(15, 10, 99, 0.06); /* Royal Blue tinted shadow */
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(15, 10, 99, 0.05);
}

.custom-navbar .nav-link {
    color: #333333 !important;
    font-weight: 500;
    margin-right: 15px;
    transition: var(--transition-smooth);
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: var(--primary-color) !important;
}
/* Dropdown links (Products) වලට යටින් යන රතු ඉර ඇනිමේෂන් එක බ්ලොක් කිරීම */
.custom-navbar .nav-item.dropdown .nav-link::after {
    display: none !important;
}

/* Products එක hover කරද්දී පාට විතරක් smooth වෙලා වෙනස් වෙන්න හැදීම */
.custom-navbar .nav-item.dropdown .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dropdown Menu Style */
.custom-navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(15, 10, 99, 0.1);
    box-shadow: 0 10px 25px rgba(15, 10, 99, 0.08);
}

.custom-navbar .dropdown-item {
    color: #333333 !important;
}

.custom-navbar .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
}

/* Navbar Logo Optimization & Premium Pop-up Hover Effect */
.nav-logo-img {
    height: 48px; /* Perfect height for professional desktop view */
    width: auto;  /* Maintains aspect ratio without stretching */
    max-width: 100%;
    /* කලින් අපි දාපු smooth transition එක නිසා ඇනිමේෂන් එක මාරම smooth වෙනවා */
    transition: var(--transition-smooth); 
}

/* මවුස් එක ලෝගෝ එක උඩට ගියාම (Hover) වෙනස් විය යුතු දේ */
.nav-logo-img:hover {
    transform: scale(1.05) translateY(-1px); /* 5%ක් pop-up වෙලා චුට්ටක් උඩට යනවා */
    filter: drop-shadow(0 4px 8px rgba(15, 10, 99, 0.15)); /* ලෝගෝ එක වටේට ලස්සන soft shadow එකක් එනවා */
    cursor: pointer;
}

/* Responsive tweak for mobile screens */
@media (max-width: 991.98px) {
    .nav-logo-img {
        height: 38px; /* Slightly smaller on mobile */
    }
    /* ෆෝන් වල මවුස් එකක් නැති නිසා hover එක වැඩක් නෑ, ඒ නිසා scale එක normal කරනවා */
    .nav-logo-img:hover {
        transform: none;
        filter: none;
    }
}

/* ==========================================
   NAVBAR LINKS PREMIUM HOVER ANIMATION
   ========================================== */

/* Base styling for nav links */
.custom-navbar .nav-link {
    color: #333333 !important;
    font-weight: 500;
    margin-right: 15px;
    position: relative; /* Line එක position කරන්න මේක අනිවාර්යයි */
    padding-bottom: 6px; /* ඉරයි text එකයි අතර පොඩි ඉඩක් තියන්න */
    transition: var(--transition-smooth);
}

/* Hover වෙද්දී text එක ඔයාගේ Royal Blue පාටට හැරෙනවා */
.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: var(--primary-color) !important;
}

/* CSS Pseudo-element වලින් ලෝගෝ එකට යටින් ඉරක් මතු කිරීම (මුලින් පේන්නේ නෑ - width 0) */
.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* ඉරේ මහත */
    bottom: 0;
    left: 0;
    background-color: var(--accent-red); /* ඉරේ පාටට අපේ Crimson Red එක දුන්නා */
    transition: var(--transition-smooth); /* Smooth වෙලා ඇදිලා යන්න */
}

/* මවුස් එක උඩට ගිය ගමන් (Hover) වගේම Active page එකේදී ඉර 100%ක් දිග හැරෙනවා */
.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    width: 100%;
}

/* Dropdown menu එක ඇතුලේ තියෙන links වලට මේ ඉර ඕනේ නැති නිසා ඒක අයින් කරමු */
.custom-navbar .dropdown-menu .dropdown-item::after {
    display: none;
}


/* Buttons */
.btn-premium-red {
    background-color: var(--accent-red);
    color: #ffffff !important;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-premium-red:hover {
    background-color: #bd0320;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

/* Hero Section Styles */
.hero-video-section {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(15, 10, 99, 0.9) 40%, rgba(30, 25, 135, 0.75) 100%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 10, 99, 0.85) 30%, rgba(15, 10, 99, 0.60) 100%);
    z-index: 2;
}

.z-3 { z-index: 3; }

.text-accent {
    color: #4CC9F0;
}

.hero-badge {
    background-color: var(--accent-red);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.main-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.hero-para {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

/* Glassmorphism Stats Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

/* Product Section Styles */
.product-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(15, 10, 99, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(15, 10, 99, 0.08) !important;
}

.product-img-wrapper {
    height: 240px;
}

.product-img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 99, 0.8);
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(3px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
    .main-title { font-size: 2.5rem; }
    .hero-video-section { min-height: 85vh; }
}
/* Slider & Banner Custom Styles */
.text-accent-custom {
    color: var(--accent-red);
}

/* Fixed height for sliders so images look consistent */
.slider-img {
    height: 380px;
    object-fit: cover;
}

/* Semi-transparent caption background for high readability */
.backend-blur {
    background: rgba(15, 10, 99, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 10px 20px;
    bottom: 20px;
}

.backend-blur h5 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Ad Banner Styles */
.ad-banner-premium {
    min-height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.ad-banner-premium:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px rgba(15, 10, 99, 0.15) !important;
}

/* Huge faint icon in the background of the banner for industrial look */
.bg-icon {
    position: absolute;
    right: 5%;
    bottom: -20%;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.04);
    transform: rotate(-15deg);
    z-index: 1;
}

/* Custom coloring for Slider navigation icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 50%;
    background-size: 50%;
}

@media (max-width: 768px) {
    .slider-img {
        height: 250px; /* Smaller height for phones */
    }
}

/* Swiper Logo Image Styling */
.client-logo-img {
    max-height: 55px;
    width: auto;
    filter: grayscale(100%); /* Gray look like your photo */
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.client-logo-img:hover {
    filter: grayscale(0%); /* Colorful on hover */
    opacity: 1;
}

/* Footer Link Effects */
.footer-links a {
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

.footer-social-icon {
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}
.footer-social-icon:hover {
    color: #4CC9F0 !important;
    transform: translateY(-3px);
}

/* Floating Back to Top Button */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    transition: var(--transition-smooth);
}
.btn-scroll-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* About & Stats Custom Section Styles */
.icon-box-round {
    width: 55px;
    height: 55px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.stats-hover-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(15, 10, 99, 0.03);
}

/* Hover කරද්දී කාඩ් එක smooth වෙලා උඩට එන එක */
.stats-hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 10, 99, 0.07) !important;
}

.stats-hover-card:hover .icon-box-round {
    background-color: var(--primary-color);
}
.stats-hover-card:hover .icon-box-round i {
    color: #ffffff !important;
}ස්

/* Premium Form Custom Inputs */
.custom-input {
    padding: 12px 16px;
    border: 1px solid rgba(15, 10, 99, 0.12);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #fcfcfd;
    transition: var(--transition-smooth);
}

/* Input එකක් ක්ලික් කරලා ටයිප් කරද්දී වෙනස් වන හැටි */
.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(15, 10, 99, 0.08);
    background-color: #ffffff;
}

.form-select.custom-input {
    cursor: pointer;
}
/* Contact Call & WhatsApp Link Animation */
.project-contact-link {
    transition: var(--transition-smooth);
}
.project-contact-link:hover {
    transform: translateX(5px); /* මවුස් එක ගියාම දකුණු පැත්තට චුට්ටක් slide වෙනවා */
    opacity: 0.85;
}