/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Global ===== */
html, body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #f8f9fa;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Header ===== */
header {
  background: #92a2e2;
  box-shadow: 0 2px 6px rgba(33, 30, 30, 0.05);
}


.nav {
  height: 15%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #333;
  padding: 6px 10px;
  border-radius: 5px;
}
nav a.active, nav a:hover {
  background: #007bff;
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  opacity: 0.8;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}
.hero-text h2 {
  font-size: 2rem;
}
.hero-text span {
  color: #ffeb3b;
}
.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
}

/* ===== Skills & Projects ===== */
section {
  padding: 3rem 0;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.card img {
  width: 100%;
  border-radius: 8px;
  height: 160px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* ===== About Section ===== */
.about-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.about-box img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Contact Page ===== */
.contact {
  text-align: center;
  padding: 3rem 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 1.5rem auto;
}
.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}
.contact-form button {
  background: #007bff;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #0056b3;
}

/* ===== Footer ===== */
footer {
  background: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero img { height: 300px; }
  .hero-text h2 { font-size: 1.5rem; }
}
