/* Shared styles for navbar and footer */
:root {
    --bs-primary: #1E4D8C;
    --bs-secondary: #00B4D8;
    --bs-dark: #1A1A1A;
    --bs-light: #F8F9FA;
    --spacing-unit: 1rem;
}

/* Container styling for consistent layout across all pages */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 var(--spacing-unit) !important;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-top: 90px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first responsive padding */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 65px;
    }
}

/* Enhanced Navbar Styles */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
}

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

/* Professional Mobile Navbar - Reduced Sizes */
@media (max-width: 991px) {
    .navbar {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
    
    .navbar-brand img {
        height: 38px;
    }
    
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(30, 77, 140, 0.95);
        border-radius: 6px;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.875rem !important;
        margin: 0.2rem 0;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
    
    .navbar-brand img {
        height: 34px;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.35rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem !important;
        margin: 0.15rem 0;
    }
    
    .navbar-collapse {
        margin-top: 0.6rem;
        padding: 0.6rem 0;
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #163761 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
    width: 100%;
}

.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.footer-content {
    width: 100%;
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
    object-fit: contain;
    margin-left: 0;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.company-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: white;
    color: var(--bs-primary);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 40px;
    height: 2px;
    background: var(--bs-secondary);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--bs-secondary);
    font-size: 1.25rem;
}

.contact-item .label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Enhanced Footer Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 3rem 3rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }
    
    .footer-brand-section {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        height: 42px;
        margin-bottom: 0.6rem;
    }
    
    .company-desc {
        text-align: center;
        max-width: 280px;
        margin: 0 auto 0.75rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 0.6rem;
        gap: 0.6rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .footer-title {
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 1.5px;
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .footer-menu li {
        margin-bottom: 0.4rem;
    }
    
    .footer-menu a {
        font-size: 0.8rem;
    }
    
    .contact-info {
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .contact-item .label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .copyright {
        font-size: 0.75rem;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .footer-logo {
        height: 45px;
    }
    
    .company-desc {
        font-size: 0.8rem;
        max-width: 250px;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-menu a,
    .contact-item p,
    .contact-item a {
        font-size: 0.85rem;
    }
    
    .contact-item {
        gap: 0.4rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    .hours-list {
        gap: 0.5rem;
    }
    
    .hours-item {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
    }

    .footer-bottom {
        padding: 1.25rem 1rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }

    .footer-bottom-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .footer-content {
        padding: 1.5rem 0.75rem;
    }
    
    .company-desc {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .footer-title {
        font-size: 0.9rem;
    }
    
    .footer-menu a,
    .contact-item p,
    .contact-item a {
        font-size: 0.8rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Universal Mobile Optimizations for All Pages */

/* Section spacing adjustments */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-4 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .my-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .container {
        padding-left: var(--spacing-unit) !important;
        padding-right: var(--spacing-unit) !important;
    }
}

/* Professional Mobile Card Optimizations - Reduced Sizes */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    .card-body {
        padding: 0.875rem !important;
    }
    
    .card-title {
        font-size: 0.95rem !important;
        line-height: 1.3;
        margin-bottom: 0.4rem !important;
    }
    
    .card-text {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin-bottom: 0.5rem !important;
    }
    
    .card-header {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    .card-footer {
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .card {
        border-radius: 6px !important;
        margin-bottom: 0.875rem;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .card-text {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .card-header {
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
    }
    
    .card-footer {
        padding: 0.6rem !important;
        font-size: 0.75rem !important;
    }
}

/* Professional Mobile Form Optimizations - Reduced Sizes */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
        font-weight: 500;
    }
    
    .btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        min-height: 40px;
        font-weight: 500;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        min-height: 42px;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        min-height: 32px;
    }
}

@media (max-width: 576px) {
    .form-control,
    .form-select {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
        border-radius: 5px !important;
    }
    
    .form-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.4rem;
        padding: 0.55rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 38px;
    }
    
    .btn-lg {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.85rem !important;
        min-height: 40px;
    }
    
    .btn-sm {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.7rem !important;
        min-height: 30px;
    }
    
    .btn-group .btn {
        width: auto;
        margin-bottom: 0.2rem;
    }
}

/* Professional Mobile Typography - Reduced Sizes */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.4rem, 4vw, 2rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    h2 {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.6rem !important;
    }
    
    h3 {
        font-size: clamp(1.1rem, 3vw, 1.4rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    h4 {
        font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
        margin-bottom: 0.5rem !important;
    }
    
    h5 {
        font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
        margin-bottom: 0.4rem !important;
    }
    
    h6 {
        font-size: clamp(0.9rem, 1.8vw, 1rem) !important;
        margin-bottom: 0.4rem !important;
    }
    
    .lead {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .display-1 {
        font-size: clamp(2rem, 6vw, 3.5rem) !important;
    }
    
    .display-2 {
        font-size: clamp(1.75rem, 5.5vw, 3rem) !important;
    }
    
    .display-3 {
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    }
    
    .display-4 {
        font-size: clamp(1.3rem, 4.5vw, 2rem) !important;
    }
    
    p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .text-muted {
        font-size: 0.8rem !important;
    }
    
    .small {
        font-size: 0.75rem !important;
    }
}

/* List and Content Optimizations */
@media (max-width: 768px) {
    ul, ol {
        padding-left: 1.25rem !important;
    }
    
    li {
        margin-bottom: 0.5rem;
    }
    
    blockquote {
        margin: 1rem 0 !important;
        padding: 1rem !important;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Image and Media Optimizations */
@media (max-width: 768px) {
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .img-fluid {
        border-radius: 8px;
    }
}

/* Enhanced Universal Touch Support */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Universal touch-friendly elements */
button, 
[role="button"], 
.btn, 
.nav-link, 
.social-link, 
a[href], 
input[type="submit"], 
input[type="button"] {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Active states for better touch feedback */
.btn:active,
.nav-link:active,
.social-link:active,
button:active,
[role="button"]:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Form elements touch optimization */
input, 
textarea, 
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

/* Touch-friendly hover states */
@media (hover: none) and (pointer: coarse) {
    /* Disable problematic hover effects */
    .navbar-nav .nav-link:hover,
    .footer-logo:hover,
    .social-link:hover,
    .footer-menu a:hover,
    .card:hover,
    .btn:hover,
    .hover-translate:hover {
        transform: none !important;
    }
    
    /* Ensure captions are always visible on touch devices */
    .portfolio-content,
    .gallery-caption {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    
    /* Better button feedback on touch */
    .btn:active {
        background-color: rgba(30, 77, 140, 0.9) !important;
    }
    
    .btn-secondary:active {
        background-color: rgba(0, 180, 216, 0.9) !important;
    }
    
    .social-link:active {
        background-color: rgba(255, 255, 255, 0.9) !important;
        color: var(--bs-primary) !important;
    }
    
    /* Disable hover animations globally on touch devices */
    *:hover {
        animation-play-state: paused !important;
    }
}

/* Improved focus states for accessibility */
button:focus,
[role="button"]:focus,
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Scroll behavior optimization */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Hide scroll bars globally for desktop */
html::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scroll bars for all elements */
*::-webkit-scrollbar {
    width: 0px !important;
    background: transparent !important;
    display: none !important;
}

* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

/* Hide scroll bars for all possible elements */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar,
section::-webkit-scrollbar,
article::-webkit-scrollbar,
aside::-webkit-scrollbar,
nav::-webkit-scrollbar,
main::-webkit-scrollbar,
header::-webkit-scrollbar,
footer::-webkit-scrollbar,
.container::-webkit-scrollbar,
.container-fluid::-webkit-scrollbar,
.row::-webkit-scrollbar,
.col::-webkit-scrollbar,
[class*="col-"]::-webkit-scrollbar,
.services-container::-webkit-scrollbar,
.gallery-filters::-webkit-scrollbar,
.team-row::-webkit-scrollbar,
.scrolling-wrapper::-webkit-scrollbar,
.navbar-collapse::-webkit-scrollbar,
.lightbox-sidebar::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.service-tabs::-webkit-scrollbar,
.lightbox-properties::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
    width: 0px !important;
    background: transparent !important;
    display: none !important;
}

html,
body,
div,
section,
article,
aside,
nav,
main,
header,
footer,
.container,
.container-fluid,
.row,
.col,
[class*="col-"],
.services-container,
.gallery-filters,
.team-row,
.scrolling-wrapper,
.navbar-collapse,
.lightbox-sidebar,
.modal-body,
.service-tabs,
.lightbox-properties,
.gallery-grid {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

/* Prevent zoom on form focus (iOS) */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
} 