/* Base styles and typography */
/* Typography updates */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Montserrat:wght@700;800&display=swap');

:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #1abc9c;
  --text-color: #333;
  --text-light: #777;
  --bg-color: #fff;
  --bg-light: #f5f7fa;
  --border-color: #e0e0e0;
  --tag-bg: #edf2f7;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Font families */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Poppins', sans-serif;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.logo h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-family: var(--body-font);
  font-weight: 400;
}

.project-info h3 {
  font-family: var(--heading-font);
  font-weight: 700;
}

.tech-tags span {
  font-family: var(--body-font);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn, .btn-small {
  font-family: var(--body-font);
  font-weight: 600;
  letter-spacing: 0.02em;
}

nav ul li a {
  font-family: var(--body-font);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contact h2, .projects h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.error-content h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.error-content h2 {
  font-family: var(--heading-font);
  font-weight: 700;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #1abc9c;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --bg-light: #f5f7fa;
    --border-color: #e0e0e0;
    --tag-bg: #edf2f7;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
  }
  
  p {
    margin-bottom: 15px;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--accent-color);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Button styles */
  .btn, .btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .btn::after, .btn-small::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    z-index: -2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scaleY(0);
    transform-origin: bottom;
  }
  
  .btn:hover::after, .btn-small:hover::after {
    transform: scaleY(1);
  }
  
  .btn:hover, .btn-small:hover {
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
  }
  
  .btn-outline {
    background-color: transparent;
    color: var(--primary-color);
  }
  
  .btn-outline:hover {
    color: white;
  }
  
  /* Header styles */
  header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  
  .logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
  }
  
  nav ul {
    display: flex;
  }
  
  nav ul li {
    margin-left: 30px;
  }
  
  nav ul li a {
    position: relative;
    font-weight: 500;
    padding-bottom: 5px;
  }
  
  nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  nav ul li a:hover::after,
  nav ul li a.active::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* Hero section */
  .hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 100px 0 70px;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
  }
  
  /* Projects section */
  .projects {
    padding: 80px 0;
    background-color: var(--bg-light);
  }
  
  .projects h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
  }
  
  .project-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
  }
  
  .project-image {
    height: 200px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.05);
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
  }
  
  .tech-tags span {
    background-color: var(--tag-bg);
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  .project-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
  }
  
  /* Contact section */
  .contact {
    padding: 70px 0;
    background-color: var(--bg-light);
    position: relative;
  }
  
  .contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
  }
  
  .contact h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
  }
  
  .contact-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
  }
  
  .contact-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding: 10px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: inline-block;
  }
  
  .contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 12px;
    font-size: 1.4rem;
    transition: var(--transition);
  }
  
  .social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }
  
  /* Footer */
  footer {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 20px 0;
  }
  
  /* About page styles */
  .about-hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 120px 0 60px;
  }
  
  .about-hero h1 {
    font-size: 3rem;
  }
  
  .about-content {
    padding: 80px 0;
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
  }
  
  .about-image {
    position: sticky;
    top: 100px;
  }
  
  .about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  
  .about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .about-text h3 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
  }
  
  .skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  .skill-category ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
  }
  
  .skill-category ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
  }
  
  .experience-item, .education-item {
    margin-bottom: 25px;
  }
  
  .experience-item h4, .education-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .company {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 8px;
  }
  
  .cta {
    margin-top: 40px;
    display: flex;
    gap: 15px;
  }
  
  /* 404 Error page */
  .error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 0;
    text-align: center;
  }
  
  .error-content h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
  }
  
  .error-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  /* Media Queries */
  @media (max-width: 992px) {
    .about-grid {
      grid-template-columns: 1fr;
    }
    
    .about-image {
      position: static;
      max-width: 400px;
      margin: 0 auto 40px;
    }
  }
  
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2.5rem;
    }
    
    .menu-toggle {
      display: block;
    }
    
    nav ul {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      flex-direction: column;
      background-color: var(--bg-color);
      padding: 20px 0;
      box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
      transition: var(--transition);
    }
    
    nav ul.active {
      left: 0;
    }
    
    nav ul li {
      margin: 10px 20px;
    }
    
    .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
  }
  
  @media (max-width: 576px) {
    .hero {
      padding: 100px 0 60px;
    }
    
    .hero h1 {
      font-size: 2rem;
    }
    
    .about-hero h1 {
      font-size: 2.2rem;
    }
    
    .about-text h2 {
      font-size: 1.8rem;
    }
    
    .contact h2,
    .projects h2 {
      font-size: 1.8rem;
    }
    
    .cta {
      flex-direction: column;
    }
  }
  .bgg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    padding: 0 15px;
  }