/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary: #2563eb;   /* Blue accent */
    --secondary: #00bcd4; /* Cyan accent */
    --dark: #111;
    --light: #f9f9f9;
    --text: #333;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  /* ===== Body ===== */
  body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
  }
  
  /* ===== Navbar ===== */
  header {
    background: var(--dark);
    padding: 1rem 2rem;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
  }
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
  }
  nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
  }
  nav a:hover {
    color: var(--secondary);
  }
  
  /* ===== Hero Section ===== */
  .hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 2rem;
  }
  .hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  .hero span {
    color: #ffeb3b;
  }
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    min-height: 30px; /* to avoid layout shift during typing */
  }
  .btn, .btn-outline {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  .btn {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
  }
  .btn:hover {
    background: #ffeb3b;
    color: var(--dark);
  }
  .btn-outline {
    border: 2px solid #fff;
    color: #fff;
  }
  .btn-outline:hover {
    background: #fff;
    color: var(--primary);
  }
  
  /* ===== Section General ===== */
  section {
    padding: 5rem 2rem;
    text-align: center;
  }
  section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
  }
  
  /* ===== About ===== */
  .about p {
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
    color: #444;
  }
  
  /* ===== Skills ===== */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .skills-grid div {
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 500;
    transition: transform 0.3s ease;
  }
  .skills-grid div:hover {
    transform: translateY(-5px);
  }
  
  /* ===== Projects ===== */
  .projects .project-card {
    background: #fff;
    padding: 2rem;
    margin: 1.5rem auto;
    border-radius: var(--radius);
    max-width: 650px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
  }
  .projects .project-card:hover {
    transform: translateY(-5px);
  }
  .projects h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
  }
  
  /* ===== Contact ===== */
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: auto;
  }
  form input, form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border 0.3s ease;
  }
  form input:focus, form textarea:focus {
    border: 1px solid var(--primary);
    outline: none;
  }
  form button {
    background: var(--primary);
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  form button:hover {
    background: var(--secondary);
  }
  .socials {
    margin-top: 1.5rem;
    font-size: 1rem;
  }
  .socials a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 500;
  }
  .socials a:hover {
    text-decoration: underline;
  }
  
  /* ===== Footer ===== */
  footer {
    background: var(--dark);
    color: #ccc;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
  }
  