/* homepage */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6fb;
  color: #1f2937;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand a {
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 0.35rem 0;
  list-style: none;
  display: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 0.8rem;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: #7dd3fc;
}

.lang-toggle {
  border: 1px solid #7dd3fc;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.lang-toggle:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

header {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
}

main {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 760px;
  width: 100%;
}

.card {
  display: block;
  padding: 1.4rem;
  border-radius: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}

.card h2 {
  margin-top: 0;
}

.content-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
  min-width: 280px;
}

.about-heading {
  color: #dc2626;
}

.about-img {
  flex: 1;
  min-width: 150px;
}

.about-img img {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.story-layout {
  max-width: 980px;
  line-height: 1.55;
}

.story-layout p {
  margin: 0 0 0.95rem;
  font-size: 1.02rem;
}

.float-img {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin: 0.2rem 1rem 0.8rem;
}

.float-img.left {
  float: left;
  margin-left: 0;
}

.float-img.right {
  height: 300px;
  width: auto;
  float: right;
  margin-right: 0;
}

.profile-img {
  width: 240px;
}

.logo-img {
  height: 150px;
  width: auto;
  float: right;
  margin-right: 0;
}

.story-layout::after {
  content: "";
  display: block;
  clear: both;
}


footer {
  text-align: center;
  padding: 1.2rem;
  background-color: #e5e7eb;
}

footer a {
  color: #111827;
  font-weight: 600;
}

@media (max-width: 760px) {
  .top-nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .float-img,
  .float-img.left,
  .float-img.right,
  .logo-img,
  .profile-img {
    float: none;
    display: block;
    width: min(100%, 320px);
    margin: 0.35rem auto 0.8rem;
  }
}

/* Tableau */
.img-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.img-row img {
  width: 50%;
  max-width: 1000px;
  border-radius: 8px;
  object-fit: cover;
}

.desc {
  margin-left: 1.2rem;
  margin-bottom: 2rem;
}

.desc li {
  line-height: 1.5;
}

.download-btn {
  display: block;
  width: fit-content;
  margin: 2rem auto;
  padding: 0.8rem 1.5rem;
  background-color: #39c8ec;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background-color: #39c8ec;
}
/* Projects page preview cards */
.project-preview-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #111827;
}

.project-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.25s ease;
  z-index: 0;
}

.project-preview-card h2,
.project-preview-card p {
  position: relative;
  z-index: 1;
}

.project-preview-card:hover {
  color: #ffffff;
}

.project-preview-card:hover::before {
  background: rgba(17, 24, 39, 0.46);
}

.project-homework {
  background-image: url('web-background1.png');
}

.project-tableau {
  background-image: url('Tableau_Dashboard1.png');
}

.project-ppt {
  background-image: url('Presentation_1.gif');
}