:root {
  --font-family: 'Inter', sans-serif;
  --bg-color: #f7f7f7;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --primary-color: #222;
  --border-color: #ddd;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  background-color: var(--bg-color);
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.logo-text strong {
  display: block;
  font-size: 1rem;
}
.logo-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-dark);
  margin-left: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.desktop-nav a:hover, .desktop-nav a.active {
  border-bottom: 1px solid var(--text-dark);
}

/* Hero Section */
.hero {
  display: flex;
  padding: 4rem 5%;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
}
.hero-left {
  flex: 1;
  padding-right: 4rem;
}
.greeting {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.name {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 1rem;
}
.title {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 300;
}
.bio {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}
.btn {
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}
.btn-dark {
  background-color: var(--text-dark);
  color: #fff;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}
.hero-image-wrapper {
  background: #e5e5e5;
  width: 100%;
  max-width: 500px;
  height: 600px;
  overflow: hidden;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%);
}

.hero-side-labels {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light);
  gap: 0.5rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1rem;
}

/* Stats */
.highlights-strip {
  display: flex;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 5%;
  justify-content: space-around;
  text-align: center;
}
.stat-val {
  font-size: 2.5rem;
  font-weight: 400;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* About */
.about {
  display: flex;
  padding: 5rem 5%;
  background: #fff;
}
.about-left {
  flex: 1;
  padding-right: 4rem;
}
.section-label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.about-title {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
}
.about-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 400px;
}
.about-right {
  flex: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.about-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.icon-placeholder {
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
  color: var(--primary-color);
}
.about-item-text h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.about-item-text p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Portfolio Access */
.portfolio-access {
  padding: 5rem 5%;
  background: var(--bg-color);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 3rem;
}
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.qa-card {
  background: #fff;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.qa-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.qa-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.qa-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.qa-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.qa-arrow {
  align-self: flex-start;
  font-size: 1.2rem;
}
.qa-feature-card {
  grid-column: span 2;
  background: #333;
  color: #fff;
  padding: 3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.qa-feature-label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.qa-feature-content h3 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  background: #ececec;
  padding: 4rem 5% 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}
.footer-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.8rem;
}


/* Contact Page Styles */
.contact-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-links, .contact-form-container {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 3rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.button-group .btn {
  text-align: center;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: #f5f5f5;
}
.btn-primary:hover {
  background: #111;
}
.contact-form .form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.contact-form .btn {
  width: 100%;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}


/* Responsive Design (Tablets & Mobile) */
@media (max-width: 992px) {
  .hero, .about {
    flex-direction: column;
    padding-top: 3rem;
  }
  .hero-left, .about-left {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }
  .bio, .about-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qa-feature-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1.5rem;
  }
  .desktop-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .desktop-nav a {
    margin-left: 0;
  }
  
  .name {
    font-size: 3rem;
  }
  .hero-image-wrapper {
    height: auto;
    aspect-ratio: 3/4;
  }
  
  .highlights-strip {
    flex-direction: column;
    gap: 2rem;
  }
  
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
  .qa-feature-card {
    grid-column: span 1;
  }
  
  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .footer-links a {
    margin-left: 0;
  }
  
  /* Make sure contact container stacks */
  .contact-container {
    flex-direction: column;
  }
}


/* ==========================================================================
   Motion & Interaction (Per animate.md Guidelines)
   ========================================================================== */

/* Base Transitions */
a, .btn, .qa-card, .profile-img {
  transition: all 0.2s ease-out;
}

/* Button Active State */
.btn:active, .qa-card:active {
  transform: translateY(1px);
}

/* Profile Image Hover */
.profile-img:hover {
  transform: scale(1.02);
}

/* Link Underlines (Desktop Nav) */
.desktop-nav a {
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--text-dark);
  transition: width 0.2s ease-out;
}
.desktop-nav a:hover::after {
  width: 100%;
}
.desktop-nav a:hover {
  border-bottom: none; /* override previous border hover */
}
.desktop-nav a.active {
  border-bottom: 2px solid var(--text-dark);
}

/* Accessibility: Entrance Animations only if Reduced Motion is NOT preferred */
@media (prefers-reduced-motion: no-preference) {
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(12px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-header {
    animation: fadeInUp 0.4s ease-out forwards;
  }
  
  .hero-left {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.1s forwards;
  }
  
  .hero-right {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
  }

  .highlights-strip, .about, .portfolio-access {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
  }
}

/* Privacy Blur */
.privacy-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}


/* ==========================================================================
   Dark Mode
   ========================================================================== */
[data-theme="dark"] {
  --bg-color: #111827;
  --text-dark: #f3f4f6;
  --text-light: #9ca3af;
  --border-color: #374151;
  --primary-color: #3b82f6;
}

[data-theme="dark"] .privacy-blur {
  background: #1f2937 !important;
}

[data-theme="dark"] .qa-card, [data-theme="dark"] .contact-card {
  background: #1f2937;
  color: var(--text-dark);
}

[data-theme="dark"] .desktop-nav a::after {
  background-color: var(--text-dark);
}
[data-theme="dark"] .desktop-nav a.active {
  border-bottom: 2px solid var(--text-dark);
}


/* ==========================================================================
   Dark Mode Fixes (Contact & About Buttons)
   ========================================================================== */

/* Fix Contact Page Backgrounds */
[data-theme="dark"] .contact-links, 
[data-theme="dark"] .contact-form-container {
  background: #1f2937 !important;
  border-color: #374151;
}

/* Fix Contact Form Inputs */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background-color: #374151;
  color: #f3f4f6;
  border-color: #4b5563;
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
  border-color: var(--primary-color);
}

/* Fix "Learn More About Me" Button Visibility */
[data-theme="dark"] .btn-dark {
  background-color: var(--text-dark);
  color: var(--bg-color) !important;
}


/* Fix Footer Background */
[data-theme="dark"] .site-footer {
  background: #1f2937;
  border-top: 1px solid var(--border-color);
}

/* Fix About Section Background */
[data-theme="dark"] .about {
  background: var(--bg-color);
}

/* Fix Hero Image Wrapper Background */
[data-theme="dark"] .hero-image-wrapper {
  background: #1f2937;
}
