/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 20px;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 0.9rem; /* default gap */
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link:hover { color: #D4A574; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A574;
    transition: width 0.25s ease;
}

.nav-link:hover::after { width: 100%; }

.nav-center { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex: 0; 
    transform: translateX(0);
}

/* Spread nav links to cover the header width */
.nav-left {
    flex: 1;
    justify-content: space-between;
    gap: 0; /* space handled by space-between */
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.3px;
}

.logo { height: 56px; width: auto; }

.placeholder-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #D4A574;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #f7f2eb 60%, #efe6da 100%);
    box-shadow:
        0 10px 20px rgba(0,0,0,0.12),
        inset 0 2px 8px rgba(255,255,255,0.9),
        0 0 0 2px rgba(212,165,116,0.15);
}

.placeholder-logo.glow { box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 0 0 3px rgba(212,165,116,0.18), inset 0 3px 10px rgba(255,255,255,0.9); }

/* Hero Section */
.hero-section {
    background: #000; /* will be covered by video */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden; /* hide any video edges */
}

/* Remove previous abstract overlays */
.hero-section::before,
.hero-section::after { display: none; }

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06); /* slight crop to hide video edges */
    opacity: 0.65; /* soften background for readability */
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: min(35vw, 350px);
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: #ffffff;
}

.handshake-bg {
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.about-animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.handshake-video {
    width: 100%;
    max-width: 560px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.handshake-bg .about-text {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes about-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Section */
.team-section {
    padding: 6rem 0; /* reduced from 8rem 0 */
    background: #f5ead2;
    position: relative;
    overflow: hidden;
}

/* Side background looping videos */
.team-section { position: relative; overflow: hidden; }
.team-side-video {
    position: absolute;
    top: 0;
    width: 25vw;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}
.team-side-video--left { left: 0; }
.team-side-video--right { right: 0; transform: scaleX(-1); }

.team-section .container { position: relative; z-index: 1; max-width: 1000px; }

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.team-slider-wrapper {
    position: relative;
    max-width: 900px; /* reduced from 1000px */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: auto; /* remove the calc height */
}

.team-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    min-height: auto; /* remove fixed height */
}

.team-slider {
    display: flex;
    transition: transform 0.45s ease-in-out;
    will-change: transform;
}

.team-slide {
    min-width: 100%;
    padding: 0.25rem;
    display: flex; /* add flex to center card */
    align-items: center; /* center the card vertically */
    justify-content: center; /* center the card horizontally */
}

.team-card {
    background: #f5f0e8;
    border-radius: 20px;
    padding: 2rem 2.5rem; /* reduced from 2.5rem 3rem */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 550px; /* reduced from 650px */
    width: 100%;
}

.team-image {
    width: 220px; /* reduced from 264px */
    height: 220px; /* reduced from 264px */
    margin: 0 auto 1.2rem; /* reduced bottom margin */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    text-align: initial;
    padding: 0;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0; /* container controls radius */
    box-shadow: none; /* container has shadow */
    margin: 0; /* filled by container */
}

.team-card h3 {
    font-size: 1.5rem; /* reduced from 1.7rem */
    color: #2c3e50;
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-align: center;
}
.team-card h4 {
    font-size: 1.1rem; /* reduced from 1.2rem */
    color: #D4A574;
    margin-bottom: 0.8rem; /* reduced from 1rem */
    font-weight: 500;
    text-align: center;
}
.team-card p {
    color: #666;
    line-height: 1.65; /* slightly reduced from 1.75 */
    font-size: 1rem; /* reduced from 1.1rem */
    text-align: justify;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

/* widen viewport feel by reducing inner padding and increasing slide gutter fill */
.team-viewport { border-radius: 20px; }
.team-slide { padding: 0.5rem 0.25rem; }

.team-nav {
    background: #fff;
    border: 1px solid #eee;
    color: #2c3e50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    z-index: 3; /* ensure clickable above slider */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.team-nav:hover { transform: translateY(calc(-50% - 2px)); color: #D4A574; box-shadow: 0 12px 26px rgba(0,0,0,0.12); }
.team-prev { left: 8px; }
.team-next { right: 8px; }

.team-dots {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #D4A574;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.team-dot:hover { transform: scale(1.1); }
.team-dot.active { background: #D4A574; }

/* Job Openings Section */
.openings-section {
    padding: 6rem 0;
    background: #ffffff;
}

.openings-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.openings-note {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.openings-link-container {
    text-align: center;
}

.openings-link {
    background: #D4A574;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.openings-link:hover {
    background: #c19a6b;
    transform: translateY(-2px);
}

.domains-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.domain-btn {
    background: #D4A574;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
    text-align: center;
}

.domain-btn:hover {
    background: #c19a6b;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: #f8f5f0;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 600;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: #D4A574;
    width: 50px;
    text-align: center;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.contact-item a:hover {
    color: #D4A574;
}

.contact-item > div {
    width: 100%;
}

.phone-links {
    display: block;
    margin: 0;
    padding: 0;
}
.phone-links a {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.75;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}
.phone-links a:hover {
    color: #D4A574;
}

/* Footer */
.footer {
    background-color: #3d4f5d;
    color: #d1d5db;
    padding: 2.5rem 3rem;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.copyright-row {
    text-align: center;
}


.footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-size: 0.95rem;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-credits {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.left-credit {
    text-align: left;
    font-size: 0.95rem;
}

.right-credit {
    text-align: right;
    font-size: 0.95rem;
}

.copyright {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin: 0;
}

@media (max-width: 968px) {
    .footer-credits {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .left-credit,
    .center-credit,
    .right-credit {
        text-align: center;
        white-space: normal;
        width: 100%;
    }
    
    .left-credit {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .right-credit {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1.5rem;
    }

    .footer a,
    .copyright {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .footer-credits {
        gap: 1.25rem;
    }
    
    .left-credit,
    .right-credit {
        padding: 0 1rem;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .nav-center { transform: translateX(20px); }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 0.5rem; }
    .nav-left, .nav-right { gap: 1rem; }
    .nav-left { justify-content: center; }
    .nav-center { transform: translateX(0); }
.team-slider-wrapper { max-width: 100%; padding: 0 50px; gap: 0.5rem; position: relative; }

    .team-viewport { border-radius: 20px; margin: 0; }
    .team-nav {
        background: #fff;
        border: 1px solid #eee;
        color: #2c3e50;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: inline-flex;
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer a,
    .copyright {
        font-size: 0.8rem;
    }
    
    .left-credit,
    .right-credit {
        padding: 0 0.5rem;
    }
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        z-index: 10;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    .team-card h3 { font-size: 1.4rem; }
    .team-card h4 { font-size: 1.1rem; }
    }
    .team-dots { margin-top: 12px; }
    .about-content {
        grid-template-columns: 1fr;
    .team-prev { left: 5px; }
    .team-next { right: 5px; }
        gap: 2rem;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .openings-link {
        padding: 0.75rem 1.5rem;
    }
    .domains-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .domain-btn {
        width: 200px;
        text-align: center;
    }
    .team-image { width: 180px; height: 180px; margin-bottom: 1rem; }
    .team-card { padding: 1.5rem 1.25rem; margin: 0; min-height: auto; }

    /* Narrow overall team section content and improve readability */
    .team-section .container { max-width: 94%; }
    .team-section h2 { font-size: 2rem; }
    .team-card p { font-size: 0.95rem; line-height: 1.6; }
    .team-side-video { display: none; } /* remove side videos on mobile */
    .footer-credits {
        flex-direction: column;
        text-align: center;
    .team-slider-wrapper { padding: 0 45px; }
    .team-nav { width: 36px; height: 36px; }
    .team-prev { left: 3px; }
    .team-next { right: 3px; }
        gap: 8px; /* spacing between stacked items */
    }

    .footer-credits .left,
    .footer-credits .center,
    .footer-credits .right {
        text-align: center;
        flex: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 100px;
    }
    .placeholder-logo { width: 56px; height: 56px; font-size: 1.25rem; }
    .team-image { width: 165px; height: 165px; }
    .team-card { padding: 1rem 1rem; margin: 0 0.25rem; } /* further reduced for small screens with background */

    /* Tighter typography and spacing for very small screens */
    .team-section h2 { font-size: 1.75rem; }
    .team-card p { font-size: 0.95rem; }
}