/* ================= GLOBAL STYLES ================= */

:root {
    --bg-body: #050816;
    --bg-elevated: #0f172a;
    --bg-elevated-alt: #020617;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.14);
    --border-subtle: rgba(148, 163, 184, 0.3);
    --danger: #f97373;
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
    --radius-lg: 18px;
    --radius-full: 999px;
  
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #020617 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  /* Containers & Layout */
  
  .container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-alt {
    padding: 5rem 0;
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  }
  
  /* ================= HEADER / NAV ================= */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75), transparent);
    border-bottom: 1px solid rgba(15, 23, 42, 0.8);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle at 30% 0, #38bdf8, #0f172a 65%);
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  .logo-text {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.98rem;
    color: #e5e7eb;
  }
  
  .nav {
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-link {
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s ease;
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #38bdf8, #a855f7);
    transition: width 0.18s ease;
    border-radius: 999px;
  }
  
  .nav-link:hover {
    color: var(--text-main);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  /* ================= HERO ================= */
  
  .hero-section {
    padding: 5.5rem 0 4rem;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: center;
  }
  
  .hero-content {
    max-width: 640px;
  }
  
  .hero-eyebrow {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.25rem;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    line-height: 1.05;
    margin: 0;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
  }
  
  .hero-description {
    font-size: 0.97rem;
    color: var(--text-muted);
    max-width: 36rem;
  }
  
  .hero-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease,
      border-color 0.18s ease, color 0.18s ease;
  }
  
  .btn:active {
    transform: translateY(1px);
  }
  
  .primary-btn {
    background: radial-gradient(circle at 30% 0, #38bdf8, #0ea5e9);
    color: #0b1120;
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.4);
  }
  
  .primary-btn:hover {
    background: radial-gradient(circle at 30% 0, #0ea5e9, #06b6d4);
    box-shadow: 0 22px 50px rgba(8, 47, 73, 0.8);
  }
  
  .secondary-btn {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--border-subtle);
    color: var(--text-main);
  }
  
  .secondary-btn:hover {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.95);
  }
  
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  .hero-meta-dot {
    opacity: 0.5;
  }
  
  .social-links {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .social-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.4rem 0.9rem;
    background: rgba(15, 23, 42, 0.85);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }
  
  .social-link:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background: rgba(15, 23, 42, 1);
  }
  
  /* Hero side card */
  
  .hero-card {
    background: radial-gradient(circle at top left, #0f172a, #020617);
    border-radius: 22px;
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
  }
  
  .hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 60%);
    opacity: 0.4;
    pointer-events: none;
  }
  
  .hero-avatar {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 0, #0ea5e9, #0f172a 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
  }
  
  .avatar-initials {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: #e5e7eb;
  }
  
  .hero-card-body {
    position: relative;
    z-index: 1;
  }
  
  .hero-card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
  }
  
  .hero-card-text {
    font-size: 0.92rem;
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
  }
  
  /* ================= SECTION HEADERS ================= */
  
  .section-inner {
    max-width: 960px;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-eyebrow {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.3rem;
  }
  
  .section-title {
    font-size: 1.7rem;
    margin: 0 0 0.5rem;
  }
  
  .section-description {
    max-width: 34rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  /* ================= ABOUT ================= */
  
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    align-items: start;
  }
  
  .about-text {
    font-size: 0.96rem;
    color: var(--text-main);
  }
  
  .about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .highlight-card {
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
    padding: 1rem 1.1rem;
  }
  
  .highlight-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
  }
  
  .highlight-value {
    margin: 0;
    font-weight: 600;
  }
  
  .highlight-caption {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  /* ================= SKILLS ================= */
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
  }
  
  .skill-category {
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    padding: 1.3rem 1.4rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  }
  
  .skill-title {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }
  
  .skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .skill-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
  }
  
  /* ================= PROJECTS ================= */
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
  }
  
  .project-card {
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.8));
    padding: 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.6);
  }
  
  .project-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.6);
  }
  
  .project-title {
    margin: 0;
    font-size: 1.05rem;
  }
  
  .project-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .project-meta {
    list-style: none;
    padding: 0;
    margin: 0.2rem 0 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  
  .project-meta li {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
  }
  
  .project-links {
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .project-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
  }
  
  .project-link:hover {
    text-decoration: underline;
  }
  
  /* ================= CONTACT ================= */
  
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: start;
  }
  
  .contact-info {
    font-size: 0.95rem;
  }
  
  .contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
  }
  
  .contact-value {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 1.2rem;
  }
  
  .contact-value:hover {
    color: var(--accent);
  }
  
  .contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .contact-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.35rem 0.9rem;
  }
  
  .contact-link:hover {
    border-color: var(--accent);
    color: var(--text-main);
  }
  
  /* Contact form */
  
  .contact-form {
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    padding: 1.6rem 1.7rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  }
  
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
  }
  
  .form-row label {
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  .form-row input,
  .form-row textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.95);
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }
  
  .form-row input::placeholder,
  .form-row textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
  }
  
  .form-row input:focus,
  .form-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.98);
  }
  
  .full-width {
    width: 100%;
  }
  
  /* ================= FOOTER ================= */
  
  .site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    background: rgba(2, 6, 23, 0.95);
    margin-top: 2rem;
  }
  
  .footer-inner {
    text-align: center;
  }
  
  .footer-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  /* ================= RESPONSIVE ================= */
  
  @media (max-width: 960px) {
    .hero-inner {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-card {
      order: -1;
    }
  
    .about-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .skills-grid,
    .projects-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .contact-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  
  @media (max-width: 720px) {
    .header-inner {
      gap: 1rem;
    }
  
    .nav {
      display: none; /* For now, simple: hide nav on tiny screens */
    }
  
    .section {
      padding: 3.5rem 0;
    }
  
    .hero-section {
      padding-top: 4.5rem;
    }
  
    .skills-grid,
    .projects-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .about-highlights {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-actions {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .contact-form {
      padding: 1.3rem 1.2rem;
    }
  }
  