/* ============================================================
   PORTFOLIO V2 (B&W THEME)
   ============================================================ */

/* Reset some base styles that might conflict */
body[data-page="portfolio-v2"] {
  background-color: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  padding-top: 72px; /* Compensate for fixed header */
}

body[data-page="portfolio-v2"]::before,
body[data-page="portfolio-v2"]::after,
body[data-page="portfolio-v2"] .noise {
  display: none !important; /* Hide the grid and noise from base.css */
}

/* Typography for V2 */
.portfolio-v2-main h1, 
.portfolio-v2-main h2, 
.portfolio-v2-main h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
}

/* Theme Sections */
.theme-white {
  background-color: #fff;
  color: #000;
}

.theme-black {
  background-color: #000;
  color: #fff;
}

.text-white {
  color: #fff !important;
}

/* Layout Container */
.v2-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 40px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
}
.section-title span {
  /* removed cursive font to sync with the rest of the title */
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-text {
  flex: 1;
  max-width: 620px;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1.2;
}
.hero-text strong {
  font-weight: 800;
}
.hero-text .outline-text {
  -webkit-text-stroke: 2px #000;
  color: transparent;
  font-weight: 800;
}
.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 40px;
  max-width: 580px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #000;
  border-radius: 4px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: #000;
  color: #fff;
}
.hero-img {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.hero-illustration {
  width: 100%;
  max-width: 500px;
}
/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.skill-box {
  aspect-ratio: 1/1;
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease;
}
.skill-box.dark {
  background: #000;
  color: #fff;
}
.skill-box:hover {
  background: #000;
  color: #fff;
}
.skill-icon {
  font-size: 2.5rem;
  font-weight: 800;
}
.skill-name {
  font-size: 1rem;
  font-weight: 600;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-split {
  display: flex;
  align-items: center;
  gap: 40px;
}
.about-img {
  flex: 0 0 360px;
}
.about-illustration {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
.about-text {
  flex: 1;
}
.about-text .section-title {
  text-align: left;
  margin-bottom: 30px;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

/* =========================================
   EXPERIENCE SECTION
   ========================================= */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.exp-card {
  border: 1px solid #333;
  padding: 30px;
  border-radius: 8px;
  transition: border-color 0.3s;
}
.exp-card:hover {
  border-color: #666;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.exp-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.exp-logo {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.exp-title {
  font-size: 1.4rem;
  margin: 0;
}
.exp-date {
  color: #888;
  font-size: 0.9rem;
}
.exp-body {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.6;
}
.exp-body ul {
  padding-left: 20px;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.project-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.project-row.reversed {
  flex-direction: row-reverse;
}
.proj-img-col {
  flex: 1;
}
.proj-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
}
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-text-col {
  flex: 1;
}
.proj-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
}
.proj-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.proj-desc {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1rem;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}
.proj-link:hover {
  background: #fff;
  color: #000;
}

/* =========================================
   TESTIMONIAL SECTION
   ========================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  padding: 40px;
  text-align: center;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.3s ease;
  position: relative;
}
.testimonial-card.dark {
  background: #000;
  color: #fff;
  border-color: #000;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.t-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #555;
  letter-spacing: 1px;
}
.testimonial-card p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #444;
}
.testimonial-card h4 {
  font-weight: 700;
  color: inherit;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-split {
  display: flex;
  gap: 40px;
}
.contact-left {
  flex: 1;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.btn-black {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-black:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.contact-right {
  flex: 1;
}
.contact-heading {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-heading span {
  font-family: inherit;
  font-size: inherit;
  -webkit-text-stroke: 1px #000;
  color: transparent;
}
.contact-sub {
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}
.contact-details p {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .v2-container {
    padding: 60px 20px;
  }
  .hero-split, .about-split, .project-row, .contact-split {
    flex-direction: column;
  }
  .project-row.reversed {
    flex-direction: column;
  }
  .hero-text h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    word-wrap: break-word;
    white-space: normal !important;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .header-actions {
    gap: 8px;
  }
  .home-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* =========================================
   HEADER & FOOTER
   ========================================= */
.portfolio-header {
  background: #fff;
  border-bottom: 2px solid #000;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #000;
  text-decoration: none;
}
.portfolio-nav {
  display: flex;
  gap: 30px;
}
.portfolio-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.resume-btn {
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.lang-btn {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.home-btn {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}

.portfolio-footer {
  background: #000;
  color: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 24px;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.footer-copy {
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 768px) {
  .portfolio-nav {
    display: none;
  }
}
.hover-black-card:hover { background: #000; color: #fff; } .hover-black-card:hover h4, .hover-black-card:hover span, .hover-black-card:hover ul, .hover-black-card:hover li { color: #fff !important; }

/* =========================================
   ALL PROJECTS GRID CARDS
   ========================================= */
.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid #eaeaea;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.project-card-media {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-card-content {
  padding: 20px;
}
.project-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}
.project-card-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

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

/* =========================================
   PROJECT MODAL
   ========================================= */
.project-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px 20px;
}
.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.project-modal-content {
  background: #fff;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  max-height: 90vh;
  border-radius: 12px;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  padding: 40px;
}
.project-modal-overlay.active .project-modal-content {
  transform: translateY(0);
}
.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.project-modal-close:hover {
  background: #ff3b30;
}
.modal-top-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 992px) {
  .modal-top-section {
    flex-direction: row;
    align-items: flex-start;
  }
}
.modal-info {
  flex: 1;
  position: sticky;
  top: 40px;
}
.modal-hero-media {
  flex: 2;
}
.modal-hero-media img,
.modal-hero-media video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.project-modal-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
  line-height: 1.2;
}
.project-modal-desc {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
.project-modal-gallery {
  column-count: 1;
  column-gap: 30px;
}
@media (min-width: 768px) {
  .project-modal-gallery {
    column-count: 2;
  }
}
.project-modal-gallery img,
.project-modal-gallery video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 30px;
  break-inside: avoid;
}
@media (max-width: 768px) {
  .project-modal-content {
    padding: 20px;
    padding-top: 60px;
  }
}
