/**** css/style.css - polished and sticky navbar ****/

:root {
  --background: #ffffff;
  --text: #111111;
  --accent: #0077ff;
  --card: #f5f5f5;
  --shadow: rgba(0, 0, 0, 0.05);
  --navbar-bg: #ffffff;
  --hamburger-bar: #111111;
}

[data-theme="dark"] {
  --background: #121212;
  --text: #ffffff;
  --accent: #66ccff;
  --card: #1e1e1e;
  --shadow: rgba(255, 255, 255, 0.1);
  --navbar-bg: #1e1e1e;
  --hamburger-bar: #ffffff;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.5rem;
  color: var(--text);
}

h2 {
  font-size: 2rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px var(--shadow);
  transition: background 0.3s ease;
  transform: translateZ(0);
}

.navbar .logo img {
  height: 40px;
  transition: filter 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
  padding: 1rem 0;
  font-size: 1.1rem;
  text-align: center;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem;
  padding-top: 6rem; /* Offset for fixed navbar */
  background: var(--background);
  animation: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.hero-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 119, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
}

[data-theme="dark"] .hero-img {
  box-shadow: 0 4px 20px rgba(102, 204, 255, 0.25);
}

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

.subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.tagline {
  font-size: 1rem;
  max-width: 600px;
  margin: 1rem auto;
}

.cta-buttons {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  row-gap: 0.75rem;
}

.btn {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.btn:hover {
  background: #005fd1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow);
}

.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section {
  background: var(--background);
  padding: 3rem 1rem;
}

.projects {
  display: grid;
  gap: 2rem;
}

.project, .featured-item {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover, .featured-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px var(--shadow);
}

.project h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.project p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

.project a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 16px;
  font-size: 1rem;
  background: var(--background);
  color: var(--text);
}

.contact-form button {
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--background);
  font-size: 0.9rem;
  margin-top: 2rem;
}

footer .social {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer .social a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

footer .social a:hover {
  text-decoration: underline;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.hamburger .bar {
  width: 24px;
  height: 3px;
  background-color: var(--hamburger-bar);
  border-radius: 16px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    flex-direction: column;
    background: var(--background);
    padding: 1rem;
    width: 92%;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: all 0.3s ease;
    margin: 0;
  }

  .nav-menu.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.contact-info li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

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

.contact-info a:hover {
  text-decoration: underline;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}