/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette - Hinode inspired */
  --primary: #1a1f36;
  --primary-light: #2d3348;
  --secondary: #6366f1;
  --secondary-light: #818cf8;
  --accent: #10b981;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: rgba(15, 23, 42, 0.08);
  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  /* Spacing */
  --section-padding: 6rem 0;
  --container-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title strong {
  font-weight: 500;
  display: block;
}

.hero-description {
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 400;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  aspect-ratio: 7/10;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0.1;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 300;
}

.hero-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid var(--secondary);
  border-radius: 1rem;
  opacity: 0.2;
  top: -2rem;
  right: -2rem;
  z-index: -1;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  background: var(--surface);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow);
}

.portfolio-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  position: relative;
  overflow: hidden;
}

.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-image::after {
  opacity: 0.1;
}

.portfolio-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.portfolio-title {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.portfolio-description {
  font-size: 1.125rem;
  font-weight: 200;
  color: var(--text-secondary);
  flex: 1;
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: var(--background);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skill-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 15px 50px var(--shadow);
  transform: translateY(-4px);
}

.skill-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.skill-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}

.skill-title {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 1.125rem;
  font-weight: 200;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.skill-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--secondary-light);
}

.footer-brand p {
  font-size: 1.125rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  max-width: 350px;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 1.125rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary-light);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-copyright {
  font-size: 1rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright a {
  color: var(--secondary-light);
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: white;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: var(--surface);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.15);
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 300;
}

.about-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary);
  border-radius: 1rem;
  top: 2rem;
  left: 2rem;
  z-index: -1;
  opacity: 0.3;
}

.about-content {
  padding: 2rem 0;
}

.about-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.about-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.about-text {
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-highlights h4 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.highlight-text h5 {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.highlight-text p {
  font-size: 1rem;
  font-weight: 200;
  color: var(--text-secondary);
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.contact-container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  padding: 2rem 0;
}

.contact-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.contact-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-description {
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--text-secondary);
  margin-bottom: 6rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: row;
  gap: 6rem;
  margin-bottom: 6rem;
}

.contact-item {
  display: flex;
  align-items: left;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  /* height: 3rem; */
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.contact-item-content h4 {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-item-content p,
.contact-item-content a {
  font-size: 1.125rem;
  font-weight: 200;
  color: var(--text-secondary);
}

.contact-item-content a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.contact-form-wrapper {
  background: var(--surface);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 20px 60px var(--shadow);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 200;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: 1.125rem 2rem;
  font-size: 1.125rem;
  font-weight: 400;
  font-family: inherit;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container,
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .about-container {
    gap: 3rem;
  }
  .about-image-wrapper {
    max-width: 450px;
    margin: 0 auto;
  }
  .about-content {
    text-align: center;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .highlight-item {
    justify-content: center;
    text-align: left;
  }
  .contact-info {
    text-align: center;
  }
  .contact-item {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
  .portfolio-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px var(--shadow);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .portfolio-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-brand p {
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .about-title,
  .contact-title {
    font-size: 2rem;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .highlight-grid {
    gap: 1rem;
  }
}
