/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: #f8f9fa;
}

@keyframes decorationMove {
  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
  }
  25% {
    transform: translateX(10px) translateY(-5px) scale(1.02);
  }
  50% {
    transform: translateX(-5px) translateY(10px) scale(0.98);
  }
  75% {
    transform: translateX(8px) translateY(-8px) scale(1.01);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-circle {
  width: 50px;
  height: 50px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo-text {
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #1a1a1a;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a1a1a;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.6)
    ),
    url("./Images/BerkeleyBackground.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%,
  100% {
    background-position: center center;
    transform: scale(1);
  }
  25% {
    background-position: 20% 20%;
    transform: scale(1.02);
  }
  50% {
    background-position: 80% 80%;
    transform: scale(1.05);
  }
  75% {
    background-position: 60% 40%;
    transform: scale(1.02);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
  }
}

/* 添加动态光效 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  animation: lightMove 15s ease-in-out infinite;
  z-index: 1;
}

/* 添加动态粒子效果 */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(
      2px 2px at 40px 70px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(
      1px 1px at 90px 40px,
      rgba(255, 255, 255, 0.4),
      transparent
    ),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(
      2px 2px at 160px 30px,
      rgba(255, 255, 255, 0.2),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: particleMove 20s linear infinite;
  z-index: 1;
}

@keyframes particleMove {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-200px) translateX(100px);
  }
}

@keyframes lightMove {
  0%,
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.3;
  }
  25% {
    transform: translateX(20px) translateY(-10px);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-15px) translateY(15px);
    opacity: 0.4;
  }
  75% {
    transform: translateX(10px) translateY(-5px);
    opacity: 0.5;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 1000px;
  padding: 0 20px;
}

.hero-logo {
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out;
}

.logo-large {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-circle-large {
  width: 120px;
  height: 120px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.logo-circle-large:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.logo-text-large {
  color: white;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 3px;
}

.logo-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
  text-align: center;
  max-width: 400px;
  line-height: 1.4;
}

.hero-text {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
  box-shadow: 0 5px 15px rgba(26, 26, 26, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 26, 26, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #1a1a1a;
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  opacity: 0.7;
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a1a1a;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #1a1a1a, #666);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: #f8f9fa;
  overflow: hidden;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-text {
  transform: translateX(-100px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-stats {
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text.slide-in {
  transform: translateX(0);
  opacity: 1;
}

.about-stats.slide-in {
  transform: translateX(0);
  opacity: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.about-text p {
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.8;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
}

.features-grid::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  border-radius: 20px;
  opacity: 0.05;
  animation: gradientShift 8s ease infinite;
  z-index: -1;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: #667eea;
}

.feature-item:nth-child(1):hover {
  border-color: #667eea;
}

.feature-item:nth-child(2):hover {
  border-color: #764ba2;
}

.feature-item:nth-child(3):hover {
  border-color: #f093fb;
}

.feature-item:nth-child(4):hover {
  border-color: #f5576c;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.feature-item:hover .feature-icon::before {
  width: 100px;
  height: 100px;
}

.feature-item:nth-child(1):hover .feature-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.feature-item:nth-child(2):hover .feature-icon {
  background: linear-gradient(135deg, #764ba2, #f093fb);
}

.feature-item:nth-child(3):hover .feature-icon {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.feature-item:nth-child(4):hover .feature-icon {
  background: linear-gradient(135deg, #f5576c, #667eea);
}

.feature-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-stats .stat-card:nth-child(5) {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-label {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.stat-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Career Fair Section */
.career-fair-section {
  background: white;
}

@keyframes patternMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(60px) translateY(60px);
  }
}

.career-fair-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.career-fair-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.career-fair-text p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.career-fair-poster {
  margin: 2rem 0;
  text-align: center;
}

.poster-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}

.poster-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.career-fair-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: #1a1a1a;
  color: white;
  transform: translateX(5px);
}

.highlight-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.highlight-item:hover i {
  color: white;
}

.career-fair-gallery {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item.large {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Events Section */
.events-section {
  background: #f8f9fa;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.event-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-card.featured {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: white;
}

.event-card.featured .event-location,
.event-card.featured .event-description {
  color: rgba(255, 255, 255, 0.8);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  width: 80px;
  height: 80px;
  justify-content: center;
}

.event-card.featured .event-date {
  background: rgba(255, 255, 255, 0.1);
}

.month {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

.event-card.featured .month {
  color: rgba(255, 255, 255, 0.7);
}

.day {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
}

.event-card.featured .day {
  color: white;
}

.event-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.event-card.featured .event-content h3 {
  color: white;
}

.event-location {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.event-location i {
  margin-right: 0.5rem;
}

.event-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.event-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.event-card.featured .tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Newsletter Section */
.newsletter-section {
  padding: 100px 0;
  background: #f8f9fa;
  position: relative;
}

.newsletter-section .section-title {
  color: #1a1a1a;
}

.newsletter-section .section-title::after {
  background: linear-gradient(135deg, #1a1a1a, #666);
}

.newsletter-card {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #1a1a1a, #444);
}

.newsletter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.newsletter-card-content {
  text-align: center;
}

.newsletter-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(26, 26, 26, 0.3);
}

.newsletter-icon i {
  font-size: 2rem;
  color: white;
}

.newsletter-card:hover .newsletter-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(26, 26, 26, 0.4);
}

.newsletter-card-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.newsletter-card-content > p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter-form {
  width: 100%;
}

.newsletter-placeholder-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  background: #dde0e9;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  background: #d0d4df;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.form-input::placeholder {
  color: #666;
}

.newsletter-btn {
  width: 100%;
  padding: 15px 35px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
}

.newsletter-success {
  text-align: center;
  padding: 2rem 0;
  animation: fadeInScale 0.5s ease;
}

.newsletter-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.newsletter-success p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.newsletter-error {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #b91c1c;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.newsletter-btn i {
  font-size: 1rem;
}

/* Sender form style overrides */
.newsletter-form .sender-form-field {
  display: none !important;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: #f8f9fa;
  color: #1a1a1a;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus,
.newsletter-form input[type="text"]:focus {
  outline: none;
  border-color: #1a1a1a;
  background: white;
  box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.1);
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form button[type="submit"] {
  width: 100%;
  padding: 15px 35px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
}

/* Responsive Newsletter */
@media (max-width: 768px) {
  .newsletter-card {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .newsletter-card-content h3 {
    font-size: 1.5rem;
  }

  .newsletter-section {
    padding: 60px 0;
  }
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.footer-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.contact-info {
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #ccc;
}

.contact-item i {
  margin-right: 1rem;
  width: 20px;
  color: #666;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #333;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: white;
  color: #1a1a1a;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .career-fair-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .career-fair-highlights {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .logo-text-large {
    font-size: 2rem;
  }

  .logo-subtitle {
    font-size: 0.8rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 2rem;
  }

  .event-card {
    padding: 1.5rem;
  }
}

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

/* About Us Page Styles */
.about-hero {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.7)
    ),
    url("./Images/BerkeleyBackground.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: backgroundShift 25s ease-in-out infinite;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.about-hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Mission Section */
.mission-section {
  padding: 100px 0;
  background: white;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.mission-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.mission-text p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.mission-image {
  position: relative;
}

.community-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin: 0 auto;
  display: block;
  transform: scale(1.1);
}

.community-image:hover {
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.1rem;
}

.image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Values Section */
.values-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.value-icon i {
  font-size: 2rem;
  color: white;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.value-card p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* Leadership Section */
.leadership-section {
  padding: 100px 0;
  background: white;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.leader-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.leader-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.leader-image {
  margin-bottom: 1.5rem;
}

.leader-image .image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.leader-image i {
  font-size: 2.5rem;
  color: #666;
  opacity: 0.7;
}

.leader-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.leader-role {
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.leader-bio {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.leader-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.leader-social .social-link {
  width: 35px;
  height: 35px;
  background: #f8f9fa;
  color: #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.leader-social .social-link:hover {
  background: #1a1a1a;
  color: white;
  transform: translateY(-2px);
}

/* Join Section */
.join-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: white;
}

.join-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.join-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.join-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.6;
}

.join-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.benefit-item i {
  color: #4caf50;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.join-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.join-buttons .btn-primary {
  background: white;
  color: #1a1a1a;
}

.join-buttons .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.join-buttons .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.join-buttons .btn-secondary:hover {
  background: white;
  color: #1a1a1a;
  transform: translateY(-3px);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .about-hero-title {
    font-size: 2.5rem;
  }

  .mission-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mission-text h2 {
    font-size: 2rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: column !important;
    padding-left: 60px;
  }

  .timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .timeline-year::before {
    display: none;
  }

  .timeline-content {
    margin: 0;
    margin-top: 1rem;
  }

  .timeline-content::before {
    display: none;
  }

  .join-content h2 {
    font-size: 2.5rem;
  }

  .join-benefits {
    grid-template-columns: 1fr;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}
