@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Brand Colors */
:root {
    --main-beige: #000;           /* switched to black */
    --card-dark: #0d0d0d;         /* dark grey for cards & sections */
    --soft-red: #B52435;
    --soft-green: #8fbf88;
    --udem-blue: #002d62;
    --text-light: #f5f5f5;
    --text-muted: #cccccc;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--main-beige);
    color: var(--text-light);
}


/* --- Navbar --- */
header {
    background-color: black;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 80px;
    width: auto;
}

/* Menu */
nav .menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav .menu li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

nav .menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: var(--soft-red);
    transition: width 0.3s ease;
}

nav .menu li a:hover::after,
nav .menu li a.active::after {
    width: 100%;
}

nav .menu li a:hover,
nav .menu li a.active {
    color: var(--soft-red);
}

/* Language button */
nav .lang a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background-color: var(--udem-blue);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}
nav .lang a:hover {
    background-color: var(--soft-red);
    transform: translateY(-2px);
}

/* Responsive menu */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .menu {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }

    nav .lang {
        margin-top: 12px;
    }
}

/* Intro */
.intro {
    text-align: center;
    padding: 40px 20px;
}
.intro h1 {
    color: var(--soft-red);
    margin-bottom: 15px;
}

.intro-video {
    width: 100%;
    max-width: 900px;       /* keeps video nicely sized on desktop */
    display: block;
    margin: 20px auto;      /* centers video */
    border-radius: 10px;    /* looks nicer but optional */
    object-fit: cover;
  }
  
.intro-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px;
    line-height: 1.6;
}
  
@media (max-width: 768px) {
    .intro-video {
      max-width: 100%;
      border-radius: 8px;
    }
  
    .intro-content {
      padding: 10px 15px;
      font-size: 0.95em;
    }
  
    .intro h1 {
      font-size: 1.8em;   /* avoid giant title on mobile */
    }
}
  
@media (max-width: 480px) {
    .intro h1 {
      font-size: 1.6em;
    }
  
    .intro-content {
      font-size: 0.9em;
    }
}

/* Team Cards */
.team-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.team-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
}

.card {
    background-color: var(--card-dark);
    border-left: 5px solid #002d62;
    padding: 20px;
    border-radius: 8px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(255,255,255,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    color: var(--soft-red);
    margin-bottom: 10px;
}
.card p {
    line-height: 1.5;
    font-size: 0.95em;
    color: var(--text-muted);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #001833; /* dark navy */
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 22px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.3s, transform 0.2s;
    z-index: 99999;
}

/* Hover (desktop only) */
.scroll-top:hover {
    background-color: var(--soft-red);
    transform: translateY(-3px);
}

/* ---------- MOBILE FIX ---------- */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;

        /* Make it smaller for mobile */
        padding: 10px 14px;
        font-size: 18px;

        /* Avoid iOS Safari bottom bar overlap */
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: var(--text-muted);
    font-size: 0.95em;
}
footer a {
    color: var(--soft-red);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Responsive cards */
@media (max-width: 768px) {
    .team-cards {
        flex-direction: column;
        align-items: center;
    }
}
