/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #1A1815;
  color: #D7D3CE;
  line-height: 1.8;
  font-weight: 400;
  font-size: 1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  padding: 2rem 5%;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background-color: rgba(26, 24, 21, 0.9);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 1.2rem 5%;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-logo a:hover {
  color: #D7D3CE;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #D7D3CE;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #FFFFFF;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-resume-btn {
  background-color: #FFFFFF;
  color: #000000;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.3px;
}

.nav-resume-btn:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 100px;
  background-color: #1A1815;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 0.9s ease 0.2s backwards;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #D7D3CE;
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #FFFFFF;
  color: #000000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid #FFFFFF;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-button:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 5% 80px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 120px 5%;
  background-color: #1A1815;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 3.5rem;
  text-align: left;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.about-image-column {
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.3s backwards;
}

.profile-pic {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-pic:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.about-text-column {
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.4s backwards;
}

.about-description {
  font-size: 1.05rem;
  color: #D7D3CE;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-item {
  padding-bottom: 0;
  opacity: 0;
  animation: fadeInUp 0.9s ease backwards;
}

.about-item:nth-child(1) { animation-delay: 0.5s; }
.about-item:nth-child(2) { animation-delay: 0.6s; }
.about-item:nth-child(3) { animation-delay: 0.7s; }

.about-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.about-item p {
  font-size: 0.95rem;
  color: #C4BFBA;
  line-height: 1.7;
  font-weight: 400;
}

@media (max-width: 968px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 100px 5%;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 120px 5%;
  background-color: #1A1815;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.project-card {
  background-color: #25221F;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.4s; }
.project-card:nth-child(2) { animation-delay: 0.5s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.project-image-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #1A1815;
  aspect-ratio: 4/3;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  padding: 2.5rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.project-description {
  font-size: 0.95rem;
  color: #C4BFBA;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #D7D3CE;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
}

.project-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #D7D3CE;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.project-button-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.project-gallery-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #D7D3CE;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid rgba(215, 211, 206, 0.3);
}

.project-gallery-link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
  border-bottom-color: #FFFFFF;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 100px 5%;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-info {
    padding: 2rem;
  }
}

/* ===== SKILLS SECTION ===== */
.skills {
  padding: 120px 5%;
  background-color: #1A1815;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.skill-card {
  background-color: #25221F;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card:nth-child(1) { animation-delay: 0.5s; }
.skill-card:nth-child(2) { animation-delay: 0.6s; }
.skill-card:nth-child(3) { animation-delay: 0.7s; }
.skill-card:nth-child(4) { animation-delay: 0.8s; }

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.skill-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.skill-list li {
  font-size: 0.95rem;
  color: #C4BFBA;
  font-weight: 400;
  position: relative;
  padding-left: 1rem;
  transition: all 0.3s ease;
}

.skill-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #D7D3CE;
  font-size: 0.6rem;
  top: 0.4rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.skill-card:hover .skill-list li {
  color: #D7D3CE;
  padding-left: 1.5rem;
}

.skill-card:hover .skill-list li::before {
  opacity: 1;
}

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .skills {
    padding: 100px 5%;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skill-card {
    padding: 2rem;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 120px 5%;
  background-color: #1A1815;
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 3.5rem;
  text-align: center;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: #D7D3CE;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.3s backwards;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.4s backwards;
}

.contact-link {
  padding: 0.85rem 1.8rem;
  background-color: #FFFFFF;
  border: 2px solid #FFFFFF;
  color: #000000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.2);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #D7D3CE;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid #444;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background-color: #2A2A2A;
  color: #E0E0E0;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888888;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFFFFF;
  background-color: #333333;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.submit-btn {
  padding: 14px 32px;
  background-color: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.contact-methods-divider {
  margin-top: 3rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.contact-methods-divider p {
  font-size: 0.95rem;
  color: #888888;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .contact {
    padding: 100px 5%;
  }
  
  .contact-links {
    gap: 1rem;
  }
  
  .contact-link {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
}

/* ===== GALLERY PAGE ===== */
.gallery-hero {
  margin-top: 80px;
  min-height: auto;
  padding: 3rem 1.5rem 2rem;
}

.gallery-hero-content {
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: center;
}

.gallery-hero-text {
  justify-content: flex-start;
}

.gallery-hero .hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #F0F0F0;
}

.gallery-hero .hero-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 0;
  color: #B0B0B0;
}

.gallery-projects-section {
  padding-top: 2rem;
}

.gallery-project {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.gallery-project:not(:first-child) {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #333333;
}

.gallery-project .section-title {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 2rem;
  color: #E0E0E0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2A2A2A;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.gallery-link-wrapper {
  margin-top: 1.5rem;
}

.gallery-link-wrapper .project-link {
  margin-right: 1.5rem;
}

/* ===== IMAGE MODAL ===== */
#imageModal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
}

#imageModal.active {
  display: block;
}

#imageModal .modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #E0E0E0;
  cursor: pointer;
  transition: color 0.3s ease;
}

#imageModal .modal-close:hover {
  color: #FFFFFF;
}

#modalImage {
  max-width: 90%;
  max-height: 85vh;
  margin: 50px auto;
  display: block;
  object-fit: contain;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 5%;
  background-color: #0F0D0A;
  color: #D7D3CE;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-weight: 400;
}

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

.footer-content a:hover {
  color: #FFFFFF;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY ===== */
a:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}