/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #2a1f3d);
  color: #f4f4f9;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(30, 30, 47, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #c9a0ff;
}

.navbar nav a {
  margin-left: 1.5rem;
  color: #b39ddb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar nav a:hover {
  color: #d7bfff;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.hero-text {
  flex: 1 1 50%;
  padding: 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: #c9a0ff;
  margin-bottom: 1rem;
}

.hero-text .tagline {
  font-size: 1.2rem;
  color: #b084f5;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1rem;
}

.hero-text .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #b084f5;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hero-text .btn:hover {
  background: #c9a0ff;
}

.hero-img {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

.hero-img img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.hero-img img:hover {
  transform: scale(1.05);
}

/* Projects */
.projects {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.projects h2 {
  text-align: center;
  color: #c9a0ff;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #b084f5;
}

.card p, .card ul {
  color: #ddd;
  font-size: 0.95rem;
}

.card a {
  color: #b39ddb;
}

.card a:hover {
  color: #d7bfff;
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
}

.contact h2 {
  color: #c9a0ff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 1.5rem;
}

.contact a {
  color: #b39ddb;
  margin: 0 0.5rem;
  text-decoration: none;
}

.contact a:hover {
  color: #d7bfff;
  text-decoration: underline;
}

.contact-img {
  margin-top: 1.5rem;
  max-width: 70%;
  border-radius: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: rgba(30, 30, 47, 0.9);
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    flex: 1 1 100%;
  }

  .hero-img {
    margin-top: 2rem;
  }

  .contact-img {
    max-width: 100%;
  }
}

