:root {
    --bg-white: #0B1120;
    --primary-navy: #E5E7EB;
    --secondary-grey: #94A3B8;
    --border-grey: #1E293B;
    --accent-blue: #38BDF8;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;


  --container-max-width: 1200px;
  --section-spacing: 80px;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-family);
  color: var(--secondary-grey);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
}


h1,h2,h3,h4,h5,h6 {
  color: var(--primary-navy);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-navy);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-spacing) 0;
  min-height: 100vh;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
  }
}
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-grey);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  animation: fadeInDown 0.6s ease-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
  color: var(--accent-blue);
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav li {

  animation: fadeInDown 0.6s ease-out;
}

nav li:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
nav li:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
nav li:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
nav li:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
nav li:nth-child(5) { animation-delay: 0.5s; opacity: 0; animation-fill-mode: forwards; }
nav li:nth-child(6) { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }

nav a {
  color: var(--secondary-grey);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--primary-navy);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-primary:hover {
  background-color: var(--primary-navy);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 231, 235, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 231, 235, 0.3);
}
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 700px;
  animation: fadeInLeft 0.8s ease-out;
}

.hero-greeting {
  font-size: 1.25rem;
  color: var(--secondary-grey);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.hero-title {
  font-size: 1.5rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1s forwards;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 0.8s ease-out;
}

.hero-image {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.2s; }
.about-text p:nth-child(2) { animation-delay: 0.4s; }
.about-text p:nth-child(3) { animation-delay: 0.6s; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }

.skill-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 16px rgba(56, 189, 248, 0.2);
  transform: translateY(-8px);
}

.skill-card h3 {
  color: var(--primary-navy);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-grey);
  transition: border-color 0.3s ease;
}

.skill-card:hover h3 {
  border-bottom-color: var(--accent-blue);
}

.skill-list {
  list-style: none;
}

.skill-list li {
  color: var(--secondary-grey);
  font-size: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-grey);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1.2rem;
}

.skill-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  transition: transform 0.3s ease;
}

.skill-list li:hover::before {
  transform: translateX(4px);
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-list li:hover {
  color: var(--primary-navy);
  padding-left: 1.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }

.project-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.project-title {
  color: var(--primary-navy);
  font-size: 1.375rem;
  margin-bottom: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--accent-blue);
}

.project-description {
  color: var(--secondary-grey);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tech {
  margin-bottom: 1.5rem;
}

.project-tech h4 {
  color: var(--primary-navy);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
}

.tech-list li {
  color: var(--secondary-grey);
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  border: 1px solid var(--border-grey);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-list li:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.project-link {
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  color: var(--primary-navy);
}

.project-link:hover::after {
  transform: translateX(4px);
}

.education-container {
  max-width: 800px;
  margin: 0 auto;
}

.education-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-grey);
  transition: padding-left 0.3s ease;
  opacity: 0;
  animation: fadeInLeft 0.6s ease-out forwards;
}

.education-item:nth-child(1) { animation-delay: 0.2s; }
.education-item:nth-child(2) { animation-delay: 0.4s; }

.education-item:hover {
  padding-left: 1rem;
}

.education-item:last-child {
  border-bottom: none;
}

.degree {
  color: var(--primary-navy);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.education-item:hover .degree {
  color: var(--accent-blue);
}

.university {
  color: var(--secondary-grey);
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.year {
  color: #6b7280;
  font-size: 0.9375rem;
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-container {
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 1.5rem;
  opacity: 0;
  animation: scaleIn 0.6s ease-out 0.4s forwards;
  transition: border-color 0.3s ease;
}

.contact-form-container:hover {
  border-color: var(--accent-blue);
}

.contact-form-container h3 {
  color: var(--primary-navy);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  color: var(--primary-navy);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.form-group:focus-within label {
  color: var(--accent-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  color: var(--primary-navy);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #475569;
  transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-grey);
  /* ANIMATION: Fade in */
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-grey);
  color: var(--secondary-grey);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 8px 16px rgba(56, 189, 248, 0.3);
}

footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-grey);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: var(--secondary-grey);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}


@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-grey);
    padding: 1rem 0;
  }

  nav.active {
    display: block;
    animation: fadeInDown 0.3s ease-out;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;
  }

  nav li {
    animation: none;
    opacity: 1;
  }

  nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-grey);
  }

  nav li:last-child a {
    border-bottom: none;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero-container {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-image {
    width: 280px;
    height: 280px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 50px;
  }

  .header-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-image {
    width: 220px;
    height: 220px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .contact-link {
    font-size: 1rem;
    word-break: break-all;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}