:root {
  --primary: #4b6ef5;
  --bg: #0f111a;
  --text: #ffffff;
  --muted: #bbbbbb;
}

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

@keyframes popUp {
      0% { transform: scale(0.8); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

header {
  background: #0b0d17;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;  
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 5px 0;
  scrollbar-width: none;
}

nav ul::-webkit-scrollbar {
  display: none;
}

.hero img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--primary);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  text-align: center;
  background: linear-gradient(to bottom, #0f111a, #15182c);
  padding: 80px 0;
}

.hero h2 {
  font-size: 3rem;
}

.hero span {
  color: var(--primary);
}

.btn {
  margin-top: 20px;
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s ease;
}

.btn:hover {
  background: #354dbf;
  transform: scale(1.05);
}

.section {
  padding: 60px 0;
  background: #111323;
}

.section p {
  text-align: justify;
}

.justified {
  text-align: justify;
}

.section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: var(--primary);
}

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

.tech-item {
  background: #1c1f3a;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.3s;
}

.tech-item:hover {
  transform: scale(1.05);
  background: #273173;
}

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

.project-card {
  background: #1c1f3a;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

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

footer {
  background: #0b0d17;
  padding: 40px 0;
  text-align: center;
}

.contact-list {
  list-style: none;
  margin: 20px 0;
}

.contact-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.contact-list i {
  margin-right: 8px;
  color: var(--primary);
}

.copyright {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #777;
}

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

.achievement-card {
  background: #0b0c10; /* same as project card */
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
}

.achievement-card h3 {
  color: #4da6ff; /* same blue as project headings */
  margin-bottom: 0.5rem;
}

.achievement-card p {
  color: #ccc; /* same text color as projects */
}


@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .section h2 {
    font-size: 1.8rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* === ANIMATION SECTION === */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}
 
/* === SCROLL ANIMATION === */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }
