/* Importing the DM Sans font */
@import url('https://fonts.googleapis.com/css?family=DM Sans');

/* Creating space when jumping to anchors */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* RESET + BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  color: #f1f5f9;
  background: #0f172a;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #111;
  padding: 1em;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 0.2px solid #333;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
}

.navbar a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #00ffd5;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  background: linear-gradient(-45deg, #3b82f6, #9333ea, #14b8a6, #f43f5e);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.overlay {
  background: rgba(15, 23, 42, 0.85);
  padding: 3rem;
  border-radius: 20px;
  max-width: 700px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #00ffd5;
}
.hero-subtitle {
  font-size: 1.3rem;
  margin: 1rem 0 2rem;
  color: #94a3b8;
}

/* SECTIONS */
section {
  padding: 4rem 2rem;
  max-width: 850px;
  margin: auto;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-left: 6px solid #9333ea;
  padding-left: 0.5rem;
}
ul {
  list-style: disc inside;
  margin-top: 1rem;
}
a {
  color: #38bdf8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* PROJECTS */
.project-card {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.project-card h3 {
  margin-bottom: 0.5rem;
}

/* BUTTONS */
button {
  font-size: 1rem;
}
.btn, button {
  background: #9333ea;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn:hover, button:hover {
  background: #7e22ce;
}
.btn:hover {
  transform: scale(1.05);
}

/* FORMS */
form {
  display: flex;
  flex-direction: column;
}
label {
  margin-top: 1rem;
  font-weight: 600;
}
input, textarea {
  padding: 0.75rem;
  border: 1px solid #475569;
  border-radius: 8px;
  margin-top: 0.3rem;
  font-size: 1rem;
  background: #1e293b;
  color: #f1f5f9;
}
textarea {
  resize: vertical;
}

/* GRADIENT SECTION BG */
.gradient-bg {
  background: linear-gradient(to right, #3f3cbb, #3b0764);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #64748b;
}

.social-footer {
  text-align: center;
  margin-top: 80px;
  padding: 40px 20px;
  background: #111;
  color: #eee;
}

.social-footer h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.social-icons a {
  margin: 0 12px;
  color: #eee;
  font-size: 28px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #00ffd5;
  transform: scale(1.3);
}

/* ANIMATED GRADIENT */
@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* MOBILE-SAFE NAVBAR */
@media screen and (max-width: 768px) {
  .navbar {
    gap: 0.2rem;
    font-size: 0.5rem;
  }
}