/* Reset and base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Header */
  header {
    background-color: #2d3a4a;
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  
  .header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-content {
    display: flex;
    flex-direction: column;
  }
  
  .left-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
  }
  
  .subtitle {
    font-size: 1.2rem;
    color: #b0bec5;
    margin-top: 4px;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
  }
  
  nav ul li a:hover,
  nav ul li a:focus {
    color: #4fc3f7;
    border-bottom: 2px solid #4fc3f7;
    outline: none;
  }
  
  
  /* Section base - UPDATED FOR GRADIENT */
  .section {
    padding: 60px 0;
    background: linear-gradient(135deg, #edf6ff 0%, #e0e7fa 50%, #e1ffe6 100%);
    border-bottom: 1px solid #ddd;
  }
  
  .about {
    background: none;
  }
  
  .about-container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
  }
  
  .about-text {
    max-width: 700px;
    font-size: 1.1rem;
    color: #222;
  }
  
  .about-text h2 {
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
  }
  
  /* Projects */
  .projects h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    text-align: center;
    color: #2d3a4a;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .project-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  .project-item:hover,
  .project-item:focus-within {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    outline: none;
  }
  
  .project-item h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 15px 0 10px 0;
    font-weight: 700;
    font-size: 1.3rem;
  }
  
  .project-item h3 a {
    color: #2d3a4a;
    text-decoration: none;
  }
  
  .project-item h3 a:hover,
  .project-item h3 a:focus {
    color: #4fc3f7;
    outline: none;
  }
  
  .project-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .project-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    user-select: none;
  }
  
  /* Chatbot */
  .chat-container {
    max-width: 430px;
    background: #fff;
    border-radius: 12px;
    margin: 60px auto 30px auto;
    box-shadow: 0 8px 28px rgba(40,149,242,0.08), 0 1.5px 6px rgba(0,0,0,0.02);
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  .chat-title {
    text-align: center;
    background: linear-gradient(90deg,#147df5,#2a8cff);
    color: #fff;
    border-radius: 12px 12px 0 0;
    margin: 0;
    padding: 16px 0 10px 0;
    font-family: 'Montserrat',sans-serif;
  }
  
  .chat-window {
    height: 320px;
    overflow-y: auto;
    padding: 22px 18px;
    background: #fafbff;
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .message {
    max-width: 85%;
    margin-bottom: 10px;
    padding: 10px 16px;
    border-radius: 18px 18px 18px 2px;
    background: #ebf5ff;
    align-self: flex-start;
    font-family: 'Roboto', sans-serif;
  }
  
  .message.user {
    background: #147df5;
    color: #fff;
    align-self: flex-end;
    border-radius: 18px 18px 2px 18px;
  }
  
  .chat-input-row {
    display: flex;
    border-top: 1px solid #e9ecef;
    background: #fff;
    padding: 12px;
  }
  
  #chat-input {
    flex: 1;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1.5px solid #cfd8dc;
    margin-right: 11px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s;
  }
  
  #chat-input:focus {
    border-color: #147df5;
  }
  
  #send-btn {
    padding: 0 25px;
    background: #147df5;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.25s;
    cursor: pointer;
  }
  
  #send-btn:hover {
    background: #125cab;
  }
  
  /* Footer */
  footer {
    background-color: #2d3a4a;
    color: #cfd8dc;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .about-container {
      flex-direction: column;
      text-align: center;
    }
  
    .profile-photo {
      margin-bottom: 25px;
      margin-left: auto;
      margin-right: auto;
    }
  
    nav ul {
      flex-direction: column;
      gap: 15px;
      margin-top: 20px;
    }
  
    .header-container {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media screen and (max-width: 480px) {
    .left-header {
      font-size: 2rem;
    }
  
    .subtitle {
      font-size: 1rem;
    }
  
    .project-thumb {
      height: 140px;
    }
  
    .contact-form button {
      width: 100%;
    }
  }
  