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

/* Base Styles */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: "din-condensed", sans-serif;
  font-weight: 800;
  font-style: normal;
  background: white;
  color: #0f1b2d;
  line-height: 1.7;
}

/* Headings */
h2 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  color: Black;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1300px;
  padding: 1.25rem 2.5rem;
  background-color: #ffffff;
  border-bottom: 2px solid black;
  z-index: 1000;
}


/* GRID LAYOUT */
.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  column-gap: 3rem;
}

/* LOGO */
.nav-logo {
  font-size: 1.75rem;       /* if text logo */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo img {
  height: 25px;             /* slightly smaller */
}

/* NAV LINKS */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;

  /* optical centering tweak */
  transform: translateX(-1rem);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: black;
  padding: 0.5rem 0.75rem;
}

/* Border animation */
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 2px solid #262626;
  border-bottom: 2px solid #262626;
  transform: scaleY(2);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

/* Background fill */
.nav-links a::after {
  content: '';
  position: absolute;
  inset: 2px 0;
  background-color: #262626;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s ease 0.05s, opacity 0.3s ease 0.05s;
  z-index: -1;
}

/* Hover */
.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::before {
  transform: scaleY(1);
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scale(1);
  opacity: 1;
}



/* EXTRA TEXT */
.nav-extra {
  font-size: 0.95rem;
  font-weight: 500;
  color: black;
  white-space: nowrap;
  text-align: right;
}


#portfolio-highlight {
  border-bottom: 2px solid black;
  max-width: 1300px;
  margin: 0 auto;
  background-color: white;
  overflow: hidden;
}


/* Typography */
#portfolio-highlight h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

#portfolio-highlight p {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}


.skill-ticker {
  min-width: 1200px;
  height: 50px;
  align-items: center;   /* vertical centering */
  overflow: hidden;
  background-color: black;
  padding: 0 1rem;       /* remove vertical padding */
  line-height: 50px;
}


.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker-scroll 25s linear infinite;
}

.skill-ticker span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
}

/* animation */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


section {
  padding: 1rem 1rem;
  max-width: 1300px;
  margin: 1rem auto;
  background-color: white;
  border-radius: 10px;
}


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


.project-box {
  /* REMOVE this line */
  /* width: 300px; */

  height: 600px;
  display: block;
  padding: 2rem;
  background-color: white;
  color: black;
  text-decoration: none;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Hover lift effect */
.project-box:hover {
  background-color: white;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  color: black;
}

/* Image-card layout */
.project-card {
  padding: 0;
  overflow: hidden;
}

/* Image wrapper (required for zoom crop) */
.project-card .project-image {
  overflow: hidden;
  text-align: center;
}

/* Image base styling */
.project-card .project-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.4s ease;
}

/* Title styling */
.project-card h3 {
  padding: 1.2rem;
  font-size: 1.5rem;
  margin: 0;
  color: black;
  transition: color 0.3s;
}

.project-card h4 {
  padding: 1.2rem;
  font-size: 1.5rem;
  margin-top: -20px;
  color: black;
  font-weight: normal;
  transition: color 0.3s;
}


.arrow-pointer {
  opacity: 1;
  width: 75px;
  position: relative;
  top: 50px;
  left: 315px;
  transition: all 0.3s ease;
}

.project-card:hover .arrow-pointer {
  opacity: 1;
  width: 75px;
  position: relative;
  top: -50px;
  left: 315px;
}

/* Zoom + title color change on hover */
.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-card:hover h3 {
  color: black;
}



.hideAll, .response-container {
    display: none;
}

.form-container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: black;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.25);
    border: 1px solid rgb(255, 255, 255);
    animation: floatUp 0.6s ease-out;
}

.form-container label {
  font-family: "din-condensed", sans-serif;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-container input,
.form-container textarea {
   font-family: "din-condensed", sans-serif;
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    background: #444;
    border: 1px solid #333;
    border-radius: 8px;
    color: #eee;
    font-size: 15px;
    transition: 0.25s ease;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    outline: none;
}

#send-button {
    margin-top: 10px;
    background: linear-gradient(135deg, #ffffff, #fefefe);
    border: none;
    padding: 14px 0;
    color: #444;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgb(255, 255, 255);
}

#send-button:active {
    transform: translateY(1px);
}

/* Response Container */
.response-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background: #0f1b2d;
    border-radius: 14px;
    border-left: 4px solid #ffffff;
    color: #ccc;
    animation: fadeIn 0.5s ease-in;
}

.response-container h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Animations */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

ul {
  text-align: center;
  font-size: 20pt;
}


#projects p {
  max-width: 800px;
  font-size: 2rem;
  color: #444;
  margin: 0 auto 2rem auto;
  text-align: center;
}

/* ===== SKILLS SECTION ===== */
#skills {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ===== HEADER ===== */
.skills-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 50px;
  max-width: 700px;
}

.skills-header h2 {
  font-size: 3rem;
  line-height: 1.1;
  color: black;
  font-weight: 600;

}

.skills-header p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.7;
  color: #444;
  max-width: 460px;
  margin-left: 1.2rem;
}

.contact-card {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-left video {
  position: relative;
  width: 90%;
  height : 90%;
  margin-bottom: 0.5rem;
  margin-left: -2.5rem;
  overflow: hidden;
}

.contact-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #444;
}

.contact-left .contact-intro {
  gap: 10rem;
  max-width: 380px;
  text-align: left;
  margin: 0 0 2.5rem 0;
  font-size: 1rem;
  color: #444;
}

.contact-meta p {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin: 0 auto ;
  flex-direction: row;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: #444;
}

.contact-form input,
.contact-form textarea {
   font-family: "din-condensed", sans-serif;
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1.4rem;
  border: 1px solid black;
  border-radius: 10px;
  background: transparent;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form button {
  background: white;
  color: black;
  border: none;
  padding: 0.6rem 1.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  border: 1px solid black;
  border-radius: 20px;
   font-family: "din-condensed", sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: black;
  color: white;
}



.site-footer {
  margin: 0 auto;
  width: 100%;
  max-width: 1300px;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  color: black;
  border-top: 2px solid black;
  margin-top: 4rem;
}

.project-card {
  opacity: 0;
  transform: translateY(40px);
}


.hero-video {
  width: 100%;
  height: 100vh; /* full screen hero */
  overflow: hidden;
  position: relative;
  opacity: 0;
}

.hero-video video {
  width: 95%;
  height: 95%;/* key for hero videos */
}
#portfolio-highlight h1 {
  position: absolute;
  color: black;
  font-size: 2rem;
  text-align: center;
  top: 85%;
  left: 37%;
  opacity: 0;
  font-family: "din-condensed", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.project-icons {
  display: flex;
  width: 40px;
  height: auto;
  gap: 1rem;
  margin-bottom: 1.25rem;
margin-left: 1.2rem;
  padding: 1,2rem;
}

.contact-images {
  width: 50px;
  height: auto;
  display: flex;
  flex-direction: column;
}

#contact {
max-width: 1300px;
  margin: 0 auto;
  background-color: white;
  overflow: hidden;
}

/* ========================= */
/* ===== MOBILE (iPhone) ==== */
/* ========================= */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
    font-size: 16px;
  }

  /* Header */
  .site-header {
    padding: 1rem;
  }


  .nav-container {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-extra {
    text-align: center;
  }

    .nav-logo img{
    height: 25px;             /* slightly smaller */
    margin: 0 auto;
  }

  /* Hero */
  .hero-video {
    height: auto;
  }

  .hero-video video {
    padding-top: 13rem;
    width: 100%;
    height: auto;
  }

  #portfolio-highlight h1 {
    position: static;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 10rem;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-box {
    height: auto;
  }

  .project-card .project-image img {
    height: 250px;
  }

  .arrow-pointer {
    display: none; /* remove weird offset arrow on mobile */
  }

  /* Skills Header */
  .skills-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-header h2 {
    border-right: none;
    text-align: center;
  }

  .skills-header p {
    margin-left: 0;
    text-align: center;
  }

  /* Contact Section */
  .contact-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Ticker fix */
  .skill-ticker {
    min-width: 100%;
  }

  .contact-left video {
    margin: 0 auto;
 
  }

}


#Resume {
  display: block;
  margin: 50px auto;   /* centers horizontally */
  padding: 20px 48px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s ease;
  width: fit-content;  /* keeps button from stretching */
}

#Resume:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}