html {
  scroll-behavior: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1a1a1a;
  background: #98BAD7;
  background: linear-gradient(135deg, #98BAD7, #DEE9F2);
  background-attachment: fixed;
}

body.dark {
  background: #050814;
  background: linear-gradient(135deg, #050814, #000000);
  color: #f0f0f0;
}

body.dark header,
body.dark footer {
  background: rgba(0, 0, 0, 0.9);
}

body.dark .card {
  background: rgba(15, 20, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

body.dark .hero {
  background: rgba(13, 18, 40, 0.9);
}

body.dark a {
  color: #72d6ff;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  align-items: center;
  color: #1a1a1a;
  padding: 10px 0;
   text-align: center;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #03045e;
}

#themeBtn {
  background: white;
  color: #003d7a;
  border: none;
  padding: 5px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px;
}

nav {
  margin-top: 8px;
  text-align: center;
}

nav a {
  color: #03045e;
  margin: 0 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #00c6ff;
  transition: width 0.2s ease, left 0.2s ease;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

.me {
  text-align: center;
  padding: 40px 20px 30px;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.8s ease;
}

.me h1 {
  font-size: 30px;
}

.me p {
  font-size: 20px;
}

.me-buttons > * {
  margin: 5px; 
}

.me-buttons {
  display: flex;
  justify-content: center;
  gap: 10px; /* modern */
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(135deg, #98BAD7, #ffffff);
  color: #1a1a1a;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #03045e;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}

.scroller {
  width: 10px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  margin: 20px auto 0;
  animation: scrollPulse 1.6s infinite;
}

.content {
  max-width: 1000px;
  margin: 20px auto 40px;
  padding: 0 15px;
  display: block;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; 
}

@media (min-width: 900px) {
  .content {
    display: block; 
    display: grid;  
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, 0.35);
  filter: blur(0px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.8s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
margin-bottom: 20px; 
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

h3 {
  margin-bottom: 5px;
  margin-top: 15px;
  font-size: 16px;
}

p {
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: #03045e;
}

a:hover {
  color: #ffffff;
}

.about-images img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  margin: 8px 5px 8px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

video {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  margin: 8px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.project-filters {
  margin: 10px 0;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.4);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
}

.filter-btn.active {
  background: #00c6ff;
  color: #002341;
}

.project-item {
  margin-bottom: 10px;
}

.skills span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  margin: 5px 5px 0 0;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.goals-list {
  padding-left: 18px;
  font-size: 14px;
}

.goals-list li {
  margin-bottom: 5px;
}

.contact p {
  margin: 4px 0;
}

footer {
  text-align: center;
  padding: 15px;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.25);

  color: #1a1a1a;
  font-size: 13px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%   { opacity: 0.4; transform: translateY(0); }
  50%  { opacity: 1; transform: translateY(5px); }
  100% { opacity: 0.4; transform: translateY(0); }
}