
/* ================================================================
   DIGITAL BLINC MOBILE-FIRST CSS FRAMEWORK 2025 - ULTIMATE
   Complete with Collapsible Contact Forms and All Features
   ================================================================ */

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Container System */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* Flexbox Utilities */
.flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flex-row {
    flex-direction: row;
    flex-wrap: wrap;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

/* PERFECT BUTTON SYSTEM - ALL CONTRAST ISSUES FIXED */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    min-width: 48px;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* PRIMARY BUTTON */
.btn-primary {
    background-color: #007bff !important;
    color: #ffffff !important;
    border: 2px solid #007bff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0056b3 !important;
    color: #ffffff !important;
    border-color: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* OUTLINE BUTTON - LIGHT BACKGROUNDS */
.btn-outline {
    background-color: transparent !important;
    color: #007bff !important;
    border: 2px solid #007bff !important;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
}

/* OUTLINE BUTTON ON DARK BACKGROUNDS - FIXED */
.bg-primary .btn-outline,
.bg-dark .btn-outline,
.card.bg-primary .btn-outline,
.hero .btn-outline,
.footer .btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.bg-primary .btn-outline:hover,
.bg-dark .btn-outline:hover,
.card.bg-primary .btn-outline:hover,
.hero .btn-outline:hover,
.footer .btn-outline:hover,
.bg-primary .btn-outline:focus,
.bg-dark .btn-outline:focus,
.card.bg-primary .btn-outline:focus,
.hero .btn-outline:focus,
.footer .btn-outline:focus {
    background-color: #ffffff !important;
    color: #007bff !important;
    border-color: #ffffff !important;
}

/* Button Sizes */
.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-small {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-height: 42px;
}

/* COLLAPSIBLE CONTACT FORM */
.collapsible-contact {
    padding: 2rem 0;
    position: relative;
}

.contact-form-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    transform: translateY(-20px);
}

.contact-form-expanded {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.5s ease-in-out;
    transform: translateY(0);
}

#contact-toggle {
    position: relative;
    z-index: 10;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-icon {
    font-size: 1.2rem;
}

.whatsapp-text {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-text {
        display: none;
    }
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
}

.navbar-logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.navbar-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    min-height: 48px;
}

.navbar-nav a:hover,
.navbar-nav a:focus {
    background-color: #f8f9fa;
    color: #007bff;
    outline: none;
}

/* MOBILE NAVIGATION FIX */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 48px;
    min-width: 48px;
    border-radius: 0.375rem;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.navbar-toggle::before,
.navbar-toggle::after,
.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-toggle::before,
.navbar-toggle::after {
    content: '';
}

.navbar-toggle::before {
    transform: translateY(-8px);
}

.navbar-toggle::after {
    transform: translateY(5px);
}

.navbar-toggle.active::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span {
    opacity: 0;
}

.navbar-toggle.active::after {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 767px) {
    .navbar-toggle {
        display: flex !important;
    }
    
    .navbar-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 2rem;
        gap: 2rem;
    }
    
    .navbar-nav.show {
        display: flex !important;
    }
}

}

/* SLOWER SCROLLING SECTIONS */
.logo-scroll-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.scroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.scroll-track {
    display: inline-flex;
    align-items: center;
    animation: scroll-left 90s linear infinite;
    width: max-content;
}

.scroll-track.slow {
    animation-duration: 120s;
}

.scroll-track.fast {
    animation-duration: 75s;
}

.scroll-track img {
    height: 60px;
    width: auto;
    margin: 0 3rem;
    filter: grayscale(70%);
    opacity: 0.8;
    transition: all 0.3s ease;
    object-fit: contain;
    max-width: 150px;
}

.scroll-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroll-container:hover .scroll-track {
    animation-play-state: paused;
}

/* Card Component */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* Award Image Styling */
.award-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.award-section {
    text-align: center;
    padding: 2rem;
}

.award-section .card {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* IMPROVED FOOTER */
.footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
    background-color: #343a40 !important;
}

.footer-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    padding-top: 0.5rem !important;
    color: #ffffff !important;
}

.footer-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.75rem !important;
    padding-top: 0.25rem !important;
    color: #e9ecef !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.5rem !important;
    padding-top: 0.25rem !important;
}

.footer-link {
    color: #e9ecef !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
    padding-top: 0.25rem !important;
    display: inline-block !important;
}

.footer-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-divider {
    border: none !important;
    height: 1px !important;
    background-color: #6c757d !important;
    margin: 2rem 0 1.5rem 0 !important;
}

.footer-bottom {
    padding-top: 1rem !important;
}

.footer-copyright {
    font-size: 0.875rem !important;
    margin: 0 !important;
    padding-top: 0.5rem !important;
    color: #e9ecef !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Color Utilities */
.text-primary { color: #007bff !important; }
.text-white { color: white !important; }
.bg-primary { 
    background-color: #007bff !important; 
    color: white !important;
}
.bg-secondary { 
    background-color: #6c757d !important; 
    color: white !important;
}
.bg-light { background-color: #f8f9fa !important; }
.bg-dark { 
    background-color: #343a40 !important; 
    color: white !important;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Breakpoints */
@media (min-width: 480px) {
    .container {
        max-width: 480px;
        padding: 0 1.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .navbar-nav {
        flex-direction: row;
        gap: 1rem;
        margin-top: 0;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .navbar-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .navbar-nav.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        padding: 2rem 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    .scroll-track {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
