/* ===== MONOCHROME (BLACK & WHITE) THEME with IMAGE COLOR EFFECT ===== */
:root {
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #cccccc;
  --gray-400: #aaaaaa;
  --gray-500: #888888;
  --gray-600: #666666;
  --gray-700: #444444;
  --gray-800: #222222;
  --gray-900: #111111;
  --blue: #00d9ff;
  --blue-glow: rgba(0, 217, 255, 0.4);
  --transition: all 0.3s ease;
  --max-width: 900px;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* ===== WRAPPER ===== */
.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-700);
  z-index: 100;
  display: flex;
  justify-content: center;
  transition: var(--transition);
  height: 90px;
}

.nav {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  height: 100%;
}

.brand-logo {
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  letter-spacing: -0.03em;
  transition: var(--transition);
}

.brand-logo:hover {
  color: var(--gray-400);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--white);
  border-bottom: 1px solid var(--gray-500);
}

/* ===== NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 34px;
  height: 28px;
  cursor: pointer;
}

.toggle-bar {
  width: 100%;
  height: 3px;
  background: var(--white);
  transition: var(--transition);
}

.nav-toggle.active .toggle-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav-toggle.active .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 200px 1rem 120px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero-badge {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray-300);
  text-transform: uppercase;
  font-family: monospace;
}

.hero-description {
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--gray-400);
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.btn-full {
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-400);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-700);
  margin: 0 auto;
  max-width: var(--max-width);
}

/* ===== ABOUT ===== */
.about-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  text-align: left;
}

/* --- IMAGE EFFECT RESTORED --- */
.about-image {
  flex: 1;
  max-width: 300px;
  border: 2px solid var(--white);
  box-shadow: 0 0 10px var(--white-glow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--blue-glow);
}

.about-image img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: var(--transition);
}

.about-image:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.about-text {
  flex: 1.2;
}

.about-description {
  font-size: 1.05rem;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: var(--gray-200);
}

.contact-email a {
  color: var(--white);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* ===== SKILLS ===== */
.skills-section {
  margin-top: 3rem;
  text-align: left;
}

.skills-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.skill-item {
  border: 1px solid var(--gray-700);
  padding: 1rem;
  text-align: center;
  color: var(--gray-300);
  transition: var(--transition);
}

.skill-item:hover {
  background: var(--gray-800);
  color: var(--white);
}

/* ===== WORK ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.work-card {
  border: 1px solid var(--gray-700);
  padding: 2rem;
  background: var(--black);
  transition: var(--transition);
}

.work-card:hover {
  background: var(--gray-800);
}

.work-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.work-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.work-card-description {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.work-date {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.work-link {
  color: var(--white);
  text-decoration: underline;
}

/* ===== CONTACT ===== */
.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--gray-300);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--gray-700);
  background: var(--black);
  color: var(--white);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gray-400);
  background: var(--gray-900);
}

.form-input::placeholder {
  color: var(--gray-600);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.info-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--white);
}

.info-value {
  color: var(--gray-400);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--gray-700);
  text-align: center;
  padding: 3rem 0;
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-main,
  .contact-content {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
  }

  .about-image {
    max-width: 260px;
  }

  .skills-section {
    text-align: center;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .section {
    padding: 6rem 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    top: 100%;
    right: 2rem;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid var(--gray-700);
    padding: 1.5rem;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .wrapper {
    padding: 0 1.5rem;
  }
  .hero {
    padding: 180px 1rem 80px;
  }
  .section {
    padding: 5rem 1rem;
  }
}

/* ===== CERTIFICATION ===== */

.work-cert {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin: 12px 0;
  transition: all 0.3s ease;
  opacity: 0.95;
}

.work-cert:hover {
  transform: scale(1.03);
  opacity: 1;
}