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

/* Global variables */
:root {
  --primary: #12bdff;
  --primary-hover: #0c8ec2;
  --dark-primary: #1b1f24;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-primary);
  padding: 25px;
  color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
}

header .logo {
  color: var(--primary);
  margin-right: 130px;
  font-weight: 600;
  letter-spacing: 2px;
}

header ul {
  display: flex;
  list-style: none;
}

header ul li {
  margin-right: 30px;
}

header ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease 0s;
}

header ul li a:hover {
  color: var(--primary);
  transition: all 0.3s ease 0s;
}

/* Hero Section */
section.hero-section {
  background-color: var(--dark-primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 100px 120px 50px 200px;
}

.hero-section__title {
  font-size: 48px;
}

.hero-section__title span {
  color: var(--primary);
}

.hero-section__desc {
  color: #c4c4c4;
}

.hero-img img {
  margin-left: 30px;
  border-radius: 15px;
}

.social-icons {
  margin: 18px 0;
}

ul.social-icons {
  list-style: none;
  display: flex;
}

.social-icons li {
  margin-right: 15px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  padding: 8px 12px;
  transition: 0.3s;
}

/* FACEBOOK */

.social-icons li:nth-child(1):hover {
  background: linear-gradient(45deg, #1877F2, #3b5998);
  border-color: #1877F2;
}

/* LINKEDIN */

.social-icons li:nth-child(2):hover {
  background: linear-gradient(45deg, #0077B5, #0A66C2);
  border-color: #0077B5;
}

/* INSTAGRAM */

.social-icons li:nth-child(3):hover {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  border-color: #dd2a7b;
}

/* GMAIL */

.social-icons li:nth-child(4):hover {
  background: linear-gradient(45deg, #EA4335, #FBBC05, #34A853, #4285F4);
  border-color: #EA4335;
}

.social-icons li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease 0s;
}

.hero-buttons button {
  margin-right: 10px;
}

.hero-buttons button>a {
  text-decoration: none;
  color: #fff;
}

/* buttons */
.btn {
  padding: 10px 20px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}

.btn.btn-primary {
  background-color: var(--primary);
  color: var(--dark-primary);
  font-weight: 600;
}

.btn.btn-primary:hover {
  background-color: var(--primary-hover);
  transition: all 0.3s ease 0s;
}

.btn-dark-outlined {
  background-color: var(--dark-primary);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 5px;
  font-weight: 600;
}

.btn-dark-outlined:hover {
  cursor: pointer;
  background-color: var(--primary);
  color: #fff !important;
  transition: all 0.3s ease 0s;
}

/* About Section */
section.about-section {
  background-color: #22282f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.about-img img {
  width: 250px;
  height: 250px;
  padding: 2px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 3px 5px 30px #03506e;
  object-fit: cover;
}

.about-content {
  margin-left: 100px;
  max-width: 600px;
}

.about-content h2 {
  font-size: 33px;
}

.about-content h2>span {
  color: var(--primary);
}

.about-content p {
  color: #c4c4c4;
  font-size: 15px;
}

.about-content button {
  margin-top: 30px;
  font-size: 15px;
}

.about-content button>a {
  text-decoration: none;
  color: var(--dark-primary);
}

/* Projects Section */
section.projects-section {
  background-color: var(--dark-primary);
  color: #fff;
  padding: 50px 120px;
}

.projects-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
}

.projects-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
}

.projects-section h2>span {
  color: var(--primary);
}

.projects-cards {
  display: flex;
}

.projects-card-box {
  width: 33.33%;
  margin: 35px 10px;
  padding: 33px;
  background-color: #22282f;
  border-radius: 5px;
  transition: all 0.5s ease 0s;
}

.projects-card-box:hover {
  box-shadow: 3px 5px 20px #03506e;
  transition: all 0.5s ease 0s;
  transform: translateY(-2px);
}

.projects-card-box__icons>i {
  font-size: 30px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  padding: 20px;
}

.projects-card-box:hover .projects-card-box__icons>i {
  color: var(--primary);
  background-color: var(--dark-primary);
  transition: all 0.5s ease 0s;
}

.projects-card-box__desc h4 {
  font-size: 18px;
  margin: 18px 0 10px 0;
}

.projects-card-box__desc p {
  font-size: 14px;
  color: #c4c4c4;
}

.projects-card-box__buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-card-box__buttons button {
  background-color: #22282f;
}

.projects-card-box__buttons button>a {
  text-decoration: none;
  font-size: 13px;
  color: #fff;
}

/* Contact Section */
section.contact-section {
  background-color: #22282f;
  color: #fff;
  text-align: center;
  padding: 30px;
}

.contact-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
}

.contact-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
}

.contact-section h2>span {
  color: var(--primary);
}

.contact-section form div>input,
textarea {
  background-color: #c4c4c4;
  width: 300px;
  padding: 5px 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
  outline: none;
  resize: none;
  font-family: "Poppins", sans-serif;
}

.contact-section form div>input,
.contact-section textarea {
  width: 100%;
}

.contact-section form div>button {
  font-size: 14px;
}

.contact__github {
  margin-top: 15px;
}

.contact__github button {
  padding: 10px 44px;
  background-color: #171515;
  font-size: 14px;
}

.contact__github button>a {
  text-decoration: none;
  color: #fff;
}

.contact__github button>a>i {
  font-size: 16px;
}

.contact__github button:hover {
  background-color: #030303;
}

.contact-left {
  max-width: 420px;
}

.contact-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 15px;
}

.contact-left p {
  color: #c4c4c4;
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item i {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #8fb6d8, #d6bfa2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.contact-item h4 {
  margin: 0;
  font-size: 16px;
}

.contact-item span,
.contact-item a {
  color: #9ec9ff;
  font-size: 14px;
  text-decoration: none;
}

.contact-social {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.3s;
}

.contact-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* LINKEDIN */

.contact-social a:nth-child(1):hover {
  background: linear-gradient(45deg, #0077B5, #0A66C2);
  border-color: #0077B5;
}

/* GITHUB */

.contact-social a:nth-child(2):hover {
  background: linear-gradient(45deg, #333, #6e5494);
  border-color: #333;
}

/* GMAIL */

.contact-social a:nth-child(3):hover {
  background: linear-gradient(45deg, #EA4335, #FBBC05, #34A853, #4285F4);
  border-color: #EA4335;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1100px;
  margin: auto;
  margin-top: 40px;
}

.contact-right {
  flex: 1;
  max-width: 520px;
}

.contact-left {
  flex: 1;
  max-width: 420px;
  text-align: left;
}



/* Footer */
footer {
  background-color: var(--dark-primary);
  color: gray;
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
}

footer a {
  text-decoration: none;
  color: var(--primary);
}

.footer-buttons {
  margin-top: 10px;
}

.footer-buttons button {
  padding: 8px 10px;
  margin-right: 5px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px;
}

.footer__theme1 {
  color: var(--primary);
  background-color: transparent;
  border: 1px solid var(--primary);
  transition: all 0.5s ease 0s;
}

.footer__theme1:hover {
  background-color: var(--primary);
  color: #fff;
  transition: all 0.5s ease 0s;
}

.footer__theme2 {
  color: #ff5555;
  background-color: transparent;
  border: 1px solid #ff5555;
  transition: all 0.5s ease 0s;
}

.footer__theme2:hover {
  background-color: #ff5555;
  color: #fff;
  transition: all 0.5s ease 0s;
}

.footer__theme3 {
  color: #ff29e4;
  background-color: transparent;
  border: 1px solid #ff29e4;
  transition: all 0.5s ease 0s;
}

.footer__theme3:hover {
  background-color: #ff29e4;
  color: #fff;
  transition: all 0.5s ease 0s;
}

.active-theme {
  background-color: #12bdff;
  color: white;
}

/* Media queries */
@media only screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header .logo {
    margin: auto;
  }

  header ul {
    margin-top: 10px;
  }

  /* Hero Section */
  section.hero-section {
    flex-direction: column;
    padding: 40px;
    padding-top: 130px;
  }

  .hero-img img {
    display: none;
  }

  /* About Section */
  section.about-section {
    flex-direction: column;
    padding: 40px;
  }

  .about-content {
    margin-left: 0;
    margin-top: 30px;
  }

  /* Projects Section */
  section.projects-section {
    padding: 40px;
  }

  .projects-cards {
    margin-top: 15px;
    flex-direction: column;
  }

  .projects-card-box {
    width: 100%;
    margin: 10px 0;
  }

  /* Contact Section */
  .contact-section form div input,
  textarea {
    width: 100%;
  }
}

/* SCROLL ANIMATION */

.reveal>* {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* SKILLS SECTION */

.skills-section {
  background: #0f1720;
  color: #fff;
  padding: 60px 120px;
}

.skills-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
}

.skills-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
}

.skills-section h2 span {
  color: var(--primary);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skill p {
  margin-bottom: 8px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 8px;
  width: 0;
  background: linear-gradient(90deg, #7dd3fc, #facc15);
  border-radius: 10px;
  transition: width 2s ease;
}

/* JOURNEY SCROLL ANIMATION */

.timeline-item {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* LANGUAGE SECTION */

.language-title {
  margin-top: 60px;
}

.language-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.language-title {
  text-align: center;
  margin-top: 70px;
}

.language-card {
  background: #222;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.language-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.language-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #facc15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: auto;
  margin-bottom: 20px;
  color: #000;
}

.language-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.language-card p {
  font-size: 14px;
  color: #c4c4c4;
}

/* Mobile */

@media (max-width:768px) {

  .language-container {
    grid-template-columns: 1fr;
  }
}

/* JOURNEY SECTION */

.journey-section {
  background: #22282f;
  color: #fff;
  padding: 80px 120px;
}

.journey-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 60px;
}

.journey-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
}

.journey-section h2 span {
  color: var(--primary);
}

.journey-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 30px;
  margin-left: 195px;
  color: #e6d3b3;
}

.journey-label i {
  color: var(--primary);
  font-size: 26px;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-content {
  background: #22282f;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timeline-content .year {
  background: #d9a066;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
  color: #000;
}

.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
}

.timeline-content h4 {
  color: var(--primary);
  margin-top: 5px;
  font-size: 16px;
}

.timeline-content p {
  margin-top: 10px;
  color: #c4c4c4;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.journey-section {
  font-family: 'Playfair Display', serif;
}

/* Mobile */

@media(max-width:768px) {

  .timeline {
    padding-left: 10px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  /* CONTACT MOBILE FIX */

  .contact-section {
    padding: 40px 20px;
  }

  .contact-container {
    flex-direction: column;
    gap: 35px;
  }

  .contact-left {
    max-width: 100%;
  }

  .contact-right {
    max-width: 100%;
    width: 100%;
  }

  .contact-right form {
    width: 100%;
  }

  .contact-section input,
  .contact-section textarea {
    width: 100%;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skills-section {
    padding: 40px 20px;
  }

  /* JOURNEY MOBILE FIX */

  .journey-section {
    padding: 60px 20px;
  }

  .journey-label {
    margin-left: 0;
    justify-content: center;
    font-size: 20px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 40px;
    margin-bottom: 35px;
  }

  .timeline-dot {
    left: 2px;
    top: 10px;
  }

  .timeline-content {
    padding: 18px;
  }

  .timeline-content h3 {
    font-size: 18px;
  }

  .timeline-content h4 {
    font-size: 14px;
  }

  .timeline-content p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* MOBILE NAVBAR FIX */

  header {
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
  }

  header .logo {
    margin: 0;
    margin-bottom: 10px;
  }

  header ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  header ul li {
    margin-right: 0;
  }

  header ul li a {
    font-size: 14px;
  }

}