/*
  Color Palette:
  - Background: #f8fafc (Slate 50)
  - Surface / Cards: #ffffff (White)
  - Primary Accent: #1d4ed8 (Blue 700)
  - Primary Hover: #1e40af (Blue 800)
  - Text Primary: #0f172a (Slate 900)
  - Text Secondary: #475569 (Slate 600)
  - Border: #e2e8f0 (Slate 200)

  Font Family:
  - System Sans-Serif Stack: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif
*/

:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  main {
    flex: 1;
  }
  
  .container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
  }
  
  /* Header & Navigation */
  .site-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1rem;
  }
  
  .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
  }
  
  .nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  .nav-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  
  .nav-list a:hover,
  .nav-list a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  
  .btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
  }
  
  .btn-outline {
    background-color: transparent;
    color: var(--primary);
  }
  
  .btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
  }
  
  /* Hero Section */
  .hero {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3.5rem 0;
  }
  
  .profile-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--surface-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
  }
  
  .hero-content h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
  }
  
  .hero-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  /* Skills & Projects Grids */
  .skills-section,
  .page-section {
    padding: 2.5rem 0 3.5rem;
  }
  
  .section-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
  }
  
  .skills-grid,
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .skill-card,
  .project-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .skill-card {
    padding: 1.5rem;
  }
  
  .project-card:hover,
  .skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }
  
  .project-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background-color: var(--border-color);
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .card-body h2 {
    margin-top: 0;
    font-size: 1.25rem;
  }
  
  .card-body p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
  }
  
  /* Contact Page */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
  }
  
  .contact-details {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
  }
  
  .contact-details li {
    margin-bottom: 0.75rem;
  }
  
  .contact-details a {
    color: var(--primary);
  }
  
  .contact-form {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
  }
  
  /* Footer */
  .site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
  }
  
  .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
  }
  
  .footer-links a:hover {
    color: var(--primary);
  }
  
  /* Responsive Breakpoints (768px Tablet & 360px Mobile) */
  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
      text-align: center;
      padding: 2.5rem 0;
    }
  
    .hero-actions {
      justify-content: center;
    }
  
    .skills-grid,
    .projects-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .contact-layout {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .header-inner,
    .footer-inner {
      flex-direction: column;
      text-align: center;
    }
  
    .skills-grid,
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    .profile-photo {
      width: 160px;
      height: 160px;
    }
  
    .hero-content h1 {
      font-size: 1.75rem;
    }
  }