/* Root Variables */
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --accent-color: #007aff;
  --section-bg: #f9f9f9;
}

body.dark {
  --bg-color: #121212;
  --text-color: #eeeeee;
  --accent-color: #d46300;
  --section-bg: #1e1e1e;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 72px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  z-index: 100;
  transition: background 0.3s ease;
}

body.dark .navbar {
  background: rgba(18, 18, 18, 0.95);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-color);
}

.nav-links a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.download-cv {
  background: var(--accent-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.download-cv:hover {
  background: #005fcc;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: rotate(20deg);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.profile-img {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--accent-color);
  transition: transform 0.3s;
}

.profile-img:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 2rem;
}

.hero span {
  color: var(--accent-color);
}

.tagline {
  max-width: 500px;
  margin: 1rem auto;
  font-size: 1rem;
  color: #555;
}

/* Sections */
.section {
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  background: var(--section-bg);
  transition: background 0.3s ease;
}

.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--accent-color);
}

/* Skills and Workflow */
.skills-list,
.workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1rem;
  justify-content: center;
}

.skills-list li,
.workflow li {
  background: #f0f4f8;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.contact-form button {
  padding: 0.75rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #005fcc;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: var(--text-color); /* Use text color variable */
  background: var(--section-bg); /* Use section background variable */
  margin-top: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .footer {
  border-top: 1px solid #444; /* Dark mode border */
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Tagline */
.tagline {
  max-width: 500px;
  margin: 1rem auto;
  font-size: 1rem;
  color: var(--text-color); /* Ensure it uses the text color variable */
  text-align: center;
}



.workflow li {
  background: #f0f4f8;
  padding: 0.75rem 1.25rem; /* Adjust padding */
  border-radius: 6px;
  font-size: 1rem;
  color: #222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark .workflow li {
  background: #2a2a2a; /* Dark mode background for workflow items */
  color: var(--text-color); /* Ensure text is readable in dark mode */
}



/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem; /* Add spacing between icons */
  margin-top: 1rem;
}

.social-icons a {
  color: var(--text-color); /* Use the text color variable */
  font-size: 1.5rem; /* Adjust icon size */
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color); /* Change color on hover */
}