/* Base Styles */
:root {
    --primary: #0f172a;
    --light: #f8fafc;
    --accent: #3b82f6;
    --text: #1e293b;
    --bg-gradient: linear-gradient(to right, #0f172a, #1e3a8a);
    --bg-hero: radial-gradient(circle at center, #1e293b, #0f172a);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--light);
    color: var(--text);
    scroll-behavior: smooth;
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://www.transparenttextures.com/patterns/connected.png') repeat;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
  }
  
  .container {
    max-width: 1100px;
    margin: auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
  }
  
  /* Navbar */
  .navbar {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a:hover {
    text-decoration: underline;
  }
  
  .hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
  }
  
  /* Hero */
  .hero {
    background: var(--bg-hero);
    color: white;
    padding: 3rem 0;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  /* Section */
  .section {
    padding: 4rem 1rem;
    position: relative;
    z-index: 1;
  }
  
  .bg-light {
    background: #f1f5f9;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .grid-2, .grid-3 {
    display: grid;
    gap: 2rem;
  }
  
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .card, .project {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .card:hover, .project:hover {
    transform: translateY(-5px);
  }
  
  footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background: var(--primary);
      position: absolute;
      right: 1rem;
      top: 60px;
      padding: 1rem;
      border-radius: 0.5rem;
    }
    .nav-links.active {
      display: flex;
    }
    .hamburger {
      display: block;
    }
    .hero-content {
      flex-direction: column;
      text-align: center;
    }
  }
  
  /* Animations */
  .fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
  }
  
  .slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s ease forwards;
  }
  
  .delay-1 { animation-delay: 0.3s; }
  .delay-2 { animation-delay: 0.6s; }
  .delay-3 { animation-delay: 0.9s; }
  .delay-4 { animation-delay: 1.2s; }
  .delay-5 { animation-delay: 1.5s; }
  .delay-6 { animation-delay: 1.8s; }
  .delay-7 { animation-delay: 2.1s; }
  .delay-8 { animation-delay: 2.4s; }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }