/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 20px;
  gap: 40px;
}

header nav a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #0071e3;
}

/* Section Generic Styling */
section {
  padding: 100px 0;
  width: 100%;
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #ffffff;
  padding-top: 80px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  margin-right: 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.25rem;
  color: #444;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* About Section */
.about-section {
  background: #f5f5f5;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0071e3;
}

.about-text p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

/* Skills Section */
#skills {
  background: #ffffff;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.skills-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0071e3;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.skill-card {
  background: #f5f5f5;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 25px;
  width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #0071e3;
}

.skill-card p {
  font-size: 0.95rem;
  color: #666;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Projects Section */
#projects {
  background: #f5f5f5;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.projects-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0071e3;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 15px 20px 10px;
  color: #0071e3;
}

.project-card p {
  font-size: 0.95rem;
  margin: 0 20px 20px;
  color: #555;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Blog Section */
#blog {
  background: #ffffff;
}

.blog-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  color: #0071e3;
}

.blog-post {
  background: #f5f5f5;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0071e3;
}

.blog-post p,
.blog-post li {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.blog-post ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Contact Section */
#contact {
  background: #f5f5f5;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0071e3;
}

.contact-container p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #555;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-links a {
  color: #0071e3;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid #0071e3;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-links a:hover {
  background: #0071e3;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    margin-right: 0;
    margin-bottom: 30px;
  }
  .hero-image img {
    max-width: 80%;
  }
  .about-container {
    text-align: center;
  }
  .about-image img {
    margin-bottom: 20px;
  }
  .skills-grid {
    gap: 20px;
  }
}
