/* @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap'); */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --svg-color: black;
}

html {
  scroll-behavior: auto; /* Disable default smooth scroll for Lenis */
}

body {
  background: #000305;
  font-family: var(--font-primary, "Poppins", sans-serif);
  color: white;
}
header {
  background: #000305;
  /* padding-bottom: 15em; */
  color: white;
}
a {
  color: white;
}
.main-con {
  width: 100%;

}
.header-wrapper {
  margin-top: 10em;
  margin-right: auto;
  margin-left: auto;
  width: 70%;
  margin-bottom: 3rem;
}

.hero {
  padding: 2em 0;
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-text {
  position: relative;
  margin-right: 2em;
}
.name-headers img{
  margin-bottom: 10px;
}
.name-headers h1 {
  font-size: 5em;
  line-height: 1;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 700;
  /* width: 40%; */
  /* font-family: "Bebas Neue"; */
  /* transform:  translateY(115px); */
  /* transition: transform 0.5s; */
  /* clip-path: polygon(0 44%, 100% 43%, 100% 99%, 0% 100%); */
}
.name-headers h2 {
  color: white;
  font-size: 2.5em;
  font-weight: 500;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
}
.about-story p {
  margin-top: 1em;
  font-size: 1.2em;
  font-family: var(--font-secondary, "Inter", sans-serif);
  line-height: 1.6;
}
.about-story a{
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 1.2em;
}

img.classydev-pic {
  max-width: 70%;
  width: 650px;
  border-radius: 92% 91% 10% 97% / 96% 100% 0% 0%;
  flex: 1;
  height: 100%;
  /* margin-top: -35em; */
  position: relative;
  top: 0;
} 
.image-wrap {
  position: relative;
  display: inline-block;
}
.image-dot{
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  bottom: 20px;
  right: 0px;
  border: 2px solid rgba(255, 255, 255, 1);
}
.inverted {
  	clip-path: path("M15,0H105A15,15 0,0,1 120,15V85A10,10 0,0,1 110,95H105A10,10 0,0,0 95,105V110A10,10 0,0,1 85,120H15A15,15 0,0,1 0,105V15A15,15 0,0,1 15,0Z");

	/* clip-path: path("M20,0H80A20,20 0,0,1 120,20V70A10,10 0,0,1 90,80H90A10,10 0,0,0 80,90V90A10,10 0,0,1 70,120H10A10,10 0,0,1 0,90V20A20,20 0,0,1 20,0Z"); */
	width: 120px;
	height: 120px;
  /* border-radius: 20px; */
	/* background-color: #513D34; */
	aspect-ratio: 1 / 1;
  object-fit: cover;
}
.edu-work-con {
  width: 70%;
  margin: auto;
  font-size: 1.5em;
  line-height: 2em;
  display: flex;
  flex-direction: column;
}
.edu-work-con h2 {
  font-size: 3.5em;
  line-height: 1em;
}
section#work {
  width: 70%;
  margin-left: auto;
}
.each-work h4 {
  color: rgba(0, 0, 0, 0.2);
  -webkit-text-stroke: 1px white;
}
.each-work a {
  color: white;
  transition: all 0.7s ease-in-out;
  display: flex;
  align-items: center;
}
a:hover {
  color: rgba(250, 240, 240, 0.616);
}
button{
  background: transparent;
  border: none;
  color: white;
  font-size: 1em;
  cursor: pointer;
  font-family: var(--font-primary, "Poppins", sans-serif);
  margin-top: 4em;
}
button:hover {
  color: rgba(250, 240, 240, 0.616);
}
img.company-logo {
  border-radius: 50%;
  max-width: 50px;
  margin-right: 10px;
}
.zuri-style {
  background: white;
  border-radius: 50%;
  max-width: 50px;
  max-height: 50px;
  text-align: center;
  margin-right: 10px;
}
img.company-logo-zuri {
  /* border-radius: 50%; */
  max-width: 50px;
  margin-right: 10px;
  /* object-position: top; */
  object-fit: cover;
}
.each-work .date-work {
  color: white;
  font-size: 2em;
  margin: 1em; 
  margin-left: 0;
}
.faded-text {
  color: rgba(250, 240, 240, 0.2);
}

section#education {
  margin-top: 3em;
  /* width: 70%; */
  margin-right: auto;
}
.date-edu {
  color: white;
  font-size: 1.7em;
  margin: 0.5em;
}
.school {
  color: white;
  font-size: 1.4em;
  margin: 0.3em;
  margin-left: 0;
  margin-bottom: 0;
}
.certificate {
  color: rgba(0, 0, 0, 0.2);
  -webkit-text-stroke: 1px white;
  font-size: 1em;
}
#skills {
  width: 70%;
  margin: auto;
}

/* Contact Section Styles */
#contact {
  width: 70%;
  margin: auto;
  margin-top: 6em;
  padding: 3em 0;
}

#contact .contact-description {
  font-size: 1.4em;
  margin: 1em 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-family: var(--font-secondary, "Inter", sans-serif);
}

#contact .contact-content {
  display: flex;
  flex-direction: column;
}

#contact .location-info {
  font-size: 1.2em;
  opacity: 0.8;
}

#contact .social-icons {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 2em;
}

#contact .social-icons a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s ease;
}

#contact .social-icons a:hover {
  color: rgba(255, 255, 255, 0.7);
}

#contact .social-icons a svg {
  width: 20px;
  height: 20px;
}
.goodbye-wrap{
  display: flex;
  align-items: center;
}

/* Rotating Goodbye Circle Animation */
.goodbye-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4em;
}
/* Hide on mobile */
@media (max-width: 768px) {
  .goodbye-section {
    display: none;
  }
}

.rotating-circle {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circular-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
}

.circular-text-content {
  fill: rgba(255, 255, 255, 0.8);
  font-family: var(--font-, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.circle-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.circle-center:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.goodbye-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: wave 2s ease-in-out infinite;
}

.goodbye-text {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-align: center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}
.skill{
    display: flex;
    align-items: center;
}
.lang-img{
    width: 50px;
    height: 50px;
    margin: 0.5em;
}
.header-text {
  font-size: 3.5em;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 600;
}
.skill-con {
  display: grid;
  /* grid-auto-columns: 500px; */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  

  align-items: center;
  gap: 20px;
}
.skill {
  margin: 2em;
  margin-bottom: 0;
  font-size: 1.7em;
  color: rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 1px white;
}
.project-con {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  grid-gap: 2rem;
  color: #000;
  margin-top: 6rem;
}
.each-project {
  position: relative;
  padding: 2rem;
  min-height: 20rem;
  height: auto; /* Allow content to determine height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  outline: 2px solid transparent;
  border: 2px solid transparent;


}

.each-project h3.project-name {
  font-size: 1.5em;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.each-project .project-description {
  font-family: var(--font-secondary, "Inter", sans-serif);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.each-project .tech-names {
  margin-top: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.each-project .tech-names span {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-weight: 500;
}
.each-project:nth-child(odd) {
  background: linear-gradient(30deg, #f3cbab, #feedca);
}
.each-project:nth-child(even) {
  background: linear-gradient(rgb(177, 229, 249), rgb(244, 210, 254));
}
.each-project:nth-child(3n + 0) {
  background: linear-gradient(rgb(219, 180, 243), rgb(239, 183, 215));
}
/* .each-project:nth-child(4n+1) {
    background: linear-gradient(180deg,rgb(243, 203, 171), rgb(254, 237, 202));
} */
.each-project:hover {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: none;
  background-color: #000;
}
.each-project:hover::after {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  transition: all 0.2s ease-in;
}
.each-project::after {
  content: "";
  position: absolute;
  width: 103%;
  height: 101%;
  top: 1rem;
  right: 0;
  z-index: -1;
}

.each-project .project-link-con {
  color: white;
}
.project-link-con {
  text-align: end;
}
.project-link-con a {
  text-decoration: none;
  color: white;
  margin: 0.5em;
}
.project-link-con a svg.hovered {
  fill: white;
  color: white;
}

a.check-more-btn{
  display: inline-block;
  margin-top: 2em;
}

/* Experience Timeline Styles */
#experience {
  padding: 3em 0;
  width: 70%;
  margin: auto;
}

.experience-timeline {
  position: relative;
  margin-top: 3em;
  padding-left: 2em;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  display: none; /* Hide the straight line */
}

.each-experience {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 4em;
  padding-left: 1em;
}

/* Add curved connecting lines - automatic alternating pattern */
.each-experience:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 20px;
  width: 80px;
  height: 120px;
  border: none;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 0 0 40px;
  z-index: 1;
}

/* Automatic alternating curve direction for any number of items */
/* .each-experience:nth-child(2n):not(:last-child)::after {
  border-left: none;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 0 40px 0;
  left: -35px;
} */

.experience-number {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-right: 2em;
}

.exp-id {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  position: relative;
  left: -15px;
}

.experience-content {
  flex: 1;
  background: transparent;
  padding: 2em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-top: -10px;
}

.experience-title {
  font-size: 1.8em;
  margin-bottom: 1em;
  color: white;
  font-weight: 600;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
}

.experience-title .highlight {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

.experience-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-family: var(--font-secondary, "Inter", sans-serif);
}
@media (max-width: 1200px) {
  .project-con {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

@media (max-width: 900px) {
  header {
    background: #000305;
    padding: 7em;
    color: white;
  }
  img.classydev-pic {
    max-width: 90%;
    width: 1500px;
  }
  .name-headers h1 {
    font-size: 4em;
    width: 50%;
  }
  .name-headers h2 {
    font-size: 1.5em;
  }
  .about-story p {
    font-size: 1.2em;
  }
  .contact-info h2 {
    font-size: 1.5em;
  }
  .edu-work-con h2 {
    font-size: 2.5em;
  }
  .edu-work-con {
    font-size: 1.5em;
  }
  .each-work .date-work {
    font-size: 1.5em;
  }
  .date-edu {
    font-size: 1.5em;
  }
  section#education p {
    font-size: 1em;
  }
  .school {
    color: white;
    font-size: 1.2em;
    margin: 0.3em;
    margin-left: 0;
    margin-bottom: 0;
  }
  .header-text {
    font-size: 2.5em;
  }
  .skill {
    margin: 1em;
    font-size: 1.5em;
    color: rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 1px white;
  }
  
  /* Experience responsive styles */
  #experience {
    width: 90%;
  }
  .experience-timeline {
    padding-left: 1em;
  }
  .experience-timeline::before {
    left: 35px;
  }
  .exp-id {
    width: 50px;
    height: 50px;
    font-size: 1em;
    left: -10px;
  }
  .experience-content {
    padding: 1.5em;
  }
  .experience-title {
    font-size: 1.5em;
  }
  .experience-description {
    font-size: 1em;
  }
  
  /* Curved lines responsive - automatic alternating */
  .each-experience:not(:last-child)::after {
    width: 70px;
    height: 100px;
    left: 10px;
  }
  .each-experience:nth-child(2n):not(:last-child)::after {
    left: -30px;
  }
}
@media (max-width: 850px) {
  header {
    background: #000305;
    padding: 5em;
    color: white;
  }
  .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  img.classydev-pic {
    max-width: 80%;
    width: 900px;
  }
  .project-con {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  }
  .each-project{
    max-height: 300px;
  }
}
@media (max-width: 768px) {
  header {
    background: #000305;
    padding: 3em 0;
    color: white;
  }
  .header-wrapper {
    width: 90%;
    margin: auto;
  }
  img.classydev-pic {
    margin-top: 1em;
    max-width: 90%;
    width: 500px;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
  }
  
  /* Remove old contact-info styles since it's restructured */
  
  .edu-work-con {
    margin-top: 2em;
  }
  
  /* Update contact section for mobile */
  #contact .social-icons {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
  
  #contact .contact-description {
    font-size: 1.2em;
    text-align: left;
    padding: 0 1em;
  }
  
  /* Rotating circle responsive */
  .goodbye-section {
    padding: 4em 0 3em;
  }
  
  .rotating-circle {
    width: 250px;
    height: 250px;
  }
  
  .circular-text-content {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .circle-center {
    width: 100px;
    height: 100px;
  }
  
  .goodbye-icon {
    font-size: 2rem;
  }
  
  .goodbye-text {
    font-size: 1rem;
  }
  section#work {
    width: 100%;
    margin: 0 auto;
  }
  .each-work .date-work {
    color: white;
    font-size: 1.1em;
    margin: 1em;
  }
  .each-work p {
    font-size: 0.8em;
  }
  section#education {
    padding-top: 3em;
    width: 100%;
    margin: auto;
  }
  .date-edu {
    font-size: 1.2em;
    margin: 0.5em;
  }
  section#education .details {
    font-size: 0.8em;
  }
  .school {
    font-size: 1em;
  }
  section#education .certificate {
    font-size: 0.8em;
    margin-left: 0.8em;
    margin-bottom: 0.8em;
  }
  #skills {
    width: 80%;
    margin: auto;
  }
  .skill {
    font-size: 1.2em;
    margin: 0.5em;
  }
  
  /* Experience mobile styles */
  #experience {
    width: 90%;
  }
  .experience-timeline {
    padding-left: 0.5em;
  }
  .experience-timeline::before {
    left: 25px;
  }
  .each-experience {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.5em;
  }
  .experience-number {
    margin-bottom: 1em;
    margin-right: 0;
  }
  .exp-id {
    width: 45px;
    height: 45px;
    font-size: 0.9em;
    left: -5px;
  }
  .experience-content {
    padding: 1.2em;
    margin-top: 0;
    width: 100%;
  }
  .experience-title {
    font-size: 1.3em;
    margin-bottom: 0.8em;
  }
  .experience-description {
    font-size: 0.9em;
  }
  
  /* Hide curved lines on mobile for cleaner look */
  .each-experience:not(:last-child)::after {
    display: none;
  }
}
@media (max-width: 490px) {
  .main-con {
    padding: 2em;
  }
  #skills {
    width: 90%;
    margin: auto;
  }
  .name-headers h1 {
    font-size: 3em;
    width: 50%;
  }
  
  #contact {
    width: 95%;
  }
  
  #contact .contact-description {
    font-size: 1.1em;
  }
  
  /* Rotating circle small screens */
  .rotating-circle {
    width: 200px;
    height: 200px;
  }
  
  .circular-text-content {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  
  .circle-center {
    width: 80px;
    height: 80px;
  }
  
  .goodbye-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }
  
  .goodbye-text {
    font-size: 0.9rem;
  }
  
  .goodbye-section {
    padding: 3em 0 2em;
  }
  
  .edu-work-con{
    width: 90%;
  }
  .edu-work-con h2 {
    font-size: 2em;
  }
  .lang-img{
    width: 30px;
    height: 30px;
}
  .skill{
  margin: 0.5em;
  
}
  .skill-con {
    /* display: flex;
    flex-wrap: wrap; */
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  justify-content: center;
  gap: 0px;

  }
  
  #experience {
    width: 95%;
  }
  .experience-timeline::before {
    left: 20px;
  }
  .exp-id {
    width: 40px;
    height: 40px;
    font-size: 0.8em;
    left: 0;
  }
  .experience-content {
    padding: 1em;
  }
  .experience-title {
    font-size: 1.1em;
  }
  .experience-description {
    font-size: 0.85em;
  }
}
.project-cta{
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.project-cta a>svg{
  margin-left: 10px;
}

div.word > div.word{
will-change: transform;
transform: translateY(100%);
  padding: 0rem;
}
div.word{
  overflow-y: hidden;
  vertical-align: top;
}
