/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  background-image: linear-gradient(to bottom, #ffffff, #f0f4f8);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: #007acc;
  transition: color 0.3s ease;
}

a:hover {
  color: #005a99;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: #001f3f;
  color: white;
  padding: 40px 0;
  text-align: center;
  border-bottom: 5px solid #007acc;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

nav {
  background: #003366;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 2rem;
}

nav a {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

nav a:hover,
nav a.active {
  color: #6fc3df;
}

section {
  padding: 60px 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #001f3f;
}

/* About Section */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.about-content {
  flex: 1 1 300px;
}

.about-img {
  flex: 1 1 300px;
  text-align: center;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill-tag {
  background: #e0f7fa;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  color: #006064;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.project-card img {
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 15px;
}

.project-content h3 {
  margin-bottom: 10px;
  color: #003366;
}

.project-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.project-content a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background: #007acc;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,122,204,0.3);
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005a99;
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 30px 0;
  background: #001f3f;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .about {
    flex-direction: column;
  }

  section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 10px;
  }

  header {
    padding: 30px 0;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}