:root {
  --primary: #2563eb; /* Vibrant blue */
  --secondary: #f59e0b; /* Vibrant orange */
  --accent: #10b981; /* Vibrant green */
  --dark: #1e293b; /* Dark text */
  --light: #ffffff; /* Light background */
  --code-bg: #f3f4f6; /* Light code background */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Consolas", "Courier New", monospace;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
#home {
  padding-top: 100px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 100vh;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 2rem;
}

.hero-text code {
  background: var(--code-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--primary);
}

/* Blob with Profile Picture */
.blob {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
  animation: morph 10s infinite;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blob .profile-pic {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light);
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
  }
  50% {
    border-radius: 40% 60%;
  }
  100% {
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
  }
}

/* Sections */
section {
  padding: 6rem 2rem;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
  text-align: center;
}

.about {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
}

.about p {
  background: var(--code-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: var(--code-bg);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.image-gallery {
  columns: 3 300px;
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  margin-bottom: 1rem;
  break-inside: avoid;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--light);
    width: 100%;
    padding: 2rem;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }

  .blob {
    width: 250px;
    height: 250px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}
