/* ===========================
   Base + Design Tokens
=========================== */
:root{
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #00bcd4;
    --brand-strong:#0097a7;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);
    --radius: 14px;
  }
  /* Smooth anchor scrolling + offset for sticky header */
html {
    scroll-behavior: smooth;
    /* Adjust this to your header height if you change it later */
    scroll-padding-top: 120px; 
  }
  
  /* Fallback for older browsers */
  section {
    scroll-margin-top: 120px;
  }
  
  
  *{ box-sizing: border-box; margin: 0; padding: 0; }
  html,body{ height: 100%; }
  body{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 10% -10%, rgba(0,188,212,.08), transparent 60%),
                radial-gradient(900px 500px at 110% 10%, rgba(0,188,212,.06), transparent 60%),
                var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  a{ color: var(--brand); text-decoration: none; }
  a:hover{ text-decoration: underline; }
  
  /* ===========================
     Layout Helpers
  =========================== */
  .container{
    width: min(1100px, 90%);
    margin: 40px auto;
  }
  
  /* ===========================
     Header + Hero
  =========================== */
  header{
    background: #111827;
    color: #fff;
    padding: 5px 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .header-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  
  .profile-pic{
    width: 120px; height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--brand), #7ee4f0);
    box-shadow: var(--shadow);
  }
  .profile-pic img{
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 3px solid #0b1b20;
  }
  
  .intro h1{
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    letter-spacing: .3px;
  }
  .intro p{
    color: #cbd5e1;
    font-size: .98rem;
    margin-top: 4px;
  }
  
  /* Nav */
  nav ul{
    margin-top: 16px;
    list-style: none;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav a{
    color: #e5f7fa;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 10px;
    transition: transform .12s ease, background .25s ease, color .25s ease;
  }
  nav a:hover{
    background: #e5f7fa;
    color: #0f172a;
    transform: translateY(-1px);
  }
  
  /* ===========================
     Section Headings
  =========================== */
  h2{
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    margin-bottom: 16px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
  }
  
  /* ===========================
     About
  =========================== */
  #about p{
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
  }
  
  /* ===========================
     Projects
  =========================== */
  .projects-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card{
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(0,0,0,0.04);
  }
  .project-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  }
  .project-card h3{
    color: var(--brand);
    margin-bottom: 8px;
    font-size: 1.05rem;
  }
  .project-card p{ color: var(--muted); }
  
  /* ===========================
     Skills
  =========================== */
  #skills ul{
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--card);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
  }
  #skills li{
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(0deg, rgba(0,0,0,0.02), rgba(255,255,255,0.7));
  }
  /* Skills Dropdown */
.skills-dropdown {
    display: grid;
    gap: 14px;
  }
  
  .skills-dropdown details {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform .2s ease;
  }
  
  .skills-dropdown details:hover {
    transform: translateY(-2px);
  }
  
  .skills-dropdown summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand);
    font-size: 1rem;
    list-style: none; /* hide default arrow */
    position: relative;
    padding-right: 20px;
  }
  
  .skills-dropdown summary::-webkit-details-marker {
    display: none;
  }
  
  /* Custom arrow */
  .skills-dropdown summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.1rem;
    transition: transform .3s;
  }
  
  .skills-dropdown details[open] summary::after {
    transform: rotate(-180deg);
  }
  
  .skills-dropdown ul {
    margin-top: 10px;
    padding-left: 18px;
    list-style: disc;
    color: var(--muted);
  }
  
  .skills-dropdown li {
    margin-bottom: 6px;
  }
  
  
  /* ===========================
     Contact
  =========================== */
  #contact .direct-links{
    margin-top: 14px;
    color: var(--muted);
  }
  
  .contact-form{
    display: grid;
    gap: 14px;
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
  }
  .contact-form input,
  .contact-form textarea{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .contact-form input:focus,
  .contact-form textarea:focus{
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0,188,212,0.18);
  }
  .contact-form button{
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
    box-shadow: var(--shadow);
  }
  .contact-form button:hover{
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: 0 12px 22px rgba(0,188,212,0.25);
  }
  
  /* Helper: make mailto forms nicer in iOS */
  input[type="email"]{ font-variant-numeric: lining-nums; }
  
  /* ===========================
     Footer
  =========================== */
  footer{
    text-align: center;
    padding: 18px 0 40px;
    color: var(--muted);
  }
  
  /* ===========================
     Responsive
  =========================== */
  @media (min-width: 700px){
    .header-content{
      flex-direction: row;
      justify-content: center;
      gap: 26px;
      text-align: left;
    }
    .intro h1{ font-size: 2.1rem; }
    nav ul{ gap: 18px; }
    .projects-grid{
      grid-template-columns: repeat(2, minmax(0,1fr));
    }
    #skills ul{
      grid-template-columns: repeat(2, minmax(0,1fr));
    }
  }
  
  @media (min-width: 1024px){
    .projects-grid{
      grid-template-columns: repeat(3, minmax(0,1fr));
    }
    #skills ul{
      grid-template-columns: repeat(3, minmax(0,1fr));
    }
  }
  
  /* ===========================
     Optional: Auto Dark Mode
  =========================== */
  @media (prefers-color-scheme: dark){
    :root{
      --bg: #0b1220;
      --card:#0f172a;
      --text:#e5e7eb;
      --muted:#9ca3af;
      --shadow: 0 10px 24px rgba(0,0,0,0.45);
    }
    header{ background:#0a0f1a; border-color: rgba(255,255,255,0.06); }
    nav a{ color:#e0fbff; }
    nav a:hover{ background:#e0fbff; color:#0b1220; }
    .profile-pic img{ border-color:#0a0f1a; }
    .project-card, #skills ul, #about p, .contact-form{
      border-color: rgba(255,255,255,0.06);
    }
  }
  