/* ================================
   IEEE UNIMAGDALENA DESIGN SYSTEM
================================ */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #0A1F2F;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   TYPOGRAPHY
================================ */

h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    color: #334155;
}

/* ================================
   NAVBAR
================================ */

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 31, 47, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    color: #FFFFFF;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #F4C542;
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================================
   BUTTONS
================================ */

.btn-primary {
    background: #F4C542;
    color: #0A1F2F;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #d9ad33;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: #0A1F2F;
}

/* ================================
   HERO
================================ */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #07131D, #00629B);
    color: #FFFFFF;
    padding-top: 100px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.hero p {
    margin: 20px 0 30px 0;
    font-size: 18px;
    max-width: 520px;
}

/* ================================
   EVENTS
================================ */

.events {
    padding: 120px 0;
    background: #F5F7FA;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* ================================
   CHAPTERS
================================ */

.chapters-preview {
    padding: 120px 0;
    background: #0A1F2F;
    color: #FFFFFF;
    text-align: center;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Flip Cards */
.flip-card {
    background: transparent;
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 220px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    padding: 20px;
}

.flip-front {
    background: #00629B;
}

.flip-back {
    background: #07131D;
    transform: rotateY(180deg);
}

/* ================================
   INSTAGRAM
================================ */

.instagram {
    padding: 120px 0;
    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.instagram-grid div {
    background: #E2E8F0;
    height: 200px;
    border-radius: 12px;
}

/* ================================
   FOOTER
================================ */

footer {
    background: #07131D;
    color: #FFFFFF;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {

    h1 {
        font-size: 42px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
        display: inline-block;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .instagram-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* ====================================
   INSTAGRAM WIDGET
==================================== */

.instagram-widget {
    margin: 40px 0;
}

.snapwidget-frame {
    width: 100%;
    min-height: 600px;
}

/* ====================================
   INTERNAL PAGE HERO
==================================== */

.internal-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07131D, #00629B);
    color: #FFFFFF;
    text-align: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.internal-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.internal-hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.internal-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,179,179,0.3), transparent 70%);
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    filter: blur(60px);
}
.nav-links a.active::after {
    width: 100%;
}
/* ====================================
   BOARD SECTION
==================================== */

.board-section {
    padding: 120px 0;
    background: #FFFFFF;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.board-card {
    text-align: center;
    transition: 0.3s ease;
}

.board-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
}

.board-image img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: 0.4s ease;
}

.board-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 98, 155, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
}

.board-overlay a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #FFFFFF;
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.board-overlay a:hover {
    background: #FFFFFF;
    color: #00629B;
}

.board-card:hover .board-overlay {
    opacity: 1;
}

.board-card:hover img {
    transform: scale(1.05);
}
/* ====================================
   BOARD GALLERY
==================================== */

.board-section {
    padding: 120px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
    position: relative;
}

.team-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.team-image-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.4s ease;
    display: block;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 98, 155, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
}

.team-overlay a {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #FFFFFF;
    padding: 10px 20px;
    border-radius: 40px;
    transition: 0.3s;
}

.team-overlay a:hover {
    background: #FFFFFF;
    color: #0A1F2F;
}

.team-image-wrapper:hover img {
    transform: scale(1.05);
}

.team-image-wrapper:hover .team-overlay {
    opacity: 1;
}

.team-name {
    margin-top: 20px;
}

.team-name a {
    text-decoration: none;
    font-weight: 600;
    color: #0A1F2F;
    transition: 0.3s;
}

.team-name a:hover {
    color: #00629B;
}

.team-role {
    font-size: 14px;
    color: #64748B;
    margin-top: 5px;
}

/* =========================
   PROFILE PAGE
========================= */

.profile-hero {
  padding: 160px 8% 80px;
  background: linear-gradient(180deg, #0b0f1a 0%, #10172b 100%);
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.profile-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid #00629B;
  box-shadow: 0 0 25px rgba(0, 98, 155, 0.3);
}

.profile-info h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.profile-info h2 {
  color: #009FE3; /* IEEE lighter accent */
  margin-bottom: 20px;
  font-weight: 500;
}

.profile-tagline {
  font-size: 1.1rem;
  color: #cfd8ff;
  letter-spacing: 0.5px;
}

/* CONTENT SECTION */

.profile-content {
  padding: 90px 8%;
  background: #0f1424;
}

.profile-text {
  max-width: 850px;
  line-height: 1.9;
  font-size: 1.15rem;
  color: #e6ecff; /* ← MUCH clearer */
}

.profile-text p {
  margin-bottom: 28px;
  font-weight: 300;
}

/* subtle left accent line for sophistication */
.profile-text p:first-child {
  border-left: 3px solid #00629B;
  padding-left: 20px;
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 50px;
  background: #0b0f1a;
  color: #9aa3c7;
  font-size: 0.9rem;
}