/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f0f8ff;
  color: #222;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #51a9f3, #00f2fe);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-content h1 span {
  color: #fffa65;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background-color: #fff;
  color: #0072ff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #0072ff;
  color: #fff;
}

/* Section Styling */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* About */
.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
}

/* Projects */
.project-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.project-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 300px;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  color: #0072ff;
  margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #51a9f3, #00f2fe);
  color: #fff;
}

.contact-section p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.contact-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  max-width: 350px;
  width: 100%;
  text-align: left;
  color: #222;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card img {
  width: 40px;
  height: 40px;
}

.contact-card h4 {
  margin: 0;
  font-size: 18px;
  color: #000;
}

.contact-card a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  display: block;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Themed HR Divider */
.themed-hr {
  border: none;
  height: 4px;
  width: 80%;
  margin: 60px auto 0;
  background: linear-gradient(to right, #51a9f3, #00f2fe);
  border-radius: 2px;
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 20px 10px;
  font-size: 16px;
  color: #333;
}

.footer span {
  color: red;
  font-size: 18px;
}

.footer strong {
  color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
  .project-list,
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }
}
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 16px;
  }
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .navbar {
    background: linear-gradient(135deg, #1a1a1a, #333);
  }

  .nav-links a {
    color: #e0e0e0;
  }

  .hero {
    background: linear-gradient(135deg, #1a1a1a, #333);
  }

  .hero-content h1,
  .hero-content p {
    color: #fff;
  }

  .btn {
    background-color: #333;
    color: #fff;
  }

  .btn:hover {
    background-color: #0072ff;
    color: #fff;
  }

  .section h2 {
    color: #fff;
  }

  .project-card,
  .contact-card {
    background-color: #222;
    color: #e0e0e0;
  }

  .project-card h3,
  .contact-card h4 {
    color: #0072ff;
  }

  .footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} 
.hero,
.section,
.project-card,
.contact-card {
  animation: fadeIn 0.5s ease-in-out;
} 
/* Smooth Scroll */
html {
  scroll-behavior: smooth;
} 
/* Accessibility */
:focus {
  outline: 2px solid #0072ff;
  outline-offset: 2px;
}
/* Print Styles */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  .navbar,
  .footer {
    display: none;
  }

  .hero,
  .section {
    padding: 20px;
  }

  .project-card,
  .contact-card {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
} 
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #f0f8ff;
}
::-webkit-scrollbar-thumb {
  background: #0072ff;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #005bb5;
}
/* Accessibility Enhancements */
:focus-visible {
  outline: 2px solid #0072ff;
  outline-offset: 2px;
}
/* High Contrast Mode */
@media (prefers-contrast: more) {
  body {
    background-color: #000;
    color: #fff;
  }

  .navbar,
  .footer {
    background-color: #111;
  }

  .nav-links a,
  .hero-content h1,
  .hero-content p {
    color: #fff;
  }

  .btn {
    background-color: #fff;
    color: #000;
  }

  .btn:hover {
    background-color: #0072ff;
    color: #fff;
  }

  .project-card,
  .contact-card {
    background-color: #222;
    color: #fff;
  }
}
/* Print Styles */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  .navbar,
  .footer {
    display: none;
  }

  .hero,
  .section {
    padding: 20px;
  }

  .project-card,
  .contact-card {
    page-break-inside: avoid;
    margin-bottom: 20px;
  } }
  .back-to-top {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}
.back-to-top:hover {
  text-decoration: underline;
}
