/* --- CSS Variables for Easy Theme Management --- */
:root {
    --bg-gradient-start: #eaf4ff;
    --bg-gradient-mid: #dbeafe;
    --bg-gradient-end: #c7dfff;
    
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #475569;
    
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #1e40af;
    
    --card-bg: rgba(248, 251, 255, 0.85); /* Slight transparency for a glass effect */
    --card-border: #c7dfff;
  }
  
  /* --- Global Styles --- */
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Background Pattern */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2394a3b8' stroke-width='1' opacity='0.20'%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3Ccircle cx='150' cy='80' r='3'/%3E%3Ccircle cx='250' cy='60' r='3'/%3E%3Ccircle cx='90' cy='180' r='3'/%3E%3Ccircle cx='200' cy='200' r='3'/%3E%3Cline x1='50' y1='50' x2='150' y2='80'/%3E%3Cline x1='150' y1='80' x2='250' y2='60'/%3E%3Cline x1='150' y1='80' x2='90' y2='180'/%3E%3Cline x1='90' y1='180' x2='200' y2='200'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    pointer-events: none;
    z-index: -1;
  }
  
  h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: var(--primary-hover);
  }
  
  main {
    flex: 1;
  }
  
  /* --- Header --- */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 1rem 2rem;
    max-width: 900px;
    margin: auto;
  }
  
  .header-text {
    flex: 1;
    min-width: 280px;
  }
  
  .header-text h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
  }
  
  .header-text .subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
  
  /* Social Icons upgraded to look like interactive buttons */
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: var(--primary-color);
    font-size: 1.3rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
  }
  
  .social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
  }
  
  /* Profile Photo */
  .header-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    transition: transform 0.3s ease;
  }
  
  .header-photo img:hover {
    transform: scale(1.02);
  }
  
  /* --- Sections --- */
  section {
    padding: 2.5rem 1rem;
    max-width: 900px;
    margin: auto;
  }
  
  h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
  }
  
  .intro {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
  }
  
  /* --- Cards --- */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
  }
  
  .card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  /* Clickable Projects specific styles */
  .card-clickable {
    cursor: pointer;
    flex-direction: row;
    align-items: center;
  }
  
  .card-clickable .card-content {
    flex: 1;
  }
  
  .card-arrow {
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
  }
  
  .card-clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.12);
    border-color: #93c5fd;
  }
  
  .card-clickable:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
  }
  
  .card-link h3:hover {
    text-decoration: underline;
    color: var(--primary-hover);
  }
  
  /* Platform Badge for Certifications */
  .badge {
    display: inline-block;
    background-color: var(--bg-gradient-mid);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: auto;
  }
  
  /* --- Footer --- */
  footer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(199, 223, 255, 0.5);
  }
  
  /* --- Responsive Design --- */
  @media (max-width: 768px) {
    header {
      flex-direction: column-reverse;
      text-align: center;
      padding-top: 3rem;
    }
    
    .header-text h1 {
      font-size: 2.2rem;
    }
  
    .social-icons {
      justify-content: center;
    }
    
    h2::after {
      left: 50%;
      transform: translateX(-50%);
    }
    
    h2 {
      display: block;
      text-align: center;
    }
    
    .intro {
      text-align: center;
    }
  }