/* Custom CSS for TCCIA Mbeya Website */

/* Root Variables */
:root {
    --primary-color: #00953A; /* TCCIA green */
    --secondary-color: #FFD100; /* TCCIA yellow */
    --accent-color: #00AEEF; /* TCCIA blue */
    --dark-color: #222222; /* TCCIA black */
    --light-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #00953A, #FFD100);
    --gradient-secondary: linear-gradient(135deg, #FFD100, #00AEEF);
    --gradient-accent: linear-gradient(135deg, #00AEEF, #00953A);
    --gradient-hero: linear-gradient(135deg, #ffffff, #E5F6EF);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    /* Tanzanian Flag Colors (official) */
    --flag-green: #00953A;
    --flag-yellow: #FFD100;
    --flag-blue: #00AEEF;
    --flag-black: #000000;
}

/* Tanzanian Flag Background */
.tanzanian-flag-bg {
    background: linear-gradient(120deg,
        var(--flag-green) 0%,
        var(--flag-green) 22%,
        var(--flag-yellow) 22%,
        var(--flag-yellow) 27%,
        var(--flag-black) 27%,
        var(--flag-black) 73%,
        var(--flag-yellow) 73%,
        var(--flag-yellow) 78%,
        var(--flag-blue) 78%,
        var(--flag-blue) 100%
    );
    position: relative;
}

.tanzanian-flag-bg::before {
    /* Remove overlay for vibrancy */
    display: none;
}

.tanzanian-flag-bg > * {
    position: relative;
    z-index: 2;
}

/* Subtle flag pattern for hero sections */
.hero-flag-accent {
    position: relative;
}

.hero-flag-accent::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 168, 107, 0.1) 0%,
        rgba(0, 168, 107, 0.1) 25%,
        rgba(255, 209, 0, 0.1) 25%,
        rgba(255, 209, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(255, 209, 0, 0.1) 70%,
        rgba(255, 209, 0, 0.1) 75%,
        rgba(30, 181, 58, 0.1) 75%,
        rgba(30, 181, 58, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Flag color utilities */
.text-flag-green { color: var(--flag-green) !important; }
.text-flag-blue { color: var(--flag-blue) !important; }
.text-flag-yellow { color: var(--flag-yellow) !important; }
.bg-flag-green { background-color: var(--flag-green) !important; }
.bg-flag-blue { background-color: var(--flag-blue) !important; }
.bg-flag-yellow { background-color: var(--flag-yellow) !important; }

/* Flag-themed buttons */
.btn-flag-green {
    background-color: var(--flag-green);
    border-color: var(--flag-green);
    color: white;
}

.btn-flag-green:hover {
    background-color: #008f5a;
    border-color: #008f5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.btn-flag-blue {
    background-color: var(--flag-blue);
    border-color: var(--flag-blue);
    color: white;
}

.btn-flag-blue:hover {
    background-color: #189b30;
    border-color: #189b30;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 181, 58, 0.3);
}

.btn-flag-yellow {
    background-color: var(--flag-yellow);
    border-color: var(--flag-yellow);
    color: var(--flag-black);
}

.btn-flag-yellow:hover {
    background-color: #e6bc00;
    border-color: #e6bc00;
    color: var(--flag-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 0, 0.3);
}

/* Universal Box Sizing and Responsive Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    background: linear-gradient(135deg, #00953A 0%, #00A86B 100%);
    min-height: 100vh;
}

/* Navbar, Top Bar, Footer, and Progress Bar Background */
.navbar, .top-bar, footer, .progress-bar-container {
    background: linear-gradient(135deg, #00953A 0%, #00A86B 100%) !important;
    color: #fff;
}

/* Update navigation buttons and other main buttons to use the green gradient as background, matching the new TCCIA base color */
.navbar .nav-link,
.btn-gradient-primary,
.navbar .btn,
.navbar-toggler,
.navbar .active {
    background: linear-gradient(135deg, #00953A 0%, #00A86B 100%) !important;
    color: #fff !important;
    border: none !important;
}

.navbar .nav-link:hover,
.btn-gradient-primary:hover,
.navbar .btn:hover {
    background: linear-gradient(135deg, #00A86B 0%, #00953A 100%) !important;
    color: #FFD100 !important;
}

/* Subtle Tanzanian flag watermark */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 120px;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 168, 107, 0.02) 0%,
        rgba(0, 168, 107, 0.02) 25%,
        rgba(255, 209, 0, 0.02) 25%,
        rgba(255, 209, 0, 0.02) 30%,
        rgba(0, 0, 0, 0.02) 30%,
        rgba(0, 0, 0, 0.02) 70%,
        rgba(255, 209, 0, 0.02) 70%,
        rgba(255, 209, 0, 0.02) 75%,
        rgba(30, 181, 58, 0.02) 75%,
        rgba(30, 181, 58, 0.02) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Utility Classes */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-hero {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-cyan {
    color: #06b6d4;
}

.text-blue {
    color: #3b82f6;
}

.text-emerald {
    color: #10b981;
}

.text-purple {
    color: #8b5cf6;
}

.text-light-blue {
    color: #a5b4fc;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-accent {
    background: var(--gradient-accent) !important;
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

.btn-gradient-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary::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;
}

.btn-gradient-primary:hover::before {
    left: 100%;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.4);
    color: white;
}

/* Glass Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(90deg, #1e293b, #000000, #1e293b) !important;
    color: #06b6d4;
    font-size: 0.875rem;
}

/* Header Styles */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 56px;
    height: 56px;
    font-size: 32px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
}

/* TCCIA Brand Styling */
.navbar-brand h1 {
    color: var(--flag-green) !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand small {
    color: var(--flag-blue) !important;
    font-weight: 500;
}

.logo-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.nav-link {
    font-weight: 500;
    color: #64748b !important;
    padding: 8px 16px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0d9488 !important;
    background: rgba(13, 148, 136, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: white !important;
    background: var(--gradient-primary);
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    overflow: hidden;
    background-attachment: fixed;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom right,
        rgba(0, 0, 0, 0.2),
        rgba(39, 39, 42, 0.15),
        rgba(0, 0, 0, 0.3)
    );
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-buttons .btn {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-stats .stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.hero-stats .stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero-achievements .achievement-card {
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.hero-achievements .achievement-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15) !important;
}

.achievement-icon {
    font-size: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

/* About Section */
.about-content h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: 24px;
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
}

/* Testimonials Section */
.testimonial-card {
    margin-bottom: 2rem;
}

.testimonial-content {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-quote {
    opacity: 0.3;
}

.testimonial-author img {
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* News Section */
.news-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card img {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

.footer-brand .logo-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background: var(--gradient-primary) !important;
    transform: translateY(-2px);
    border-color: transparent !important;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px 0 0 8px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: none;
    color: white;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.4);
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px 16px 0 0;
}

.btn-close {
    filter: invert(1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partners Section */
.partners-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--flag-green) 0%, 
        var(--flag-green) 30%, 
        var(--flag-yellow) 30%, 
        var(--flag-yellow) 35%, 
        var(--flag-black) 35%, 
        var(--flag-black) 65%, 
        var(--flag-yellow) 65%, 
        var(--flag-yellow) 70%, 
        var(--flag-blue) 70%, 
        var(--flag-blue) 100%
    );
}

.partner-logo-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 100px;
    background: white;
}

.partner-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--flag-green);
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partner-logo-card {
        min-height: 80px;
    }
    
    .partner-logo {
        max-height: 60px;
    }
}

@media (max-width: 576px) {
    .partners-section .row {
        justify-content: center;
    }
    
    .partner-logo-card {
        min-height: 70px;
    }
    
    .partner-logo {
        max-height: 50px;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
    }
    
    .service-card,
    .news-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-content {
        padding: 2rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar .d-flex {
        justify-content: center;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Custom Badge Styles */
.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Text Selection */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--dark-color);
}

::-moz-selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--dark-color);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-to-top,
    .progress-bar-container,
    .modal {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        color: #000 !important;
        background: white !important;
    }
}

/* Enhanced Responsive Design - Fit to Screen */

/* Prevent horizontal overflow */
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Row overflow fix */
.row {
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
}

/* Column responsiveness */
[class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-width: 0;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Iframe and embed responsiveness */
iframe,
embed,
object,
video {
    max-width: 100%;
    height: auto;
}

/* Specific iframe aspect ratio for maps */
.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Table responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form elements responsiveness */
.form-control,
.form-select,
.btn {
    max-width: 100%;
}

/* Card responsiveness */
.card {
    max-width: 100%;
    overflow: hidden;
}

/* Navigation improvements */
.navbar-brand {
    max-width: 70%;
}

.navbar-brand h1 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.navbar-brand small {
    font-size: clamp(0.7rem, 2vw, 0.875rem);
}

/* Button group responsiveness */
.btn-group {
    flex-wrap: wrap;
}

/* Display utilities for better responsive control */
@media (max-width: 1400px) {
    .display-1 { font-size: 4rem; }
    .display-2 { font-size: 3.5rem; }
    .display-3 { font-size: 3rem; }
    .display-4 { font-size: 2.5rem; }
    .display-5 { font-size: 2rem; }
}

@media (max-width: 1200px) {
    .display-1 { font-size: 3.5rem; }
    .display-2 { font-size: 3rem; }
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 992px) {
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    /* Logo adjustments */
    .logo-container {
        margin-right: 0.5rem !important;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Footer column stacking */
    .footer .col-lg-3,
    .footer .col-lg-2,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2rem; }
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.25rem; }
    
    /* Container adjustments */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-section .col-lg-4 {
        margin-top: 1rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-group-vertical {
        width: 100%;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Card improvements */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Navigation improvements */
    .navbar-brand {
        max-width: 85%;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    /* Table mobile improvements */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 576px) {
    .display-1 { font-size: 2rem; }
    .display-2 { font-size: 1.75rem; }
    .display-3 { font-size: 1.5rem; }
    .display-4 { font-size: 1.25rem; }
    .display-5 { font-size: 1.125rem; }
    
    /* Ultra-mobile adjustments */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Hero section ultra-mobile */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    /* Lead text adjustments */
    .lead {
        font-size: 1.1rem;
    }
    
    /* Button adjustments */
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
    
    /* Logo ultra-mobile */
    .navbar-brand h1 {
        font-size: 1.1rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Card ultra-mobile */
    .card-body {
        padding: 1rem;
    }
    
    /* Gap adjustments */
    .gap-3 {
        gap: 0.75rem !important;
    }
    
    .gap-4 {
        gap: 1rem !important;
    }
    
    /* Margin/Padding adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .navbar-brand {
        max-width: 90%;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    /* Even smaller text for very small screens */
    .display-4 { font-size: 1.1rem; }
    .display-5 { font-size: 1rem; }
    
    /* Compact spacing */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .display-4,
    .display-5 {
        font-size: 1.2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Individual Floating News Bubbles */
.floating-news-bubble {
    position: fixed;
    width: 280px;
    max-width: 90vw;
    color: white;
    border-radius: 20px;
    padding: 15px 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Individual bubble styles and positioning */
.floating-news-bubble:nth-of-type(1) {
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.4);
    animation: floatBubble1 8s ease-in-out infinite;
}

.floating-news-bubble:nth-of-type(2) {
    top: 200px;
    right: 320px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.4);
    animation: floatBubble2 10s ease-in-out infinite 2s;
}

.floating-news-bubble:nth-of-type(3) {
    top: 320px;
    right: 50px;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.4);
    color: #333;
    animation: floatBubble3 12s ease-in-out infinite 4s;
}

.floating-news-bubble:nth-of-type(4) {
    top: 140px;
    right: 380px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.4);
    animation: floatBubble4 9s ease-in-out infinite 1s;
}

.floating-news-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-news-bubble.hidden {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
}

.news-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.news-bubble-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.news-bubble-title i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.news-bubble-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.news-bubble-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.news-bubble-content {
    margin-bottom: 1rem;
}

.news-bubble-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.news-bubble-date {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

.news-bubble-actions {
    display: flex;
    gap: 0.5rem;
}

.news-bubble-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.news-bubble-btn.primary {
    background: white;
    color: #0d9488;
}

.news-bubble-btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.news-bubble-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-bubble-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.news-bubble-indicator {
    position: absolute;
    top: -5px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #f59e0b;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Multiple News Items Support */
.news-bubble-carousel {
    position: relative;
    overflow: hidden;
}

.news-bubble-slides {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.news-bubble-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.news-bubble-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.5rem;
}

.news-bubble-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.news-bubble-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.news-bubble-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.news-bubble-indicators {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.news-bubble-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-bubble-dot.active {
    background: white;
    transform: scale(1.2);
}

.news-bubble-counter {
    font-size: 0.7rem;
    opacity: 0.8;
    margin: 0 0.5rem;
}

.news-bubble-auto-cycle {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.6rem;
    transition: all 0.3s ease;
}

.news-bubble-auto-cycle.active {
    background: rgba(255, 255, 255, 0.4);
}

.news-bubble-auto-cycle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Priority indicators */
.news-priority-high {
    border-left: 4px solid #ef4444;
}

.news-priority-medium {
    border-left: 4px solid #f59e0b;
}

.news-priority-low {
    border-left: 4px solid #10b981;
}

.news-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Individual Bubble Animations */
@keyframes floatBubble1 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) translateX(-5px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) translateX(5px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) translateX(-3px) rotate(0.5deg);
    }
}

@keyframes floatBubble2 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    30% {
        transform: translateY(-8px) translateX(8px) rotate(-1deg);
    }
    60% {
        transform: translateY(-12px) translateX(-4px) rotate(1.5deg);
    }
    90% {
        transform: translateY(-6px) translateX(6px) rotate(-0.5deg);
    }
}

@keyframes floatBubble3 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    20% {
        transform: translateY(-12px) translateX(-6px) rotate(1deg);
    }
    40% {
        transform: translateY(-8px) translateX(8px) rotate(-1.2deg);
    }
    70% {
        transform: translateY(-15px) translateX(-2px) rotate(0.8deg);
    }
}

@keyframes floatBubble4 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    35% {
        transform: translateY(-10px) translateX(7px) rotate(-0.8deg);
    }
    65% {
        transform: translateY(-6px) translateX(-5px) rotate(1.2deg);
    }
    85% {
        transform: translateY(-13px) translateX(3px) rotate(-0.4deg);
    }
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsiveness for individual news bubbles */
@media (max-width: 768px) {
    .floating-news-bubble {
        width: calc(100vw - 40px);
        max-width: 280px;
        position: fixed !important;
    }
    
    .floating-news-bubble:nth-of-type(1) {
        top: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
    
    .floating-news-bubble:nth-of-type(2) {
        top: 120px;
        right: 20px;
        left: 20px;
        width: auto;
    }
    
    .floating-news-bubble:nth-of-type(3) {
        top: 220px;
        right: 20px;
        left: 20px;
        width: auto;
    }
    
    .floating-news-bubble:nth-of-type(4) {
        top: 320px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .floating-news-bubble {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .news-bubble-title {
        font-size: 16px;
    }
    
    .news-close-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    .floating-news-bubble {
        width: calc(100vw - 40px);
        max-width: 320px;
        bottom: 80px;
        right: -340px;
        top: auto;
        transform: none;
        padding: 1rem;
    }
    
    .floating-news-bubble.show {
        right: 20px;
        bottom: 80px;
    }
    
    .floating-news-bubble.hidden {
        right: -340px;
    }
    
    .news-bubble-title {
        font-size: 0.9rem;
    }
    
    .news-bubble-text {
        font-size: 0.8rem;
    }
    
    .news-bubble-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .news-bubble-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .news-bubble-navigation {
        margin-top: 0.75rem;
        gap: 0.3rem;
    }
    
    .news-bubble-nav-btn {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .news-bubble-dot {
        width: 6px;
        height: 6px;
    }
    
    .news-bubble-counter {
        font-size: 0.65rem;
        margin: 0 0.3rem;
    }
    
    .news-category-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }
    
    .floating-news-bubble.show {
        right: 20px;
        bottom: 80px;
    }
    
    .floating-news-bubble.hidden {
        right: -320px;
    }
    
    .news-bubble-title {
        font-size: 0.9rem;
    }
    
    .news-bubble-text {
        font-size: 0.8rem;
    }
    
    .news-bubble-actions {
        flex-direction: column;
    }
    
    .news-bubble-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .floating-news-bubble {
        bottom: 70px;
        width: calc(100vw - 20px);
        margin: 0 10px;
        right: -100vw;
    }
    
    .floating-news-bubble.show {
        right: 0;
        left: 10px;
        bottom: 70px;
    }
}

/* Services Page Styles */
.service-nav .btn {
    min-width: 150px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.service-nav .btn:hover,
.service-nav .btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-nav .btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.service-section {
    animation: fadeInUp 0.5s ease-out;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-stat {
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-stat:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .service-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .service-nav .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 0.5rem;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .icon-box i {
        font-size: 1.5rem !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}