 :root{
      --bg: #e1f1fa;
      --card: #ffffff;
      --muted: rgb(90, 91, 92);
      --accent: #1f3a53; 
      --accent-2: #66a4bd;
      --radius: 12px;
      --max-width: 980px;
      --container-padding: 20px;
      --shadow: 0 6px 21px rgba(22, 29, 41, 0.06);
      --glass: rgba(255,255,255,0.6);
      --header-offset: 80px;
    }

    *{box-sizing:border-box}

    .wrap{
      width:100%;
      max-width:var(--max-width);
      background:transparent;
    }


    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: var(--card);
      box-shadow: var(--shadow);
      padding: 16px 32px;
      z-index: 1000;
      display: flex;
      align-items: center;          
      justify-content: space-between; 
      flex-wrap: nowrap;  
    }
    body {
        margin: 0;
        font-family: "Inter", sans-serif;
        background: var(--bg);
        padding-top: 80px; 
      }


      .brand{
        display:flex;
        gap:12px;
        align-items:center;
      }

    
    .brand .logo  {
      width:60px;height:60px;
      display:flex;
      align-items:center;
      justify-content:center;
      color:white;
      font-weight:700;
      box-shadow:var(--shadow);
      font: size 18px;
    }


    .brand .logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      
    }

    .nav{
      display:flex;
      gap:12px;
      align-items:center;
    }
    .nav a{
      color:var(--muted);
      text-decoration:none;
      font-weight:600;
      font-size:14px;
      padding:8px 12px;
      border-radius:8px;
       /*transition: background 0.2s, color 0.2s;*/
    }
    .nav a:hover {
      background: var(--accent-2);
      color: white;
    }
    .nav a.primary{
      background:var(--card);
      color:var(--muted);
      box-shadow:var(--shadow);
    }

    /* Sections */
    .section{
      background:var(--card);
      border-radius:var(--radius);
      padding:32px;
      margin-bottom:24px;
      box-shadow:var(--shadow);
      scroll-margin-top: 100px; 
    }

    /* About */
    .hero{
      display:grid;
      grid-template-columns: 120px 1fr;
      gap:22px;
      align-items:center;
    }
    .avatar{
      width:120px;
      height:120px;
      border-radius:50%;
      overflow:hidden;
      background:linear-gradient(180deg,#e6eefc,#cfe9ff);
     
      display:flex;
      align-items:center;justify-content:center;
      font-weight:700;color:#0f172a;font-size:18px;
      box-shadow:0 8px 30px rgba(59,130,246,0.12);
    }

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .hero h1{margin:0;font-size:22px}
    .tagline{color:var(--muted);
      margin-top:6px;
      font-size:15px}

    .tagline p{
      text-align: center;
    }  
    .hero p{
      margin:14px 0 0;
      color:#374151
    }

    .social-links {
      display: flex;
      gap: 12px;
      margin-top: 12px;
    }
    .social-links a {
      color: var(--accent);
      font-size: 24px;
      transition: color 0.3s;
    }
    #skills{

     display:flex;
      align-items:center;
      justify-content:center;
       gap:15px;
      margin-top: 5px;
      color: var(--accent);
      font-size: 24px;
    }
    #Skills-title {
      
      margin-left: 50%;

    }
    .social-links a:hover {
      color: var(--accent-2);
    }

    .skill {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 20px;
      color: var(--accent); 
    }

    .skill span {
      margin-top: 8px;
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
    }

    /* Projects */
    .projects-grid{
      display:grid;
      grid-template-columns: repeat(3,1fr);
      gap:18px;
      margin-top:14px;
    }
    .project{
      border-radius:12px;
      overflow:hidden;
      background:linear-gradient(180deg,#ffffff,#fbfcff);
      border:1px solid rgba(15,23,42,0.04);
      display:flex;flex-direction:column;
      transition:transform .18s ease, box-shadow .18s ease;
    }
    .project:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(2,6,23,0.08)}
    
    .project-body{padding:12px 14px;flex:1;display:flex;flex-direction:column;gap:8px}
    .project-body h3{margin:0;font-size:15px}
    .project-body p{margin:0;color:var(--muted);font-size:13px}
   
    .project-footer{display:flex;justify-content:space-between;align-items:center;padding:12px;border-top:1px solid rgba(15,23,42,0.03)}
    .btn{background:transparent;border:0;padding:8px 12px;border-radius:8px;font-weight:700;cursor:pointer}
    .btn.outline{border:1px solid rgba(15,23,42,0.06)}
    .techs{display:flex;gap:8px;flex-wrap:wrap}

    .thumb {
    aspect-ratio: 16/9; 
    width: 100%;
    overflow: hidden;
    }

    .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

      /* Code links */
    #code-link {
      color: var(--accent);
      font-weight: 600;
      text-decoration: none;
      border: 1px solid var(--accent);
      padding: 8px 14px;
      border-radius: 8px;
      transition: background 0.2s, color 0.2s;
    }


    #code-link:hover {
      background: var(--accent-2);
      color: white;
    }

    /* Visited (clicked) state */
    #code-link:visited {
      color: var(--accent-2);
      border-color: var(--accent);
    }
    
    /* Resume & Contact  */
    .center{display:flex;
      align-items:center;
      justify-content:center;
      flex-direction:column;
      gap:10px}
    .download{
      background:linear-gradient(90deg,var(--accent),var(--accent-2));
      color:white;padding:10px 14px;border-radius:10px;font-weight:700;text-decoration:none;
      box-shadow:0 10px 30px rgba(59,130,246,0.12)
    }

    /* Contact form */
    form{display:grid;
      gap:12px;
      width:100%;
      max-width:640px}
    input[type="text"],input[type="email"],textarea{
      width:100%;padding:12px;border-radius:10px;border:1px solid rgba(2,6,23,0.06);font-size:14px;
      background:#fff;resize:vertical;
    }

    footer{margin-top:20px;color:var(--muted);font-size:13px;text-align:center}

    /* Responsive */
    @media (max-width:900px){
      .projects-grid{grid-template-columns:repeat(2,1fr)}
      .hero{grid-template-columns:96px 1fr}
    }
    @media (max-width:600px){
      body{padding:20px}
      .hero{grid-template-columns:1fr; text-align:center}
      .avatar{margin:0 auto}
      .nav{display:none}
      .projects-grid{grid-template-columns:1fr}
    }
