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

:root {
    /* Color palette from the design */
    --dark-bg: #1a1a1a;
    --dark-footer: #1a1a1a;
    --dark-blue: #202c42;
    --white: #ffffff;
    --light-blue: #60a5fa;
    --cyan-blue: #38bdf8;
    --vibrant-green: #22c55e;
    --teal-green: #14b8a6;
    --purple: #6366f1;
    --dark-purple: #4f46e5;
    --lavender: #c084fc;
    --gray-text: #6b7280;
    --dark-gray: #1f2937;
    --light-gray: #f3f4f6;
    --logo-color: #e94624;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--white);
    color: #1f2937;
}

.navbar {
    background-color: var(--white);
    width: 100%;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    overflow: hidden;
}

.navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.logo img {
    height: 125%;
    max-height: 100px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--logo-color);
}

.nav-link.active {
    color: var(--logo-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section & Carousel */
.hero-section {
    position: relative;
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    overflow: hidden;
    background-color: var(--white);
    margin-top: -100px;
    isolation: isolate;
    z-index: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    overflow: hidden;
    contain: layout style paint;
}

.carousel-container input[type="radio"] {
    display: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    isolation: isolate;
    contain: layout style paint;
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    max-height: 100%;
    transition: transform 0.6s ease-in-out;
    isolation: isolate;
    contain: layout style paint;
}

#slide1:checked ~ .carousel-wrapper .carousel-slides {
    transform: translateX(0);
}

#slide2:checked ~ .carousel-wrapper .carousel-slides {
    transform: translateX(-33.333%);
}

#slide3:checked ~ .carousel-wrapper .carousel-slides {
    transform: translateX(-66.666%);
}

.slide {
    width: 33.333%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 4rem 2rem 4rem;
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    contain: layout style paint;
}

/* Gradient overlay only on mobile - added in media query */

.slide-1 {
    background-image: url('assets/images/carousel/slide-01.jpg');
}

.slide-2 {
    background-image: url('assets/images/carousel/slide-02.jpg');
}

.slide-3 {
    background-image: url('assets/images/carousel/slide-03.jpg');
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 6rem;
    align-items: center;
    padding: 0 2rem;
}

.hero-left {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 3;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--logo-color);
    box-shadow: 0 4px 15px rgba(233, 70, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 70, 36, 0.4);
    background: #d13e1f;
}


/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.carousel-nav:hover {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-nav-prev {
    left: 20px;
}

.carousel-nav-next {
    right: 20px;
}

/* Show/hide navigation arrows based on active slide */
#slide1:checked ~ .carousel-prev-1,
#slide1:checked ~ .carousel-next-1 {
    display: flex;
}

#slide2:checked ~ .carousel-prev-2,
#slide2:checked ~ .carousel-next-2 {
    display: flex;
}

#slide3:checked ~ .carousel-prev-3,
#slide3:checked ~ .carousel-next-3 {
    display: flex;
}

.carousel-prev-1,
.carousel-prev-2,
.carousel-prev-3,
.carousel-next-1,
.carousel-next-2,
.carousel-next-3 {
    display: none;
}

.arrow {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--dark-gray);
    display: block;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
}

.carousel-nav iconify-icon.arrow {
    color: var(--dark-gray);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

iconify-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.btn iconify-icon {
    color: inherit;
}


/* Wave Graphic */
.wave-graphic {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 400px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(56, 189, 248, 0.1) 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: rotate(-15deg) translateX(-200px) translateY(150px);
    z-index: 0;
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--logo-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(233, 70, 36, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    text-decoration: none;
}

.scroll-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 70, 36, 0.4);
    background: #d13e1f;
}

.scroll-arrow {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 300;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1600px) {
    .navbar-container {
        padding: 0.5rem 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero-content {
        gap: 4rem;
    }

    .about-content {
        gap: 6rem;
    }

    .projects-content {
        gap: 4rem;
    }

    .contact-content {
        gap: 4rem;
    }
}

@media (max-width: 968px) {
    .navbar {
        height: auto;
        min-height: 80px;
    }

    .navbar-container {
        padding: 0 1rem;
        flex-wrap: nowrap;
        position: relative;
    }

    .logo img {
        max-height: 80px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 14px;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link:hover {
        background-color: var(--light-gray);
    }

    .slide {
        padding: 0 2rem 3rem 2rem;
    }

    .hero-content {
        padding: 0 1.5rem;
        gap: 3rem;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-prev {
        left: 10px;
    }

    .carousel-nav-next {
        right: 10px;
    }

    .arrow {
        width: 1.25rem;
        height: 1.25rem;
    }

    .about-content {
        gap: 4rem;
    }

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

    .projects-content {
        gap: 3rem;
    }

    .contact-content {
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .navbar {
        height: auto;
        min-height: 70px;
    }

    .navbar-container {
        padding: 0.75rem 1rem;
        height: auto;
    }

    .logo img {
        max-height: 60px;
        max-width: 250px;
    }

    .nav-menu {
        top: 70px;
    }

    .nav-link {
        font-size: 13px;
        padding: 0.875rem 1.5rem;
    }

    .hero-section {
        margin-top: 0;
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        height: calc(100vh - 70px);
    }

    .slide {
        padding: 0 1rem 2rem 1rem;
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        align-items: center;
        background-position: center center;
    }

    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.9);
        z-index: 1;
        pointer-events: none;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
        align-items: center;
        text-align: center;
        position: relative;
        z-index: 2;
    }

    .hero-left {
        width: 100%;
        text-align: center;
        position: relative;
        z-index: 3;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        color: var(--dark-gray);
        text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
        font-weight: 700;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        color: var(--dark-gray);
        text-shadow: 0 1px 2px rgba(255, 255, 255, 1);
        font-weight: 500;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav-prev {
        left: 5px;
    }

    .carousel-nav-next {
        right: 5px;
    }

    .arrow {
        width: 1rem;
        height: 1rem;
    }

    .wave-graphic {
        width: 200px;
        height: 150px;
        transform: rotate(-15deg) translateX(-100px) translateY(50px);
        opacity: 0.5;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .scroll-button {
        width: 35px;
        height: 35px;
    }

    .about-section {
        padding: 4rem 1.5rem;
    }

    .about-container {
        padding: 0;
    }

    .about-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-left {
        max-width: 100%;
    }

    .about-title {
        font-size: 1.75rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-right p {
        font-size: 0.9375rem;
    }

    .services-section {
        padding: 4rem 1.5rem;
    }

    .services-container {
        padding: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-title {
        font-size: 1.125rem;
    }

    .projects-section {
        padding: 4rem 1.5rem;
    }

    .projects-container {
        padding: 0;
    }

    .projects-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .projects-left {
        max-width: 100%;
    }

    .projects-title {
        font-size: 1.75rem;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .project-image-1,
    .project-image-2,
    .project-image-3,
    .project-image-4,
    .project-image-5 {
        grid-column: 1;
        grid-row: auto;
    }

    .career-section {
        padding: 4rem 1.5rem;
    }

    .career-container {
        padding: 0;
    }

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

    .career-tagline {
        font-size: 0.875rem;
    }

    .career-slide {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .career-panel {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        max-width: 350px;
    }

    .career-panel img {
        height: 397px;
    }

    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-container {
        padding: 0;
    }

    .contact-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .contact-left {
        max-width: 100%;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-info {
        gap: 1.25rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .contact-submit {
        width: 100%;
    }

    .main-footer {
        padding: 1.5rem 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* About Section */
.about-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--white);
    background-image: none;
    overflow: hidden;
    isolation: isolate;
    z-index: 10;
    margin-top: 0;
    clear: both;
}

.about-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    display: flex;
    gap: 8rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.about-left {
    flex: 0 0 45%;
    max-width: 500px;
}

.about-subtitle {
    font-size: 0.875rem;
    color: var(--logo-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.feature-icon img,
.feature-icon iconify-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-icon iconify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--white);
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.btn-primary iconify-icon.btn-arrow {
    color: var(--white);
}

.about-right {
    flex: 1;
}

.about-right p {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-right p:last-child {
    margin-bottom: 0;
}

.about-wave-graphic {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 500px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: rotate(-10deg) translateX(-150px) translateY(200px);
    z-index: 1;
    pointer-events: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (max-width: 968px) {
    .about-section {
        padding: 4rem 2rem;
    }

    .about-container {
        padding: 0;
    }

    .about-content {
        flex-direction: column;
        gap: 3rem;
    }

    .about-left {
        flex: 1;
        max-width: 100%;
    }

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

    .about-wave-graphic {
        width: 400px;
        height: 350px;
        transform: rotate(-10deg) translateX(-100px) translateY(150px);
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.services-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    align-items: flex-start;
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.service-icon img,
.service-icon iconify-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-icon iconify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.service-link:hover {
    color: var(--logo-color);
}

.link-arrow {
    width: 1rem;
    height: 1rem;
    color: currentColor;
    transition: transform 0.3s ease;
}

.service-link:hover .link-arrow {
    transform: translateX(4px);
}

@media (max-width: 968px) {
    .services-section {
        padding: 4rem 2rem;
    }

    .services-container {
        padding: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
    overflow: visible;
    isolation: isolate;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
}

.projects-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: visible;
}

.projects-content {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    position: relative;
}

.projects-left {
    flex: 0 0 40%;
    max-width: 500px;
}

.projects-subtitle {
    font-size: 0.875rem;
    color: var(--logo-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projects-list-item {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.projects-list-item.active {
    color: var(--logo-color);
}

.projects-list-item:hover {
    color: var(--logo-color);
}

.projects-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
    width: 100%;
}

.project-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.project-image[style*="display: none"] {
    display: none !important;
}

.project-image:hover {
    transform: scale(1.05);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fixed positioning for first 5 images when showing category-specific images */
.projects-gallery:not(.all-images-mode) .project-image-1 {
    grid-column: 1;
    grid-row: 1;
}

.projects-gallery:not(.all-images-mode) .project-image-2 {
    grid-column: 2;
    grid-row: 1;
}

.projects-gallery:not(.all-images-mode) .project-image-3 {
    grid-column: 3;
    grid-row: 1;
}

.projects-gallery:not(.all-images-mode) .project-image-4 {
    grid-column: 1;
    grid-row: 2;
}

.projects-gallery:not(.all-images-mode) .project-image-5 {
    grid-column: 2;
    grid-row: 2;
}


@media (max-width: 968px) {
    .projects-section {
        padding: 4rem 2rem;
    }

    .projects-container {
        padding: 0;
    }

    .projects-content {
        flex-direction: column;
        gap: 3rem;
    }

    .projects-left {
        flex: 1;
        max-width: 100%;
    }

    .projects-right {
        min-height: 500px;
        width: 100%;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image-1,
    .project-image-2,
    .project-image-3,
    .project-image-4,
    .project-image-5 {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-bottom: 0;
        grid-column: 1;
        grid-row: auto;
    }

    .projects-gallery.all-images-mode {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-section {
        padding: 3rem 1.5rem;
    }

    .projects-content {
        gap: 2rem;
    }

    .projects-subtitle {
        font-size: 0.875rem;
    }

    .projects-title {
        font-size: 1.75rem;
    }

    .projects-list {
        gap: 0.75rem;
    }

    .projects-list-item {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-gallery.all-images-mode {
        grid-template-columns: 1fr;
    }

    .project-image img {
        width: 100%;
        height: auto;
    }
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.project-modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-modal-header {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-menu-icon {
    font-size: 1.25rem;
    color: var(--dark-gray);
    cursor: pointer;
}

.modal-menu-icon iconify-icon {
    display: inline-block;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.modal-home-icon {
    font-size: 1.25rem;
}

.modal-home-icon iconify-icon {
    display: inline-block;
}

.modal-home-text {
    font-weight: 500;
}

.project-modal-body {
    padding: 2rem;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(90vh - 80px);
}

.project-modal-body img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.project-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10002;
}

.project-modal-close:hover {
    background-color: var(--logo-color);
    color: var(--white);
    transform: rotate(90deg);
}

.project-image {
    cursor: pointer;
}

/* Career Section */
.career-section {
    padding: 6rem 0;
    background: var(--dark-blue);
    position: relative;
    overflow: hidden;
}

.career-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.career-header {
    text-align: center;
    margin-bottom: 4rem;
}

.career-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.career-tagline {
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
}

.career-carousel-container {
    position: relative;
    width: 100%;
}

.career-carousel-container input[type="radio"] {
    display: none;
}

.career-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.career-carousel-slides {
    display: flex;
    width: 300%;
    transition: transform 0.6s ease-in-out;
}

#career-slide1:checked ~ .career-carousel-wrapper .career-carousel-slides {
    transform: translateX(0);
}

#career-slide2:checked ~ .career-carousel-wrapper .career-carousel-slides {
    transform: translateX(-33.333%);
}

#career-slide3:checked ~ .career-carousel-wrapper .career-carousel-slides {
    transform: translateX(-66.666%);
}

.career-slide {
    width: 33.333%;
    min-width: 0;
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.career-panel {
    flex: 0 0 350px;
    max-width: 350px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.career-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.career-panel img {
    width: 100%;
    height: 397px;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

.career-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    text-align: center;
    padding: 1.5rem 1rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Career Indicators */
.career-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    z-index: 10;
    position: relative;
}

.career-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.career-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

#career-slide1:checked ~ .career-indicators .career-indicator:nth-child(1),
#career-slide2:checked ~ .career-indicators .career-indicator:nth-child(2),
#career-slide3:checked ~ .career-indicators .career-indicator:nth-child(3) {
    background-color: var(--white);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

@media (max-width: 968px) {
    .career-section {
        padding: 4rem 1.5rem;
    }

    .career-container {
        padding: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .career-carousel-container {
        max-width: 100%;
        overflow: hidden;
    }

    .career-carousel-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

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

    .career-tagline {
        font-size: 0.875rem;
    }

    /* On mobile, show one panel at a time */
    .career-carousel-slides {
        width: 900% !important;
        transition: transform 0.6s ease-in-out;
        display: flex !important;
    }

    .career-slide {
        width: 33.333% !important;
        flex-direction: row !important;
        gap: 0 !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        flex-shrink: 0;
        min-width: 0;
    }

    .career-panel {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        width: 33.333% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .career-carousel-slides {
        transform: translateX(0%) !important; /* Default: show first panel */
    }
    
    /* JavaScript will override these with inline styles, but this ensures something shows */
    #career-slide1:checked ~ .career-carousel-wrapper .career-carousel-slides {
        transform: translateX(0%) !important; /* Panel 0 */
    }
    #career-slide2:checked ~ .career-carousel-wrapper .career-carousel-slides {
        transform: translateX(-33.333%) !important; /* Panel 3 (first of slide 2) */
    }
    #career-slide3:checked ~ .career-carousel-wrapper .career-carousel-slides {
        transform: translateX(-66.666%) !important; /* Panel 6 (first of slide 3) */
    }

    .career-panel img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .career-section {
        padding: 3rem 1rem;
    }

    .career-container {
        padding: 0;
    }

    .career-carousel-container {
        padding: 0;
    }

    .career-header {
        margin-bottom: 2.5rem;
    }

    .career-title {
        font-size: 1.75rem;
    }

    .career-tagline {
        font-size: 0.8125rem;
        padding: 0 1rem;
    }

    .career-panel {
        max-width: 100%;
        min-width: 0;
    }

    .career-panel img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        max-width: 100%;
        width: 100%;
    }

    .career-panel-title {
        font-size: 0.9375rem;
        padding: 1rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--white);
    background-image: url('assets/images/footer/dotted-map-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}

.contact-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.contact-left {
    flex: 0 0 45%;
    max-width: 500px;
}

.contact-subtitle {
    font-size: 0.875rem;
    color: var(--logo-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    line-height: 1.3;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.contact-icon img,
.contact-icon iconify-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-icon iconify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.contact-right {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark-gray);
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--logo-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.main-footer {
    background: var(--dark-blue);
    padding: 2rem 2rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
}

.footer-copyright {
    color: var(--white);
    font-size: 0.875rem;
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-follow {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--logo-color);
    transform: translateY(-2px);
}

.social-icon svg,
.social-icon iconify-icon {
    width: 18px;
    height: 18px;
    color: rgb(13, 35, 56);
    transition: color 0.3s ease;
}

.social-icon:hover svg,
.social-icon:hover iconify-icon {
    color: var(--white);
}

@media (max-width: 968px) {
    .contact-section {
        padding: 4rem 2rem;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-left {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .contact-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.25rem;
    }

    .contact-info-item {
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-right {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-content {
        gap: 2.5rem;
        flex-direction: column;
    }

    .contact-left {
        width: 100%;
        max-width: 100%;
    }

    .contact-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .contact-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .contact-info {
        gap: 1.25rem;
        margin-bottom: 0;
    }

    .contact-info-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .contact-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }

    .contact-text {
        font-size: 0.9375rem;
        word-break: break-word;
    }

    .contact-right {
        width: 100%;
    }

    .contact-form {
        gap: 1rem;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9375rem;
        padding: 0.875rem;
        width: 100%;
    }

    .contact-submit {
        width: 100%;
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    .project-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .project-modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .project-modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        height: calc(100vh - 70px);
    }

    .slide {
        padding: 0 0.75rem 2rem 0.75rem;
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        background-position: center center;
    }

    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        z-index: 1;
        pointer-events: none;
    }

    .hero-content {
        padding: 0 0.75rem;
        gap: 1.5rem;
        position: relative;
        z-index: 2;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        color: var(--dark-gray);
        text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
        font-weight: 700;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        color: var(--dark-gray);
        text-shadow: 0 1px 2px rgba(255, 255, 255, 1);
        font-weight: 500;
    }

    .hero-buttons {
        gap: 0.625rem;
        max-width: 280px;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .projects-title {
        font-size: 1.5rem;
    }

    .career-title {
        font-size: 1.5rem;
    }

    .career-tagline {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-text {
        font-size: 0.9375rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .project-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .project-modal-header {
        padding: 0.75rem;
    }

    .modal-menu-icon,
    .modal-home-icon {
        font-size: 1rem;
    }

    .modal-title {
        font-size: 0.9375rem;
    }

    .project-modal-body {
        padding: 0.75rem;
    }

    .project-modal-close {
        top: -35px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

