/* ======= GLOBAL RESET ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* ======= HEADER ======= */
header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

header .btn {
  background: #ff9800;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

header .btn:hover {
  background: #e68900;
}

/* ======= NAVIGATION ======= */
nav {
  background: #333;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  margin: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #ff9800;
}

/* ======= CONTAINER SECTION ======= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

/* ======= ABOUT SECTION ======= */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 100px;
  object-fit: cover;
  border: 4px solid #333;
}

/* ======= PROJECTS ======= */
.project {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid #ff9800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 6px;
}

.project a {
  display: inline-block;
  margin-top: 10px;
  color: #2196f3;
  font-weight: bold;
}

.project a:hover {
  text-decoration: underline;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.project-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #ff9800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.project-card .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-view, .btn-code {
  padding: 8px 14px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-view:hover, .btn-code:hover {
  background: #0c7cd5;
}

.disabled {
  background: gray !important;
  cursor: not-allowed;
}

/* ======= SKILLS ======= */
.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 0;
}

.skills-list li {
  background: #fff;
  padding: 15px;
  border-left: 5px solid #2196f3;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ======= CONTACT ======= */
#contact a {
  color: #2196f3;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

input, textarea {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

button[type="submit"] {
  background-color: #2196f3;
  color: white;
  padding: 12px;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0c7cd5;
}

.form-status {
  font-weight: bold;
  color: green;
}

.alt-contact {
  margin-top: 20px;
}

/* ======= FOOTER ======= */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 50px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
