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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background: #1e1e1e;
  color: #f5f5f5;
}

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

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

/* Header */
header {
  background: #121212;
  color: #f5f5f5;
  text-align: center;
  padding: 40px 20px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

/* Navbar container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #1e1e1e;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Logo */
.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

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

.nav-links li a:hover {
  color: #00adb5;
}

/* Menu toggle (hamburger) */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: white;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 30px;
    background: #222;
    padding: 15px;
    border-radius: 8px;
  }

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

  .menu-toggle {
    display: block;
  }
}

/* Adjust typing text so it doesn’t overlap navbar */
.typing-container {
  margin-top: 120px; /* push down below navbar */
  text-align: center;
}

/* About */
.about {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 40px 0;
}

.about img {
  flex-shrink: 0;
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ac7e13;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}

.skill-card {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  background: #333;
}

.skill-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}


/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s, background 0.3s;
}

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

.project-card h3 {
  margin-top: 0;
  color: #00adb5;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #fff;
  background: #00adb5;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s;
}

.project-card a:hover {
  background: #008c99;
}

/* Resume */
.resume {
  margin: 40px 0;
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #768b8d;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn:hover {
  background: #8db5b6;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

.social-icons {
  margin: 15px 0;
}

.social-icons a {
  color: #8ea2a3;
  font-size: 28px;
  margin: 0 12px;
  transition: color 0.3s, transform 0.2s;
}

.social-icons a:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-note {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

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

#typing-text {
  border-right: 3px solid #568b35;
  padding-right: 5px;
  animation: blink 0.7s infinite;
  font-weight: 600;
  font-size: 20px;
}

@keyframes blink {
  50% { border-color: transparent; }
}
