/* Bethanan Associates - Main Stylesheet */

/* Global Section Scroll Behavior */
section {
    scroll-margin-top: 80px;
}

/* Ensure section headers have proper spacing from navbar */
section .section-title {
    padding-top: 1rem;
}

/* Special handling for first section after navbar */
section:not(#home) {
    padding-top: 1.5rem;
}

/* Accessibility Improvements */
.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;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus indicators for better accessibility */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@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;
    }
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e3a8a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    overflow: hidden;
    padding-top: 15vh;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
}

.loading-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    margin-top: -10vh;
}

.loading-logo-container {
    margin-bottom: 3rem;
    animation: logoEntrance 1.5s ease-out;
}

.loading-logo-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-inner {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.loading-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border: 3px solid transparent;
    border-top: 3px solid #3b82f6;
    border-right: 3px solid #60a5fa;
    border-radius: 50%;
    animation: ringRotate 2s linear infinite;
}

.loading-text-content {
    color: white;
}

.loading-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.loading-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.loading-progress-container {
    margin-bottom: 2rem;
    width: 100%;
}

.loading-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 2px;
    width: 0%;
    animation: progressFill 3s ease-out forwards;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.loading-percentage {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    animation: percentageCount 3s ease-out forwards;
}

.loading-dots-container {
    margin-top: 1rem;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    animation: spinnerPulse 1.4s ease-in-out infinite;
}

.spinner-dot:nth-child(1) { animation-delay: 0s; }
.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }
.spinner-dot:nth-child(4) { animation-delay: 0.6s; }

.loading-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
    animation: messageFloat 2s ease-in-out infinite;
}

/* Loading Animations */
@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(5px) translateY(-10px); }
    75% { transform: translateX(-5px) translateY(5px); }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    100% { text-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes percentageCount {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes spinnerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes messageFloat {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0px);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* New Ultra Professional Loading Screen Styles */
.loading-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    animation: patternMove 20s linear infinite;
    opacity: 0.3;
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 1s;
    animation-duration: 11s;
}

/* Premium Brand Section */
.loading-brand-section {
    margin-bottom: 4rem;
}

.loading-logo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
}

.loading-logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, #3b82f6, transparent);
    border-radius: 50%;
    animation: logoRotateNew 4s linear infinite;
    filter: blur(2px);
}

.loading-logo-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.logo-hexagon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: hexagonPulse 3s ease-in-out infinite;
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.logo-hexagon i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.logo-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #60a5fa, #93c5fd);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.orbit-dot-1 {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitRotate1 3s linear infinite;
}

.orbit-dot-2 {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    animation: orbitRotate2 3s linear infinite;
}

.orbit-dot-3 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitRotate3 3s linear infinite;
}

/* Animated Brand Text */
.loading-brand-text {
    color: white;
}

.brand-name {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3rem;
}

.brand-letter {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterReveal 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.brand-letter:nth-child(1) { animation-delay: 0.1s; }
.brand-letter:nth-child(2) { animation-delay: 0.2s; }
.brand-letter:nth-child(3) { animation-delay: 0.3s; }
.brand-letter:nth-child(4) { animation-delay: 0.4s; }
.brand-letter:nth-child(5) { animation-delay: 0.5s; }
.brand-letter:nth-child(6) { animation-delay: 0.6s; }
.brand-letter:nth-child(7) { animation-delay: 0.7s; }
.brand-letter:nth-child(8) { animation-delay: 0.8s; }

.brand-subtitle {
    position: relative;
    margin-bottom: 1rem;
}

.subtitle-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3em;
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}

.subtitle-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    margin: 0.5rem auto;
    animation: lineExpand 2s ease-in-out infinite;
}

.brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.brand-legacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.legacy-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.legacy-text {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Advanced Progress Section */
.loading-progress-section {
    margin-bottom: 3rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.progress-text {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-percent {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    width: 0%;
    height: 10px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    border-radius: 5px;
    filter: blur(4px);
    animation: progressGlow 2s ease-in-out infinite;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-indicator {
    position: absolute;
    top: -6px;
    left: 0%;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    transition: left 0.3s ease;
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    gap:1rem;
}

.stage {
    color: #64748b;
    opacity: 0.5;
    transition: all 0.3s ease;
    font-weight: 400;
}

.stage.active {
    color: #3b82f6;
    opacity: 1;
    font-weight: 500;
}

/* Status Section */
.loading-status {
    text-align: center;
}

.status-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    animation: statusPulse 1.8s ease-in-out infinite;
}

.status-dot:nth-child(1) { animation-delay: 0s; }
.status-dot:nth-child(2) { animation-delay: 0.2s; }
.status-dot:nth-child(3) { animation-delay: 0.4s; }
.status-dot:nth-child(4) { animation-delay: 0.6s; }
.status-dot:nth-child(5) { animation-delay: 0.8s; }

.status-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    animation: messageFloatNew 3s ease-in-out infinite;
}

/* New Advanced Animations */
@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(40px) translateY(40px); }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-5px) scale(0.8);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) translateX(-10px) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes logoRotateNew {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hexagonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
    }
}

@keyframes orbitRotate1 {
    0% { transform: translate(-50%, 0) rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: translate(-50%, 0) rotate(360deg) translateX(60px) rotate(-360deg); }
}

@keyframes orbitRotate2 {
    0% { transform: translate(0, -50%) rotate(120deg) translateX(60px) rotate(-120deg); }
    100% { transform: translate(0, -50%) rotate(480deg) translateX(60px) rotate(-480deg); }
}

@keyframes orbitRotate3 {
    0% { transform: translate(-50%, 0) rotate(240deg) translateX(60px) rotate(-240deg); }
    100% { transform: translate(-50%, 0) rotate(600deg) translateX(60px) rotate(-600deg); }
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes subtitleGlow {
    0% { text-shadow: 0 0 10px rgba(148, 163, 184, 0.3); }
    100% { text-shadow: 0 0 20px rgba(148, 163, 184, 0.6); }
}

@keyframes lineExpand {
    0%, 100% { width: 40px; }
    50% { width: 80px; }
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes indicatorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(59, 130, 246, 1);
    }
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes messageFloatNew {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Professional Quote Modal */
.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.quote-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-modal-overlay.active .quote-modal-container {
    transform: scale(1) translateY(0);
}

.quote-modal-header {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.quote-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.quote-modal-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.quote-modal-title i {
    font-size: 1.5rem;
}

.quote-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.quote-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.quote-modal-content {
    padding: 2rem;
}

.quote-intro {
    margin-bottom: 2rem;
}

.quote-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quote-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quote-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.quote-feature i {
    font-size: 1rem;
}

.quote-form {
    margin-bottom: 2rem;
}

.quote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-form-full {
    grid-column: 1 / -1;
}

.quote-form .form-group {
    position: relative;
}

.quote-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.quote-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.quote-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.quote-input::placeholder {
    color: #94a3b8;
}

/* Quote Form Validation Styles */
.quote-input.valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.quote-input.invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.quote-validation-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

.quote-validation-error i {
    margin-right: 0.5rem;
}

.quote-validation-success {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

.quote-validation-success i {
    margin-right: 0.5rem;
}

.quote-input:focus.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.quote-input:focus.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.quote-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.quote-btn-primary,
.quote-btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.quote-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quote-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.quote-btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.quote-btn-secondary:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.quote-contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.quote-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.quote-contact-item i {
    color: #3b82f6;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Quote Modal Mobile Optimization */
    .quote-modal-container {
        margin: 0.5rem;
        max-height: 95vh;
        border-radius: 16px;
        overflow-y: auto;
    }
    
    .quote-modal-header {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .quote-modal-content {
        padding: 1.25rem;
        padding-top: 0.75rem;
    }
    
    .quote-modal-title h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .quote-modal-close {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 8px;
    }
    
    .quote-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile Form Controls */
    .quote-form-group {
        margin-bottom: 1rem;
    }

    .quote-form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .quote-form-control {
        padding: 0.875rem 0.75rem;
        font-size: 1rem;
        border-radius: 8px;
        min-height: 44px;
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .quote-form-control:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .quote-form-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.75rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        padding-right: 2.5rem;
    }

    .quote-form-textarea {
        min-height: 100px;
        resize: vertical;
    }

    /* Mobile Button Styling */
    .quote-btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 12px;
        margin-top: 0.5rem;
    }

    .quote-btn-secondary {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9rem;
        min-height: 44px;
        margin-top: 0.75rem;
    }

    /* Mobile Validation Messages */
    .validation-error,
    .validation-success {
        font-size: 0.85rem;
        margin-top: 0.25rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }

    /* Mobile Touch Improvements */
    .quote-modal-overlay {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .quote-form-control,
    .quote-btn-primary,
    .quote-btn-secondary,
    .quote-modal-close {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .quote-form-control:focus,
    .quote-form-control:active {
        -webkit-user-select: text;
        user-select: text;
    }
    
    .quote-features {
        gap: 1rem;
    }
    
    .quote-contact-info {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .quote-form-actions {
        flex-direction: column-reverse;
    }
    
    .quote-btn-primary,
    .quote-btn-secondary {
        justify-content: center;
    }
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-top: 20px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    animation: loading 1.5s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Enhanced Header */
.header-gradient {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.95) 50%, rgba(59, 130, 246, 0.95) 100%);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.header-scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Hero */
.hero-bg {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(37, 99, 235, 0.1) 50%, rgba(30, 41, 59, 0.85) 100%),
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    position: relative;
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 1024px) {
    .hero-bg { 
        background-attachment: scroll; 
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
    animation: shimmer 6s ease-in-out infinite;
}

/* Hero Text Enhancement */
.hero-bg h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 900;
}

.hero-bg p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-bg .counter {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-weight: 900;
}

/* Professional Typography */
.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Mobile Menu Styles */
.mobile-menu {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #2563eb;
    font-family: 'Playfair Display', serif;
    animation: typewriter 4s steps(12) 1s both, blink 1s linear infinite;
    animation-delay: 1s;
}

/* Professional Background Elements */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.3;
}

.particle {
    position: absolute;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    animation: professionalFloat 8s ease-in-out infinite;
}

/* Professional Loading Animation */
.loading-dots-professional {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.loading-dot-professional {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    animation: professionalPulse 1.5s ease-in-out infinite;
}

.loading-dot-professional:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dot-professional:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes professionalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Enhanced Cards */
.premium-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.3s;
}

.premium-card:hover::before {
    left: 100%;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(217, 119, 6, 0.2);
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Enhanced Buttons */
.btn-premium {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    background-size: 200% 200%;
    border: none;
    color: white;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-premium::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.3s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Project Gallery - Enhanced Professional Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #2563eb, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card .project-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-card img {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.1) saturate(1.1);
}

.project-overlay {
    background: linear-gradient(
        135deg, 
        rgba(15, 23, 42, 0.92) 0%, 
        rgba(30, 58, 138, 0.85) 35%, 
        rgba(37, 99, 235, 0.80) 100%
    );
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    border-radius: 12px 12px 0 0;
}

.project-overlay .project-content {
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay .project-content {
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.project-card:hover img {
    transform: scale(1.15) rotate(1deg);
    filter: contrast(1.2) saturate(1.2) brightness(1.05);
}

.project-card .project-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-radius: 0 0 16px 16px;
    position: relative;
}

.project-card .project-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.project-card .project-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover .project-category {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.project-card .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0.75rem 0 0.5rem 0;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.project-card:hover .project-title {
    color: #2563eb;
    transform: translateX(4px);
}

.project-card .project-details {
    color: #64748b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-card .project-area {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover .project-area {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    transform: translateY(-1px);
}

/* Project buttons in overlay */
.project-overlay .btn-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    color: #1e40af;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    opacity: 0.8;
}

.project-card:hover .project-overlay .btn-premium {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay .btn-premium:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Animation keyframes for enhanced effects */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 8px 30px rgba(37, 99, 235, 0.2),
            0 4px 16px rgba(37, 99, 235, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04);
    }
}

@keyframes float-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced project grid animations */
.projects-grid-enter {
    animation: float-up 0.6s ease-out forwards;
}

/* Loading shimmer effect for project cards */
.project-card.loading {
    background: linear-gradient(
        90deg,
        #f1f5f9 0%,
        #e2e8f0 50%,
        #f1f5f9 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced text shadow for overlay text */
.text-shadow {
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Project filter buttons enhancement */
.project-filter {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.project-filter:hover::before {
    left: 100%;
}

.project-filter.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-left: 4px solid #2563eb;
    transition: all 0.5s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: #2563eb;
    opacity: 0.2;
    font-family: 'Playfair Display', serif;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.15);
    border-left-width: 8px;
}

/* Stats Section */
.stats-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    position: relative;
}

.stats-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><polygon points="36 32 30 26 24 32 30 38"/></g></svg>');
}

/* Enhanced Typography */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #0f172a;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

/* Enhanced Footer */
.footer-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    background: rgba(217, 119, 6, 0.1);
    color: #2563eb;
    transform: translateY(-2px);
}

/* Floating Elements */
.floating-icon {
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(odd) {
    animation-delay: -3s;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

/* Enhanced Contact Form */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
    outline: none;
    transform: scale(1.02);
}

/* Form Validation Styles */
.form-group {
    position: relative;
}

.form-input.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

.error-message i {
    margin-right: 0.5rem;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

.success-message i {
    margin-right: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-input:focus.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.form-input:focus.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    max-width: 90vw;
    width: auto;
    min-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* Enhanced Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    /* General Mobile Optimizations */
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    .container {
        padding: 0 1rem;
    }

    /* Mobile Hero Section */
    .hero-bg {
        background-attachment: scroll;
        min-height: 70vh;
    }

    .hero-content {
        padding: 2rem 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .typewriter {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Mobile Navigation */
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-content {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-links-desktop {
        display: none !important;
    }

    .navbar-cta-button {
        display: none !important;
    }

    .navbar-mobile-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }

    /* Mobile Cards */
    .premium-card,
    .service-card,
    .project-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    .premium-card:hover, 
    .service-card:hover, 
    .project-card:hover, 
    .testimonial-card:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .project-card:hover {
        transform: scale(1.01);
    }

    /* Mobile Grid Layouts */
    .grid-cols-1,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile Sections */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Mobile Modals */
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
    }

    /* Mobile Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Mobile Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Mobile Floating Buttons */
    .floating-action-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    /* Mobile Statistics */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    /* Mobile Timeline */
    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* Mobile Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile Contact */
    .contact-info {
        margin-bottom: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .contact-icon {
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
}

/* Project Filter Active State */
.project-filter.active {
    background: #2563eb !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    transform: translateY(-2px);
}

/* Floating Action Buttons Enhanced */
.floating-action-buttons {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
}

.floating-btn {
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.floating-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* Professional Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s ease-out;
}

.animate-zoom {
    animation: zoomIn 0.6s ease-out;
}

/* Professional hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Success animations */
.success-checkmark {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Floating Animation - More Professional */
.floating-icon {
    animation: float 4s ease-in-out infinite;
}

.floating-btn {
    animation: float 6s ease-in-out infinite;
}

/* Keyframes for animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes shimmer {
    0% { backgroundPosition: '-200% 0'; }
    100% { backgroundPosition: '200% 0'; }
}

@keyframes gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes typewriter {
    0% { width: 0ch; }
    100% { width: 12ch; }
}

@keyframes blink {
    0%, 50% { border-color: #2563eb; }
    51%, 100% { border-color: transparent; }
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-bg {
        min-height: 90vh;
        padding-top: 5rem;
    }
    
    .hero-bg h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    .hero-bg p {
        font-size: 1.1rem !important;
        padding: 0.8rem 1.5rem;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px);
    }
    
    .section-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .btn-premium {
        padding: 12px 24px;
        font-size: 13px;
        font-weight: 700;
    }
    
    .service-card, .premium-card, .project-card {
        margin-bottom: 1.5rem;
    }
    
    .floating-action-buttons {
        bottom: 1rem;
        right: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-bg, .hero-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    /* Ultra-Small Screen Optimizations */
    body {
        font-size: 13px;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Hero Section for Small Screens */
    .hero-bg {
        min-height: 60vh;
        padding: 1rem 0;
    }

    .hero-bg h1 {
        font-size: 1.75rem !important;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-bg p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem;
    }

    .typewriter {
        font-size: 1rem !important;
    }

    /* Navigation for Small Screens */
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-mobile-toggle {
        width: 40px;
        height: 40px;
    }

    .navbar-mobile-menu {
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-mobile-content {
        padding: 1.5rem 1rem;
    }

    .navbar-mobile-link {
        padding: 0.875rem 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .navbar-mobile-cta {
        padding: 0.875rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    /* Buttons for Small Screens */
    .btn-premium {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    /* Cards for Small Screens */
    .premium-card,
    .service-card,
    .project-card,
    .testimonial-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    /* Grid Layouts for Small Screens */
    .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Sections for Small Screens */
    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Modals for Small Screens */
    .modal-content {
        margin: 2% auto;
        width: 98%;
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    /* Forms for Small Screens */
    .form-control {
        padding: 0.875rem 0.75rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    /* Statistics for Small Screens */
    .stat-item {
        padding: 1rem 0.75rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Contact Items for Small Screens */
    .contact-item {
        padding: 1rem 0.75rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    /* Floating Buttons for Small Screens */
    .floating-action-buttons {
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
        margin-bottom: 0.5rem;
        animation: ultraSmoothFloat 12s ease-in-out infinite;
    }
    
    .floating-icon {
        animation: ultraSmoothFloat 10s ease-in-out infinite;
    }

    /* Gallery for Small Screens */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Timeline for Small Screens */
    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-content {
        padding: 0.75rem;
    }

    /* Typography for Small Screens */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }

    /* Spacing Adjustments */
    .mb-4 { margin-bottom: 1rem !important; }
    .mb-6 { margin-bottom: 1.5rem !important; }
    .mb-8 { margin-bottom: 2rem !important; }
    
    .mt-4 { margin-top: 1rem !important; }
    .mt-6 { margin-top: 1.5rem !important; }
    .mt-8 { margin-top: 2rem !important; }

    .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    
    .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}

/* Ultra-smooth float animation for mobile */
@keyframes ultraSmoothFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Performance Optimizations */
.lazy {
    transition: opacity 0.3s ease;
}

.lazy[data-loaded="true"] {
    opacity: 1;
}

/* Image Gallery Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Enhanced Stats Background */
.stats-bg {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 50%, rgba(51, 65, 85, 0.95) 100%),
        url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 1024px) {
    .stats-bg {
        background-attachment: scroll;
    }
}

/* Footer Background */
.footer-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
}

/* Print Styles */
@media print {
    .floating-action-buttons, .loading-screen, #navbar {
        display: none !important;
    }
    
    .hero-bg, .stats-bg {
        background: white !important;
        color: black !important;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* Professional Blue Button Styles */
.btn-professional {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    cursor: pointer;
}

.btn-professional:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
}

.btn-outline-professional {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-outline-professional:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Professional Blue Accent Colors */
.text-professional {
    color: #2563eb;
}

.text-professional-dark {
    color: #1e40af;
}

.bg-professional {
    background-color: #2563eb;
}

.bg-professional-light {
    background-color: #3b82f6;
}

.border-professional {
    border-color: #2563eb;
}

/* Professional Blue Theme Variables */
:root {
    --construction-primary: #2563eb;
    --construction-primary-dark: #1d4ed8;
    --construction-primary-light: #3b82f6;
    --construction-secondary: #0ea5e9;
    --construction-accent: #60a5fa;
    --construction-navy: #1e40af;
    --construction-sky: #0284c7;
    --construction-text: #1e3a8a;
    --construction-surface: #f1f5f9;
    --construction-surface-dark: #0f172a;
}

/* Professional Animation System */
.animate-professional-fade {
    animation: professionalFadeIn 0.8s ease-out forwards;
}

.animate-professional-slide {
    animation: professionalSlideUp 0.8s ease-out forwards;
}

.animate-professional-scale {
    animation: professionalScaleIn 0.6s ease-out forwards;
}

.animate-professional-glow {
    animation: professionalGlow 3s ease-in-out infinite;
}

@keyframes professionalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes professionalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes professionalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes professionalGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

/* Construction-Themed Professional Elements */
.construction-border {
    position: relative;
    border: 2px solid var(--construction-primary);
    border-radius: 12px;
}

.construction-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--construction-primary), var(--construction-accent), var(--construction-secondary));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.construction-border:hover::before {
    opacity: 1;
}

.blueprint-pattern {
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.steel-beam-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--construction-primary), var(--construction-accent), var(--construction-primary), transparent);
    border-radius: 2px;
    position: relative;
    margin: 2rem 0;
}

.steel-beam-divider::before,
.steel-beam-divider::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--construction-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.steel-beam-divider::before {
    left: 20%;
}

.steel-beam-divider::after {
    right: 20%;
}

.construction-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    box-shadow: 
        0 4px 24px rgba(37, 99, 235, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.construction-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 40px rgba(37, 99, 235, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.architectural-accent {
    position: relative;
}

.architectural-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--construction-primary), var(--construction-accent));
    border-radius: 0 0 4px 0;
}

.architectural-accent::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, var(--construction-primary), var(--construction-accent));
    border-radius: 0 0 0 4px;
}

/* Premium Professional Navigation */
.navbar-premium {
    background: linear-gradient(
        135deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(30, 41, 59, 0.98) 25%,
        rgba(51, 65, 85, 0.98) 50%,
        rgba(30, 58, 138, 0.98) 75%, 
        rgba(37, 99, 235, 0.98) 100%
    );
    backdrop-filter: blur(32px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 
        0 4px 24px rgba(15, 23, 42, 0.15),
        0 8px 48px rgba(30, 58, 138, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.4rem 0;
    min-height: 52px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-premium.scrolled {
    background: linear-gradient(
        135deg, 
        rgba(15, 23, 42, 0.96) 0%, 
        rgba(30, 58, 138, 0.96) 35%, 
        rgba(37, 99, 235, 0.96) 100%
    );
    box-shadow: 
        0 4px 24px rgba(15, 23, 42, 0.15),
        0 8px 40px rgba(30, 58, 138, 0.12);
}

.navbar-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    min-height: 42px;
    width: 100%;
    position: relative;
}

/* Logo Section */
.navbar-logo-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.navbar-logo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar-logo-section:hover::before {
    opacity: 1;
}

.navbar-logo-section:hover {
    transform: translateY(-1px);
}

.navbar-logo-section:hover .navbar-brand-name {
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(241, 245, 249, 0.3);
}

.navbar-logo-section:hover .navbar-brand-tagline {
    color: rgba(203, 213, 225, 0.95);
}

.navbar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 25%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 16px rgba(37, 99, 235, 0.25),
        0 2px 8px rgba(30, 64, 175, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%, rgba(255, 255, 255, 0.05));
    border-radius: 10px;
    opacity: 0;
    transition: all 0.4s ease;
}

.navbar-logo-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 24px rgba(37, 99, 235, 0.35),
        0 4px 12px rgba(30, 64, 175, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.navbar-logo-icon:hover::before {
    opacity: 1;
}

.navbar-logo-icon i {
    font-size: 18px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.1));
}

.navbar-brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.navbar-brand-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.9);
    letter-spacing: 0.025em;
    margin: 0;
    transition: all 0.4s ease;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Desktop Navigation Links */
.navbar-links-desktop {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .navbar-links-desktop {
        display: flex;
        align-items: center;
    }
}

.navbar-link {
    position: relative;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-link-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.95);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(37, 99, 235, 0.15) 50%, 
        rgba(29, 78, 216, 0.1) 100%);
    border-radius: 12px;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(37, 99, 235, 0.15);
}

.navbar-link:hover::before {
    width: 100%;
    height: 100%;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 25%, #2563eb 50%, #1d4ed8 75%, #1e40af 100%);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 12px rgba(37, 99, 235, 0.5),
        0 0 24px rgba(96, 165, 250, 0.3);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link:hover .navbar-link-text {
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 
        0 2px 16px rgba(255, 255, 255, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.navbar-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(37, 99, 235, 0.3),
        0 4px 16px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar-link.active:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 28px rgba(37, 99, 235, 0.35),
        0 3px 14px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.navbar-link.active::before {
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(37, 99, 235, 0.2) 50%, 
        rgba(29, 78, 216, 0.15) 100%);
}

.navbar-link.active::after {
    width: 100%;
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 25%, #2563eb 50%, #1d4ed8 75%, #1e40af 100%);
    height: 3px;
}

.navbar-link.active .navbar-link-text {
    color: #f8fafc;
    font-weight: 700;
    text-shadow: 
        0 2px 12px rgba(248, 250, 252, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.025em;
    transform: translateY(-1px);
}

/* CTA Button */
.navbar-cta-button {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 25%, #3b82f6 75%, #60a5fa 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 
        0 4px 20px rgba(37, 99, 235, 0.3),
        0 2px 10px rgba(30, 64, 175, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    min-height: 42px;
    min-width: 120px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 50%, rgba(255, 255, 255, 0.1));
    border-radius: 14px;
    opacity: 0;
    transition: all 0.5s ease;
}

.navbar-cta-button:hover::before {
    opacity: 1;
}

.navbar-cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(37, 99, 235, 0.4),
        0 4px 16px rgba(30, 64, 175, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 20%, #3b82f6 60%, #60a5fa 100%);
}

.navbar-cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Mobile Toggle Button */
.navbar-mobile-toggle {
    display: none; /* Hidden by default, shown in mobile media query */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 3px;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

@media (max-width: 1023px) {
    .navbar-mobile-toggle {
        display: flex !important;
    }
}

.navbar-toggle-line {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.navbar-mobile-toggle.active .navbar-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-mobile-toggle.active .navbar-toggle-line:nth-child(2) {
    opacity: 0;
}

.navbar-mobile-toggle.active .navbar-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.navbar-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.98));
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(-20px);
}

/* Show mobile menu on smaller screens */
@media (max-width: 1023px) {
    .navbar-mobile-menu {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .navbar-mobile-menu {
        display: none;
    }
}

.navbar-mobile-menu.active {
    display: block !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999;
}

.navbar-mobile-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.navbar-mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.75rem;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Touch-friendly minimum */
}

.navbar-mobile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-mobile-link:hover::before {
    left: 100%;
}

.navbar-mobile-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
    color: #dbeafe;
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.navbar-mobile-link:active {
    transform: translateX(4px) scale(0.98);
}

.navbar-mobile-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #93c5fd;
    transition: all 0.3s ease;
}

.navbar-mobile-link:hover i {
    color: #dbeafe;
    transform: scale(1.1);
}

.navbar-mobile-cta {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 25%, #3b82f6 75%, #60a5fa 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
    min-height: 48px; /* Touch-friendly minimum */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.navbar-mobile-cta:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 25%, #2563eb 75%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.4);
    color: white;
}

.navbar-mobile-cta:active {
    transform: translateY(0) scale(0.98);
}

.navbar-mobile-link i {
    width: 20px;
    text-align: center;
}

.navbar-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
}

.navbar-mobile-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ========================================
   PROFESSIONAL MOBILE OPTIMIZATIONS
======================================== */

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .premium-card:hover,
    .service-card:hover,
    .project-card:hover,
    .testimonial-card:hover,
    .btn:hover,
    .navbar-link:hover {
        transform: none;
        box-shadow: none;
    }

    /* Touch-friendly active states */
    .premium-card:active,
    .service-card:active,
    .project-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }

    /* Enhanced touch targets */
    .btn,
    .navbar-mobile-link,
    .floating-btn,
    .form-control,
    .quote-form-control {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Mobile Loading Screen Optimization */
@media (max-width: 768px) {
    .loading-screen {
        padding: 1rem;
        padding-top: 12vh;
    }

    .loading-container {
        margin-top: 5vh;
        padding: 1.5rem;
    }

    .loading-content {
        padding: 1.5rem;
    }

    .loading-logo {
        width: 80px;
        height: 80px;
    }

    .loading-text h2 {
        font-size: 1.25rem;
    }

    .loading-text p {
        font-size: 0.9rem;
    }

    .progress-container {
        margin-top: 1.5rem;
    }

    .progress-bar {
        height: 4px;
    }

    .loading-stage {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
}

/* Mobile Notification Improvements */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        left: 1rem;
        right: 1rem;
        width: auto;
        transform: translateY(-80px);
        min-width: auto;
        max-width: none;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Smooth and Balanced Mobile Animations */
    
    /* Loading Screen Animations - Slower and Smoother */
    .loading-logo {
        animation: logoFloat 4s ease-in-out infinite;
    }
    
    .loading-ring {
        animation: ringRotate 3s linear infinite;
    }
    
    .loading-title {
        animation: titleGlow 3s ease-in-out infinite alternate;
    }
    
    .loading-subtitle {
        animation: subtitleGlow 3s ease-in-out infinite alternate;
    }
    
    .spinner-dot {
        animation: spinnerPulse 2s ease-in-out infinite;
    }
    
    .progress-bar-fill {
        animation: progressGlow 3s ease-in-out infinite;
    }
    
    /* Floating Elements - Smoother Movement */
    .floating-icon {
        animation: float 8s ease-in-out infinite;
    }
    
    .loading-particles .particle {
        animation-duration: 5s;
    }
    
    .particle:nth-child(1) {
        animation-duration: 12s;
    }
    
    .particle:nth-child(2) {
        animation-duration: 15s;
    }
    
    .particle:nth-child(3) {
        animation-duration: 18s;
    }
    
    /* Background Animations - Much Slower */
    .loading-background-pattern {
        animation: patternMove 40s linear infinite;
    }
    
    /* General Transition Smoothing */
    .btn, .floating-btn, .navbar-mobile-link {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Card Hover Effects - Gentler */
    .premium-card:hover,
    .service-card:hover,
    .project-card:hover,
    .testimonial-card:hover {
        transform: translateY(-2px) scale(1.005);
        transition: transform 0.5s ease;
    }
    
    /* Remove Fast Pulsing/Glowing Effects on Mobile */
    .loading-progress-indicator {
        animation: indicatorPulse 2.5s ease-in-out infinite;
    }
    
    .loading-stage-text {
        animation: statusPulse 3s ease-in-out infinite;
    }
    
    /* Smooth Entrance Animations */
    .animate-fade-in-up {
        animation-duration: 0.8s;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .animate-slide-left,
    .animate-slide-right {
        animation-duration: 1s;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .animate-zoom {
        animation-duration: 0.8s;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Optimize background images for mobile */
    .hero-bg,
    .stats-bg,
    .section-bg {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }

    /* Mobile-Specific Smooth Keyframes */
    @keyframes mobileFloat {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-4px); }
    }
    
    @keyframes mobileFadeIn {
        0% { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes mobileSlideIn {
        0% { transform: translateX(-30px); opacity: 0; }
        100% { transform: translateX(0); opacity: 1; }
    }
    
    @keyframes mobileGentlePulse {
        0%, 100% { opacity: 0.8; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.02); }
    }
    
    /* Apply Mobile-Specific Animations */
    .loading-logo {
        animation: mobileFloat 4s ease-in-out infinite;
    }
    
    .notification {
        animation: mobileFadeIn 0.6s ease-out when appearing;
    }
    
    .mobile-menu-entering {
        animation: mobileSlideIn 0.5s ease-out;
    }
    
    /* Reduce particle effects for performance */
    .hero-particles .particle {
        display: none; /* Hide particles on mobile for better performance */
    }
}

/* Landscape Orientation Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-bg {
        min-height: 50vh;
    }

    .loading-screen {
        padding: 0.5rem;
        padding-top: 8vh;
    }

    .loading-container {
        margin-top: 3vh;
        padding: 1rem;
    }

    .navbar-mobile-menu {
        max-height: 60vh;
    }

    .quote-modal-container {
        max-height: 85vh;
    }

    .modal-content {
        max-height: 85vh;
    }
}

/* iOS Safari Specific Optimizations */
@supports (-webkit-touch-callout: none) {
    .quote-modal-container,
    .modal-content,
    .navbar-mobile-menu {
        -webkit-overflow-scrolling: touch;
    }

    .form-control,
    .quote-form-control {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }

    .quote-form-select {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Android Specific Optimizations */
@media (max-width: 768px) {
    .form-control:focus,
    .quote-form-control:focus {
        zoom: 1; /* Prevent zoom on focus in Android */
    }
}

/* High DPI Display Optimizations */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .loading-logo,
    .navbar-brand img,
    .service-icon,
    .stat-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion Preferences */
@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;
    }

    .loading-particles,
    .hero-particles,
    .typewriter-effect {
        display: none;
    }
}

/* Dark Mode Support for Mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .navbar-mobile-menu {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    }

    .quote-modal-container {
        background: #1e293b;
        color: white;
    }

    .form-control,
    .quote-form-control {
        background: #334155;
        border-color: #475569;
        color: white;
    }

    .form-control::placeholder,
    .quote-form-control::placeholder {
        color: #94a3b8;
    }
}

/* Mobile Focus Improvements */
@media (max-width: 768px) {
    *:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

    .form-control:focus,
    .quote-form-control:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }
}

/* Mobile Print Styles */
@media print and (max-width: 768px) {
    .navbar-mobile-toggle,
    .floating-action-buttons,
    .loading-screen {
        display: none !important;
    }

    .navbar-mobile-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: none;
        box-shadow: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
