* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #F4B942;
    --dark-bg: #111111;
    --light-text: #f5f5f5;
    --secondary-text: #888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.nav-right {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Construction Background */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .highlight {
    color: var(--primary-yellow);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-yellow), #E6A632);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(244, 185, 66, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 185, 66, 0.4);
}

/* Horizontal Scroll Projects Section */
.horizontal-scroll-container {
    height: 430vh;
    position: relative;
    background: var(--dark-bg);
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.projects-container {
    display: flex;
    height: 100%;
    width: 600%; /* 6 sections (5 active projects + 1 CTA) */
    transform: translateX(0);
    transition: transform 0.1s ease-out;
}

.project-card {
    width: calc(100% / 6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
}

/* Keep homepage horizontal cards visually independent from shared reference-card styles */
.horizontal-scroll-container .project-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    cursor: default;
}

.horizontal-scroll-container .project-card:hover {
    transform: none;
    box-shadow: none;
}

.horizontal-scroll-container .project-image::before {
    content: none;
}

.cta-card {
    position: relative;
    background: #111;
    overflow: hidden;
}

.cta-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.cta-split-text {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 6% 0 8%;
    color: #f6f6f6;
    position: relative;
    z-index: 1;
}

.cta-split-text h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.cta-split-text p {
    font-size: 1.1rem;
    color: rgba(247, 247, 247, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-split-image {
    flex: 0 0 50%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-split-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,17,17,0.7) 0%, transparent 40%);
}

.cta-button-secondary {
    display: inline-block;
    background: #ffffff;
    color: #111;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.cta-button-secondary:hover {
    transform: translateY(-2px);
    background: var(--primary-yellow);
    color: #111;
    box-shadow: 0 10px 26px rgba(244, 185, 66, 0.35);
}

.project-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    color: var(--light-text);
}

.project-image {
    flex: 1;
    height: 60vh;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.image-navigation:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-50%) scale(1.1);
}

.project-image:hover .image-navigation {
    opacity: 1;
}

.nav-prev {
    left: 15px;
}

.nav-next {
    right: 15px;
}

.image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-dot.active {
    background: var(--primary-yellow);
}

.project-description {
    flex: 1;
}

.project-description h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.project-description p {
    display: none;
}

.project-type {
    display: block;
    width: fit-content;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.project-detail-btn {
    display: inline-flex;
    margin-top: 0;
    background: var(--primary-yellow);
    color: #111;
    text-decoration: none;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(244, 185, 66, 0.28);
}

.project-detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(244, 185, 66, 0.35);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-yellow), #E6A632);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-yellow), #E6A632);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Advantages Section */
.advantages {
    padding: 5rem 2rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-yellow), #E6A632);
    border-radius: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid var(--primary-yellow);
    position: relative;
    text-align: left;
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(244, 185, 66, 0.2);
}

.advantage-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary-yellow);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(244, 185, 66, 0.3);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #333;
    font-weight: 600;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .contact-info {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile: disable horizontal scroll and stack projects vertically */
    .horizontal-scroll-container {
        height: auto;
        background: var(--dark-bg);
        padding: 2rem 0;
    }

    .sticky-wrapper {
        position: static;
        height: auto;
    }

    .projects-container {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .project-card {
        width: 100%;
        padding: 2rem 1rem;
    }

    .project-content {
        flex-direction: column;
        gap: 2rem;
    }

    .project-image {
        width: 100%;
        height: 250px;
    }

    .project-description h2 {
        font-size: 1.8rem;
    }

}
