/* =====================================================
   AJAY BUILD – Global Stylesheet
   Dark Futuristic Construction Theme
   ===================================================== */

/* ---- Root Variables ---- */
:root {
    --neon: #FF6A00;
    --electric: #00D4FF;
    --dark: #0A0A0F;
    --darker: #050508;
    --card: #111118;
    --border: #1E1E2E;
    --text-muted: #6b7280;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.text-gradient {
    background: linear-gradient(135deg, #FF6A00 0%, #ee0979 50%, #FF6A00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 106, 0, 0.4);
    border-radius: 50px;
    color: var(--neon);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 106, 0, 0.05);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-top: 1rem;
    line-height: 1.1;
}

.section-sub {
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   NAVBAR
   ===================================================== */
#navbar {
    background: transparent;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding-top: 16px;
    padding-bottom: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =====================================================
   HAMBURGER MENU
   ===================================================== */
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

#hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 800;
    color: #6b7280;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
}

.mobile-nav-link:hover {
    color: #fff;
    transform: translateX(8px);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--neon), #ee0979);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ee0979, var(--neon));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    /* FIX: stays behind ALL button content, including raw text nodes */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 106, 0, 0.4);
    color: #fff;
    /* ensure text stays white on hover */
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    border-color: rgba(255, 106, 0, 0.6);
    color: var(--neon);
    background: rgba(255, 106, 0, 0.05);
    transform: translateY(-2px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 106, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 106, 0, 0.08) 0%, transparent 50%),
        var(--darker);
}

.grid-overlay {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 106, 0, 0.12);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 212, 255, 0.1);
    bottom: 50px;
    left: -80px;
    animation-delay: 3s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 106, 0, 0.08);
    top: 40%;
    left: 40%;
    animation-delay: 5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-25px) rotate(5deg);
    }

    66% {
        transform: translateY(15px) rotate(-3deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--neon);
    border-radius: 4px;
    animation: scroll-bounce 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(14px);
        opacity: 0.3;
    }
}

/* =====================================================
   ANIMATIONS – Intersection Observer
   ===================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stat-card {
    padding: 2rem;
}

/* =====================================================
   SERVICE CARDS
   ===================================================== */
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: 0 20px 60px rgba(255, 106, 0, 0.15);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--neon);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.3s ease;
    gap: 4px;
}

.service-link:hover {
    gap: 8px;
}

/* =====================================================
   PROJECT CARDS
   ===================================================== */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 8, 0.97) 0%, rgba(5, 5, 8, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.commercial-tag {
    background: rgba(255, 106, 0, 0.2);
    color: var(--neon);
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.residential-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--electric);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.infra-tag {
    background: rgba(255, 106, 0, 0.2);
    color: var(--neon);
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.renov-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--electric);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.interior-tag {
    background: rgba(148, 0, 255, 0.2);
    color: #c084fc;
    border: 1px solid rgba(148, 0, 255, 0.3);
}

/* Filter hide/show animation */
.project-card.hidden-card {
    display: none;
}

.project-card.show-card {
    animation: cardReveal 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(16px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: var(--darker);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 106, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 40%);
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
    min-height: 50vh;
    background: var(--darker);
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-image-wrapper {
    position: relative;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 2px solid rgba(255, 106, 0, 0.3);
    border-radius: 20px;
    z-index: -1;
}

.value-badge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.value-badge:hover {
    border-color: rgba(255, 106, 0, 0.4);
    background: rgba(255, 106, 0, 0.05);
}

.team-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    margin: 0 auto;
}

/* =====================================================
   SERVICES PAGE
   ===================================================== */
.service-detail-row {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.service-detail-row.reverse {
    flex-direction: row-reverse;
}

.service-detail-icon-box {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 106, 0, 0.05);
    border: 1px solid rgba(255, 106, 0, 0.2);
    transition: transform 0.3s ease;
}

.service-detail-row:hover .service-detail-icon-box {
    transform: scale(1.05) rotate(-3deg);
}

.service-detail-content {
    flex: 1;
}

.service-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
}

.service-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.service-feature-list li::before {
    content: '→';
    color: var(--neon);
    font-weight: bold;
}

.process-step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.process-step:hover {
    border-color: rgba(255, 106, 0, 0.3);
    transform: translateY(-4px);
}

.process-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon);
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 106, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
}

/* =====================================================
   FILTER TABS (Projects)
   ===================================================== */
.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.filter-btn:hover {
    border-color: rgba(255, 106, 0, 0.4);
    color: var(--neon);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--neon), #ee0979);
    border-color: transparent;
    color: #fff;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: rgba(255, 106, 0, 0.3);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    flex-shrink: 0;
}

/* ---- FORM STYLES ---- */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d1d5db;
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #4b5563;
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    padding: 14px 14px 14px 44px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: #374151;
}

.form-input:focus {
    border-color: var(--neon);
    background: rgba(255, 106, 0, 0.03);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--neon);
}

.form-textarea {
    padding-top: 14px;
    resize: vertical;
    min-height: 120px;
    align-self: flex-start;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-select option {
    background: var(--card);
    color: #fff;
}

.form-error {
    font-size: 0.8rem;
    color: #ef4444;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error .form-input {
    border-color: #ef4444;
}

/* Success Message */
.success-message {
    background: var(--card);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 4rem 2.5rem;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00D4FF, #0066ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-section {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 106, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 106, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.map-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.map-pin {
    font-size: 3rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer-link {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--neon);
    transform: translateX(4px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 106, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.4);
    color: var(--neon);
    transform: translateY(-3px);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {

    .service-detail-row,
    .service-detail-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .service-feature-list {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* =====================================================
   PROJECT IMAGES – Beautiful placeholder gradients
   as fallback when images don't load
   ===================================================== */
.project-card img[src*="project1"] {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.project-card img[src*="project2"] {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69, #11998e);
}

.project-card img[src*="project3"] {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.project-card img[src*="project4"] {
    background: linear-gradient(135deg, #2d1b69, #11998e, #38ef7d);
}

.project-card img[src*="project5"] {
    background: linear-gradient(135deg, #fc4a1a, #f7b733, #2d1b69);
}

.project-card img[src*="project6"] {
    background: linear-gradient(135deg, #003973, #e5e5be, #003973);
}

/* Broken/missing images won't leave ugly alt text exposed */
img {
    font-size: 0;
}