:root {
    --primary-dark: #0077b6;
    --accent-blue: #00b4d8;
    --ice-blue: #caf0f8;
    --white: #ffffff;
    --text-main: #2d3436;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--white);
}

/* --- REDESIGNED NAVIGATION (Centered & Floating) --- */
.navbar {
    position: fixed; /* Better than sticky for the "floating" look */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: flex;
    flex-direction: column; /* Stack logo and links */
    align-items: center;
    padding: 12px 30px;
    box-shadow: 0 10px 30px rgba(0, 77, 182, 0.1);
    z-index: 1000;
}

.nav-logo {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ice-blue);
    padding-top: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
}

/* Hover underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

/* --- FIXED CENTERED 3D CAROUSEL --- */
.banner {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #ffffff 0%, #caf0f8 100%);
    perspective: 1500px; /* Increased for better 3D depth */
    overflow: hidden;
    margin-top: 80px; 
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* No flex here, items will be positioned absolutely */
}

.carousel-item {
    position: absolute;
    /* This centers the starting point of every item */
    top: 50%;
    left: 50%;
    width: 450px;
    height: 300px;
    /* Start at center, then the classes below will move them */
    transform: translate(-50%, -50%); 
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping */
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    background: white; /* Backdrop for transparent/small images */
    padding: 10px;
}

/* --- THE ROTATION STATES (Centered Logic) --- */

/* Center Item (Active) */
.carousel-item.active {
    z-index: 10;
    /* translate(-50%, -50%) is the anchor, scale(1.1) makes it pop */
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Left Item (Orbiting to the left) */
.carousel-item.prev {
    z-index: 5;
    /* We move it left by -350px while keeping the -50% centering anchor */
    transform: translate(-110%, -50%) scale(0.8) rotateY(25deg);
    opacity: 0.4;
    filter: blur(1px);
}

/* Right Item (Orbiting to the right) */
.carousel-item.next {
    z-index: 5;
    /* We move it right by 110% while keeping the -50% centering anchor */
    transform: translate(10%, -50%) scale(0.8) rotateY(-25deg);
    opacity: 0.4;
    filter: blur(1px);
}

/* Hidden Items (waiting in the background) */
.carousel-item.hidden {
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    pointer-events: none;
}

.carousel-caption {
    margin-top: 20px;
    background: var(--primary-dark);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.4s;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
}
/* --- SECTIONS --- */
.content-section { padding: 100px 10%; text-align: center; }
#career { background-color: var(--ice-blue); }

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    text-align: left; /* Keep text readable */
    max-width: 900px;
    margin: 0 auto;
}

/* --- REDESIGNED FOOTER --- */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 10% 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative top border for footer */
footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--ice-blue), var(--accent-blue), var(--ice-blue));
}

.footer-content h3 { 
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-email {
    font-size: 1.2rem;
    color: var(--ice-blue);
    text-decoration: none;
    font-weight: 300;
    display: block;
    margin-bottom: 40px;
    transition: var(--transition-smooth);
}

.footer-email:hover {
    color: var(--white);
    letter-spacing: 1px;
}

.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    padding: 12px 25px;
    border: 1px solid rgba(202, 240, 248, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .navbar { width: 95%; padding: 10px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.8rem; }
}