@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%;
  min-height: 100vh;   /* safer than fixed 100vh */
  overflow-x: hidden;  /* keep only horizontal overflow 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(0 2px 10px rgba(0,0,0,0.4));
    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;
        top: 100%;
        right: 0;
        width: 40%;
        display: block;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem;
        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;
    }
}

.section-header {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.6rem;
  color: #cfcfcf;
}

section {
    min-height: 10vh;
    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: 3.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 #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover {
    transform: scale(1.03);
}

.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;
    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 #161616;
    right: -8px;
    animation: cursor 0.6s infinite;
}

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

@keyframes words {
    0%, 20%{
        content: "Web developer"
    }
    21%, 40% {
        content: "Software Developer";
    }
    41%, 60% {
        content: "Web designer";
    }

    61%, 80%{
        content: "Game enthusiast";
    }
    81%, 100% {
        content: "Customer servant";
    }
}

@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: 70vh;
        margin-top: 4rem;
    }
}


html { scroll-behavior: smooth;
}


#contact { scroll-margin-top: 120px; 
}


.contact {
  padding: 6rem 9% 8rem;
  background: black;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.6rem;
  color: #cfcfcf;
  margin-bottom: 3rem;
}

/* Form card */
.contact-form {
  background: #0f0f0f;
  border: 1px solid #b74b4b;
  border-radius: 1.5rem;
  padding: 2.4rem;
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.2);
}

/* Two-column layout that collapses on mobile */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.form-grid .full { grid-column: 1 / -1; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1.4rem;
  color: #ffffff;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: #000;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  font-size: 1.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8d8d8d;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b74b4b;
  box-shadow: 0 0 0 3px rgba(183, 75, 75, 0.25);
}

.contact-form .btn { margin-top: 1rem; }
.contact-form .btn:active { transform: scale(0.99); }

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


#education-section { scroll-margin-top: 120px; }

#education-section { padding: 0 9%; }

@media (max-width: 700px) {
  #education-section { padding: 0 6%; }
}

#education-title {
  font-size: 4rem;
  line-height: 1.2;
  color: #fff;
  max-width: 900px;
  margin: 0 auto 1rem;
}

.education {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid transparent;
    background: linear-gradient(#0f0f0f,#0f0f0f) padding-box,
    linear-gradient(140deg, #b74b4b, #8a3b3b 60%, #b74b4b) border-box;
    border-radius: 1.5rem;
    padding: 2.4rem;
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.2);
    list-style-position: inside;
    transition: border-color .2s, box-shadow .2s, transform .05s;
}

.education ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#education li {
    font-size: 1.8rem; padding: .8rem 0;
    position: relative;
    padding: 1.2rem 0 1.2rem 2.4rem;
    transition: transform .12s ease, background .12s ease;
    border-radius: .8rem;
}

.education li:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,0.02);
}



@media (max-width: 700px) {
  #education li { padding: .6rem 0; }
}

.edu-title { font-weight: 600; }
.edu-meta { color: #cfcfcf; font-size: 1.4rem; }

.reveal { opacity:0; transform: translateY(12px); transition: .5s ease; }
.reveal.is-in { opacity:1; transform:none; }

#skills { scroll-margin-top: 120px; }

.skills {
  padding: 6rem 9% 6rem;
  background: black;
}

.skills-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

.skill-card {
  background: linear-gradient(#0f0f0f,#0f0f0f) padding-box,
              linear-gradient(140deg, #b74b4b, #8a3b3b 60%, #b74b4b) border-box;
  border-radius: 1.5rem;
  border: 1px solid transparent;
  padding: 2.4rem;
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(183, 75, 75, 0.35);
}

.skill-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-card i {
  color: #b74b4b;
  font-size: 2rem;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
}

.skill-card li {
  font-size: 1.6rem;
  color: #e5e5e5;
  margin-bottom: 0.6rem;
}

/* links inside skill cards */
.skill-card a {
  color: #b74b4b;
  text-decoration: none;
  border-bottom: 1px dashed rgba(183, 75, 75, 0.6);
}

.skill-card a:hover {
  border-bottom-style: solid;
}

/* Mobile: stack skill cards */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
#experiences { scroll-margin-top: 120px; }

.experience {
  padding: 6rem 9% 6rem;
  background: black;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

/* vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2a2a2a;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b74b4b;
  box-shadow: 0 0 12px rgba(183, 75, 75, 0.9);
}

.timeline-date {
  font-size: 1.4rem;
  color: #cfcfcf;
  margin-left: 2.4rem;
  margin-bottom: 0.6rem;
}

.timeline-content {
  margin-left: 2.4rem;
  padding: 1.6rem 1.8rem;
  border-radius: 1.2rem;
  background: #0f0f0f;
  border: 1px solid rgba(183, 75, 75, 0.35);
  box-shadow: 0 0 18px rgba(183, 75, 75, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(183, 75, 75, 0.4);
  border-color: #b74b4b;
}

.timeline-content h3 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.timeline-meta {
  font-size: 1.4rem;
  color: #cfcfcf;
  margin-bottom: 0.8rem;
}

.timeline-content p {
  font-size: 1.5rem;
  color: #e5e5e5;
  line-height: 1.5;
}

/* links in timeline */
.timeline-content a {
  color: #b74b4b;
  text-decoration: none;
  border-bottom: 1px dashed rgba(183, 75, 75, 0.6);
}

.timeline-content a:hover {
  border-bottom-style: solid;
}

/* Mobile tweaks */
@media (max-width: 700px) {
  .timeline {
    padding-left: 1.8rem;
  }
  .timeline::before {
    left: 9px;
  }
  .timeline-dot {
    left: 2px;
  }
  .timeline-content {
    margin-left: 2rem;
  }
}

#role-text {
    color: #b74b4b;
}