@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Bebas+Neue&display=swap");

/* Custom variables */
:root {
  --dark: #1a2b3b;
  --medium: #223344;
  --projects-bg: #4a6a85;
  --card-dark: #1e2f3f;
  --form-bg: #456278;
  --white: #ffffff;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-12: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.18);

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Bebas Neue", sans-serif;

  --nav-height: 68px;
  --radius: 18px;
  --transition: 0.28s ease;
}

/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--dark);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Nav bar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  z-index: 100;
}

.nav-logo {
  width: 40px;
  height: 40px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav-logo:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-sep {
  color: var(--white-60);
  font-size: 14px;
  margin: 0 10px;
}

.nav-link {
  font-size: 15px;
  color: var(--white-60);
  padding: 6px 4px;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-linkedin {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--white-60);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.nav-linkedin:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.nav-linkedin svg {
  width: 15px;
  height: 15px;
}

/* Home page */

.home-page {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 200px);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
  user-select: none;
}

.home-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.home-text {
  flex: 1;
  max-width: 520px;
}

.home-name {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
}

.home-role {
  font-size: 16px;
  font-weight: 300;
  color: var(--white-60);
  margin-bottom: 22px;
}

.home-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-60);
  margin-bottom: 36px;
}

.home-ctas {
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--dark);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.home-avatar {
  flex-shrink: 0;
  width: clamp(240px, 28vw, 360px);
  height: clamp(240px, 28vw, 360px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--white-12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Projects */

.projects-page {
  background: var(--projects-bg);
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.projects-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
}

.tab-bar {
  display: flex;
  align-items: center;
  background: rgba(20, 35, 50, 0.55);
  border-radius: 50px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto 48px;
  gap: 4px;
}

.tab-btn {
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--white-60);
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--white);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--card-dark);
  border-radius: var(--radius);
  border: 1px solid var(--white-12);
  overflow: hidden;
  position: relative;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 18px 20px 20px;
}

.project-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.project-desc {
  font-size: 13px;
  color: var(--white-60);
  line-height: 1.55;
  margin-bottom: 14px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-card svg {
  width: 12px;
  height: 12px;
}

.project-year {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Contact page */

.contact-page {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}

.contact-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
  display: flex;
  justify-content: center;
}

.contact-card {
  background: var(--form-bg);
  border-radius: 28px;
  padding: 52px 56px;
  width: 100%;
  max-width: 740px;
  border: 1px solid var(--white-12);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--white-60);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition);
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--white-30);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.form-input.error,
.form-textarea.error {
  border-color: #e07a7a;
}

.form-textarea {
  height: 140px;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.form-feedback {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}

.form-feedback.success {
  color: #7ed9a0;
}
.form-feedback.error {
  color: #e07a7a;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--white-60);
}

.contact-info-item svg {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}

/* Animations */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-1 {
  animation-delay: 0.05s;
}
.fade-in-2 {
  animation-delay: 0.15s;
}
.fade-in-3 {
  animation-delay: 0.25s;
}
.fade-in-4 {
  animation-delay: 0.35s;
}
.fade-in-5 {
  animation-delay: 0.45s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Making it responsive */

@media (max-width: 900px) {
  .home-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 40px 28px;
  }

  .home-ctas {
    justify-content: center;
  }

  .watermark {
    font-size: 18vw;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-sep {
    margin: 0 6px;
  }

  .nav-link {
    font-size: 13px;
  }

  .nav-linkedin span {
    display: none;
  }

  .nav-linkedin {
    padding: 8px 10px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-content {
    padding: 40px 20px;
  }

  .contact-content {
    padding: 40px 20px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
