/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  transition: 0.3s;
}
h2 {
  font-family: "Poppins", sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}
.logo {
  color: #38bdf8;
  font-size: 1.6rem;
  font-weight: 800;
}
.logo .dot {
  color: #f97316;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links li a {
  color: #e2e8f0;
  font-weight: 500;
  position: relative;
}
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s;
}
.nav-links li a:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem 4rem;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
}
.hero-text {
  flex: 1 1 400px;
}
.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero h3 {
  color: #38bdf8;
  font-size: 1.3rem;
  height: 1.5rem;
}
.hero p {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #94a3b8;
}
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

/* Hero Image */
.hero-image {
  flex: 1 1 300px;
  position: relative;
}
.hero-image img {
  width: 280px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 5px solid rgba(255, 255, 255, 0.1);
}
.circle-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  top: -20px;
  left: -20px;
  z-index: 1;
}

/* Sections */
.section {
  padding: 6rem 3rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}
.section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #38bdf8;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.2);
}
.project a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #38bdf8;
}
.project a:hover {
  color: #0ea5e9;
}

/* Contact */
#contact p {
  margin: 0.5rem 0;
}
#contact a {
  color: #38bdf8;
}
#contact a:hover {
  color: #0ea5e9;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #1e293b;
  color: #94a3b8;
  margin-top: 4rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1e293b;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 1rem;
    border-radius: 8px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}
