
/* Full Page Setup */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #111; /* Matching your requested color */
    color: #fff;
    font-family: 'Helvetica', 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #000;
}

.logo { line-height: 1; }
.ted { color: #ff2b06; font-weight: bold; font-size: 1.5rem; }
.x { color: #ff2b06; font-size: 0.9rem; vertical-align: top; }
.event-name { font-weight: bold; font-size: 1.5rem; }
.tagline { font-size: 0.7rem; color: #ccc; margin-top: 5px; }

nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a { color: #fff; text-decoration: none; font-weight: bold; font-size: 0.9rem; }
nav ul li.active a { border-bottom: 3px solid #ff2b06; padding-bottom: 5px; }

/* Hero Section (The Image Content) */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px); /* Subtracts navbar height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Decorative Circles */
.circle { position: absolute; border-radius: 50%; z-index: 1; }
.circle-red { width: 35vw; height: 35vw; background-color: #413839; left: -10vw; top: 10%; }
.circle-white { width: 15vw; height: 15vw; background-color: #e64e4e; right: 15vw; top: -5vw; }
.circle-black { width: 20vw; height: 20vw; background-color: #d1d1d1; right: -5vw; bottom: 5vw; }

/* Quote Content */
.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 90%;
    
}

.quote {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.highlight { color: #e6192e; }

.author {
    text-align: right;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.underline {
    width: 250px;
    height: 5px;
    background-color: #fff;
    margin-left: auto;
}

/* Interactive Team Button */
.team-intro-button {
    
    bottom: 50px;
    background-color: #000;
    padding: 15px 80px 15px 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s ease;
    margin-top: 50px;
}

/* .team-intro-button:hover { transform: scale(1.05); } */

.button-text { font-size: 1.1rem; letter-spacing: 1px; }

.button-icon {
    position: absolute;
    right: -20px;
    width: 80px;
    height: 80px;
    background-color: #e6192e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin-right: 420px;
}

.button-icon img { width: 45px; filter: invert(1); }

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

.section-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.highlight {
    color: #e6192e; /* TED Red */
}

.underline-center {
    width: 80px;
    height: 4px;
    background-color: #e6192e;
    margin: 0 auto 50px;
}

/* Container Grid Setup */
.team-page-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 280px); /* Exactly 2 cards wide */
    gap: 30px 40px ;
    justify-content: center;
    padding: 60px 20px;
    background-color: #111;
    min-height: 100vh;
}

/* The Management Board Shape */
.management-divider {
    grid-column: 1 / span 2; /* Spans across both columns */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.red-pill {
    background-color: #e6192e; /* TED Red */
    padding: 15px 40px;
    border-radius: 50px; /* pill shape */
    box-shadow: 0 4px 15px rgba(230, 25, 46, 0.4);
    transition: transform 0.3s ease;
}

.red-pill span {
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.red-pill:hover {
    transform: scale(1.05);
}

/* Fixed Card Styling */
.team-card {
    width: 280px;
    height: fit-content;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: #e6192e;
    box-shadow: 0 10px 30px rgba(230, 25, 46, 0.2);
}

/* Image & Text Sharpness */
.image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

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

.member-info {
    padding: 20px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.role {
    color: #e6192e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

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

.social-links a { color: #fff; font-size: 1.1rem; transition: 0.3s; }
.social-links a:hover { color: #e6192e; transform: translateY(-3px); }

/* Image Styling */
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #222;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

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

/* Info Styling */
.member-info {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px;
    text-align: center;
}

.role {
    color: #e6192e;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.name {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* --- THE SHIMMER EFFECT --- */
.shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: shimmer-swipe 3s infinite;
}

@keyframes shimmer-swipe {
    0% { left: -150%; }
    100% { left: 150%; }
}

.high-board-btn {
  /* Colors */
  background-color: #e60023;
  color: #ffffff;
  
  /* Text Styling */
  font-family: "Arial Black", Gadget, sans-serif; /* Thick, bold font style */
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  
  /* Button Shape */
  padding: 14px 45px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: inline-block;

  
  /* The Bottom "Board" Shadow */
  box-shadow: 0 5px 0px #000000;
  
  /* Transition for interaction */
  transition: all 0.1s ease;
}

/* Hover effect: darkens slightly */
.high-board-btn:hover {
  background-color: #cc001f;
}

/* Click effect: button pushes down */
.high-board-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0px #000000;
}

.hr-header {
  display: flex;
  align-items: center; /* Vertically centers the bar with the text */
  gap: 15px;           /* Space between the red bar and the text */
  background-color: #121212; /* Dark background from your image */
  padding: 10px;
}

.red-bar {
  width: 60px;          /* Length of the bar */
  height: 8px;          /* Thickness of the bar */
  background-color: #e60023; /* Matching the red from the previous button */
  border-radius: 4px;   /* Rounded ends */
  display: inline-block;
}

.hr-header h2 {
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0;            /* Removes default heading margins */
}

/* Layout for the parent container */
#main-team-container {
    display: flex;
    flex-direction: row;     /* Aligns items side-by-side */
    flex-wrap: wrap;        /* Allows wrapping to new rows if screen is small */
    justify-content: center; /* Centers the cards horizontally */
    align-items: flex-start; /* FIX: Prevents cards from stretching to 100% height */
    gap: 25px;              /* Space between the cards */
    padding: 40px 20px;
    width: 100%;
}

/* Individual Card Adjustments via IDs */
#member-ezzeldein, 
#member-farehan, 
#member-mariam
#member-wael
#member-rodaina {
    height: auto;           /* FIX: Only takes up height based on content */
    flex: 0 1 280px;        /* Ensures they stay at 280px width */
}

#image-display-area {
    width: 100%;
    display: flex;
    justify-content: center;
    /* This ensures the items below are displaced smoothly */
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, margin-top 0.3s ease;
}

#image-display-area.active {
    max-height: 1000px; /* High enough to fit your image */
    margin-top: 20px;
    margin-bottom: 20px;
}

#toggle-target-img {
    width: 100%;
    max-width: 900px; /* Adjust to your preferred size */
    height: auto;
    border-radius: 15px;
    display: block;
}

/* Core Card Setup */
.team-card {
    background-color: transparent;
    perspective: 1000px; /* Essential for 3D effect */
    height: 400px; /* Adjust this to match your desired card height */
    border: none !important;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* The Flip Trigger */
.team-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
}

/* Front Styling */
.card-front {
    background: #1a1a1a;
}

/* Back Styling */
.card-back {
    background: #e6192e; 
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 10px;

}

.underline-short {
    width: 40px;
    height: 3px;
    background: white;
    margin-bottom: 20px;
}

.back-text {
    font-size: 0.85rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.tap-hint {
    margin-top: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* to remove the scrolling bar */
body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;  
  scrollbar-width: none;     
}
