:root {
    --primary: #5D0016;
    /* Bordeaux */
    --secondary: #C5A059;
    /* Gold */
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #f4f4f4;
    --text: #333;
    --font-main: 'Outfit', sans-serif;

    /* Improved Easing */
    --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
    --transition-smooth: 0.6s var(--ease-out-cubic);
    --transition-hover: 0.3s var(--ease-out-cubic);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out-cubic);
}

header.shrink {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    transition: height 0.4s var(--ease-out-cubic);
}

header.shrink .nav-container {
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease-out-cubic);
}

header.shrink .logo {
    /* No specific height needed here, controlled by img */
}

.logo img {
    height: 115px;
    width: auto;
    transition: height 0.4s var(--ease-out-cubic);
}

header.shrink .logo img {
    height: 75px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-hover);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/foundations.jpg') no-repeat center/cover;
    opacity: 0.6;
    transform: scale(1.1);
    transition: transform 0.1s linear;
    /* Controlled by JS */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title span {
    color: var(--secondary);
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-hover);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    margin-right: 20px;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.05);
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* About */
.about {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    z-index: -1;
    transition: var(--transition-smooth);
}

.about-img:hover::before {
    top: 10px;
    left: 10px;
}

.technical-line {
    position: absolute;
    background: var(--secondary);
    opacity: 0.3;
}

.line-v {
    width: 1px;
    height: 0;
    left: 50%;
    top: 0;
    transition: height 1.5s var(--ease-in-out-quart);
}

.about.active .line-v {
    height: 100%;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 700;
}

/* Services */
.services {
    background: var(--gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
    transition: width 0.6s var(--ease-out-cubic);
}

.section-header.active .line {
    width: 120px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-bottom: 4px solid var(--secondary);
    transition: all 0.4s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* For animation */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 25px;
    transition: transform 0.4s var(--ease-out-cubic);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects - Clickable Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.project-item {
    height: 350px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* For animation */
    display: block;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-cubic);
}

.project-item:hover img {
    transform: scale(1.1);
}

/* Project Detail Pages */
.project-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.project-details-section {
    padding: 80px 0;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.project-meta {
    background: var(--gray);
    padding: 30px;
    border-left: 4px solid var(--secondary);
}

.meta-item {
    margin-bottom: 20px;
}

.meta-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-img {
    height: 300px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Why Us */
.why-us {
    background: var(--primary);
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.why-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: inline-block;
}

.why-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Contact */
.contact {
    position: relative;
    padding-bottom: 0;
}

.contact-wrapper {
    background: var(--white);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.1);
    padding: 80px;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 10;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s var(--ease-out-cubic);
}

.contact-wrapper.active {
    transform: translateY(0);
    opacity: 1;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    background: #f9f9f9;
    font-family: var(--font-main);
    transition: var(--transition-hover);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    background: var(--white);
    outline: none;
}

.form-submit {
    grid-column: span 2;
    text-align: right;
}

/* Footer */
footer {
    background: var(--dark);
    color: #888;
    padding: 50px 0;
    text-align: center;
    border-top: 5px solid var(--secondary);
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary);
}

/* Animations */
@keyframes buildUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes craneDrop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    60% {
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brickPlace {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panelSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-build.active {
    animation: buildUp 0.8s var(--ease-out-cubic) forwards;
}

.animate-slide-left.active {
    animation: slideInLeft 0.8s var(--ease-out-cubic) forwards;
}

.animate-slide-right.active {
    animation: slideInRight 0.8s var(--ease-out-cubic) forwards;
}

.animate-drop.active {
    animation: craneDrop 1s var(--ease-in-out-quart) forwards;
}

.animate-brick.active {
    animation: brickPlace 0.6s var(--ease-out-cubic) forwards;
}

.animate-panel.active {
    animation: panelSlide 0.8s var(--ease-out-cubic) forwards;
}

/* Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-form,
    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .contact-wrapper {
        padding: 40px;
    }

    .form-submit {
        grid-column: span 1;
    }
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 20px 30px;
    border-left: 5px solid var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s var(--ease-out-cubic);
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast.success {
    border-left-color: #28a745;
}

.notification-toast.error {
    border-left-color: #dc3545;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-toast.success .notification-icon {
    color: #28a745;
}

.notification-toast.error .notification-icon {
    color: #dc3545;
}

.notification-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.notification-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.notification-close {
    margin-left: 20px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.notification-close:hover {
    color: var(--dark);
}
/* Mobile Menu Styles (Appended) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--dark);
    }

    .nav-links {
        display: flex !important; /* Force display */
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


    /* Fix for Contact Form on Mobile */
    .contact-wrapper {
        padding: 30px 20px !important; /* Reduce padding on mobile */
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%; /* Ensure no overflow */
        box-sizing: border-box; /* Double check */
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Skip Link - Visible only on focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only - Hidden visually but accessible */
.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;
}

/* Menu Toggle Button Reset (converted from div) */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

