/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* --- Apple-Inspired Modernization --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fafbfc;
  color: #1d1d1f;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.section {
  padding: 80px 0 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.bg-light {
  background: #f5f6fa;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  background: #f5f6fa;
  position: relative;
  border: none;
  z-index: 1;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Removed outer circle background for cleaner look */

.hero {
  background: #fff;
  color: #1d1d1f;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.hero-text h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #6e6e73;
  margin-bottom: 1.2rem;
}

.hero-description, .hero-subtitle {
  color: #424245;
}

.hero-buttons .btn {
  font-size: 1.1rem;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.btn-primary {
  background: #1d1d1f;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #2d2d30;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f5f6fa;
  color: #1d1d1f;
  border: 2px solid #d2d2d7;
}

.btn-secondary:hover {
  background: #e5e5e7;
  color: #1d1d1f;
  border-color: #c7c7cc;
  transform: translateY(-1px);
}

.why-apple {
  margin-top: 2.5rem;
  background: #f5f6fa;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  color: #1d1d1f;
}

.why-apple h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #1d1d1f;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
  max-width: 40px;
  margin-right: 12px;
  vertical-align: middle;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d1d1f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-brand a:hover {
  color: #424245;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #6e6e73;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #1d1d1f;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #1d1d1f;
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #1d1d1f;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.nav-backdrop.active {
  display: block;
}

/* Hero Section */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.hero-text h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #6e6e73;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #424245;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #1d1d1f;
  color: #fff;
}

.btn-primary:hover {
  background: #2d2d30;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  background: transparent;
  color: #1d1d1f;
  border-color: #d2d2d7;
}

.btn-secondary:hover {
  background: #f5f6fa;
  color: #1d1d1f;
  border-color: #c7c7cc;
  transform: translateY(-1px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 320px;
  height: 400px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  border: 4px solid white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1d1d1f;
}

.bg-light {
  background-color: #f5f6fa;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #424245;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.expertise-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.expertise-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.expertise-item i {
  font-size: 2rem;
  color: #1d1d1f;
  margin-bottom: 1rem;
}

.expertise-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.expertise-item p {
  color: #6e6e73;
  line-height: 1.6;
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #d2d2d7;
  background: #fff;
  color: #6e6e73;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
  transform: translateY(-1px);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.project-image {
  position: relative;
  overflow: hidden;
  background: #f5f6fa;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1rem;
}

.project-content p {
  color: #424245;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-badge {
  display: inline-block;
  background: #f5f6fa;
  color: #1d1d1f;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.project-link {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 0.5rem;
}

.project-link:hover {
  color: #424245;
  text-decoration: underline;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-info p {
  font-size: 1.1rem;
  color: #424245;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.contact-method i {
  font-size: 1.2rem;
  color: #1d1d1f;
}

.contact-method a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: #424245;
}

/* Footer */
footer {
  background: #1d1d1f;
  color: #f5f6fa;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: #86868b;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    padding: 0 1rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
    margin-top: 1rem;
  }

  .hero-bg-logo {
    opacity: 0.15;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 0;
  }

  .hero-bg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .hero-buttons {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .hero-image {
    margin-top: 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .profile-image {
    width: 300px;
    height: 380px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .contact-methods {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-content {
    gap: 2.5rem;
  }
  
  .profile-image {
    width: 280px;
    height: 350px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Focus states for accessibility */
.btn:focus,
.filter-btn:focus,
.project-link:focus {
  outline: 2px solid #1d1d1f;
  outline-offset: 2px;
}

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

.section {
  animation: fadeInUp 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
