/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.6;
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #111;
  text-decoration: none;
}

a:visited {
  color: #111;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 0;
}

/* Dark Mode Toggle Button — fixed to top right on desktop */
.dark-toggle {
  position: fixed;
  top: -20px;
  right: -5px;
  z-index: 1000;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dark-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(15deg);
}

body.dark .dark-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Optional mobile adjustment if needed */
@media (max-width: 768px) {
  .dark-toggle {
    top: 15px;
    right: 15px;
  }
}



/* Dark Mode */
body.dark {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark a,
body.dark a:visited {
  color: #90caf9;
}

body.dark .nav {
  background-color: #1e1e1e;
  border-color: #333;
}

body.dark .nav-links a {
  color: #f1f1f1 !important;
}

body.dark .hero {
  background-color: #1a1a1a;
}

body.dark .section h2,
body.dark .skills-category h3,
body.dark .tools-group h3 {
  color: #f1f1f1;
}

body.dark .skills-list li,
body.dark .tools-group ul li {
  background-color: #2a2a2a;
  color: #f1f1f1;
}

body.dark input,
body.dark textarea {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #444;
}

body.dark .contact-form {
  background-color: #1e1e1e;
  border: 1px solid #333;
}

body.dark .contact-form button {
  background-color: #f1f1f1;
  color: #121212;
}

body.dark .contact-form button:hover {
  background-color: #ddd;
}

/* Navigation */
.nav {
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
  flex-wrap: wrap;
}



.logo {
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a,
.nav-links a:visited,
.nav-links a:focus,
.nav-links a:active {
  color: #111 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007acc !important;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  background-color: #f9f9f9;
}

.hero .container {
  display: flex;
  flex-direction: column-reverse; /* mobile-friendly layout */
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 600px;
}

.main-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sub-heading {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.intro {
  font-size: 1rem;
  color: #333;
}

.hero-image img {
  border-radius: 10px;
  width: 200px;
  margin-bottom: 30px;
}

/* Section Titles */
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Contact Form */
.contact-form {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  background-color: #111;
  color: #fff;
  padding: 12px;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #333;
}

/* Skills Section */
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills-list li {
  background-color: transparent;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.95rem;
  color: #111;
}

/* Resume Button */
.resume-button {
  display: inline-block;
  background-color: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: 20px;
}

.resume-button:hover {
  background-color: #333;
}

body.dark .resume-button {
  background-color: #f1f1f1;
  color: #121212;
}

body.dark .resume-button:hover {
  background-color: #ddd;
}

/* Social */
.social-heading {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 40px;
  color: #222;
}

body.dark .social-heading {
  color: #f1f1f1;
}

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  color: #007acc;
  font-weight: 600;
}

/* Fade-In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Fixes */
@media (max-width: 768px) {
  .nav .container {
    flex-direction: row;
    align-items: center;
  }

  .nav-links {
    flex-direction: row;
    gap: 15px;
    width: auto;
    padding-top: 0;
  }

  .main-heading {
    font-size: 1.8rem;
  }

  .sub-heading {
    font-size: 1rem;
  }

  .contact-form {
    padding: 20px;
    margin: 20px 10px;
  }

  .resume-button {
    display: block;
    width: 100%;
    text-align: center;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .skills-list li {
    background-color: transparent;
  }
}
.dark-toggle {
  align-self: flex-end;
  margin-top: 10px;
  margin-right: 0;
}


