/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}
  
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}
  
/* Header */
header {
  background-color: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
}
  
header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  letter-spacing: 2px;
}
  
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

nav a:hover,
nav a.active {
  background: #ff6b6b;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  padding: 20px;
}

.hero h1 {
  font-size: 2rem;
  margin: 15px 0 10px;
}

.hero h2 {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

/* ===== Info Sections ===== */
.about-section,
.skills,
.learning,
.personal {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.about-section h3,
.skills h3,
.learning h3,
.personal h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #222;
}

/* ===== Skills Grid ===== */
.skills ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding-left: 20px;
  list-style: none;
}

.skills li {
  background: #f7f7f7;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== Call to Action ===== */
.cta {
  background: #ffefef;
  padding: 20px;
  margin: 30px auto;
  border-radius: 8px;
  text-align: center;
  max-width: 700px;
  border: 1px solid #ffdede;
}

.cta a {
  color: #ff3b3b;
  text-decoration: none;
  font-weight: bold;
}

.cta a:hover {
  text-decoration: underline;
}

/* ===== Mindset Paragraph ===== */
.mindset {
  text-align: center;
  max-width: 700px;
  margin: 20px auto;
  font-style: italic;
  color: #444;
}

/* ===== Main Layout ===== */
main {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* ===== Project Cards ===== */
.project {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
}

.project h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #222;
}

.project p {
  margin-bottom: 15px;
  color: #555;
}

.project img,
.project video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* ===== Links inside projects ===== */
.project a {
  display: inline-block;
  padding: 10px 15px;
  background: #ff6b6b;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.project a:hover {
  background: #ff3b3b;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: #222;
  color: #fff;
  border-top: 2px solid #111;
  font-size: 0.9rem;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }
}