:root {
  --bg-color: #0a0a12;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --primary-color: #ff6b81;
  --secondary-color: #ff9ff3;
  --text-color: #e0e0e0;
  --text-muted: #a0a0a0;
  --font-main: "Inter", "Noto Sans TC", sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(255, 107, 129, 0.1) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 159, 243, 0.1) 0%,
      transparent 20%
    );
  filter: blur(50px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.logo .dot {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  width: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.greeting {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #aaa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.countdown-container {
  margin-bottom: 30px;
  padding: 15px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  display: inline-block;
}

#countdown {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: monospace;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--card-border);
  color: #fff;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.avatar-wrapper {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--card-border);
  box-shadow: 0 0 50px rgba(0, 242, 255, 0.1);
  position: relative;
  z-index: 1;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 30px 20px;
  border-radius: 15px;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-card i {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.skill-card img {
  margin: 0 auto;
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.skill-card span {
  font-weight: 500;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-arrow {
  position: absolute;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition);
  color: var(--primary-color);
}

.portfolio-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  gap: 30px;
}

/* Specific overrides or aliases */
.event-grid,
.team-grid {
  /* Extending default-grid behavior */
  display: inherit;
}

.team-grid .default-title {
  font-size: 1.2rem;
}

/* Default Grid System */
.default-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  gap: 30px;
}

.default-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 15px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  width: 100%;
  height: 100%;
}

.default-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.default-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 5px;
  background: #fff;
  padding: 0;
}

.default-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  width: 100%;
  text-align: center;
}

.default-title {
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-bottom: 5px;
}

.default-desc {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 5px;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  background: rgba(10, 10, 18, 0.5);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--text-color);
}

.social-btn:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    justify-content: space-between;
  }

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

  .cta-buttons {
    justify-content: center;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .avatar-wrapper {
    width: 200px;
    height: 200px;
  }

  .nav-links {
    position: fixed;
    display: flex;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: var(--transition);
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 9px;
  }

  .hamburger span:nth-child(3) {
    top: 18px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Force AOS delay to 100ms on mobile */
  body[data-aos-easing] [data-aos],
  [data-aos] {
    transition-delay: 0.1s !important;
  }
}

@media (max-width: 480px) {
  .default-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 15px;
  }

  .default-logo {
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .default-info {
    align-items: flex-start;
    text-align: left;
  }

  .default-title {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .default-desc {
    text-align: left;
    margin-top: 0;
  }
}
