/* GENERAL */

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

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #0f1419;
  color: #e8e8e8;
}

html {
  scroll-behavior: smooth;
}

p {
  color: #e8e8e8;
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: #00d4ff;
  text-decoration: none;
  text-decoration-color: #00d4ff;
}

a:hover {
  color: #00f0ff;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #00f0ff;
}

.logo {
  font-size: 2rem;
  color: #ffffff;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #e8e8e8;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1a2332;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: #e8e8e8;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: space-between;
  gap: 6rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  flex-shrink: 0;
}

.section__text {
  align-self: center;
  text-align: center;
  max-width: 520px;
  margin-left: 4rem;
}

.section__text p {
  font-weight: 600;
  color: #e8e8e8;
}

.section__text__p1 {
  text-align: center;
  color: #00d4ff;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  color: #ffffff;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
  transition: all 300ms ease;
}

.icon:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(0, 240, 255, 1));
}

/* Checkmark icons in articles */
article .icon {
  filter: invert(1) brightness(2.2) contrast(1.3) drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

article .icon:hover {
  filter: invert(1) brightness(2.5) contrast(1.5) drop-shadow(0 0 12px rgba(0, 240, 255, 1));
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: #00d4ff 0.1rem solid;
  color: #e8e8e8;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: #00d4ff;
  color: #0f1419;
}

.btn-color-1:hover {
  background: #00f0ff;
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: #00f0ff 0.1rem solid;
  color: #00f0ff;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: #1a2332;
  border-radius: 2rem;
  border: #00d4ff 0.1rem solid;
  text-align: center;
  color: #e8e8e8;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: #00d4ff;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: #00d4ff;
  background: #1a2332;
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: #ffffff;
}

.project-btn {
  color: #e8e8e8;
  border-color: #00d4ff;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: #00d4ff 0.1rem solid;
  background: #1a2332;
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.8s ease-out;
}

/* STATS SECTION */
#stats {
  position: relative;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1000px;
}

.stat-card {
  background: #1a2332;
  border: 2px solid #00d4ff;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 300ms ease;
  cursor: default;
}

.stat-card:hover {
  background: #243445;
  border-color: #00f0ff;
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #e8e8e8;
  font-size: 1.1rem;
}

/* WORK EXPERIENCE TIMELINE */
#work {
  position: relative;
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 800px;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: #00d4ff;
  border: 3px solid #0f1419;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
  position: relative;
}

.timeline-marker::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(180deg, #00d4ff, transparent);
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::after {
  display: none;
}

.timeline-content {
  background: #1a2332;
  border: 1px solid #00d4ff;
  border-radius: 1rem;
  padding: 1.5rem;
  flex: 1;
  transition: all 300ms ease;
}

.timeline-content:hover {
  background: #243445;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.timeline-content h3 {
  color: #00d4ff;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.timeline-content .company {
  color: #00f0ff;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.timeline-content .description {
  color: #e8e8e8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags .tag {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 0.4rem 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.85rem;
  border: 1px solid #00d4ff;
  transition: all 300ms ease;
  cursor: default;
}

.tech-tags .tag:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: scale(1.05);
}

/* PROJECT DESCRIPTIONS */
.project-description {
  color: #e8e8e8;
  font-size: 0.95rem;
  margin: 1rem 0;
  line-height: 1.6;
  min-height: 60px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tech span {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  border: 1px solid #00d4ff;
}

/* ACHIEVEMENTS SECTION */
#achievements {
  position: relative;
}

.achievements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.achievement-card {
  background: #1a2332;
  border: 2px solid #00d4ff;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 300ms ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.achievement-card:nth-child(1) {
  animation-delay: 0.1s;
}

.achievement-card:nth-child(2) {
  animation-delay: 0.2s;
}

.achievement-card:nth-child(3) {
  animation-delay: 0.3s;
}

.achievement-card:nth-child(4) {
  animation-delay: 0.4s;
}

.achievement-card:hover {
  background: #243445;
  border-color: #00f0ff;
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.achievement-card h3 {
  color: #00d4ff;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.achievement-card p {
  color: #e8e8e8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.achievement-card a {
  color: #00f0ff;
  font-weight: 600;
  transition: all 300ms ease;
}

.achievement-card a:hover {
  text-decoration: underline;
}

/* CONTACT SUBTITLE */
.contact-subtitle {
  text-align: center;
  color: #e8e8e8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 2rem;
  line-height: 1.7;
}

/* ENHANCED HOVER EFFECTS */
.details-container {
  transition: all 300ms ease;
}

.details-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.15);
}

.color-container {
  transition: all 300ms ease;
}

.color-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

/* SMOOTH SCROLL BEHAVIOR */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* SKILL ARTICLE ENHANCEMENT */
article {
  transition: all 300ms ease;
}

article:hover {
  transform: scale(1.05);
}

/* BUTTON ENHANCEMENTS */
.btn {
  transition: all 300ms ease;
}

.btn:active {
  transform: scale(0.98);
}

/* SECTION VISIBILITY OPTIMIZATION */
section {
  will-change: opacity, transform;
}
