/* --- RESET & VARIABLES --- */
:root {
    --primary-dark: #0A0F1C;
    /* Deep Navy Blue */
    --primary-light: #162032;
    /* Lighter Navy */
    --accent: #EAB308;
    /* Premium Gold */
    --accent-hover: #FACC15;
    --text-light: #F8FAFC;
    --text-gray: #94A3B8;
    --text-dark: #1E293B;
    --white: #ffffff;
    --gradient-overlay: linear-gradient(135deg, rgba(10, 15, 28, 0.95), rgba(22, 32, 50, 0.85));
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--primary-dark);
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.logo {
    font-family: 'Outfit', sans-serif;
}

/* --- LOADER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    display: none;
}

/* Loading Bar */
.loading-bar-container {
    width: 300px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    /* Glowing effect */
    animation: loadProgress 2.5s ease-out forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    background-color: var(--white);
    width: 3px;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-accent {
    color: var(--accent);
}

.section-title-sm {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title.white {
    color: var(--white);
}

/* --- HEADER --- */
.top-bar {
    position: relative;
    z-index: 1001;
    background-color: var(--primary-dark);
    color: var(--text-gray);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info i {
    color: var(--accent);
    margin-right: 5px;
}

.top-social a {
    color: var(--text-gray);
    margin-left: 15px;
    font-size: 1rem;
}

.top-social a:hover {
    color: var(--accent);
}

nav {
    background-color: rgba(10, 15, 28, 0.7);
    padding: 15px 0;
    position: sticky;
    width: 100%;
    z-index: 1000;
    top: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i {
    color: var(--accent);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 25px;
    border-radius: 0;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- BOTTOM NAVIGATION (MOBILE) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.75rem;
    transition: 0.3s;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    .top-bar {
        display: none;
    }

    body {
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        margin-top: 0;
        background-attachment: scroll;
        height: auto;
        min-height: 100vh;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .service-content-wrapper,
    .footer-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .services-nav {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        border-bottom: none;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
    }

    .services-nav::-webkit-scrollbar {
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .services-nav::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 10px;
    }

    .service-tab {
        flex: 0 0 100px;
        scroll-snap-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
    }

    .service-tab:hover,
    .service-tab.active {
        background: var(--accent);
        border-color: var(--accent);
    }

    .service-tab.active i,
    .service-tab.active span {
        color: var(--primary-dark);
    }

    .services {
        padding: 60px 0 100px;
    }

    .img-overlay {
        width: 100%;
        right: auto;
        left: 0;
        bottom: -50px;
    }

    .about-images {
        margin-bottom: 60px;
    }
}

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.hero {
    margin-top: -85px;
    height: 100vh;
    /* Construction/Remodeling Image */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* PARALLAX */
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

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

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0;
    /* Hidden initially */
    animation: fadeInDown 1s ease-out forwards;
    /* Longer, smoother */
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    /* 0.5s delay */
}

.hero .btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
}

/* --- ABOUT SECTION --- */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 500px;
}

.img-main {
    width: 80%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.img-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background-color: var(--primary-dark);
    padding: 30px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    border: 5px solid var(--white);
}

.img-overlay h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 5px;
}

.img-overlay span {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Auto-fit for better responsiveness */
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
    align-items: start;
}

.footer-logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

/* --- SERVICES SECTION --- */
.services {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 100px 0;
}

.services-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
}

.service-tab {
    text-align: center;
    padding: 30px 10px;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.service-tab:hover,
.service-tab.active {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--accent);
}

.service-tab i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.service-tab span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.service-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-img {
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid var(--accent);
    height: 400px;
    /* Fixed height for consistency */
    width: 100%;
}

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

.service-list {
    margin-top: 30px;
}

.service-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-list li i {
    color: var(--accent);
    margin-right: 15px;
}

/* --- WHY CHOOSE US --- */
.why-choose {
    padding: 100px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Simpler layout for now to match structure */
.why-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(250, 204, 21, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* --- NEWS SECTION --- */
.news {
    padding: 100px 0;
    background-color: #F8FAFC;
}




.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.read-more {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--accent);
}

/* --- FAQ SECTION --- */
.faq {
    padding: 100px 0;
    background-color: var(--primary-dark);
    color: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s;
    padding: 0 20px;
    color: #cbd5e1;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-icon {
    transition: 0.3s;
    color: var(--accent);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* --- RESPONSIVE UTILITIES --- */
@media(max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .contact-form-wrapper {
        padding: 30px 20px !important;
        /* Reduce padding on mobile form */
    }

    .contact-info-section {
        padding: 60px 0 !important;
    }
}

/* --- RESPONSIVE --- */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        margin-top: 0;
        background-attachment: scroll;
        /* Fix for mobile whitespace/clipping */
        height: auto;
        /* Allow flexible height if content overflows */
        min-height: 100vh;
    }

    .about-grid,
    .service-content-wrapper,
    .footer-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* --- MOBILE SERVICES CAROUSEL --- */
    .services-nav {
        display: flex;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 60px;
    }

    .services-nav::-webkit-scrollbar {
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .services-nav::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 10px;
    }

    .service-tab {
        flex: 0 0 100px;
        /* Fixed width for items */
        scroll-snap-align: center;
        /* Center item on snap */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
    }

    .service-tab:hover,
    .service-tab.active {
        background: var(--accent);
        border-color: var(--accent);
    }

    .service-tab.active i,
    .service-tab.active span {
        color: var(--primary-dark);
    }

    .services {
        padding: 60px 0 100px;
        /* Adjust padding */
    }
}


.footer-social-link {
    transition: color 0.3s ease;
}

.footer-social-link:hover .fa-facebook-f {
    color: #1877F2 !important;
}

.footer-social-link:hover .fa-instagram {
    color: #E4405F !important;
}

.footer-social-link:hover .fa-whatsapp {
    color: #25D366 !important;
}


.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Fix: Anchor items to the right */
    gap: 10px;
    z-index: 3000;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-dark);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: 0.3s;
    box-shadow: -2px 5px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.instagram {
    background-color: #E4405F;
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon:hover {
    width: 65px;
    /* Slight expansion on hover */
    padding-right: 15px;
}

/* Adjustments for mobile to not cover too much */
@media (max-width: 768px) {
    .social-sidebar {
        gap: 5px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Ensure it doesn't overlap with bottom nav functionality */
    .social-sidebar {
        top: 60%;
        /* Push it slightly down or up if needed */
    }
}

/* Modern Hover Effects */
.about-images .img-main,
.service-img img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-images:hover .img-main,
.service-img:hover img {
    transform: scale(1.03);
}

.feature-item {
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-md);
}

.img-overlay {
    backdrop-filter: blur(8px);
    background-color: rgba(10, 15, 28, 0.9);
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* Form focus styles */
.form-input:focus,
input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

/* Reduced motion */
@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;
    }
    #loader {
        display: none;
    }
}