:root {
  --bg: #0b0b0d;
  --card: #0f1113;
  --muted: #9aa0a6;
  --accent: #6ee7b7;
  --glass: rgba(255, 255, 255, 0.03);
  --max-width: 1500px; /* Default 110px*/
  --gap: 1.25rem;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin :0;
  background: #0d1117;  /* rgb(19, 19, 26);radial-gradient(1200px 600px at 10% 10%, rgba(110, 231, 183, 0.04), transparent), var(--bg);*/
  color: white;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Dynamic horizontal padding: min 1rem, scale with viewport (4vw), max 6rem */
  padding: 2rem clamp(1rem, 4vw, 6rem);
}

.container-fluid-tag{
  margin: 0;
  color: rgb(141, 141, 141);
  border-radius: 3px;
  text-align: left;
  padding: 2px;
  font-size: 15px;
  
}

.name-about {
  font-size: 3rem;
  margin-top: 0.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #66ffcc; 
}

.role-about {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  font-weight: 200;
  color: #66ffcc; 
}

.description-about {
  font-size: 1.2rem;
  margin-top: 1rem;
  line-height: 1.6;
  color: #c3daec;
  font-family: 'Inter', sans-serif;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0
}

.video-container{
  position: relative;
  display: inline-block;
}

.video-games{
  display: block;
  width: 100%;
  height: auto;
}

.onvideo-info{
  position: relative;
  transform: translateY(-99%);
  width: 100%;
  height: 15%;
  background-color: black;
  opacity: 0.8;
  margin: 0%;
  color: white;
  font-weight: 25%;
} 


.brand {
  font-weight: 700;
  color: #66ffcc;
  text-decoration: none
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none
}

.nav-toggle {
  display: none;
  background: transparent;
  align-items: center;
  justify-content: left;
  border: 0;
  color: var(--muted);
  font-size: 1.25rem
}

.nav-icons {
  width: 48px;
  height: 48px;
}
.hero {
  position: relative;
  /* Ensure hero fits the viewport and leaves room for the header */
  min-height: calc(100vh - 72px);
  max-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(18%) blur(.8px) contrast(.9);
  transform: none; /* remove extra zoom so background isn't overly cropped */
}

/* Hero video and content adjustments to avoid over-zooming and ensure content fits */
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  transform: none;
  filter: grayscale(8%) contrast(.92);
}

.hero-content{
  position: relative;
  padding: clamp(1.2rem, 6vh, 3.5rem) 0;
  text-align: center;
  z-index: 2;
}

.hero-title{
  font-size: clamp(1.6rem, 5vw, 3rem);
  margin: .25rem 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub{
  color: var(--muted);
  margin: .5rem 0 1rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
}

.btn {
  display: inline-block;
  padding: .575rem 1rem;
  border-radius: 8px;
  text-decoration: none
}

.btn.primary {
  background: #66ffcc;
  color: #042018;
  font-weight: 600
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  margin-left: .5rem
}

.section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(12px);
  transition: all .6s cubic-bezier(.2, .9, .2, 1)
}

.section.reveal {
  opacity: 1;
  transform: none
}

.about-img {
  /* image me */
  max-width: 360px;

  border-radius: 60px;
  border: 2px solid rgba(255, 255, 255, 0.04);
}

.general-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color:  #66ffcc;
}

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

.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 2px solid rgb(190, 190, 190);
  /*border: 1px solid rgba(255, 255, 255, 0.04); */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.skills-text{

  display: inline-block;
}

.font-style-desc{
    font-weight: lighter;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover
}

.card-body {
  padding: 1rem
}

.card-link {
  color: #66ffcc;
  text-decoration: none;
  font-weight: 600;
  position: absolute;
  bottom: 0;
  margin-bottom: 10px;
  
}

.contact .email {
  color: #66ffcc;
  font-weight: 600
}
.phone {
  color: #66ffcc;
  font-weight: 600
  
}
.muted {
  color: var(--muted)
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  margin-top: 2rem
}

/* Responsive */
@media(max-width:900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 640px) {
  /* Mobile: remove horizontal margins/padding so content is full-bleed */
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 0.5rem;
    top: 56px;
    background: var(--card);
    padding: 0.75rem;
    border-radius: 8px;
    flex-direction: column;
    display: none;
    min-width: 140px;
  }

  .nav-links.open {
    display: flex;
  }

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

  /* Remove horizontal padding and margins on small screens. Keep safe-area insets for devices with notches. */
  body {
    margin: 0;
    padding: 0;
  }

  .container {
    padding: 0;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    width: 100%;
    max-width: 100%;
  }

  /* Reduce vertical spacing so content fits comfortably on small viewports */
  .hero-content {
    padding: 1rem 0;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6vw, 2.6rem);
  }

  .hero-sub {
    margin-bottom: 0.75rem;
  }

  .section {
    padding: 1.25rem 0;
  }

  .project-card {
    margin-bottom: 8px;
    border-radius: 8px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

}

@media(min-width: 1024px) 
{
  .body {
    margin: 0 7rem;
  }

}
/* small helpers */
.text-center {
  text-align: center
}

/* reveal for project cards */
.project-card {
  opacity: 0;
  transform: translateY(14px);
  transition: all .6s cubic-bezier(.2, .9, .2, 1)
}

.project-card.reveal {
  opacity: 1;
  transform: none
}