/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #F4F4FA;
    color: #2d3436;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scroll from blobs */
}

/* Background Effects */
.page-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 948px;
    height: 741px;
    filter: blur(244px);
    border-radius: 50%;
}

/* Fuchsia Blob (Top) */
.blob-2 {
    left: 659px;
    /* Or use percent for responsiveness, e.g. 50% */
    top: -200px;
    /* Adjusted to be visible in hero */
    background: #d946ef;
    /* fuchsia-500 */
    opacity: 0.1;
    transform-origin: top left;
    transform: rotate(-35.78deg);
}

/* Amber Blob (Lower down) */
.blob-1 {
    left: 100px;
    /* Adjusted for visibility */
    top: 1992px;
    background: #fde68a;
    /* amber-200 */
    opacity: 0.2;
    transform-origin: top left;
    transform: rotate(75.53deg);
}

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

/* Navigation */

/* Hero Section */
.hero {
    padding: 140px 0 60px;
}

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

.hero-text h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text p {
    font-family: 'Figtree', sans-serif;
}

.hero-text p {
    font-size: 20px;
    color: #676767;
    line-height: 1.6;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Search Form */
.search-form {
    background: white;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 32px;
    width: 100%;
    max-width: 780px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
    border: none;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.form-group label {
    color: black;
    font-size: 20px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    line-height: 32px;
    margin-left: 0;
    text-transform: none;
    letter-spacing: normal;
}

.input-container {
    align-self: stretch;
    padding: 12px 20px;
    background: white;
    border-radius: 40px;
    border: 1px solid #78716c;
    /* stone-500 */
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.input-container input {
    width: 100%;
    border: none;
    outline: none;
    color: #78716c;
    font-size: 20px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    line-height: 32px;
    background: transparent;
    padding: 0;
}

.input-container input::placeholder {
    color: #78716c;
    opacity: 0.7;
}

.search-btn {
    padding: 12px 24px;
    background: #FFC5C5;
    /* bg-red-200 replacement or #FECACA */
    background-color: #fecaca;
    /* red-200 */
    border-radius: 40px;
    box-shadow: 4px 4px 0px 0px #000000;
    border: 2px solid black;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;

    color: black;
    font-size: 20px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    line-height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #000000;
    background-color: #fecaca;
}

/* Remove old styles */
.form-fields,
.divider,
.input-wrapper {
    display: none;
}

/* Section Titles */
.section-title {
    font-family: 'Figtree', sans-serif;
    font-size: 72px;
    font-weight: 200;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.1;
}

.section-title .highlight {
    font-weight: 700;
    color: #F45B69;
}

/* Job Roles Section */
.job-roles {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h3 {
    font-size: 32px;
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 54px;
    height: 54px;
    border: 2px solid black;
    border-radius: 40px;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: #FFC5C5;
    color: black;
}

.job-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /* align-items: start; Removed to ensure equal height */
}

.job-card {
    background: white;
    border-radius: 40px;
    padding: 16px;
    padding-bottom: 80px;
    /* Reserved space for button */
    box-shadow: 10px 11px 69px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    height: 100%;
    /* Force equal height */
    position: relative;
    /* Context for absolute button */
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-8px);
}

.job-card-image {
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 24px;
    height: 240px;
    flex-shrink: 0;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.job-card:hover .job-card-image img {
    filter: grayscale(0%);
}

.job-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.job-card-content h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.job-card-content p {
    font-size: 18px;
    color: #676767;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA Button - Absolute Positioned */
.job-card-btn {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    padding: 12px 0;
    text-align: center;
    border: 2px solid black;
    border-radius: 40px;
    background: transparent;
    color: black;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.job-card-btn:hover {
    background: #FFC5C5;
    color: black;
}

.job-card:hover .job-card-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Locations Section */
.locations {
    padding: 100px 0;
}

.locations-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.locations-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.locations-content p {
    font-size: 16px;
    color: #676767;
    margin-bottom: 32px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.locations-grid span {
    font-size: 20px;
    font-weight: 500;
}

.locations-image {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.locations-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team Section */
.team {
    padding: 100px 0;
}

.team-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-image {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 16px;
}

.team-text h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 0;
}

.team-text p {
    font-size: 16px;
    color: #676767;
    line-height: 1.6;
    margin-bottom: 32px;
}

.view-all-btn {
    background: transparent;
    color: black;
    border: 2px solid black;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover {
    background: #FFC5C5;
    color: black;
}

.circle-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid black;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: black;
}

.circle-arrow-btn:hover {
    background: #FFC5C5;
    color: black;
}

/* Life at FVC Section */
.life-at-fvc {
    padding: 100px 0;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-row {
    display: flex;
    gap: 20px;
}

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

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
}

.gallery-item.large {
    flex: 1.5;
    height: 300px;
}

.gallery-item.medium {
    flex: 1.3;
    height: 300px;
}

.gallery-item.small {
    height: 144px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: black;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 40px;
    margin-bottom: 60px;
}

.footer-column:first-child {
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-column h4 {
    color: #E09F7D;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: none;
    letter-spacing: normal;
}

.footer-column a {
    display: block;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 14px;
    transition: all 0.3s;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo img {
    height: auto;
    width: 180px;
    object-fit: contain;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

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

.social-links a:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-divider {
    height: 1px;
    background: #676767;
    margin: 40px 0;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 14px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .job-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-card,
    .team-card {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== SMOOTH SCROLLING & ANIMATIONS ===== */

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation for page sections */
/* Fade-in animation for page sections (Scroll triggered) */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Apply animations to main sections */
/* Old keyframe animations replaced by scroll observer */

/* Smooth hover effects for job cards */
.job-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Smooth button transitions */
.nav-cta,
.search-btn,
.view-all-btn {
    transition: all 0.3s ease;
}

.nav-cta:hover,
.search-btn:hover,
.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Smooth image transitions */
.gallery-item img {
    transition: transform 0.4s ease;
}

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

/* Smooth logo hover */
.logo-img {
    transition: transform 0.3s ease;
}


@media (max-width: 768px) {
    .section-title {
        font-size: 48px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .job-cards {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .form-fields {
        flex-direction: column;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional Styles from User Request */
.font-manrope {
    font-family: 'Manrope', sans-serif;
}

.main-container::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 10% 20%, rgba(199, 210, 254, 0.3), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(254, 202, 202, 0.3), transparent 40%);
    opacity: 0.5;
    filter: blur(100px);
}

@media (min-width: 1024px) {
    .main-container::before {
        background-image: radial-gradient(circle at 20% 30%, rgba(199, 210, 254, 0.4), transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(254, 202, 202, 0.4), transparent 50%);
    }
}

.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-tab .tab-fill {
    transition: fill 0.3s ease;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu-button.open .hamburger-top {
    transform: translateY(7px) rotate(45deg);
}

#mobile-menu-button.open .hamburger-middle {
    opacity: 0;
}

#mobile-menu-button.open .hamburger-bottom {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
    .hero-section {
        min-height: 70vh !important;
    }
}

@media (max-width: 992px) {
    #partners-mega-menu {
        display: none !important;
    }

    #more-mega-menu {
        display: none !important;
    }
}

.partners-category-title {
    color: #333;
    font-size: 20px;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 24px;
}

.partners-logo-grid {
    display: grid;
    gap: 20px;
}

.ucc-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.pro-av-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.ucaas-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.cyber-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

@media (min-width: 992px) {
    .ucc-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pro-av-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .ucaas-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cyber-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    border-radius: 20px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    background-color: #ecd9d9;
}

.partner-logo-item-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    border-radius: 20px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    background-color: #796666;
}

.partner-logo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #ffffff
}

.partner-logo-item-dark:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #000000
}

.partner-logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-logo-item img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo-item.disabled {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f5f5f5;
}

.partner-logo-item.disabled:hover img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.cyber-grid .partner-logo-item {
    background-color: #e0e0e0;
}

.cyber-grid .partner-logo-item img {
    opacity: 0.8;
    filter: grayscale(100%) brightness(0.8);
}

.cyber-grid .partner-logo-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.partners-divider {
    border: none;
    height: 1px;
    background-color: #E0E0E0;
    margin-top: 40px;
}

.partners-cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
}

.partners-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #FFC5C5;
    border: 1px solid #333;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.partners-cta-btn:hover {
    background: #333;
    color: white;
    transform: scale(1.05);
}

.partners-cta-btn:hover svg path {
    fill: white;
}