:root {
  --bg: #f4f4f4;
  --text: #333;
  --card: #fff;
  --accent: #ff4081;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

h1, h2, h3 {
  margin-bottom: 20px;
}

.highlight {
  color: var(--accent);
}

/* Navbar */
.navbar {
  background-color: var(--card);
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #ffafbd, #ffc3a0);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero .btn {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: var(--accent);
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s ease;
}

.hero .btn:hover {
  background: #ffebf1;
}

/* About */
.about p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

/* Project Section */
.projects h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

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

.project-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-card p {
  color: var(--text);
}

.project-card a {
  text-decoration: none;
  color: var(--accent);
  font-weight: bold;
}

/* Contact */
.contact ul {
  list-style: none;
  padding-top: 10px;
}

.contact li {
  padding: 10px 0;
}

/* Footer */
footer {
  text-align: center;
  background: #222;
  color: white;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active,
.reveal-visible {
  opacity: 1;
  transform: none;
}

/* Dark Mode */
.dark-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--card);
  color: var(--text);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

body.dark {
  --bg: #121212;
  --text: #f5f5f5;
  --card: #1e1e1e;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: var(--card);
    position: absolute;
    top: 60px;
    right: 20px;
    display: none;
    padding: 10px;
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background: var(--text);
  }

  .hero {
    padding: 60px 20px;
  }

  .container {
    padding: 30px 15px;
  }
}
