html {
    scroll-behavior: smooth;
}

/* Global box sizing for predictable layouts */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Make media elements fluid by default */
img,
video,
svg {
    max-width: 100%;
    height: auto;
}

/* Page transition animations */
body {
    transition: opacity 0.3s ease-in-out;
}

/* Also add smooth scrolling for specific elements if needed */
* {
    scroll-behavior: smooth;
}

/* Button and card hover transitions */
.cta-btn,
.learn-more-btn,
.apply-btn,
.project-details-btn,
.submit-resume-btn,
.view-all-btn {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.cta-btn:hover,
.learn-more-btn:hover,
.apply-btn:hover,
.project-details-btn:hover,
.submit-resume-btn:hover,
.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced card animations */
.service-card,
.company-card,
.job-card,
.team-card,
.news-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Card entrance animations */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes cardScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }

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

/* Stagger animation delays for cards */
.service-card:nth-child(1) {
    animation: cardSlideUp 0.6s ease-out 0.1s both;
}

.service-card:nth-child(2) {
    animation: cardSlideUp 0.6s ease-out 0.2s both;
}

.service-card:nth-child(3) {
    animation: cardSlideUp 0.6s ease-out 0.3s both;
}

.service-card:nth-child(4) {
    animation: cardSlideUp 0.6s ease-out 0.4s both;
}

.news-card:nth-child(1) {
    animation: cardFadeIn 0.7s ease-out 0.1s both;
}

.news-card:nth-child(2) {
    animation: cardFadeIn 0.7s ease-out 0.2s both;
}

.news-card:nth-child(3) {
    animation: cardFadeIn 0.7s ease-out 0.3s both;
}

.news-card:nth-child(4) {
    animation: cardFadeIn 0.7s ease-out 0.4s both;
}

.team-card:nth-child(1) {
    animation: cardScale 0.6s ease-out 0.1s both;
}

.team-card:nth-child(2) {
    animation: cardScale 0.6s ease-out 0.2s both;
}

.team-card:nth-child(3) {
    animation: cardScale 0.6s ease-out 0.3s both;
}

.team-card:nth-child(4) {
    animation: cardScale 0.6s ease-out 0.4s both;
}

.job-card:nth-child(1) {
    animation: cardSlideUp 0.6s ease-out 0.1s both;
}

.job-card:nth-child(2) {
    animation: cardSlideUp 0.6s ease-out 0.2s both;
}

.job-card:nth-child(3) {
    animation: cardSlideUp 0.6s ease-out 0.3s both;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: transparent;
    position: relative;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #1f2937;
    letter-spacing: 0.5px;
}

/* Make logo link look like text and clickable */
.logo,
.logo:link,
.logo:visited {
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
}

.logo:hover {
    color: #f28c28;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}

.nav-links li a.active {
    color: #f28c28;
    background: rgba(242, 140, 40, 0.15);
    border-bottom: 3px solid #f28c28;
    font-weight: 700;
    transform: translateY(-1px);
}

.nav-links li a:hover {
    color: #f28c28;
    background: rgba(242, 140, 40, 0.05);
    border-bottom: 2px solid #f28c28;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.mobile-menu-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.hamburger-line {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #1f2937 !important;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger-line:nth-child(1) {
    top: 0px;
}

.hamburger-line:nth-child(2) {
    top: 8px;
}

.hamburger-line:nth-child(3) {
    top: 16px;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mobile-logo {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1f2937;
    text-decoration: none;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links li a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-links li a:hover {
    background: #f8f9fa;
    color: #f28c28;
    border-left-color: #f28c28;
}

.mobile-nav-links li a.active {
    background: rgba(242, 140, 40, 0.1);
    color: #f28c28;
    border-left-color: #f28c28;
    font-weight: 600;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 60px 15px 20px;
        /* Add right padding to make room for hamburger */
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 56px 12px 16px;
        /* Add right padding for hamburger */
    }

    .mobile-menu-btn {
        right: 16px;
        /* Adjust hamburger position for smaller screens */
    }

    .logo {
        font-size: 1rem;
    }
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 40, 40, 0.45);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.1;
}

.hero-content .highlight {
    color: #f28c28;
    font-size: 1.2em;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2em;
}

.cta-btn {
    background: #f28c28;
    color: #fff;
    padding: 0.9em 2.2em;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.cta-btn:hover {
    background: #d97706;
}

.section {
    padding: 80px 20px;
    background: #fff;
    margin-top: -2px;
}

.section:nth-child(even) {
    background: #f5f5f5;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 1.5em;
}

.companies-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.companies-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.company-card {
    padding: 40px;
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: default;
}

.company-card::after {
    display: none;
    transition: all 0.6s ease;
}

.company-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.company-card:hover::after {
    width: 300px;
    height: 300px;
}


.blue-card {
    background: #3b82f6;
}

.dark-card {
    background: #23272f;
}

.card-icon {
    display: none;
}

.company-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    /* prevent overflow on long company names */
}

.company-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.services-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.services-list li::before {
    content: "•";
    color: #f28c28;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.learn-more {
    color: #f28c28;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.learn-more:hover {
    color: #d97706;
}

.about-intro {
    padding: 80px 20px;
    background: white;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-container h2 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: #4f46e5;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #4f46e5;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 30px;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.learn-more-btn {
    background: #4f46e5;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
}

.learn-more-btn:hover {
    background: #3730a3;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive tweaks for About and Companies sections */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .about-image img {
        height: 280px;
    }

    .companies-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Stats Section */
.stats-section {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f28c28;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Featured Projects Section */
.projects-section {
    padding: 80px 20px;
    background: #4f46e5;
    color: white;
    position: relative;
    overflow: hidden;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.projects-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

.projects-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.project-main {
    z-index: 2;
}

.project-category {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-tag {
    background: #f28c28;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-year {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
}

.project-main h3 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.project-location {
    font-size: 1.1rem;
    color: #f28c28;
    margin-bottom: 20px;
    font-weight: 600;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.project-details-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.75);
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-inline;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.project-details-btn:hover {
    background: #ffffff;
    color: #4f46e5;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.project-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

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

.projects-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Project carousel animations */
@keyframes projOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-40px);
    }
}

@keyframes projOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(40px);
    }
}

@keyframes projInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes projInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.proj-out-left {
    animation: projOutLeft 0.26s ease forwards;
}

.proj-out-right {
    animation: projOutRight 0.26s ease forwards;
}

.proj-in-left {
    animation: projInLeft 0.36s ease forwards;
}

.proj-in-right {
    animation: projInRight 0.36s ease forwards;
}

/* Slight parallax effect for image vs content */
@keyframes projImgOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50px) scale(0.98);
    }
}

@keyframes projImgOutRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(50px) scale(0.98);
    }
}

@keyframes projImgInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes projImgInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.proj-img-out-left {
    animation: projImgOutLeft 0.26s ease forwards;
}

.proj-img-out-right {
    animation: projImgOutRight 0.26s ease forwards;
}

.proj-img-in-left {
    animation: projImgInLeft 0.36s ease forwards;
}

.proj-img-in-right {
    animation: projImgInRight 0.36s ease forwards;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #ffffff;
    color: #4f46e5;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    background: transparent;
    color: white;
    transform: none;
}

/* Responsive Design for Projects Section */
@media (max-width: 768px) {
    .projects-container {
        padding: 0 10px;
    }

    .projects-header h2 {
        font-size: 2rem;
    }

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

    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .project-main h3 {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .project-image img {
        height: 300px;
    }

    .projects-navigation {
        margin-top: 30px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Careers Section */
/* Project Slides (server-rendered) */
.projects-slides-wrapper {
    position: relative;
}

.project-slide {
    display: none;
}

.project-slide.active {
    display: block;
}

.careers-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.careers-container {
    max-width: 1200px;
    margin: 0 auto;
}

.careers-header {
    text-align: center;
    margin-bottom: 60px;
}

.careers-header h2 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 20px;
    font-weight: 700;
}

.careers-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.job-openings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.job-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #f28c28);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.15);
    border-color: #4f46e5;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover .apply-btn {
    background: #f28c28;
    transform: scale(1.05);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.job-header h3 {
    font-size: 1.4rem;
    color: #222;
    margin: 0;
    font-weight: 600;
}

.job-location {
    font-size: 0.9rem;
    color: #666;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.job-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.job-type,
.job-experience {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.job-type {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.job-experience {
    background: rgba(242, 140, 40, 0.1);
    color: #f28c28;
}

.job-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.apply-btn {
    background: #4f46e5;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.apply-btn:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

.careers-cta {
    background: #4f46e5;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.careers-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.careers-cta p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.submit-resume-btn {
    background: #f28c28;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.3);
}

.submit-resume-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 140, 40, 0.4);
}

/* Responsive Design for Careers Section */
@media (max-width: 768px) {
    .careers-container {
        padding: 0 10px;
    }

    .careers-header h2 {
        font-size: 2rem;
    }

    .careers-subtitle {
        font-size: 1rem;
    }

    .job-openings {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }

    .job-card {
        padding: 25px 20px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .job-header h3 {
        font-size: 1.3rem;
    }

    .careers-cta {
        padding: 40px 25px;
        border-radius: 15px;
    }

    .careers-cta h3 {
        font-size: 1.5rem;
    }

    .careers-cta p {
        font-size: 1rem;
    }

    .submit-resume-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* Team Section */
.team-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-container h2 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 20px;
    font-weight: 700;
}

.team-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(242, 140, 40, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.25);
    border-color: #4f46e5;
}

.team-card:hover::after {
    opacity: 1;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
    border-color: #f28c28;
}

.team-image {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.team-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4f46e5;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.team-info h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 8px;
    font-weight: 600;
}

.team-title {
    font-size: 1.1rem;
    color: #f28c28;
    margin-bottom: 12px;
    font-weight: 600;
}

.team-experience {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.team-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 60px;
    position: relative;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: #4f46e5;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px) scale(1.05);
}

.contact-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.contact-item:hover .contact-icon,
.contact-item:hover span:last-child {
    color: white;
    position: relative;
    z-index: 1;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-item span:last-child {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design for Team Section */
@media (max-width: 768px) {
    .team-container {
        padding: 0 10px;
    }

    .team-container h2 {
        font-size: 2rem;
    }

    .team-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-card {
        padding: 25px 20px;
    }

    .team-image img {
        width: 100px;
        height: 100px;
    }

    .team-contact {
        gap: 15px;
    }

    .contact-item {
        min-width: 50px;
        padding: 8px;
    }
}

/* News & Accomplishments Section */
.news-section {
    padding: 80px 20px;
    background: white;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.news-container h2 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 20px;
    font-weight: 700;
}

.news-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.news-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    /* Ensure Chrome doesn't underline linked card content */
    text-decoration: none;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: white;
    text-decoration: none;
    /* keep underline off on hover */
}

.news-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
}

.news-card:hover .read-more {
    transform: translateX(5px);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #f28c28);
}

.news-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.category-icon {
    font-size: 1.5rem;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.category-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.news-date {
    font-size: 0.85rem;
    color: #999;
    margin-left: auto;
}

.news-card h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Remove underlines from all links inside news cards */
.news-card a,
.news-card a:visited,
.news-card a:hover,
.news-card a:active {
    text-decoration: none;
}

/* If the entire card is an anchor (as on home/news pages), ensure no underline */
a.news-card,
a.news-card:hover,
a.news-card:focus,
a.news-card:active {
    text-decoration: none;
}

.read-more {
    /* Deprecated link style retained for compatibility */
    color: #f28c28;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* Generic button utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

.btn-accent {
    background: #f28c28;
    color: #fff;
    border: 2px solid #f28c28;
}

.btn-accent:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
}

.btn-light-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.btn-light-outline:hover {
    background: #fff;
    color: #1f2937;
    transform: translateY(-1px);
}

.read-more:hover {
    color: #d97706;
}

/* Category-specific styling */
.award-card .category-label {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.project-card .category-label {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.milestone-card .category-label {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.expansion-card .category-label {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.view-all-container {
    margin-top: 50px;
    text-align: center;
}

.view-all-btn {
    background: #4f46e5;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.view-all-btn:hover {
    background: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Responsive Design for News Section */
@media (max-width: 768px) {
    .news-container {
        padding: 0 10px;
    }

    .news-container h2 {
        font-size: 2rem;
    }

    .news-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-card {
        padding: 25px 20px;
    }

    .news-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-date {
        margin-left: 0;
        align-self: flex-end;
    }

    .category-label {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .view-all-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Footer Section */
.footer {
    background: #4f46e5;
    color: white;
    padding: 60px 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #f8f9fa;
}

.company-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 25px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.contact-item-footer .contact-icon {
    font-size: 1.1rem;
    width: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f28c28;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* SVG-based social icons */
.social-link svg {
    width: 18px;
    height: 18px;
    fill: #e2e8f0;
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: #ffffff;
}

/* Brand hover backgrounds for professionalism */
.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.linkedin:hover {
    background: #0a66c2;
}

.social-link.instagram:hover {
    background: #E1306C;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .contact-info {
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    /* Navbar Mobile Responsive */
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 8px 12px;
        border-radius: 20px;
        border-bottom: none !important;
    }

    .nav-links li a.active {
        background: #f28c28;
        color: white;
    }

    .nav-links li a:hover {
        background: rgba(242, 140, 40, 0.8);
        color: white;
        border-bottom: none;
    }
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .navbar {
        padding: 18px 30px;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .section {
        padding: 70px 20px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    /* Hero */
    .hero-section {
        min-height: 80vh;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.8em 1.6em;
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 60px 16px;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    /* Navbar links tighter on mobile (already wrapped) */
    .nav-links {
        gap: 8px;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 6px 10px;
        border-radius: 18px;
    }

    /* Company cards spacing */
    .company-card {
        padding: 28px;
    }

    /* Project buttons */
    .project-details-btn {
        font-size: 0.95rem;
        padding: 10px 18px;
    }

    /* Detail pages hero image */
    .detail-hero img {
        height: 260px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .nav-links li a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .projects-header h2,
    .services-container h2,
    .team-container h2,
    .news-container h2 {
        font-size: 1.6rem;
    }

    .project-image img {
        height: 240px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .detail-hero img {
        height: 200px;
    }
}

/* Forms: alignment and styling */
.form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.form-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-file {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-file:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

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

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.form-hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.submit-resume-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .form-grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* Detail helpers */
.detail-hero img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    /* border-radius: 16px; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
}

.detail-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.back-link:hover {
    border: 2px solid #807e7e;
    transform: translateY(-1px);
}

/* News Detail Layout Styles */
.news-detail-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-main-content {
    flex: 2;
    min-width: 0;
}

.news-sidebar {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 280px;
    position: sticky;
    top: 100px;
}

.news-sidebar h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #1f2937;
    font-weight: 700;
}

.news-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-sidebar li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.news-list-sidebar li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-list-sidebar a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.news-list-sidebar a:hover {
    color: #f28c28;
    text-decoration: none;
}

@media (max-width: 900px) {
    .news-detail-layout {
        flex-direction: column;
        gap: 30px;
    }

    .news-sidebar {
        position: static;
        min-width: auto;
        margin-top: 32px;
        order: 2;
    }

    .news-main-content {
        order: 1;
    }
}
