:root {
  --bg: #0e0e0e;
  --text: #ffffff;
  --card: #1a1a1a;
  --accent: #0077ff;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow-x: hidden;
}

/* Background animation */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 70%);
  animation: bgShift 30s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes bgShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 60px); }
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #333;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: nowrap;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
  padding: 0;
}

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

.nav-links a.active {
  color: var(--accent);
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--accent);
}

/* Main Layout */
main {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-top: 40px;
}

.hero img.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
  transform: translateZ(0);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin-bottom: 24px;
}

.hero-btn {
  background: var(--accent);
  color: #111;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s;
  display: inline-block;
  margin-bottom: 1rem;
  transform: translateZ(0);
}

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

/* Sections */
.section {
  margin-top: 80px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
}

.center-text {
  text-align: center;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  border: 1px solid #333;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(255, 0, 0, 0.199);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

/* Contact Section */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.contact-wrapper {
  background: var(--card);
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.199), 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
}

.contact-wrapper h1 {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-subtext {
  font-size: 1.15rem;
  color: #aaa;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: start;
  transition: all 0.3s ease;
  border: 1px solid #333;
  font-size: 1.2rem;
}

.contact-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.199);
}

.contact-box a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 20px;
  font-size: 0.9rem;
  color: #777;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem 1rem;
}

.about-img {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.about-content div {
  flex: 2 1 400px;
  line-height: 1.7;
}

.about-content h2 {
  margin-bottom: 1.2rem;
  font-size: 1.75rem;
}

.about-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: var(--card);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1rem;
    display: none;
    z-index: 999;
  }

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

  .nav-links a {
    padding: 0.5rem 0;
    width: 100%;
  }

  .logo {
    font-size: 1.4rem;
  }

  .hero img.profile-pic {
    width: 120px;
    height: 120px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero-btn {
    margin-bottom: 1rem;
  }

  main {
    padding: 40px 16px;
  }

  .section {
    margin-top: 60px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
