* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* modern font */
  color: #eee;           /* light text on dark background */
  line-height: 1.6;      /* spacing between lines */
  background-color: #000; /* keeps dark/cinematic background */
  margin: 0;
  padding: 0;
}
/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at top, #1a1a1a, #000);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
}

/* SECTIONS */
section {
  padding: 100px 8%;
}
h1, h2 {
  font-weight: 600;       /* bold enough to stand out */
  margin-bottom: 20px;    /* space below the heading */
  letter-spacing: 0.5px;  /* tiny spacing for premium look */
}

h2 {
  font-size: 2rem;        /* adjust to taste */
  text-align: center;     /* center header on the page */
  margin-top: 40px;       /* space above section */
}
p {
  font-size: 1rem;            /* readable size */
  text-align: center;          /* center text for balance */
  margin: 10px 0 30px 0;      /* spacing above/below */
}
section {
  max-width: 1000px;       /* sections won’t get too wide */
  margin: 0 auto 80px auto; /* centers section + adds space below */
  padding: 0 20px;          /* small horizontal padding for smaller screens */
}
.about {
  text-align: center;           /* centers all content inside the section */
  max-width: 800px;             /* optional: keeps text from stretching too wide */
  margin: 0 auto 80px auto;     /* centers section horizontally and adds space below */
}

.about p {
  margin: 10px auto 30px auto;  /* centers paragraph block and adds spacing */
}

/* WORK GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  height: 200px;
  background: #000;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px); /* subtle lift */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4); /* soft shadow */
}

/* ABOUT & CONTACT */
.about p,
.contact p {
  max-width: 600px;
  opacity: 0.85;
}
.card {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* --- Hover overlay for thumbnails --- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px); /* start slightly below */
  transition: opacity 0.4s ease, transform 0.4s ease; /* fade + slide */
}

.card:hover .overlay { 
  opacity: 1;
  transform: translateY(0); /* slide to normal position */
}
.contact {
  padding: 20px 20px; /* smaller padding, less empty space */
  text-align: center;
  background: #0b0b0b;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.contact a {
  display: block;
  font-size: 1.1rem;
  color: #aaa;
  text-decoration: none;
  margin: 10px 0;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #fff;
}
.contact a {
  position: relative;
  transition: transform 0.35s ease, color 0.35s ease;
}

.contact a:hover {
  transform: translateY(-6px);
  color: #fff;
}
.contact a {
  position: relative;
  display: block;       /* stack links vertically */
  margin: 10px 0;       /* space between links */
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;        /* slightly below text */
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.35s ease;
}

.contact a:hover::after {
  width: 110%;          /* slightly past the word */
}

.contact a {
  position: relative;
  display: inline-block; /* now width wraps content */
  margin: 10px 0;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact a {
  display: block;           /* stack links vertically */
  margin: 10px 0;           /* space between links */
  color: #aaa;              /* default text color */
  text-decoration: none;    
  position: relative;       /* needed for the underline */
  transition: color 0.3s ease;
}

.contact a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;             /* slightly below text */
  width: 0;                 /* starts hidden */
  height: 2px;
  background: #fff;
  transition: width 0.35s ease;
}

.contact a:hover::after {
  width: 100%;              /* underline grows across just the word */
}

.contact a:hover {
  color: #fff;              /* brighten text on hover */
}
.contact .contact-link a {
  display: inline-block;          /* width wraps just the text */
  color: #aaa;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-size: 1.1rem;              /* optional text size */
}

.contact .contact-link a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;               /* full width of the text */
  height: 2px;
  background: #fff;
  transform: scaleX(0);      /* hide initially */
  transform-origin: center;  /* grow from the center */
  transition: transform 0.35s ease;
}

.contact .contact-link a:hover::after {
  transform: scaleX(1.15);   /* slightly larger than text for overshoot */
}

.contact .contact-link a:hover {
  color: #fff;                    /* brighten text on hover */
}
/* --- About Me Section --- */
.about p {
  max-width: 800px;                  /* keeps lines from stretching too wide */
  margin: 10px auto 30px auto;       /* centers paragraph + spacing */
  text-align: center;                 /* centers text under heading */
  opacity: 0.85;                      /* optional subtle fade look */
}

/* --- Contact Section (Let's Work) --- */
.contact {
  max-width: 400px;                   /* tighter, more compact box */
  padding: 20px 20px;                 /* reduces height of the box */
  margin: 0 auto 60px auto;           /* centers box + space below */
  background-color: #111;             /* subtle dark grey box */
  border-radius: 12px;                /* smooth rounded corners */
  text-align: center;                 /* centers text inside the box */
}

.contact p {
  margin: 10px auto;                  /* centers paragraph inside box */
}
/* --- Section Fade-In Animation --- */
section {
  opacity: 0;                     /* initially invisible */
  transform: translateY(20px);    /* start slightly below */
  transition: opacity 0.8s ease, transform 0.8s ease; /* smooth animation */
}

section.visible {
  opacity: 1;                     /* fully visible */
  transform: translateY(0);       /* move to original position */
}
/* --- Section Styling (Responsive) --- */
section {
  max-width: 1000px;        /* default width for medium screens */
  margin: 0 auto 80px auto;  /* center sections + space below */
  padding: 0 20px;           /* horizontal padding for small screens */
}

/* --- Expand sections for very wide screens --- */
@media (min-width : 1470px ){
  section {
    max-width: 1200px;       /* wider sections on large screens */
  }
}

/* --- Projects Grid (Responsive) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;         /* keeps thumbnails from being too stretched */
  margin: 0 auto;            /* centers grid */
}

/* --- Contact Section (Let’s Work) --- */
.contact {
  max-width: 400px;           /* tighter box */
  padding: 15px 20px;
  margin: 0 auto 60px auto;
  background-color: #111;
  border-radius: 12px;
  text-align: center;
}

.contact p {
  margin: 10px auto;
}

/* --- About Me Section --- */
.about p {
  max-width: 800px;
  margin: 10px auto 30px auto;
  text-align: center;
  opacity: 0.85;
}

/* HERO TITLE ANIMATION START */
#hero-title-animation {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;               /* more space between words */
  background-color: #000;
  overflow: hidden;         /* hide initial off-screen */
}

.hero-piece {
  display: inline-block;    /* sit side by side horizontally */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 4rem;
  color: #f5f5f5;
  opacity: 0;               /* start invisible */
  transform: translateY(30px); /* start slightly below */
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-piece.active {
  opacity: 1;
  transform: translateY(0); /* slide to normal position */
}
/* HERO TITLE ANIMATION END */

/* --- HERO SECTION OVERRIDE --- */
#hero-title-animation {
  opacity: 1 !important;          /* force hero visible immediately */
  transform: none !important;     /* remove translateY */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 100vh;
  background-color: #000;         /* full-screen dark background */
}

.hero-piece {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 4rem;       /* big hero text */
  color: #f5f5f5;        /* bright white */
  opacity: 0;             /* start invisible for animation */
  transform: translateY(30px); /* start slightly below */
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-piece.active {
  opacity: 1;
  transform: translateY(0); /* slide up into place */
}
