/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(to bottom right, #e0f7fa, #ffffff);
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  position: relative;
}

/* Background pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
  opacity: 0.07;
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  background: #007bff;
  color: white;
  padding: 20px 0;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: #e9f5ff;
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero span {
  color: #007bff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056b3;
}

.section {
  padding: 50px 20px;
  text-align: center;
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 0 20px;
}

.about-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.about-photo {
  flex-shrink: 0;
  align-self: flex-start;
}

.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Skills & Projects */
.skills-grid, .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill, .project-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.skill:hover, .project-card:hover {
  transform: translateY(-5px);
}

.project-card a {
  color: #007bff;
  text-decoration: none;
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px 10px;
  margin-top: 50px;
}