/* General Reset */
* {
  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: #f4f7fa;
  color: #2c3e50;
  padding-top: 60px;
}

/* Dark Mode */
.dark body {
  background: #1a1a1a;
  color: #e5e5e5;
}

.dark .navbar {
  background: #111;
  box-shadow: 0 2px 4px rgba(255,255,255,0.1);
}

.dark .navbar a {
  color: #e5e5e5;
}

.dark .navbar a:hover {
  color: #38bdf8;
}

.dark section {
  background-color: #1e1e1e;
}

.dark .project,
.dark .job {
  background: #2a2a2a;
  border-left-color: #4fd1c5;
  box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

.dark .hero {
  background: radial-gradient(circle at top left, #111, #222);
}

.dark .hero-buttons a {
  background: #4fd1c5;
  color: black;
}

.dark .hero-buttons a:hover {
  background: #38bdf8;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1f2937;
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #38bdf8;
}

#theme-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 20px 80px;
  background: radial-gradient(circle at top left, #1f2937, #4b5563);
  color: white;
  animation: fadeIn 2s ease-in;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1.5s ease-out;
}

.hero h2 {
  font-size: 1.7rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.hero p {
  margin-bottom: 1.5rem;
  color: #cfcfcf;
}

.hero-buttons a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background: #38bdf8;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.hero-buttons a:hover {
  background: #0ea5e9;
  transform: scale(1.05);
}

/* Project Link Button */
.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #0ea5e9;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s;
}

.project-link:hover {
  background: #0284c7;
  transform: scale(1.03);
}

.dark .project-link {
  background: #4fd1c5;
  color: #000000 !important;
}

.dark .project-link:hover {
  background: #3cb9b1;
}

/* Enhanced Project Link Styling */
.project a {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #0ea5e9;
  text-decoration: none;
  transition: color 0.3s;
}

.project a:hover {
  color: #0284c7;
  text-decoration: underline;
}

.dark .project a {
  color: #4fd1c5;
}

.dark .project a:hover {
  color: #3cb9b1;
  text-decoration: underline;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.4rem;
  color: #4a6283;
}

.project, .job {
  background: white;
  margin-bottom: 20px;
  padding: 20px;
  border-left: 6px solid #38bdf8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project:hover, .job:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.project h3, .job h3 {
  margin-bottom: 10px;
  color: #4a6283;
}

ul li {
  margin-left: 20px;
  list-style-type: disc;
}

/* Contact */
.resume-contact a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}

.resume-contact a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
