:root {
  --retro-brown: #804D37;
  --retro-blue: #43C6C3;
  --retro-offwhite: #121212;
  --retro-yellow: #F2C749;
  --retro-red: #F75A33;
  --background-opacity: rgba(32, 32, 32, 0.9);
  --text-dark: #f0f0f0;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--retro-offwhite);
  color: var(--text-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--background-opacity);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Logo */
#logo {
  font-size: 1.5rem;
  font-weight: bold;
  background-image: linear-gradient(to top, #fff 0%, #43C6C3 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  cursor: pointer;  
  text-decoration: none;
}

/* Nav Links */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--retro-blue);
}

nav a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--retro-blue);
  left: 0;
  bottom: -4px;
}

/* Mobile Menu Toggle - HIDDEN on desktop */
#mobile-menu {
  display: none;
}

/* Hamburger bars */
.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 4px 0;
  transition: 0.3s ease;
}



/* Home Section */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-section {
  position: relative;
  height: 100vh;
  background-color: #1e1e1e;
  overflow: hidden;
  color: white;
}

.home-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  height: 100%;
  padding: 2rem;
}

.home-text {
  animation: slideInLeft 1s ease-out forwards;
  flex: 1;
  color: white;
  max-width: 600px;
}

.home-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home-text h1 span {
  color: var(--retro-yellow);
}

.home-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--retro-blue);
}

.typewriter-text {
  color: var(--retro-blue);
  font-weight: bold;
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
}

.home-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.home-socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  z-index: 1;
  position: relative;
}

.home-socials a {
  font-size: 1.4rem;
  color: white;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.home-socials a:hover {
  background: var(--retro-yellow);
  color: #121212;
  border-color: var(--retro-yellow);
}

.home-text .btn {
  padding: 10px 20px;
  background-color: var(--retro-brown);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
  margin-bottom: 5rem;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: var(--retro-yellow);
  color: #121212;
}

.home-image {
  animation: slideInRight 1s ease-out forwards;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-image img {
  /*max-width: 300px;
  width: 100%;
  border: 1px solid var(--retro-blue);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);*/

  max-width: 300px;
  width: 100%;
  display: block;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--retro-blue);
  box-shadow: 0 0 12px rgba(9, 104, 126, 0.6);
}


/* About Section */
.about-section {
  padding: 6rem 2rem;
  background-image: url('images/MyselfBackground.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
  z-index: 1;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.8);
  z-index: -1;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--retro-blue);
}

.about-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #ddd;
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text ul li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #ccc;
}

.about-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img img {
  max-width: 100%;
  max-height: 350px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

/* Mobile Responsive */
@media (max-width: 640px) {

  nav ul {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: var(--retro-offwhite);
    display: none;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav a {
    padding: 1rem 0;
    font-size: 1.2rem;
  }

  .home-socials {
    display: none;
  }

  /* Show hamburger on mobile only */
  #mobile-menu {
    display: flex;
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translate(-50%);
    flex-direction: column;
    align-items: flex-end;
    z-index: 1001;
  }

  /* Animate hamburger */
  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .home-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;      
    padding-top: 100px;           
    padding-bottom: 2rem;
    gap: 2rem;                  
  }

  .home-text {
    max-width: 100%;
  }

  .home-text h1 {
    font-size: 2rem;
  }

  .home-text h2 {
    font-size: 1.2rem;
  }

  .home-image {
    margin-top: 2rem;
  }

  .home-image img {
    max-width: 200px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    max-height: 250px;
  }
}


/* Resume Section */
.resume-section {
  background: #121212;
  padding: 6rem 2rem;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.resume-section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--retro-blue);
  text-align: center;
}


.resume-subsection {
  width: 100%;
  max-width: 1100px;
  padding: 2rem;
  background: #1e1e1e;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease forwards;
}

.resume-subsection:nth-child(even) {
  background: #191919;
}

.resume-subsection:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.resume-subsection h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--retro-yellow);
  text-align: center;
}

.resume-entry {
  margin-bottom: 1.5rem;
  text-align: center;
}

.resume-entry h4 {
  font-size: 1.2rem;
  color: var(--retro-blue);
}

.resume-entry h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--retro-yellow);
}

.resume-entry p {
  font-size: 0.8rem;
  font-weight: bold;
  color: #ccc;
}

.resume-entry ul li {
  font-size: 1rem;
  line-height: 1.6;
  list-style: none;
  color: #ddd;
}

/* Download CV Button */
.download-cv {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.download-cv a {
  background-color: var(--retro-brown);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-cv a:hover {
  background-color: var(--retro-blue);
  color: black;
}

/* Skills SubSection */
.skills-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2rem;
  color: var(--retro-blue);
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.skill-icon:hover {
  transform: scale(1.2);
  color: var(--retro-yellow);
}

.skill-icon span {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #e0e0e0;
}

/* Soft Skills Pills */
.soft-skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}

.soft-skills li {
  background: var(--retro-blue);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.soft-skills li:hover {
  background: var(--retro-yellow);
  color: black
  ;
}

/* Tooltip Animation */
.skill-icon[title] {
  position: relative;
}

.skill-icon[title]::after {
  content: attr(title);
  position: absolute;
  bottom: -2rem;
  background: var(--retro-blue);
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.skill-icon:hover::after {
  opacity: 1;
  transform: translateY(0);
}

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


/* Projects Section */
/*.projects-section {
  background: #1a1a1a;
  padding: 6rem 2rem;
  color: #f0f0f0;
}*/

.projects-section {
  padding: 6rem 2rem;
  background-image: url('images/MyselfBackgroundNot.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
  color: white;
  overflow: hidden;
}

.projects-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.7); 
  z-index: 0;
}

.projects-section * {
  position: relative;
  z-index: 2;
}


.projects-section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--retro-blue);
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
}

.project-card {
  background-color: #232323;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: #eaeaea;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.project-card h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--retro-yellow);
}

.project-card p {
  font-size: 0.95rem;
  margin: 1rem 0;
  color: #ccc;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-links a {
  text-decoration: none;
  color: var(--retro-blue);
  font-weight: bold;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: var(--retro-yellow);
}

.project-links .btn {
  background-color: var(--retro-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}


/* Contact Section */
.contact-section {
  background: #111;
  padding: 6rem 2rem;
  color: #eaeaea;
}


.contact-container {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h2,
.contact-form h2 {
  color: var(--retro-blue);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #ccc;
}

.contact-info a {
  color: var(--retro-blue);
  text-decoration: none;
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #222;
  border: 1px solid #444;
  border-radius: 50%;
  color: var(--retro-blue);
  font-size: 1.3rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--retro-yellow);
  color: #fff;
  border-color: var(--retro-yellow);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1rem;
  background: #1e1e1e;
  color: #eee;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--retro-blue);
}

.contact-form .btn {
  background: var(--retro-blue);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  width: fit-content;
}

.contact-form .btn:hover {
  background: var(--retro-brown);
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }
}


/* Footer Styles */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-container p {
  margin-bottom: 0.8rem;
  color: #aaa;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--retro-blue);
}
