:root {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #4da3ff;
}

/* ---------- Desktop (iPhone) ---------- */
@media (max-width: 1920px) {
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1, h2, h3 {
  margin-top: 0;
}

.hero {
position: sticky;
  top: 0; /* stays in viewport */
  padding: 4rem 2rem;
  text-align: center;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  background:var(--bg);
  border-bottom:5px solid red;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
}

.tech {
  margin-top: 0.5rem;
  color: var(--muted);
}

.links a {
  margin: 0 0.5rem;
}

section {
  max-width: 1000px;
  margin: auto;
  padding: 3rem 2rem;
}

.projects h2,
.tools h2,
.about h2 {
  margin-bottom: 2rem;
}

.content {
	/*width:1600px;*/
	display: grid;
	grid-template-columns: 1fr 1fr;
	/*position:absolute;*/
	/*top: 400px;*/
	z-index: 1;
}

.projects {
	/*position:absolute;
	top: 400px;
	z-index: 1;*/
}

.UnfinishedProjects {
	/*position:absolute;
	top: 800px;
	z-index: 1;*/
}
	
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.projectlarge{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 3rem;
}
.img {
	
	display: block;
  width: 100%;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.vid{
	display: block;
  width: 100%;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.vid.large {
	width: 200%;
}

.project-info ul {
  padding-left: 1.2rem;
}

.project-info li {
  margin-bottom: 0.4rem;
}

.tech-stack {
  font-size: 0.9rem;
  color: var(--muted);
}

.project-links a {
  margin-right: 1rem;
  font-weight: 500;
}

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

.playvideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
  }

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Newest Section ---------- */
.newest {
  max-width: 1000px;
  margin: auto;
  padding: 3rem 2rem 1rem;
}

.newest-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.newest h2 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.newest-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.newest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.newest-card {
  position: relative;
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(77, 163, 255, 0.2);
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newest-card:hover {
  border-color: rgba(77, 163, 255, 0.5);
  box-shadow: 0 0 30px rgba(77, 163, 255, 0.12);
}

.newest-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.newest-card .vid {
  border-radius: 0;
  width: 100%;
  display: block;
}

.newest-card-info {
  padding: 1.2rem 1.2rem 1rem;
}

.newest-card-info h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.newest-card-info p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}


}

/* ---------- Mobile (iPhone) ---------- */
@media (max-width: 480px) {

  .hero {
    padding: 2.5rem 1.2rem;
  }

  section {
    padding: 2rem 1.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }
  
  .content {
	top:300px;
	width:100%;
	grid-template-columns: 1fr;
	grid-template-rows: auto;
  }

  .project {
    grid-template-columns: fr;
  }

  .projectlarge {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .vid,
  .vid.large {
    width: 100%;
  }

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

  .newest h2 {
    font-size: 1.5rem;
  }

  .playvideo {
    display: none;
  }
}