/* colour shortcuts */
:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #1a1a1a;
  --accent:    #c8f563;
  --accent2:   #a8e040;
  --text:      #e8e4dc;
  --muted:     #6b6860;
  --border:    #222222;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* reset and the base */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* cool cusor */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease), opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor.expand {
  transform: scale(4);
  opacity: 0.6;
}

/* for navigatioen*/
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/*shared seciotn */
section {
  padding: 7rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--text);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s var(--ease);
}


.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* hero section */



.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s var(--ease) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; }

.hero-title .accent { color: var(--accent); font-style: italic; }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease) forwards;
}


.hero-sub em { color: var(--text); font-style: normal; }



.hero-cta {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s var(--ease) forwards;
}



.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 0;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s 1s var(--ease) forwards;
}

/* about myself css stuff*/
.about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-img-wrap {
  position: relative;
}



.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(20%);
  transition: filter 0.4s;
  position: relative;
  z-index: 1;
}

.about-img:hover { filter: grayscale(0%); }

.about-img-bg {
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--accent);
  border-radius: 4px;
  z-index: 0;
  opacity: 0.15;
}

.about-text h2 { margin-top: 1rem; }

.about-text p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}



.about-text p strong { color: var(--text); font-weight: 500; }

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
}


.skill-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* projects section*/
.projects { border-top: 1px solid var(--border); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.project-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.project-card:hover { background: var(--bg2); }

.project-card:hover::before { transform: scaleX(1); }


.project-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}



.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}


.project-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  
  margin-bottom: 1.5rem;
}


.project-tags span {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.project-link {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: letter-spacing 0.2s;
}

.project-link:hover { letter-spacing: 0.18em; }

/*  for contact info */
.contact { border-top: 1px solid var(--border); text-align: center; }

.contact h2 { text-align: center; }

.contact-sub {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 3rem;
  font-size: 0.9rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1rem 1.75rem;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.contact-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 1rem;
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* this for animations */


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



.reveal {
  opacity: 0;
  
  transform: translateY(32px);
  
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  
  transform: translateY(0);
}


/* response stuff */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  section { padding: 5rem 1.5rem; }
  

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-wrap { max-width: 280px; }

  .hero-cta { flex-direction: column; align-items: flex-start; }

  .contact-links { flex-direction: column; align-items: center; }

  footer { padding: 2rem 1.5rem; }
}
