/* ========================================
   PAGE-SPECIFIC STYLES
   Consolidated CSS from all HTML pages
   ======================================== */

/* ========================================
   LANDING PAGE STYLES (landing.html)
   ======================================== */

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

/* Landing Page - Base Styles */
.landing-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.landing-page body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.landing-page h1, 
.landing-page h2, 
.landing-page h3, 
.landing-page h4, 
.landing-page h5, 
.landing-page h6 {
    font-family: 'Playfair Display', serif;
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.85) 100%);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Trust Badge */
.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.card-hover:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.star-rating {
    color: #f59e0b;
}

/* Process Step */
.process-step {
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

/* Form Inputs */
input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Stats Number */
.stats-number {
    font-size: 48px;
    font-weight: 800;
    color: #f59e0b;
}

/* Floating Construction Icons */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.construction-icon {
    position: absolute;
    font-size: 40px;
    opacity: 0.15;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes float-diagonal-1 {
    0% {
        transform: translate(-100px, -100px) rotate(0deg);
    }
    100% {
        transform: translate(calc(100vw + 100px), calc(100vh + 100px)) rotate(360deg);
    }
}

@keyframes float-diagonal-2 {
    0% {
        transform: translate(calc(100vw + 100px), -100px) rotate(0deg);
    }
    100% {
        transform: translate(-100px, calc(100vh + 100px)) rotate(-360deg);
    }
}

@keyframes float-up {
    0% {
        transform: translateY(calc(100vh + 100px)) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes float-horizontal {
    0% {
        transform: translateX(-100px) rotate(0deg);
    }
    100% {
        transform: translateX(calc(100vw + 100px)) rotate(360deg);
    }
}

.icon-1 { animation: float-diagonal-1 25s linear infinite; color: #3b82f6; }
.icon-2 { animation: float-up 30s linear infinite; animation-delay: 2s; color: #f59e0b; }
.icon-3 { animation: float-horizontal 35s linear infinite; animation-delay: 4s; color: #1e3a8a; }
.icon-4 { animation: float-diagonal-2 28s linear infinite; animation-delay: 6s; color: #3b82f6; }
.icon-5 { animation: float-up 32s linear infinite; animation-delay: 8s; color: #f59e0b; }
.icon-6 { animation: float-diagonal-1 27s linear infinite; animation-delay: 10s; color: #1e3a8a; }
.icon-7 { animation: float-horizontal 33s linear infinite; animation-delay: 12s; color: #3b82f6; }
.icon-8 { animation: float-diagonal-2 29s linear infinite; animation-delay: 14s; color: #f59e0b; }

/* Premium Hero Section */
.hero-premium {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-blob 20s ease-in-out infinite;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Premium Phone Mockup */
.phone-container {
    position: relative;
    width: 320px;
    height: 640px;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 45px;
    padding: 14px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: phone-float 6s ease-in-out infinite;
    z-index: 10;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

/* Phone Calling Animation */
@keyframes phone-calling {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.01); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-3px) scale(1.01); }
}

.phone-mockup.calling {
    animation: phone-calling 0.8s ease-in-out infinite;
}

/* Signal Waves Animation */
.signal-wave {
    position: absolute;
    border: 3px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: signal-pulse 2s ease-out infinite;
}

.signal-wave:nth-child(1) {
    animation-delay: 0s;
}

.signal-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.signal-wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes signal-pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
        top: 0;
        left: 0;
    }
    100% {
        width: 140%;
        height: 140%;
        opacity: 0;
        top: -20%;
        left: -20%;
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3) inset;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 20;
}

/* Incoming Call Glow */
.phone-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
    filter: blur(20px);
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Incoming Call UI */
.incoming-call-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 15;
}

.caller-avatar-main {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    animation: avatar-pulse 2s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

@keyframes avatar-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6); }
}

/* Orbiting Faces Container */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    animation: orbit-rotate 30s linear infinite;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Individual Orbiting Faces */
.orbit-face {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid #3b82f6;
    transition: all 0.3s ease;
    animation: counter-rotate 30s linear infinite, float-subtle 3s ease-in-out infinite;
}

.orbit-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.orbit-face:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
    z-index: 100;
    border-color: #1e40af;
}

/* Position faces around orbit */
.orbit-face:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.orbit-face:nth-child(2) {
    top: 25%;
    right: 0;
    animation-delay: -6s;
}

.orbit-face:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -12s;
}

.orbit-face:nth-child(4) {
    top: 25%;
    left: 0;
    animation-delay: -18s;
}

.orbit-face:nth-child(5) {
    top: 50%;
    right: 10%;
    animation-delay: -24s;
}

/* Logo appears inside phone screen */
.phone-screen-logo {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #3b82f6;
    z-index: 12;
}

.phone-screen-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Premium High-Contrast Form Card */
.glass-form {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 0 30px rgba(59, 130, 246, 0.08);
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

/* Top Accent Line */
.glass-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #1e40af 50%, #3b82f6 100%);
    background-size: 200% 100%;
    animation: accent-shimmer 3s ease-in-out infinite;
}

@keyframes accent-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtle Glow Effect */
.glass-form::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.05));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-form:hover::after {
    opacity: 1;
}

/* Form Labels */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* Enhanced Form Inputs */
.glass-form input,
.glass-form select,
.glass-form textarea {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    color: #1e293b;
}

.glass-form input:hover,
.glass-form select:hover,
.glass-form textarea:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.12), 
        0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.glass-form input::placeholder,
.glass-form select::placeholder,
.glass-form textarea::placeholder {
    color: #94a3b8;
}

/* Premium Submit Button */
.premium-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.premium-submit-btn::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;
}

.premium-submit-btn:hover::before {
    left: 100%;
}

.premium-submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(59, 130, 246, 0.45),
        0 0 0 4px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, #4f8ff7 0%, #2651c7 100%);
}

.premium-submit-btn:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* Form Title & Description */
.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.form-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.call-now-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    position: sticky;
    top: 80px;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
}

.call-now-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.call-now-pill:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.call-now-pill i {
    animation: phone-ring 1.5s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

/* Service Areas Grid */
.city-item {
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.city-item:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

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

/* Button Hover Effects */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   PROJECTS PAGE STYLES (projects.html)
   ======================================== */

/* Gallery Items - Uniform Sizing */
.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: #d4af37;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.4);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: white;
    border: 2px solid #f0f0f0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4e4c1, #d4af37);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

.featured-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
}

/* ========================================
   REQUEST QUOTE PAGE STYLES (request-quote.html)
   ======================================== */

.file-upload-label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background-color: #f3f4f6;
}

.field-valid {
    border-color: #10b981;
}

.field-invalid {
    border-color: #ef4444;
}

.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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