
:root {
  --primary: #4e54c8;
  --secondary: #8f94fb;
  --accent: #ff6b6b;
  --text: #333;
  --bg-light: #f9f9f9;
  --bg-dark: #1e1e2f;
  --white: #fff;
  --card-bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f2;
    --bg-light: #1a1a1a;
    --bg-dark: #121212;
    --card-bg: #1f1f1f;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-light);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}


.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.navbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--accent);
}


.hero {
  background: linear-gradient(to bottom right, var(--secondary), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 1.5s ease;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.title {
  font-size: 2.5rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #e0e0e0;
}

.section {
  padding: 4rem 2rem;
  background-color: var(--bg-light);
  animation: fadeIn 1s ease-in;
}

.alt-section {
  background-color: var(--card-bg);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.5rem;
}


.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.skills span img {
  width: 48px;
  transition: transform 0.3s ease;
}

.skills span img:hover {
  transform: scale(1.2);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.project-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-item p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.project-tags {
  margin: 0.5rem 0;
}

.project-tags span {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 5px;
  margin-right: 5px;
}

.project-btn {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: bold;
  width: fit-content;
}

.project-btn:hover {
  background: #ff4b4b;
}


#contact a {
  color: var(--primary);
  text-decoration: none;
}

#contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}


.footer {
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.coming-soon {
  background-color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

body {
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .projects {
    grid-template-columns: 1fr; 
    padding: 0;
  }

  .section {
    padding: 2rem 1rem;
  }
}

