/* frontend/assets/css/style.css */

/* --- Bootstrap primary color override --- */
:root {
    --bs-primary: #0048b3;          /* Primary color */
    --bs-primary-rgb: 188, 25, 25;  /* RGB version */
    --bs-primary-hover: #0048b3;    /* Hover color */
}

/* Direct button override for guaranteed effect */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover) !important;
    border-color: var(--bs-primary-hover) !important;
}

/* Optional: other elements using primary color */
.bg-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}



/* Hover dropdown only on non-mobile devices */
@media (min-width: 992px) { /* lg and up */
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* remove default spacing */
    }
    .navbar .dropdown .dropdown-menu {
        transition: all 0.3s ease; /* smooth fade */
    }
}



/* frontend/assets/css/style.css */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
    display: none;       /* initially hidden */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #9e1616;
    transform: translateY(-3px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Typography */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.25rem;
    }
    
    h3, .h3 {
        font-size: 1.1rem;
    }
}

/* Responsive Spacing */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Responsive Buttons */
@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Responsive Cards */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Responsive Tables */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Responsive Forms */
@media (max-width: 575.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-control-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .btn {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Bootstrap 5.3.1 Responsive Utilities */
@media (max-width: 575.98px) {
    .d-sm-none {
        display: none !important;
    }
    
    .d-sm-inline {
        display: inline !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
    
    .d-sm-flex {
        display: flex !important;
    }
    
    .text-sm-center {
        text-align: center !important;
    }
    
    .text-sm-left {
        text-align: left !important;
    }
    
    .text-sm-right {
        text-align: right !important;
    }
}

/* Bootstrap 5.3.1 Enhanced Responsive Classes */
@media (max-width: 575.98px) {
    .d-xs-none { display: none !important; }
    .d-xs-block { display: block !important; }
    .d-xs-flex { display: flex !important; }
    .d-xs-inline { display: inline !important; }
    .d-xs-inline-block { display: inline-block !important; }
    
    .text-xs-center { text-align: center !important; }
    .text-xs-left { text-align: left !important; }
    .text-xs-right { text-align: right !important; }
    
    .flex-xs-column { flex-direction: column !important; }
    .flex-xs-row { flex-direction: row !important; }
    .flex-xs-wrap { flex-wrap: wrap !important; }
    .flex-xs-nowrap { flex-wrap: nowrap !important; }
    
    .justify-content-xs-center { justify-content: center !important; }
    .justify-content-xs-start { justify-content: flex-start !important; }
    .justify-content-xs-end { justify-content: flex-end !important; }
    .justify-content-xs-between { justify-content: space-between !important; }
    
    .align-items-xs-center { align-items: center !important; }
    .align-items-xs-start { align-items: flex-start !important; }
    .align-items-xs-end { align-items: flex-end !important; }
}

/* Responsive Grid Adjustments */
@media (max-width: 767.98px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* Responsive Hero Section */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .min-vh-75 {
        min-height: 50vh;
    }
    
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Responsive Statistics Cards */
@media (max-width: 575.98px) {
    .stat-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
}

/* Responsive Service Cards */
@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-icon i {
        font-size: 2rem !important;
    }
}

/* Responsive Step Cards */
@media (max-width: 575.98px) {
    .step-card {
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 50px !important;
        height: 50px !important;
    }
    
    .step-number span {
        font-size: 1.25rem !important;
    }
}

/* Responsive News Section */
@media (max-width: 767.98px) {
    .news-main-card .card-img-top img {
        height: 200px !important;
    }
    
    .news-item-card .card-body {
        padding: 1rem;
    }
    
    .news-item-card img {
        height: 80px !important;
    }
}

/* Responsive Founder Section */
@media (max-width: 575.98px) {
    .founder-image img {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Responsive Brand/Investor/Award Cards */
@media (max-width: 575.98px) {
    .brand-card,
    .investor-card,
    .award-card {
        padding: 1rem;
    }
    
    .brand-card img,
    .investor-card img,
    .award-card img {
        max-height: 60px;
    }
}

/* Responsive FAQ Section */
@media (max-width: 767.98px) {
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

/* Responsive CTA Section */
@media (max-width: 767.98px) {
    .bg-primary .row {
        text-align: center;
    }
    
    .bg-primary .col-lg-4 {
        margin-top: 1rem;
    }
}

/* Responsive Interactive Services */
@media (max-width: 991.98px) {
    .services-nav {
        margin-bottom: 2rem;
    }
    
    .nav-cards {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-card {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    .nav-card .card-body {
        padding: 1rem;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
    }
    
    .nav-icon i {
        font-size: 1.5rem !important;
    }
    
    .content-display {
        min-height: auto;
    }
    
    .content-panel {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .nav-cards {
        gap: 0.5rem;
    }
    
    .nav-card {
        min-width: 180px;
    }
    
    .nav-card .card-body {
        padding: 0.75rem;
    }
    
    .nav-icon {
        width: 35px;
        height: 35px;
    }
    
    .nav-icon i {
        font-size: 1.25rem !important;
    }
}

/* Responsive Features Section */
@media (max-width: 767.98px) {
    .feature-item {
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .container {
        max-width: none !important;
    }
}

/* ========================================
   RESPONSIVE HEADER STYLES
   ======================================== */

/* Body padding for fixed header */
body {
    padding-top: 70px;
}

@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.25rem;
}

@media (min-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Responsive Logo Sizing */
.logo-img {
    height: 75px;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .logo-img {
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .logo-img {
        height: 45px;
    }
}

/* Navbar Toggler */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
    margin-left: auto;
    background: none;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Custom Menu Icon */
.navbar-toggler-icon {
    background: none !important;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon i {
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon i {
    color: #0d6efd;
}

/* Menu Icon Animation */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon i {
    transform: rotate(90deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon i:before {
    content: "\f00d"; /* FontAwesome close icon */
}

/* Mobile Layout: Logo Left, Menu Right */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-right: 0;
        flex: 1;
    }
    
    .navbar-toggler {
        margin-left: auto;
        order: 2;
    }
    
    .navbar-nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Mobile optimizations */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid #e9ecef;
        margin-top: 0.5rem;
    }
}

/* ========================================
   INTERACTIVE SERVICES SECTION
   ======================================== */

/* Desktop Styles */
.nav-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 1rem;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.nav-card.active {
    border-color: var(--bs-primary);
    background-color: rgba(0, 72, 179, 0.05);
}

.content-panel {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.content-panel.active {
    display: block;
    opacity: 1;
}

/* Mobile Styles */
.nav-card-mobile {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.nav-card-mobile.active {
    border-color: var(--bs-primary);
    background-color: rgba(0, 72, 179, 0.05);
}

.nav-card-mobile .card {
    border: none;
    transition: all 0.3s ease;
}

.nav-card-mobile.active .card {
    background-color: rgba(0, 72, 179, 0.05);
}

.content-panel-mobile {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.content-panel-mobile.active {
    display: block;
    opacity: 1;
}

/* Mobile Grid Responsive */
@media (max-width: 575.98px) {
    .nav-card-mobile .card {
        padding: 1rem 0.5rem;
    }
    
    .nav-card-mobile h6 {
        font-size: 0.8rem;
    }
    
    .nav-icon-mobile i {
        font-size: 1.5rem !important;
    }
}

/* ========================================
   FOOTER STYLES - ATTRACTIVE RESPONSIVE DESIGN
   ======================================== */

/* Footer Layout */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0d6efd, transparent);
}

/* Footer Logo */
.footer-logo {
    height: 90px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(13, 110, 253, 0.3));
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    overflow: hidden;
}

.social-links a i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.social-links a:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-links a:hover::before {
    opacity: 0.8;
}

/* Individual Social Media Colors */
.social-links a[aria-label="Facebook"]:hover {
    border-color: #1877f2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-links a[aria-label="Facebook"]:hover::before {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
}

.social-links a[aria-label="Twitter"]:hover {
    border-color: #1da1f2;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-links a[aria-label="Twitter"]:hover::before {
    background: linear-gradient(45deg, #1da1f2, #64b5f6);
}

.social-links a[aria-label="Instagram"]:hover {
    border-color: #e4405f;
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-links a[aria-label="Instagram"]:hover::before {
    background: linear-gradient(45deg, #e4405f, #f06292);
}

.social-links a[aria-label="LinkedIn"]:hover {
    border-color: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-links a[aria-label="LinkedIn"]:hover::before {
    background: linear-gradient(45deg, #0077b5, #42a5f5);
}

.social-links a[aria-label="YouTube"]:hover {
    border-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-links a[aria-label="YouTube"]:hover::before {
    background: linear-gradient(45deg, #ff0000, #f44336);
}

.footer-brand .navbar-brand:hover {
    color: #0d6efd !important;
    transform: translateX(5px);
}

/* Newsletter Form */
.newsletter .form-control {
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter .form-control:focus {
    border-color: #0d6efd;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.newsletter .btn {
    border-radius: 25px;
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.newsletter .btn:hover::before {
    left: 100%;
}

.newsletter .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* Light emphasis link hover effects */
.text-light-emphasis {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.75) !important;
    position: relative;
}

.text-light-emphasis:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.text-light-emphasis::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    transition: width 0.3s ease;
}

.text-light-emphasis:hover::after {
    width: 100%;
}

/* Footer Headings */
footer h5, footer h6 {
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after, footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    border-radius: 1px;
}

/* Contact Info Icons */
.contact-info i {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
}

.contact-info .d-flex:hover i {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

/* Mobile Enhancements */
@media (max-width: 991.98px) {
    footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    }
    
    .footer-logo {
        height: 60px;
    }
    
    .social-links a {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .newsletter .form-control {
        font-size: 0.9rem;
    }
    
    .newsletter .btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .footer-logo {
        height: 50px;
    }
    
    .social-links a {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    footer h5, footer h6 {
        font-size: 1rem;
    }
    
    .newsletter .form-control {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .newsletter .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .footer-logo {
        height: 40px;
    }
    
    .social-links a {
        padding: 0.25rem;
        font-size: 0.7rem;
    }
    
    footer h5, footer h6 {
        font-size: 0.9rem;
    }
    
    .newsletter .form-control {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .newsletter .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .text-light-emphasis {
        font-size: 0.8rem;
    }
}

/* Bottom Bar Enhancement */
footer .border-top {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

footer .border-top p {
    position: relative;
}

footer .border-top p::before {
    content: '©';
    color: #0d6efd;
    font-weight: bold;
    margin-right: 0.25rem;
}

/* Animation for footer appearance */
@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    animation: footerSlideUp 0.8s ease-out;
}

/* Hover effects for mobile */
@media (hover: hover) {
    .social-links a:hover {
        transform: translateY(-3px) scale(1.1);
    }
    
    .newsletter .btn:hover {
        transform: translateY(-2px);
    }
    
    .text-light-emphasis:hover {
        transform: translateX(3px);
    }
}
