/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* header */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ffd166;
}

/* main content */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('professionalteam.jpg');
    background-size: cover;
    background-position: center top;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background: #ffd166;
    color: #333;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #ffc043;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* intro-team */
.team-section {
    padding: 5rem 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-img {
    height: 250px;
    overflow: hidden;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-img img {
    transform: scale(1.1);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.member-info .position {
    color: #6a11cb;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.member-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

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

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

.social-links a:hover {
    background: #6a11cb;
    color: white;
    transform: translateY(-3px);
}

/* skills */
.skills-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6a11cb;
}

.skill-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.skill-card p {
    color: #666;
}

/* footer */
footer {
    background: #333;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffd166;
}

.footer-column p {
    margin-bottom: 1rem;
    color: #bbb;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffd166;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

/* Quiz */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quiz-btn {
    background: var(--accent-color);
    color: white;
    border: solid;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem 0;
}

.quiz-btn:hover {
    background: var(--secondary-color);
}

.quiz-option {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    background: var(--secondary-color);
    color: #FFC000;
}

.quiz-result {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 5px;
    font-weight: bold;
}

/* design(forget) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .team-container, .skills-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* dark */
:root {
  --bg-color: #f8f9fa;
  --text-color: #333;
  --card-bg: white;
  --header-bg: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  --footer-bg: #333;
  --accent-color: #6a11cb;
  --secondary-color: #2575fc;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --header-bg: linear-gradient(135deg, #3a0ca3 0%, #1a4cb3 100%);
  --footer-bg: #1a1a1a;
  --accent-color: #7c3aed;
  --secondary-color: #3b82f6;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

/* dark header */
header {
  background: var(--header-bg);
}

/* dark intro */
.team-section {
  background-color: var(--card-bg);
}

.team-member {
  background: var(--card-bg);
}

.member-info h3 {
  color: var(--text-color);
}

/* dark skill */
.skills-section {
  background-color: var(--bg-color);
}

.skill-card {
  background: var(--card-bg);
}

.skill-card h3 {
  color: var(--text-color);
}

/* dark footer */
footer {
  background: var(--footer-bg);
}

/* dark button */
.theme-toggle {
  margin-left: auto;
}

.theme-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
}

/* dark */
[data-theme="dark"] .theme-btn .fa-moon::before {
  content: "\f185"; /* sun */
}

/* animation on theme change */
.theme-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
}

/* click animation */
.theme-btn.clicked {
  animation: buttonClick 0.4s ease;
}

@keyframes buttonClick {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(0.9);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ripple effect */
.theme-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.theme-btn:active::after {
  width: 100px;
  height: 100px;
}

/* Contact Form Area */
.contact-section {
    padding: 5rem 0;
    background-color: var(--card-bg);
    transition: var(--transition);
}

.toggle-form-btn {
    margin-top: 1rem;
    background: var(--accent-color);
    color: white;
}

.toggle-form-btn:hover {
    background: var(--secondary-color);
}

/* form */
.form-container {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hidden class */
.hidden {
    display: none;
}

/* Success message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* Error Message */
.error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

/* Dark theme  */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border-color: #444;
    background: #2d2d2d;
}

[data-theme="dark"] .success-message {
    background-color: #1e4620;
    color: #a3d9a5;
}