@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

/* Reset and base styles */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Instrument Serif", serif;
  background: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* Navbar */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: #fff; /* Make it visible when scrolling */
  box-shadow: none;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlideIn 0.6s ease forwards;
  animation-delay: 0.2s;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background 0.3s,
    box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  border-bottom: 1.5px solid #e0e0e0;
}

.navbar.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Navbar hide effect */
.navbar.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* So center doesn't block clicks */
}
.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
  position: relative;
}

.nav-right a {
  color: hsl(0, 0%, 30%);
  font-family: "Inter", serif;
  font-size: 25px;
  text-decoration: none;
  transition: color 0.3s;
  margin-left: 20px;
}

.nav-right a:hover {
  color: hsl(0, 0%, 0%);
}




.nav-left a {
  margin-right: 20px;
  color: hsl(0, 0%, 0%);
  font-family: "Inter", serif;
  font-size: 25px;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-left a:last-child {
  margin-right: 0;
}
.nav-left a:hover {
  color: hsl(0, 0%, 27%);
}

.nav-center .name {
  font-size: 50px;
  color: hsl(0, 0%, 20%);
  font-family: "Instrument Serif", serif;
   pointer-events: auto; /* Allow interaction if needed */
}


.menu-toggle {
  background: none;
  border: none;
  color: hsl(0, 0%, 27%);
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1001;
  font-family: "Instrument Serif", serif;
}

.dropdown-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  position: absolute;
  top: 48px;
  right: 0;
  background-color: hsl(0, 0%, 27%);
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  flex-direction: column;
  display: flex;
  transform: translateY(-10px);
  transition: opacity 0.3s, max-height 0.3s, transform 0.3s;
}
.dropdown-content.show {
  opacity: 1;
  max-height: 300px;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-content a {
  color: hsl(40, 23%, 95%);
  padding: 15px 30px 15px 10px;
  font-size: 20px;
  transition: background 0.3s;
  text-decoration: none;
}
.dropdown-content a:hover {
  background-color: hsl(0, 0%, 20%);
}

/* Contact Form Styles */

.contact-section {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 40px 0;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-header h2 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-header p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-header a {
  color: #000;
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.half {
  flex: 1 1 45%;
}

.form-group.full {
  flex: 1 1 100%;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #999;
  padding: 10px 4px;
  background: transparent;
  font-family: 'Georgia', serif;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.checkbox input {
  margin-right: 8px;
}

.send-btn {
  margin-top: 10px;
  padding: 12px 28px;
  background-color: #cfd6cb;
  color: #000;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #f8f589;
}

.send-btn span {
  margin-left: 6px;
}
.showcase,
.review,
.contact-section {
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  padding-top: 100px;    /* Space for navbar */
  padding-bottom: 60px; /* Bottom space for breathing room */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-fade-in {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
}
.page-fade-in.visible {
  opacity: 1;
}

/* Footer Styles */
footer {
  background-color: #f8f589;
  font-family: 'Instrument Serif', serif;
  padding: 4rem 2rem;
  color: #222;
  width: 100vw;
  box-sizing: border-box;
}
footer a {
  color: #222;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid #222;
}



/* Blurry background section style */
.webserver-section {
  min-height: 100vh;
  width: 100vw;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('blurry.png') center center/cover no-repeat;
  position: relative;
  z-index: 1;
}
.webserver-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75); /* adjust opacity for more/less white */
  z-index: 2;
  pointer-events: none;
}
.webserver-section > * {
  position: relative;
  z-index: 3;
}

/* Custom Cursor */
body {
  cursor: none;
}
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(34, 34, 34, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease, transform 0.15s ease;
  z-index: 9999;
}
.cursor.active {
  background-color: rgba(34, 34, 34, 0.8);
  transform: translate(-50%, -50%) scale(1.5);
}

.service-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 8%;
  gap: 60px;
  background-color: #fff;
  font-family: 'Instrument Serif', serif;
  line-height: 1.6;
  margin-top: 80px;
  margin-bottom: 60px;
}

.service-left {
  flex: 1;
}

.service-right {
  flex: 1.2;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: #333;
  margin-left: 60px;
}

.service-label {
  display: inline-block;
  color: black;
  font-weight: 600;
  margin: 30px 0 30px 0;
  font-size: 20px;
}

.service-title {
  font-size: 46px;
  font-family: 'Instrument Serif', serif;
  line-height: 1.2;
  font-weight: 300;
  color: #222;
}

.service-right p {
  margin-bottom: 20px;
}

.service-right h1 {
  font-size: 40px;
  margin-bottom: 15px;
  font-weight: 300;
  color: #111;
}




.three-step-section {
  padding: 60px 0 0 0;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Instrument Serif', serif;
}

.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.section-label {
  font-weight: 600;
  color: #222;
  font-size: 22px;
  font-family: 'Instrument Serif', serif;
  display: inline-block;
  margin-bottom: 20px;
}

.section-label .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: orange;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.section-header h2 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 300;
  margin: 0;
}

.card-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  flex: 1 1 320px;
  min-width: 320px;
  max-width: 430px;
  padding: 60px 40px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  background: #e6ede7;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.card-lightgreen {
  background-color: #bac9bf;
}

.card-green {
  background-color: #d4ded7;
}

.card-yellow {
  background-color: #fef68a;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 10px;
  color: #222;
}

.card p {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  color: #222;
  
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #222;
  font-family: montserrat, sans-serif;
}

.card ul li {
  margin-bottom: 8px;
}



.content-section {
  padding: 120px 80px;
  font-family: 'Inter', sans-serif;
  margin-top: 80px;
}

.content-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
}

.left-column {
  flex: 1;
  min-width: 300px;
}

.section-label {
  font-weight: bold;
  color: #000;
  font-size: 20px;
  font-family: 'Instrument Serif', serif;
  display: inline-block;
  margin-bottom: 12px;
}

.left-column h2 {
  font-size: 53px;
  font-weight: 300;
  font-family: 'Kentledge Light', serif;
  line-height: 1.2;
  margin: 0 0 20px 0;
}

.cta-button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #d4ded7;
  color: #000;
  border: none;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #f8f589;
}

.right-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.diagram h3 {
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 12px;
  font-family: 'Kentledge Light', serif;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags span {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 24px;
  font-size: 20px;
  white-space: nowrap;
}




.video-section {
  position: relative;
  width: 100%;
  min-height: 60vh;
  overflow: hidden;
  margin: 20px 20px 20px 60px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg {
  position: relative;           /* Change from absolute to relative */
  width: 100%;                 /* Make video take full viewport width */
  height: auto;                 /* Height adjusts to keep aspect ratio */
  min-height: 60vh;             /* Ensures minimum height */
  max-height: 100vh;            /* Prevents overflow on tall screens */
  object-fit: cover;          /* Show the full video, may add letterboxing */
  z-index: 1;
  left: 0;
  top: 0;
  transform: none;              /* Remove centering transform */
  background: #000;             /* Optional: black bars for letterboxing */
  display: block;
  opacity: 1;
  border-radius: 50px;
}

.video-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #fff;
  /* Optional: add a semi-transparent background for text */
  /* background: rgba(0,0,0,0.3); */
  padding: 4rem 2rem;
}

/* Developer Section - Match .three-step-section style */
.developer-section {
  padding: 60px 0 0 0;
  max-width: 1200px;
  margin: 60px;
  font-family: 'Instrument Serif', serif;
}

.developer-container {
  width: 100%;
  padding: 0 24px;
}

.section-title {
  font-size: 48px;
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  margin-bottom: 18px;
  text-align: left;
}

.section-subtext {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 36px;
  text-align: left;
  max-width: 700px;
}

.skills-grid {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;         /* Prevent wrapping */
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  overflow-x: auto;          /* Enable horizontal scroll if needed */
  padding-bottom: 16px;      /* Optional: space for scrollbar */
}
.skills-column {
  flex: 0 0 350px;           /* Fixed width for each card */
  min-width: 350px;
  max-width: 430px;
  background: #e6ede7;
  border-radius: 30px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 60px 40px;
  font-family: 'Instrument Serif', serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.skills-heading {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: #222;
}

.skills-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #222;
  font-size: 1.2rem;
  line-height: 1.7;
}

.skills-list li {
  margin-bottom: 10px;
}

.card-lightgreen {
  background-color: #bac9bf;
}
.card-green {
  background-color: #d4ded7;
}
.card-yellow {
  background-color: #fef68a;
}

@media (max-width: 900px) {
  .service-title {
    font-size: 2rem; /* 32px */
    line-height: 1.3;
  }
  .service-right {
    font-size: 1.15rem; /* 18px */
    line-height: 1.7;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .service-section {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .service-title {
    font-size: 24px;
  }
  .service-right {
    margin-left: 0;
    font-size: 1.15rem; /* Make text readable on mobile */
  }
  .service-right h1 {
    font-size: 20px;
  }

  .video-section {
    margin: 12px 0;
    padding: 0;
    width: 100vw;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .video-bg {
    width: 96vw;
    min-height: 60vh;
    max-width: 100vw;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }


  p,
  .service-right p,
  .card p,
  .section-subtext,
  .contact-header p {
    font-size: 1.15rem; /* ~18px */
    line-height: 1.8;
  }
  .developer-container h2 {
    font-size: 30px; /* 2rem */
    padding-left: 0px;
    margin-left: 5px;
  }

  .developer-container .section-subtext {
    font-size: 1.15rem; /* ~18px */
    max-width: 100%;
    padding-left: 0px;
    margin-left: 5px;
  }

  .card-grid {
    gap: 16px;
  }
  .card {
    min-width: 0;
    max-width: 320px;
    width: 100%;
    padding: 20px 8px;
    font-size: 0.95rem;
    margin: 0 auto;
  }

  .navbar {
    padding: 15px 10px;
  }
  .nav-center .name {
    font-size: 24px;
  }
  .nav-left a, .nav-right a {
    font-size: 18px;
  }
  .left-column h2 {
    font-size: 24px;
  }
  .contact-header h2 {
    font-size: 1.5rem;
  }
  .card, .skills-column {
    padding: 30px 16px;
  }
  footer {
    padding: 1.5rem 0.5rem;
    font-size: 0.85rem;
  }


@media (max-width: 600px) {
  .nav-left a[href="#contact"] {
    display: none !important;
  }
}}

@media (max-width: 600px) {
  .skills-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    padding-bottom: 0;
  }
  .skills-column {
    min-width: 100%;
    max-width: 320px;
    width: 100%;
    padding: 20px 8px;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .section-title{
    margin-left: auto; /* Remove left margin */
  }
  .section-subtext{
    font-size: 1.8rem; /* Smaller heading on mobile */
    margin-left: auto; /* Center the heading */
  }
  .left-column h2{
    font-size: 1.2rem; /* Smaller heading on mobile */
    margin-left: auto; /* Center the heading */
  }
}