* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #e5e7eb;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.intro h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.footer {
  text-align: center;
  padding: 1.25rem 2rem;
  color: #94a3b8;
}


h1, h2, h3 {
    margin-bottom: 15px;
}
p {
    margin-bottom: 10px;
}
section {
    margin-bottom: 30px;
}
footer {
    text-align: center;
    padding: 10px;
    background-color: #1f1f1f;
    position: fixed;
    width: 100%;
    bottom: 0;
}
footer p {
    margin: 0;
}
@keyframes floatDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro h1,
.intro p {
  opacity: 0;
  animation: floatDown 0.8s ease-out forwards;
}

.intro h1 {
  animation-delay: 0.1s;
}

.intro p:nth-of-type(1) {
  animation-delay: 0.3s;
}
.intro p:nth-of-type(2) {
  animation-delay: 0.5s;
}
.intro p:nth-of-type(3) {
  animation-delay: 0.7s;
}
.intro p:nth-of-type(4) {
  animation-delay: 0.9s;
}

/* Navbar (use .navbar consistently) */
.navbar {
  background-color: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

/* Footer (NOT fixed) */
.footer {
  text-align: center;
  padding: 1rem 2rem;
  background-color: #1f1f1f;
  color: #94a3b8;
  margin-top: 3rem;
}

/* Mobile nav wrap (simple improvement) */
@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
  }
}

.contact {
  max-width: 600px;
}

.contact h1 {
  margin-bottom: 0.5rem;
}

.contact p {
  margin-bottom: 2rem;
  color: #cbd5f5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  background-color: #1e293b;
  color: #e5e7eb;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #38bdf8;
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #38bdf8;
  color: #0b1220;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.success {
  margin-top: 1rem;
  color: #38bdf8;
}
.error {
  margin-top: 1rem;
  color: #f87171;
}
.about {
  max-width: 65ch;
}

.about h1 {
  margin-bottom: 1rem;
}

.about p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.projects h1 {
  margin-bottom: 0.5rem;
}

.projects p {
  margin-bottom: 1.5rem;
  color: #cbd5f5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: #111c33;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.6);
}

.project-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.project-card p {
  margin-bottom: 0;
  line-height: 1.6;
  color: #e5e7eb;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
.to-do {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.to-do h1 {
  margin-bottom: 1rem;
}
.about {
  max-width: 70ch;
}

.about-header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.4rem;
}

.subtitle {
  color: #cbd5f5;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Card look */
.about-card {
  background: #111c33;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 1.5rem;
}

/* Better link style in text */
.about-card a {
  color: #195772;
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.5);
}


.about-card a:hover {
  border-bottom-color: #32464e;
}

/* Button */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;

  background: linear-gradient(
    135deg,
    #38bdf8,
    #0ea5e9
  );

  color: #0b1220;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;

  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.35);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.skills {
  max-width: 70ch;
}

.subtitle {
  color: #cbd5f5;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.skills-card {
  background: #111c33;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 1.25rem;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.skills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.skill {
  font-weight: 700;
}

.level {
  font-size: 0.9rem;
  color: #94a3b8;
}
/* Flip Card (project -> github on hover) */
.flip-card {
  perspective: 1000px;
  padding: 0;        /* inner faces handle padding */
  overflow: hidden;  /* keeps rounded corners clean */
}

.flip-inner {
  position: relative;
  width: 100%;
  min-height: 160px; /* adjust if you want taller cards */
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  padding: 1.25rem; /* matches your original .project-card padding */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-front {
  background: transparent; /* project-card supplies background */
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.repo-btn {
  margin-top: auto;
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #38bdf8;
  color: #0b1220;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.repo-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
