@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* ===== Reset & Body ===== */
body, html {
  margin:0; padding:0;
  min-height:100%;   /* để nội dung cao hơn màn hình thì tự cuộn */
  overflow-x:hidden; /* chỉ chặn cuộn ngang, vẫn cho cuộn dọc */
  font-family: 'Poppins', sans-serif;
  color:white;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
}

/* Canvas Water Background */
#water-bg {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  z-index:-1;
}

/* ===== Content Container ===== */
.content {
  position: relative;
  z-index:1;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  border:1px solid rgba(255,255,255,0.3);
  margin-top: 30px;
}

nav a {
  margin: 0 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition:0.3s;
}
nav a:hover, nav a.active { color: cyan; }

/* Dark Mode toggle button */
#toggleDark {
  background: rgba(255,255,255,0.2);
  color:white;
  border:none;
  border-radius:10px;
  padding:8px 15px;
  cursor:pointer;
  transition:0.3s;
}
#toggleDark:hover { background: rgba(255,255,255,0.4); }

/* ===== Main Grid ===== */
main {
  margin-top:40px;
  width:100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px; /* khoảng cách giữa các card */
  justify-items: center;
}

/* ===== Glass Cards ===== */
.glass {
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Clock */
.clock h2 {
  font-size:2rem;
  margin:0;
}

/* Profile */
.profile img {
  width:100px; height:100px;
  border-radius:50%;
  margin-bottom:15px;
}
.profile h3 { margin:5px 0; }
.profile p { font-style:italic; margin-bottom:15px; }

/* Buttons */
.btn {
  display:inline-block;
  padding:12px 25px;
  margin:5px;
  border-radius:12px;
  background: rgba(255,255,255,0.2);
  border:1px solid rgba(255,255,255,0.3);
  cursor:pointer;
  transition:0.3s;
  color:white;
  text-decoration:none;
}
.btn:hover { background: rgba(255,255,255,0.4); }

/* Footer */
footer {
  margin-top:50px;
  text-align:center;
  font-size:0.9rem;
  color:#ddd;
  padding:10px 0;
}

/* Dark Mode */
.dark body { background:#1e1e2f; }
.dark header, .dark .glass { background: rgba(50,50,50,0.3); border:1px solid rgba(255,255,255,0.1); }
.dark nav a { color:#ccc; }
.dark nav a:hover, .dark nav a.active { color: cyan; }

/* Responsive */
@media(max-width:992px){
  main { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px){
  main { grid-template-columns: 1fr; }
  .profile img { width:80px; height:80px; }
  .clock h2 { font-size:1.5rem; }
  .btn { padding:10px 20px; font-size:0.9rem; }
  header { flex-direction: column; gap:15px; }
}
/* Profile Card */
.profile h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: cyan;
}
.profile p {
  margin-bottom: 15px;
  color: #eee;
  font-size: 1rem;
}

/* Info box trong profile */
.profile .info {
  width: 100%;
  background: rgba(0,0,0,0.25);
  padding: 15px;
  border-radius: 12px;
  margin: 10px 0;
  text-align: left;
}

.profile .info h4 {
  margin-bottom: 10px;
  color: #00ffcc;
  font-size: 1.2rem;
}

.profile .info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile .info ul li {
  padding: 5px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info a i.fa-comment-dots {
  color: #007fff;
  margin-right: 5px;
}
.contact-info a i.fa-facebook-square {
  color: #1877f2;
  margin-right: 5px;
}