/* GENERAL */

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

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

:root {
  --primary-color: #e67e22;
  --primary-hover: #f39c12;
  --bg-dark: #0f0d0d;
  --bg-light: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --transition-speed: 0.3s;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0f0d0d 0%, #1a1a1a 50%, #3d1f0e 100%);
  background-attachment: fixed;
  color: var(--text-light);
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--text-muted);
}

/* TRANSITION */

a,
.btn {
  transition: all var(--transition-speed) 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: #e67e22;
  text-decoration: none;
  text-decoration-color: transparent;
}

a:hover {
  color: #f39c12;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #e67e22;
}

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

.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: #e67e22;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1a1a1a;
  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: black;
  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 {
  position: relative;
  padding: 4rem 2rem;
  min-height: fit-content;
  margin: 0 auto;
  max-width: 1000px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */
#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 90vh;
  padding-top: 4vh;
  position: relative;
  overflow: hidden;
}

#profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.section__pic-container::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  opacity: 0.3;
}

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

.section__pic-container img {
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(230, 126, 34, 0.2);
  transition: transform 0.3s ease;
}

.section__pic-container img:hover {
  transform: scale(1.02);
}

.section__text {
  align-self: center;
  text-align: center;
  position: relative;
}

.section__text__p1 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  display: inline-block;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.title {
  font-size: 2.4rem;
  margin: 0.5rem 0 1.5rem;
  color: var(--primary-color);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  text-shadow: 0 2px 10px rgba(230, 126, 34, 0.2);
  font-weight: 600;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.btn {
  font-weight: 600;
  padding: 1rem 2rem;
  width: auto;
  min-width: 10rem;
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn:hover::before {
  opacity: 1;
}

.btn-color-1 {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-color-2 {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-color-2:hover {
  color: var(--text-light);
  border-color: transparent;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1s;
}

.icon {
  cursor: pointer;
  height: 2.5rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.icon:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 5px 10px rgba(230, 126, 34, 0.3));
}

/* ABOUT SECTION */
#about {
  padding: 4rem 2rem;
}

.about-details-container {
  max-width: 900px;
  gap: 2rem;
}

.text-container {
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.text-container p {
  font-size: 1rem;
  line-height: 1.7;
}

.education-container {
  padding: 1.8rem;
}

.education-container h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.education-item {
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.education-item p {
  font-size: 0.95rem;
}

/* TECHNICAL SKILLS SECTION - TERMINAL STYLE */
#technical-skills {
  padding: 2.5rem 1rem;
  background: var(--bg-dark);
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  max-width: 1100px;
  margin: 2rem auto;
  font-family: 'Fira Mono', 'Consolas', 'Courier New', monospace;
}

.technical-skills-container h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 2rem 1.5rem;
  background: none;
  border: none;
  padding: 0;
}

.skill-box {
  background: var(--bg-light);
  border-left: 6px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.1rem 1.5rem;
  color: var(--text-light);
  font-family: inherit;
  box-shadow: none;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 1rem;
}

.skill-category {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: inherit;
}

.skill-details {
  color: var(--text-muted);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
}

@media screen and (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
  }
}

@media screen and (max-width: 600px) {
  #technical-skills {
    padding: 1rem 0.2rem;
    border-radius: 10px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1rem;
  }
  .skill-box {
    padding: 1rem 1rem 1rem 1.2rem;
    min-height: 60px;
  }
  .technical-skills-container h2 {
    font-size: 1.1rem;
  }
}

/* EXPERIENCE SECTION */
#experience {
  padding: 4rem 2rem;
}

.experience-details-container {
  max-width: 900px;
}

.experience-sub-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.details-container {
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.details-container:hover {
  transform: translateX(8px);
  background: rgba(26, 26, 26, 0.9);
  border-color: rgba(230, 126, 34, 0.3);
}

.details-container:last-child {
  margin-bottom: 0;
}

.details-container p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0.8rem 0 0;
}

/* PROJECTS SECTION - UPDATED LAYOUT */
#projects {
  position: relative;
  padding-top: 3vh;
  min-height: 70vh;
}

.portfolio-container {
  display: flex;
  margin-top: 2rem;
}

.projects-section {
  flex: 1;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 1rem;
  padding: 1.5rem;
  border: #e67e22 0.1rem solid;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #e67e22;
}

.section-icon {
  height: 2rem;
  width: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #e67e22;
}

/* Projects styling */
.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-item {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(230, 126, 34, 0.1);
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(230, 126, 34, 0.3);
}

.project-icon {
  flex: 0 0 2.5rem;
}

.project-icon img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.project-content {
  flex: 1;
}

.project-content h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

.project-type {
  font-size: 0.75rem !important;
  color: #999999 !important;
}

.view-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: rgba(230, 126, 34, 0.1);
  transition: all 0.3s ease;
}

.view-more:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Media queries for portfolio layout */
@media screen and (max-width: 1200px) {
  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .experience-details-container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .text-container,
  .education-container,
  .details-container,
  .skills-grid,
  .contact-info-upper-container {
    padding: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    padding: 1.5rem;
  }

  .skill-box {
    padding: 1rem;
  }

  .skill-category {
    font-size: 1rem;
  }

  .skill-details {
    font-size: 0.9rem;
  }

  .experience-sub-title {
    font-size: 1.1rem;
  }

  .details-container p,
  .text-container p {
    font-size: 0.95rem;
  }
}

.color-container {
  border-color: #e67e22;
  background: #1a1a1a;
}

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

.project-btn {
  color: #e67e22;
  border-color: #e67e22;
}

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

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

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT SECTION */
#contact {
  position: relative;
  padding-top: 3vh;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info-upper-container {
  max-width: 650px;
  width: 100%;
  margin: 2rem auto 1.5rem auto;
  padding: 1.2rem 2.5rem;
  background: var(--bg-dark);
  border: 2px solid var(--primary-color);
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.contact-icon {
  width: 2.2rem;
  height: 2.2rem;
  background: var(--text-light);
  border-radius: 50%;
  padding: 0.3rem;
  object-fit: contain;
  filter: none;
}

.contact-info-container p, .contact-info-container a {
  color: var(--text-light);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  margin: 0;
}

.contact-info-container a:hover {
  color: var(--primary-color);
}

@media screen and (max-width: 700px) {
  .contact-info-upper-container {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0.7rem;
    max-width: 98vw;
    border-radius: 14px;
    gap: 1rem;
  }
  .contact-info-container {
    justify-content: flex-start;
  }
}

/* FOOTER SECTION */

footer {
  padding: 2rem 1rem;
  background: rgba(15, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.social-link {
  transition: transform var(--transition-speed) ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.footer-icon {
  width: 1.75rem;
  height: 1.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease;
}

.technical-skills-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* HIRE ME POPUP BANNER */
.hireme-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: none;
  animation: slideDown 0.7s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hireme-popup-content {
  margin: 0.7rem 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 70%, #3d1f0e 100%);
  border: 1.5px solid var(--primary-color);
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem 0.6rem 1.2rem;
  min-width: 220px;
  max-width: 600px;
  width: 90vw;
  gap: 1rem;
  font-family: 'Poppins', sans-serif;
}

.hireme-popup-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.3rem;
}

.hireme-title {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 700;
}

.hireme-desc {
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 400;
}

.hireme-btn {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 1.2rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 1rem;
  transition: background 0.2s;
  font-family: inherit;
}
.hireme-btn:hover {
  background: var(--primary-hover);
}

.hireme-close {
  color: var(--text-muted);
  font-size: 1.3rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.hireme-close:hover {
  color: var(--primary-color);
}

@media (max-width: 700px) {
  .hireme-popup-content {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.4rem;
    gap: 0.7rem;
    min-width: 0;
    width: 98vw;
    max-width: 98vw;
  }
  .hireme-btn {
    margin-left: 0;
    width: 100%;
  }
  .hireme-close {
    align-self: flex-end;
    margin-left: 0;
  }
}
