/* =========================================
   IEEE TTU — HOME (style.css) Clean Version
   Includes: Light + Dark theme (matches Team)
========================================= */

:root{
  --ieee-blue: #00629b;
  --ieee-blue-dark: #004a75;
  --accent: #0099cc;

  --bg: #f8f9fa;
  --panel: #ffffff;
  --muted: #666;
  --text: #111;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);

  --radius: 10px;
}

/* Dark theme tokens */
html[data-theme="dark"]{
  --bg: #0b1622;                 /* نفس Team */
  --panel: rgba(255,255,255,0.05);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.75);
  --shadow: 0 12px 35px rgba(0,0,0,0.35);
}

/* Base */
*{ margin:0; padding:0; box-sizing:border-box; }
body{
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; }
img{ max-width:100%; display:block; }

/* Smooth Scroll */
html{ scroll-behavior: smooth; }

/* =========================
   Top Bar
========================= */
.ieee-topbar{
  background: #e8ecef;
  border-bottom: 2px solid #d0d5d9;
  padding: 8px 40px 8px 60px;
  display:flex;
  gap:12px;
  align-items:center;
  font-size:13px;
  flex-wrap: wrap;
}

.ieee-topbar a{
  text-decoration:none;
  color:#005a87;
  font-weight:700;
  transition: color .25s ease;
  white-space: nowrap;
}
.ieee-topbar a:hover{
  color:#003d5c;
  text-decoration: underline;
}

.topbar-divider{ color:#005a87; font-weight:400; user-select:none; }
.italic{ font-style: italic; font-weight: 700; }

/* Dark overrides */
html[data-theme="dark"] .ieee-topbar{
  background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.10);
}
html[data-theme="dark"] .ieee-topbar a{ color: var(--accent); }
html[data-theme="dark"] .topbar-divider{ color: rgba(255,255,255,0.35); }

/* =========================
   Logo Bar
========================= */
.logo-bar{
  background: var(--panel);
  padding: 15px 60px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.10);
}

/* Optional patterned background */
.logo-bar::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("../img/logooo.jpeg");
  background-size: 420px;
  background-repeat: repeat;
  opacity: 0.10;
  z-index: 0;
}

.logo-bar > *{ position:relative; z-index:1; }

.logo-left, .logo-right{
  display:flex;
  align-items:center;
  gap: 15px;
}
.logo-left{ gap:20px; }

.logo-link{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.logo{
  height:60px;
  width:auto;
  object-fit:contain;
  transition: transform .25s ease;
}
.logo-small{ height:45px; }
.logo:hover{ transform: scale(1.05); }

.divider{
  width:2px;
  height:40px;
  background:#d0d0d0;
}

/* Dark overrides */
html[data-theme="dark"] .logo-bar{
  background: rgba(255,255,255,0.04);
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="dark"] .divider{ background: rgba(255,255,255,0.15); }

/* =========================
   Search
========================= */
.search-btn{
  background: transparent;
  border: none;
  cursor:pointer;
  transition: transform .2s ease, opacity .2s ease;
  color: var(--ieee-blue);
  padding: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.search-btn:hover{ transform: scale(1.08); opacity: .75; }

.search-dropdown{
  position:absolute;
  top:50%;
  right:100%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid var(--ieee-blue);
  border-radius: 10px;
  padding: 10px;
  display:none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  z-index: 1000;
  min-width: 350px;
  margin-right: 15px;
}
.search-dropdown.active{
  display:flex;
  align-items:center;
  gap:8px;
}

.search-input-field{
  flex:1;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size:14px;
  outline:none;
}
.search-input-field:focus{ border-color: var(--ieee-blue); }

.search-submit-btn{
  background: var(--ieee-blue);
  border:none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  transition: background .2s ease;
}
.search-submit-btn:hover{ background: var(--ieee-blue-dark); }

/* Dark overrides */
html[data-theme="dark"] .search-btn{ color: var(--accent); }

html[data-theme="dark"] .search-dropdown{
  background: #0b1622;
  border-color: rgba(0,153,204,0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

html[data-theme="dark"] .search-input-field{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
html[data-theme="dark"] .search-input-field::placeholder{ color: rgba(255,255,255,0.45); }

html[data-theme="dark"] .search-submit-btn{
  background: rgba(0, 98, 155, 0.35);
}
html[data-theme="dark"] .search-submit-btn:hover{
  background: rgba(0,153,204,0.35);
}

/* =========================
   Header / Nav
========================= */
.header{
  background: var(--ieee-blue);
  position: sticky;
  top:0;
  z-index:999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.10);
}

.nav{
  display:flex;
  justify-content:center;
  gap:25px;
  padding: 15px;
  flex-wrap: wrap;
}

.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  position:relative;
  transition: opacity .2s ease;
}

.nav a:hover{ opacity: .85; }

.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#fff;
  transition: width .25s ease;
}

.nav a:hover::after{ width:100%; }

/* Theme toggle button */
.theme-btn{
  margin-left: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
}

/* Dark header match Team */
html[data-theme="dark"] .header{
  background: rgba(6, 30, 52, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
}
html[data-theme="dark"] .nav a::after{ background: var(--accent); }

/* =========================
   Hero
========================= */
.hero{
  position: relative;
  height: 65vh;
  padding-top: 100px;
  background-image: url("../img/Our_Team.png");
  background-size: 100%;
  background-position: center 80%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.45);
}
html[data-theme="dark"] .hero-overlay{
  background: rgba(0,0,0,0.55);
}

.hero-content{
  position:relative;
  z-index:1;
  color:#fff;
  max-width: 900px;
  padding: 0 20px;
     padding-top: 80px;

}

.hero-content h1{
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}
.hero-content p{
  margin-bottom: 2rem;
  opacity: .95;
}



/* ===================================
   MY RECOMMENDATION FOR YOUR SITE
   Use this one - it matches perfectly!
=================================== */

/* Just replace your current .hero-btn with this: */

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #00629b, #004a75);
  color: #ffffff;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.hero-btn::after {
  content: "→";
  font-size: 15px;
  transition: transform 0.3s ease;
}

.hero-btn:hover {
  background: linear-gradient(90deg, #00629b, #004a75);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover::after {
  transform: translateX(4px);
}

/* Dark mode */
html[data-theme="dark"] .hero-btn {
  background: rgba(0, 153, 204, 0.2);
  color: #ffffff;
  border: 2px solid rgba(0, 153, 204, 0.5);
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
}

html[data-theme="dark"] .hero-btn:hover {
  background: rgba(0, 153, 204, 0.3);
  border-color: rgba(0, 153, 204, 0.7);
  box-shadow: 0 6px 18px rgba(0, 153, 204, 0.4);
}









/* =========================
   About
========================= */
.about-section{
  background: var(--bg);
  padding: 80px 0 0;
}

.about-container{
  max-width: 1200px;
  margin: 0 auto 60px;
  text-align:center;
  background: var(--panel);
  padding: 50px 60px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.about-title{
  color: var(--ieee-blue);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.about-description{
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Dark overrides */
html[data-theme="dark"] .about-title{ color:#fff; }
html[data-theme="dark"] .about-description{ color: rgba(255,255,255,0.78); }
html[data-theme="dark"] .about-container{
  border-color: rgba(255,255,255,0.10);
}

/* =========================
   Stats
========================= */
.stats-container{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  background: #e8ecef;
  padding: 50px 80px 80px;
}

.stat-card{
  background: var(--panel);
  padding: 30px 15px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.stat-number{
  color: var(--ieee-blue);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.stat-label{
  color: #666;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Dark overrides */
html[data-theme="dark"] .stats-container{
  background: rgba(255,255,255,0.03);
}
html[data-theme="dark"] .stat-number{ color:#fff; }
html[data-theme="dark"] .stat-label{ color: rgba(255,255,255,0.75); }



















/* ===================================
   DISCOVER COMMUNITY SECTION
   Dark Mode Support Added
=================================== */

.main-sections {
    padding: 80px 0;
    background: #f8f9fa;
    transition: background 0.3s ease;
}

/* Dark Mode */
html[data-theme="dark"] .main-sections {
    background: #0b1622;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #00447c;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

/* Dark Mode Title */
html[data-theme="dark"] .section-title {
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00447c, #0088cc);
    border-radius: 2px;
}

/* Dark Mode Title Line */
html[data-theme="dark"] .section-title::after {
    background: linear-gradient(90deg, #0099cc, #00b8e6);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الكارتين الأولين (Our Team & Chapters) - كل واحد ياخد نصف العرض */
.image-card:nth-child(1),
.image-card:nth-child(2) {
    grid-column: span 3;
}

/* الثلاثة كروت التانية (Events, Join Us, About) - كل واحد ياخد ثلث العرض */
.image-card:nth-child(3),
.image-card:nth-child(4),
.image-card:nth-child(5) {
    grid-column: span 2;
}

/* إخفاء الكارت السادس (Contact) */
.image-card:nth-child(6) {
    display: none;
}

.image-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

/* Dark Mode Card */
html[data-theme="dark"] .image-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .image-card:hover {
    border-color: rgba(0, 153, 204, 0.5);
    box-shadow: 0 20px 50px rgba(0, 153, 204, 0.3);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.15);
}

/* Dark Mode Image */
html[data-theme="dark"] .image-card img {
    filter: brightness(0.9);
}

html[data-theme="dark"] .image-card:hover img {
    filter: brightness(1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 68, 124, 0.3) 50%,
        rgba(0, 68, 124, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.5s ease;
}

.image-card:hover .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 68, 124, 0.7) 50%,
        rgba(0, 102, 179, 0.95) 100%
    );
}

/* Dark Mode Overlay */
html[data-theme="dark"] .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 68, 124, 0.85) 100%
    );
}

html[data-theme="dark"] .image-card:hover .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 153, 204, 0.6) 50%,
        rgba(0, 153, 204, 0.95) 100%
    );
}

.card-content {
    text-align: center;
    color: white;
    padding: 30px 20px;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.5s ease;
    width: 100%;
}

.image-card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}

.card-content i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.card-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

.explore-btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #00447c;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.image-card:hover .explore-btn {
    opacity: 1;
    transform: translateY(0);
}

.explore-btn:hover {
    background: #0088cc;
    color: white;
    transform: translateY(0) scale(1.05);
}

/* Dark Mode Button */
html[data-theme="dark"] .explore-btn {
    background: rgba(0, 153, 204, 0.3);
    color: #ffffff;
    border: 2px solid rgba(0, 153, 204, 0.6);
}

html[data-theme="dark"] .explore-btn:hover {
    background: rgba(0, 153, 204, 0.5);
    border-color: rgba(0, 153, 204, 0.8);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-card:nth-child(1),
    .image-card:nth-child(2),
    .image-card:nth-child(3),
    .image-card:nth-child(4),
    .image-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .image-card {
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .main-sections {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .card-content h3 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .explore-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}
















































/* Dark overrides */
html[data-theme="dark"] .section-title{ color:#fff; }
html[data-theme="dark"] .more-events-btn{
  background: rgba(0, 98, 155, 0.20);
  border: 1px solid rgba(0,153,204,0.45);
}
html[data-theme="dark"] .more-events-btn:hover{
  box-shadow: 0 10px 30px rgba(0,153,204,0.22);
}

















/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
  .ieee-topbar {
    padding: 8px 16px;
    font-size: 12px;
  }

  .logo-bar {
    padding: 12px 16px;
  }

  .search-dropdown {
    position: fixed;
    top: auto;
    right: 10px;
    left: 10px;
    min-width: unset;
    width: calc(100% - 20px);
    transform: none;
    margin-right: 0;
  }

  .hero {
    height: 55vh;
    background-size: cover;
  }
  @media (max-width: 576px) {
  .about-container {
    padding: 30px 20px;
    margin: 0 16px 60px;   
  }
}


@media (max-width: 576px) {
  .stats-container {
    padding: 30px 16px 50px;
    grid-template-columns: repeat(2, 1fr);  
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 20px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
}

}


/* =========================
   THEME TOGGLE (Modern)
========================= */

.theme-toggle{
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: background .3s ease, border .3s ease;
}

 .theme-toggle .icon{
  font-size: 14px;
  z-index: 2;
  transition: opacity .3s ease, transform .3s ease;
}

 .theme-toggle .knob{
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #dfe9f3);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform .35s ease;
  z-index: 1;
}

/* =========================
   THEME TOGGLE (Modern)
========================= */

.theme-toggle{
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: background .3s ease, border .3s ease;
}

 .theme-toggle .icon{
  font-size: 14px;
  z-index: 2;
  transition: opacity .3s ease, transform .3s ease;
}

 .theme-toggle .knob{
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #dfe9f3);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform .35s ease;
  z-index: 1;
}

/* ===== Dark Mode ===== */
html[data-theme="dark"] .theme-toggle{
  background: rgba(0,98,155,0.25);
  border-color: rgba(0,153,204,0.45);
}

html[data-theme="dark"] .theme-toggle .knob{
  transform: translateX(30px);
  background: linear-gradient(135deg, #0099cc, #00629b);
}

 html[data-theme="dark"] .theme-toggle .sun{
  opacity: 0.3;
  transform: scale(0.8);
}

html[data-theme="dark"] .theme-toggle .moon{
  opacity: 1;
}

html:not([data-theme="dark"]) .theme-toggle .moon{
  opacity: 0.3;
  transform: scale(0.8);
}

/* =========================
   Header scroll effect
   (works for .is-scrolled OR .scrolled)
========================= */

/* LIGHT */
.header.is-scrolled,
.header.scrolled{
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.header.is-scrolled .nav a,
.header.scrolled .nav a{
  color: #0b2a3a;
}

.header.is-scrolled .nav a::after,
.header.scrolled .nav a::after{
  background: #0b2a3a;
}

/* DARK */
html[data-theme="dark"] .header.is-scrolled,
html[data-theme="dark"] .header.scrolled{
  background: rgba(6, 30, 52, 0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .header.is-scrolled .nav a,
html[data-theme="dark"] .header.scrolled .nav a{
  color: #fff;
}

html[data-theme="dark"] .header.is-scrolled .nav a::after,
html[data-theme="dark"] .header.scrolled .nav a::after{
  background: var(--accent);
}


/* Force style for "More Events" button */
.more-events-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 22px;
  border-radius: 999px;

  background: #00629b;
  color: #fff !important;

  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: .2px;

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);

  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.more-events-btn:hover{
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,153,204,0.25);
}

.more-events-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}












 










