/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #f9f9fb;
  color: #222;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}
.logo span {
  color: #ff4081;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #007bff;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 2rem;
  flex-wrap: wrap;
}
.hero-content {
  flex: 1;
  min-width: 300px;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero .highlight {
  color: #007bff;
}
.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.hero-image img {
  width: 400px;
  max-width: 100%;
}

/* Buttons */
.btn,
.btn-outline,
.btn-small {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn {
  background: #007bff;
  color: #fff;
}
.btn:hover {
  background: #0056b3;
}
.btn-outline {
  border: 2px solid #007bff;
  color: #007bff;
}
.btn-outline:hover {
  background: #007bff;
  color: #fff;
}
.btn-small {
  font-size: 0.9rem;
  background: #ff4081;
  color: #fff;
  display: inline-block;
  margin-top: 0.5rem;
}
.btn-small:hover {
  background: #d81b60;
}

/* Sections */
section {
  padding: 5rem 2rem;
  text-align: center;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.skill {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: transform 0.3s;
}
.skill:hover {
  transform: translateY(-5px);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.project-card {
  padding: 10px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s;
}
.project-card img {
  margin: 0 auto;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-card:hover {
  transform: translateY(-10px);
}
.project-info {
  padding: 1.5rem;
}

.project-img {
  width: 400px;
  height: 270px;
}

/* Contact */
.contact-section {
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: #fff;
  border-radius: 15px;
  margin: 3rem 2rem;
}
.contact-section .btn {
  background: #fff;
  color: #007bff;
}
.contact-section .btn:hover {
  background: #f0f0f0;
}

/* Footer */
.footer {
  background: #fff;
  padding: 1rem;
  margin-top: 3rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Animations */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.show {
  opacity: 1;
  transform: translateY(0);
}

.tech-stack {
  display: flex;
  gap: 15px;
  padding-top: 10px;
}

/* Contact Section */
/* Contact Section */
#contact {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

/* Contact list layout */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Contact items */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 1.05rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Icons */
.contact-item i {
  font-size: 1.6rem;
  min-width: 28px;
  text-align: center;
}

/* Links */
.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Hover effect */
.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.contact-item:hover a {
  color: #007bff;
}

/* Email specific */
.contact-item .fa-envelope {
  color: #ea4335; /* Gmail red */
}

.contact-item a[href^="mailto:"] {
  color: #444;
  font-weight: 500;
}

.contact-item a[href^="mailto:"]:hover {
  color: #ea4335; /* match Gmail red on hover */
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode */
body.dark .contact-section {
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
}
body.dark .section-subtitle {
  color: #bbb;
}
body.dark .contact-card {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image img {
    margin-top: 2rem;
  }
  .nav-links {
    display: none;
  }
}
