/* ============================================
   HERO SECTION
   ============================================ */


.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 10vh, 120px) 0 clamp(40px, 8vh, 80px);
    background: #ffffff;
    isolation: isolate;
    scroll-snap-align: start;
    scroll-margin-top: var(--header-height, 0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/lebu-gebreal.svg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
    filter: contrast(1.2) brightness(1.1);
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    max-height: 100%;
    margin: 0 auto;
    padding: 3rem clamp(2rem, 8vw, 6rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    position: relative;
    z-index: 2;
    background: #ffffff;
    margin-top: 6rem;
    margin-bottom: 10rem;
}

/* Center hero content for big displays */
@media (min-width: 1400px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Additional centering for very large displays */
@media (min-width: 1800px) {
    .hero-container {
        max-width: 1600px;
    }
    
    .hero-content {
        max-width: 900px;
    }
}

.hero-content {
    position: relative;
    max-width: 600px;
    padding: 1rem 0;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-family: var(--body-font);
}

.hero-content h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

@keyframes lineReveal {
    to { transform: scaleX(1); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.3);
        box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
    }
    50% {
        transform: scale(1.4);
        box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.4);
    }
}

.hero-content .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-semi-bold);
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.5s;
}

.hero-content .tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 2px solid var(--primary-color);
    max-width: 95%;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.7s;
    background: rgba(0, 0, 0, 0.02);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-semi-bold);
    font-size: var(--normal-font-size);
    transition: border-color 0.2s ease, color 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.4s;
    padding: 1rem;
    margin: 0 auto;
}

.home-img {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.home-blob {
    width: 100%;
    height: 100%;
    fill: transparent;
}

.home-blob-img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

/* Profile Photo Alternative */
.profile-photo {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

.profile-photo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-hover);
}

/* ===== FEATURED PROJECTS IN HERO ===== */
.featured-projects {
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 clamp(2rem, 8vw, 6rem);
    display: block;
    visibility: visible;
}

.featured-projects .section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 2rem;
    color: var(--title-color);
    font-weight: 600;
    text-align: center;
}

.project-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: transparent;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    visibility: visible;
    min-height: 550px;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* ===== CAROUSEL COMPONENTS ===== */
.carousel-nav {
    text-align: center;
    margin-top: 1.5rem;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== SMOOTH CAROUSEL TRANSITIONS ===== */
.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    visibility: hidden;
}

.project-slide.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    z-index: 2;
}

.project-slide.prev,
.project-slide.next {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.featured-project-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 400px;
    animation: slideInUp 0.6s ease-out;
}

.featured-project-card.active {
    box-shadow: 0 8px 35px rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.featured-project-card .featured-project-info,
.featured-project-card .featured-project-image {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-project-card.wide-layout {
    flex-direction: row;
    min-height: 500px;
}

.featured-project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px) scale(1.02);
}

.featured-project-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    flex: 0 0 50%;
}

.wide-layout .featured-project-image {
    height: 500px;
    flex: 0 0 50%;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.featured-project-card:hover .featured-project-image img {
    transform: scale(1.03);
}

.featured-projects .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-view-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-view-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.featured-projects .project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-type {
    background: rgba(0, 136, 100, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: var(--font-medium);
    border: 1px solid var(--primary-color);
}

.project-year {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: var(--font-medium);
}

.featured-projects .project-info h3 {
    font-size: 1.4rem;
    color: var(--title-color);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.project-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-location i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.project-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.project-tag {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: var(--font-medium);
    transition: all 0.2s ease;
}

.project-tag:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    color: var(--text-light);
}

.carousel-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
    background: rgba(var(--primary-color-rgb), 0.05);
}

.carousel-arrow.prev {
    left: 1rem;
}

.carousel-arrow.next {
    right: 1rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.carousel-dot.active,
.carousel-dot:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

.carousel-dot.active {
    animation: pulse 2s infinite;
}

/* ===== NEW FEATURED PROJECT STYLES ===== */
.featured-project-info {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.wide-layout .featured-project-info {
    flex: 0 0 50%;
    height: 500px;
    padding: 2.5rem 2rem;
    justify-content: space-between;
}

.featured-project-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--title-color);
    margin: 0;
    line-height: 1.3;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.project-location i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.project-description {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tag {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    transition: all 0.2s ease;
}

.project-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.project-view-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.project-view-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-actions {
    margin-top: 1.5rem;
}

.project-cta-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    text-decoration: none;
}

.project-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

.project-cta-btn i {
    transition: transform 0.3s ease;
}

.project-cta-btn:hover i {
    transform: translateX(4px);
}

.carousel-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.carousel-navigation > * {
    pointer-events: all;
}

/* ===== AWARDS SECTION ===== */
.awards-section {
    margin: 3rem auto 2rem;
    padding: 0 clamp(2rem, 8vw, 6rem);
    max-width: 1400px;
}

.awards-section .section-title {
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.award-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: border-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.award-item:hover {
    border-color: var(--primary-color);
}

.award-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.award-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.award-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== FEATURED PROJECT MODAL ===== */
.featured-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.featured-modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.featured-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.featured-modal-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--title-color);
    font-size: 2rem;
    font-weight: 600;
}

.featured-modal-subtitle {
    color: var(--text-light);
    margin: 0;
    font-size: 1.1rem;
}

.featured-close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.featured-close-modal:hover {
    color: var(--primary-color);
}

.featured-modal-hero {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.featured-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-modal-body {
    padding: 2rem;
}

.featured-project-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.featured-project-main-info h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.featured-project-main-info h3:first-child {
    margin-top: 0;
}

.featured-project-main-info p {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.featured-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.featured-features-list i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.featured-project-specs {
    background: rgba(0, 136, 100, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: fit-content;
}

.featured-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-spec-item:last-child {
    border-bottom: none;
}

.featured-spec-label {
    font-weight: var(--font-semi-bold);
    color: var(--text-light);
    font-size: 0.9rem;
}

.featured-spec-value {
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.featured-project-gallery h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.featured-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.featured-gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.featured-gallery-item:hover {
    border-color: var(--primary-color);
}

.featured-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

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

.featured-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.featured-tag {
    background: transparent;
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--font-semi-bold);
    border: 1px solid var(--primary-color);
    transition: border-color 0.2s ease;
}

.featured-tag:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.featured-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: flex;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.image-close-modal:hover {
    background: var(--primary-color);
    color: white;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-radius);
}



