/* ==========================================
   Modern Professional Portfolio CSS
   Black & White Theme
   ========================================== */

:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #333333;
  --light-bg: #f5f5f5;
  --text-color: #000000;
  --text-light: #666666;
  --white: #ffffff;
  --border-color: #cccccc;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

/* ==========================================
   Typography
   ========================================== */

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.8;
}

strong {
  font-weight: 600;
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

a:hover {
  border-bottom: 2px solid var(--primary-color);
}

/* ==========================================
   Header & Navigation
   ========================================== */

header {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--secondary-color);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  border-bottom: none;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

header nav a:hover::after {
  width: 100%;
}

header nav a:hover {
  border-bottom: none;
}

/* ==========================================
   Main Content Container
   ========================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.8s ease;
}

.hero-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* ==========================================
   Bio Section
   ========================================== */

.bio-section {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.bio-section p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* ==========================================
   Email Link
   ========================================== */

.email-link {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.25s backwards;
}

.email-link a {
  font-size: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-block;
  font-weight: 600;
}

.email-link a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* ==========================================
   Contact Section - Centered for Mobile
   ========================================== */

.contact-section {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item strong {
  color: var(--primary-color);
}

.contact-item a {
  color: var(--primary-color);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-block;
}

.contact-item a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.social-button {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 4px !important;
  transition: var(--transition) !important;
  display: inline-block !important;
}

.social-button:hover {
  background: var(--primary-color) !important;
  color: var(--secondary-color) !important;
  border-bottom: 2px solid var(--secondary-color) !important;
}

/* ==========================================
   Section Styles
   ========================================== */

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

/* ==========================================
   Projects Section
   ========================================== */

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

.project-card {
  background: var(--secondary-color);
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--light-bg);
}

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.project-card p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.project-link {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 1rem;
  border: 2px solid var(--primary-color);
}

.project-link:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateX(3px);
  border-bottom: none;
}

/* ==========================================
   Footer
   ========================================== */

footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  color: var(--secondary-color);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

footer p:first-child {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================
   Responsive Design - Mobile First
   ========================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  header nav {
    flex-direction: column;
    gap: 1rem;
  }

  header nav ul {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  header .logo {
    margin-bottom: 1rem;
  }

  main {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-image {
    width: 120px;
    height: 120px;
  }

  .bio-section {
    margin-bottom: 1.5rem;
  }

  .bio-section p {
    font-size: 1rem;
  }

  .email-link a {
    width: 100%;
    text-align: center;
  }

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

  .contact-item {
    width: 100%;
    justify-content: center;
  }

  .contact-item a,
  .social-button {
    width: 100%;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-link {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 2rem 0;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1rem;
  }

  header {
    padding: 1rem 0;
  }

  header nav {
    padding: 0 1rem;
  }

  header .logo {
    font-size: 1.2rem;
  }

  header nav ul {
    gap: 0.5rem;
  }

  header nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-image {
    width: 100px;
    height: 100px;
  }

  .email-link a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .contact-section {
    gap: 0.8rem;
  }

  .contact-item a,
  .social-button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .project-card {
    padding: 1.2rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .project-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  p {
    font-size: 0.95rem;
  }

  footer {
    padding: 1.2rem 1rem;
  }

  footer p {
    font-size: 0.85rem;
  }
}

/* ==========================================
   Utility Classes
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}
