@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --bg: #f9f9fb;
  --text: #222;
  --card: #ffffff;
  --primary: #0077ff;
  --accent: #e0e7ff;
  --shadow: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg: #1e1e2f;
  --text: #f1f1f1;
  --card: #2a2a3d;
  --primary: #66ccff;
  --accent: #333c5c;
  --shadow: rgba(0, 0, 0, 0.2);
}

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

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

.container {
  max-width: 1140px;
  margin: auto;
  padding: 2rem 1.5rem;
}

/* Navigation */
.navbar {
  background: var(--bg);
  box-shadow: 0 2px 6px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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


.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

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

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

/* Hero Section */
.enhanced-hero {
  padding: 6rem 2rem;
  color: white;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('web_assets/back.jpeg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.hero-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
}

.hero-content h2 {
  font-size: 2.2rem;
}

.hero-content span {
  color: #fff;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Button */
.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
  border: none;
}

.btn:hover {
  background: #f0f0f0;
}

.btn.outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn.outline:hover {
  background: white;
  color: var(--primary);
}

/* Section */
.section {
  padding: 1.5rem 1.5rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtext {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-img {
  width: 160px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow);
  text-align: center;
  font-weight: 500;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 0.2s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-6px);
}

.app-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* Store / Web Links */
.store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.store-links a {
  background: var(--accent);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.store-links a:hover {
  background: var(--primary);
  color: white;
}

/* Skills */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem 1rem;
}

.skills-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 40px;  /* Ensures same height */
  line-height: 1;     /* Keeps text centered vertically */
  white-space: nowrap;
}

/* Contact */
#contact p {
  font-size: 1rem;
  margin: 0.5rem 0;
  text-align: center;
}

#contact a {
  color: var(--primary);
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--primary);
  color: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.feature-card span.count {
  font-size: 5rem;
  font-weight: 700;
  display: block;
  color: var(--primary);
}

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

.feature-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow);
  text-align: center;
  font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

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

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

  .skills-list {
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .project-card {
    padding: 1.2rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-img,
  .profile-img {
    width: 200px;
    height: 200px;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  color: var(--text);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 10px var(--shadow);
  transition: transform 0.2s ease;
}

.social-card:hover {
  transform: translateY(-4px);
}

.social-card img {
  width: 24px;
  height: 24px;
}

.social-header {
  margin: 1rem 0 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .social-header {
    justify-content: center;
  }
}

.social-header a {
  display: inline-flex;
  background: white;
  border-radius: 50%;
  padding: 0.4rem;
  box-shadow: 0 4px 8px var(--shadow);
  transition: transform 0.2s ease;
}

.social-header a:hover {
  transform: scale(1.1);
}

.social-header img {
  width: 28px;
  height: 28px;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  
   .hero-buttons a {
    display: inline-block;
    margin: 0.5rem auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
  }

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

  .nav-links li {
    text-align: center;
  }
}

.skills-category {
  margin-bottom: 2.5rem;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 10px;
}







