/* For all global CSS used throughout the site */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0f0fcb;
    --secondary-color: #ffffff;
    --accent-color: #ff6f61;
    --dark-color: #083667;
    --light-color: #fff;
    --black-color: #000;
    --text-color: #0c0707;
    --light-grey: #cabbbb;
    --star-gold-color: #FFCE3E;
    
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --heading-weight: 700;
    --body-weight: 400;
    --default-text-size: 16px;
    
    /* Responsive spacing */
    --container-padding: 1rem;
    --section-padding: 2rem 0;
    --element-gap: 1rem;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.d-none {
    display: none;
}

/* Base Body Styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    overflow-x: hidden;
    min-height: 100vh;
    background-color: var(--secondary-color); 
    color: var(--text-color); 
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: var(--default-text-size);
    line-height: 1.6;
}

/* Typography - Mobile First Approach */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: var(--heading-weight);
    color: var(--primary-color);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
}

p {
    margin: 0 0 1rem 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Dark Mode Styles */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--light-color) !important;
}

body.dark-mode a {
    color: var(--accent-color);
}

body.dark-mode .service-title-pro {
    color: #000000 !important;
}

body.dark-mode .what-we-do h2 {
    color: var(--light-color) !important;
}

body.dark-mode .values-section h2,
body.dark-mode .values-section h3 {
    color: var(--light-color) !important;
}

body.light-mode {
    background-color: var(--light-color); 
    color: var(--dark-color); 
}

body.dark-mode {
    background-color: var(--dark-color);
    color: var(--light-color); 
}

/* Container Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
    min-width: 0;
}

/* NavBar Styles - Mobile First */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--default-text-size);
    font-weight: var(--body-weight);
    font-family: var(--body-font);
    color: var(--light-color);
    width: 100%;
    padding: 0.75rem var(--container-padding);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled a {
    color: var(--dark-color);
}

body.dark-mode nav.scrolled {
    background-color: rgba(8, 54, 103, 0.95);
}

body.dark-mode nav.scrolled a {
    color: var(--light-color);
}

body.dark-mode nav.scrolled #logo {
    filter: invert();
}

#logo {
    height: 2.5rem;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-menu {
    display: none;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.navbar-menu li a {
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.navbar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav a {
    color: var(--light-color);
}

.nav-control-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.nav-control-btns button {
    padding: 0.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.nav-control-btns button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger-icon {
    display: block;
}

/* Off Canvas Menu */
.offcanvas-menu {
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.offcanvas-menu.open {
    transform: translateX(0);
}

.offcanvas-nav {
    list-style: none;
    padding: 2rem 1rem;
    color: var(--light-color);
    margin: 0;
}

.offcanvas-nav li {
    margin: 1rem 0;
}

.offcanvas-nav li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.offcanvas-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(0.5rem);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #e55a4d;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .card {
    background: var(--dark-color);
    color: var(--light-color);
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 15, 203, 0.1);
}

body.dark-mode .form-control {
    background: var(--dark-color);
    border-color: #555;
    color: var(--light-color);
}

/* Responsive Breakpoints */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    :root {
        --container-padding: 1.5rem;
        --default-text-size: 16px;
    }
    
    .container {
        max-width: 540px;
    }
    
    #logo {
        height: 2.75rem;
    }
    
    nav {
        padding: 1rem var(--container-padding);
    }
    
    .nav-control-btns button {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
        --section-padding: 3rem 0;
        --element-gap: 1.5rem;
    }
    
    .container {
        max-width: 720px;
    }
    
    nav {
        justify-content: space-evenly;
        padding: 1rem 5%;
    }
    
    #logo {
        height: 3rem;
    }
    
    .navbar-menu {
        display: flex;
    }
    
    .hamburger-icon {
        display: none;
    }
    
    .nav-control-btns {
        gap: 1rem;
    }
    
    .nav-control-btns button {
        width: 3rem;
        height: 3rem;
    }
    
    /* Grid system for tablets */
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large devices (desktops, 992px and up) */
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    :root {
        --container-padding: 2.5rem;
        --section-padding: 4rem 0;
        --element-gap: 2rem;
        --default-text-size: 18px;
    }
    
    .container {
        max-width: 960px;
    }
    
    nav {
        padding: 1.25rem 5%;
    }
    
    #logo {
        height: 3.5rem;
    }
    
    .navbar-menu {
        gap: 2.5rem;
    }
    
    .navbar-menu li a {
        padding: 0.75rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .nav-control-btns button {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.1rem;
    }
    
    /* Grid system for desktops */
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }
    
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    :root {
        --container-padding: 3rem;
        --section-padding: 5rem 0;
        --element-gap: 2.5rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    nav {
        padding: 1.5rem 5%;
    }
    
    #logo {
        height: 4rem;
    }
    
    .navbar-menu {
        gap: 3rem;
    }
    
    .navbar-menu li a {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
    
    .nav-control-btns button {
        width: 4rem;
        height: 4rem;
        font-size: 1.25rem;
    }
    
    /* Grid system for extra large screens */
    .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    :root {
        --section-padding: 6rem 0;
        --element-gap: 3rem;
    }
}

/* Mobile specific styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Mobile navigation improvements */
    nav {
        padding: 0.75rem 1rem;
        align-items: center;
        justify-content: space-between;
    }
    
    #logo {
        height: 2.25rem;
    }
    
    .nav-control-btns {
        gap: 0.5rem;
    }
    
    .nav-control-btns button {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }
    
    /* Mobile typography adjustments */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
    
    /* Mobile button adjustments */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile form adjustments */
    .form-control {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    /* Mobile card adjustments */
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile spacing utilities */
    .p-mobile-1 { padding: 0.5rem; }
    .p-mobile-2 { padding: 1rem; }
    .p-mobile-3 { padding: 1.5rem; }
    
    .m-mobile-1 { margin: 0.5rem; }
    .m-mobile-2 { margin: 1rem; }
    .m-mobile-3 { margin: 1.5rem; }
    
    /* Hide elements on mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    /* Show elements only on mobile */
    .d-mobile-block {
        display: block !important;
    }
    
    .d-mobile-flex {
        display: flex !important;
    }
}

/* Tablet specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet-specific adjustments */
    .navbar-menu {
        gap: 1.5rem;
    }
    
    .navbar-menu li a {
        padding: 0.625rem 1rem;
        font-size: 1rem;
    }
    
    /* Tablet button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Tablet grid adjustments */
    .row {
        margin: 0 -0.75rem;
    }
    
    .col {
        padding: 0 0.75rem;
    }
    
    /* Hide elements on tablet */
    .d-tablet-none {
        display: none !important;
    }
    
    /* Show elements only on tablet */
    .d-tablet-block {
        display: block !important;
    }
    
    .d-tablet-flex {
        display: flex !important;
    }
}

/* Desktop specific styles (992px and up) */
@media (min-width: 992px) {
    /* Hide elements on desktop */
    .d-desktop-none {
        display: none !important;
    }
    
    /* Show elements only on desktop */
    .d-desktop-block {
        display: block !important;
    }
    
    .d-desktop-flex {
        display: flex !important;
    }
    
    /* Desktop grid improvements */
    .row {
        margin: 0 -1rem;
    }
    
    .col {
        padding: 0 1rem;
    }
}

/* Print styles */
@media print {
    nav,
    .nav-control-btns,
    .hamburger-icon,
    .offcanvas-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --accent-color: #ff0000;
        --text-color: #000000;
        --border-color: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Remove focus outline from navbar links - ADD THIS AT THE END */
nav ul li a:focus,
nav ul li a:active,
.navbar-menu li a:focus,
.navbar-menu li a:active,
#themeToggle:focus,
#themeToggle:active,
#hamburger-icon:focus,
#hamburger-icon:active,
#close-menu:focus,
#close-menu:active,
#offcanvas-menu ul li a:focus,
#offcanvas-menu ul li a:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Override the existing focus styles specifically for navigation */
nav *:focus,
nav *:active {
    outline: none !important;
    box-shadow: none !important;
}

/* new code */
/* Add these styles at the end of your global.css file */

/* Enhanced Mobile Navigation Styles */
@media (max-width: 767px) {
    /* Mobile menu specific improvements */
    #offcanvas-menu {
        width: min(320px, 85vw) !important;
        background: linear-gradient(135deg, 
            rgba(17, 24, 39, 0.98) 0%, 
            rgba(31, 41, 55, 0.98) 50%, 
            rgba(17, 24, 39, 0.98) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5) !important;
    }
    
    .mobile-nav-link {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
        font-weight: 600 !important;
        letter-spacing: 0.025em !important;
    }
    
    .mobile-nav-link span {
        color: #ffffff !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    .mobile-nav-link:hover span {
        color: #00AEEF !important;
        text-shadow: 0 0 10px rgba(0, 174, 239, 0.3) !important;
    }
    
    .mobile-nav-link:active {
        background: rgba(0, 174, 239, 0.2) !important;
        transform: scale(0.98) !important;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    #offcanvas-menu {
        width: min(280px, 90vw) !important;
    }
    
    .mobile-nav-link {
        padding: 12px 16px !important;
        gap: 12px !important;
    }
    
    .mobile-nav-link span {
        font-size: 1rem !important;
    }
    
    .mobile-nav-link i {
        font-size: 1rem !important;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    #offcanvas-menu {
        width: 95vw !important;
    }
    
    .mobile-nav-link {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
    
    .mobile-nav-link span {
        font-size: 0.95rem !important;
    }
}

/* Dark mode support for mobile menu */
body.dark-mode #offcanvas-menu {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(17, 24, 39, 0.98) 50%, 
        rgba(0, 0, 0, 0.98) 100%) !important;
}

body.dark-mode .mobile-nav-link span {
    color: #f8fafc !important;
}

body.dark-mode .mobile-nav-link:hover span {
    color: #00AEEF !important;
}
