@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    /* changed: allow page to grow beyond the viewport instead of fixing height */
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "Media Artist";
    }
    21%, 40%{
        content: "Concept Artist";
    }
    41%, 60%{
        content: "3D Modeler";
    }
    61%, 80%{
        content: "Illustrator";
    }
    81%, 100%{
        content: "Technical Artist";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/* ================================
   WORKS SECTION – CARD STYLE
================================ */

.works {
  padding: 120px 0 90px;
  background: #000;
}

.works_container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 32px;
}

.works_grid {
  max-width: 1250px;
  margin: 50px auto 0;
  padding: 0 32px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ===== CARD ===== */
.works_card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;

  background: rgba(12, 12, 12, 0.9);
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

/* ===== IMAGE CONTAINER ===== */
.work_media {
  position: relative;
  max-height: 550px;                 /* controls image size */
  overflow: hidden;
  background: #0c0c0c;
}

.work_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* crops instead of stretching */
  transform: scale(1.02);
  transition:
    transform 260ms ease,
    filter 260ms ease;
  filter: saturate(1.05) contrast(1.05);
}

/* Dark overlay for readability */
.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.65) 100%
    );
  pointer-events: none;
}

/* ===== INFO AREA ===== */
.work_info {
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.work_name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.work_description {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

/* ===== TAGS ===== */
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.85);
  background: rgba(183, 75, 75, 0.10);
  border: 1px solid rgba(183, 75, 75, 0.35);

  transition:
    background 200ms ease,
    border-color 200ms ease;
}

/* ================================
   HOVER EFFECTS (IMPORTANT PART)
================================ */

.works_card:hover {
  transform: translateY(-8px);
  border-color: rgba(183, 75, 75, 0.65);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(183, 75, 75, 0.25),
    0 0 36px rgba(183, 75, 75, 0.45);
}

.works_card:hover .work_media img {
  transform: scale(1.12);
  filter: saturate(1.15) contrast(1.1);
}

.works_card:hover .work-tag {
  background: rgba(183, 75, 75, 0.18);
  border-color: rgba(183, 75, 75, 0.6);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 980px) {
  .works_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .works_grid {
    grid-template-columns: 1fr;
  }

  .work_media {
    height: 320px;
  }
}


.container {

  margin: 0 auto;
}

.about-header {
  margin-bottom: 100px;
  max-width: 800px;
}


.title {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.7;
}

/* Grid */
.about {
  padding-top: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

/*.about-left {
  display: grid;
  flex-direction: column;
  gap: 18px;
}

/* Cards */
.card {
    
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(250, 141, 141, 0.28);
  overflow: hidden;
  padding: 22px 22px 18px;
  backdrop-filter: blur(10px);
}

.card-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-left: 10px; /* space from accent */
}

.card-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
}

.card-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 216, 77, 0.08);
  border: 1px solid rgba(255, 216, 77, 0.20);
  color: var(--accent);
  flex: 0 0 auto;
}

/* Meta row */
.meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-left: 10px;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.meta i {
  color: var(--accent);
  opacity: 0.95;
}

.section-label {
    margin-top: 25px;
}

.coursework {
  list-style: none;
  padding-left: 10px;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.coursework li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* custom bullet */
.coursework li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 14px;
}


/* Body */
.card-body {
  margin-top: 14px;
  padding-left: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 18px 0 14px;
}

/* Skills */
.section-label {
  padding-left: 10px;
  color: rgba(255, 216, 77, 0.95);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.pills {
  padding-left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 13px;
  color: rgba(255, 216, 77, 0.92);
  border: 1px solid rgba(255, 216, 77, 0.35);
  background: rgba(255, 216, 77, 0.07);
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease;
  margin-bottom: 0px;
}

.pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 216, 77, 0.12);
  margin-bottom: 10px;
}

/* Side column */
.side {
  display: grid;
  gap: 14px;
}

.mini-card {
  background: var(--card-2);
  border: 1px solid rgba(193, 79, 79, 0.257);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(250, 141, 141, 0.28);
  backdrop-filter: blur(10px);
}

.mini-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mini-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

/* List */
.list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.list i {
  margin-top: 3px;
  color: var(--accent-2);
}

/* Highlight card */
.highlight {
  border-color: rgba(56, 211, 159, 0.25);
  background:
    radial-gradient(500px 200px at 15% 10%, rgba(56, 211, 159, 0.18), transparent 55%),
    var(--card-2);
}
.list a {
  color: #facc15;        /* clean modern yellow */
  text-decoration: none;
  font-weight: 500;
}

.list a:hover {
  color: #fde047;        /* lighter yellow on hover */
}

.list a:visited {
  color: #facc15;        /* prevents purple visited color */
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 216, 77, 0.25);
  background: rgba(255, 216, 77, 0.06);
  transition: transform 160ms ease, background 160ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: rgba(243, 216, 115, 0.12);
}

/* Responsive */
@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .badge {
    display: none;
  }
  .card-title {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .about {
    padding: 56px 16px;
  }
  .card,
  .mini-card {
    border-radius: 16px;
  }
}

/* ===== PROJECT PAGE ===== */
.project{
  padding: 120px 0 90px;
  background: #000;
}

.project-container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}
.project-container1{
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
}

.project-back{
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(183,75,75,0.35);
  padding-bottom: 4px;
}

.project-back:hover{
  color: #fff;
  border-bottom-color: rgba(183,75,75,0.8);
}

.project-hero{
  margin-bottom: 18px;
}

.project-title{
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 10px;
}

.project-subtitle{
  color: rgb(255, 255, 255);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 14px;
}

.project-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-banner{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 26px 70px rgba(0,0,0,0.55),
    0 0 34px rgba(183,75,75,0.20);
  margin: 18px 0 26px;
}

.project-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-banner video{
  width: 100%;
  height: 480px; /* increased from 340px to 480px */
  object-fit: cover;
  display: block;
}

.project-grid{
  display: grid;
  gap: 18px;
}

.project-section{
  background: rgba(19, 19, 19, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  min-height: 100px;
  
}

.project-section h2{
  font-size: 20px;
  margin-bottom: 10px;
}

.project-section p{
  color: rgb(255, 255, 255);
  font-size: 15px;
  line-height: 1.8;
}

.project-list{
  margin-left: 18px;
  color: rgb(255, 255, 255);
  font-size: 15px;
  line-height: 1.8;
}

.project-gallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.project-gallery video,
.project-gallery img{
  width: 100%;
  height: 300px; /* increased from 240px to 300px */
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}
/* Same-size tiles */
.project-gallery .media {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background: #000;

  aspect-ratio: 16 / 9; /* choose a common frame ratio */
}

/* Keep original ratio (no crop) */
.project-gallery .media > video,
.project-gallery .media > img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* preserves ratio, may letterbox */
  display: block;
}

@media(max-width: 820px){
  .project-gallery{ grid-template-columns: 1fr; }
  .project-gallery .media{ aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  .project-banner video{
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .project-gallery video,
  .project-gallery img{
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.project-gal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* changed from 3 to 2 */
  gap: 10px;
}
.project-gal video,
.project-gal img{
  width: 100%;
  height: 300px; /* increased from 240px to 300px */
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}
/* Same-size tiles */
.project-gal .media {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background: #000;

  aspect-ratio: 16 / 9; /* choose a common frame ratio */
}

/* Keep original ratio (no crop) */
.project-gal .media > video,
.project-gal .media > img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* preserves ratio, may letterbox */
  display: block;
}

@media(max-width: 820px){
  .project-gal{ grid-template-columns: 1fr; }
  .project-gal .media{ aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  .project-banner video{
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .project-gal video,
  .project-gal img{
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.project-next {
  display: inline-block;
  margin: 32px 0 0 auto;
  padding: 6px 18px;
  font-size: 1.3rem;
  color: #fff;
  background: #b74b4b;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s;
  float: right;
}
.project-next:hover {
  background: #a13d3d;
  color: #ffd84d;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin-bottom: 32px;
}
.contact-form label {
  font-size: 1.2rem;
  color: #ffd84d;
  margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(19,19,19,0.85);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #b74b4b;
  outline: none;
}
.contact-form button.btn {
  margin-top: 8px;
  align-self: flex-end;
}
.contact-info {
  margin-top: 24px;
  background: rgba(19,19,19,0.85);
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.contact-info h3 {
  color: #ffd84d;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.contact-info a {
  color: #b74b4b;
  text-decoration: underline;
}
.contact-info a:hover {
  color: #ffd84d;
}
