
/* Base styles and variables */
:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-primary: #333;
  --text-secondary: #666;
  --accent-color: #006A4E;
  --border-color: #e0e0e0;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --section-padding: 5rem 0;
  --container-padding: 0 1.5rem;
}

:root.dark-mode {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #aaa;
  --accent-color: #66ffcc;
  --border-color: #333;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Toggle Button Styles (Optional styling) */
#darkModeToggle {
  background: none;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
}

#darkModeToggle:hover {
  background-color: var(--accent-color);
  color: #000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: darken(var(--accent-color), 10%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent-color);
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2878ff;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(58, 134, 255, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: rgba(58, 134, 255, 0.1);
  transform: translateY(-3px);
}

/* Navbar */
#navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
}

.image-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-text {
  flex: 1;
}

.about-details {
  margin: 2rem 0;
}

.detail-item {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.detail-title {
  font-weight: 600;
  min-width: 120px;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-link {
  padding: 0.5rem 1rem;
  background-color: #f0f0f0;
  border-radius: 4px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Skills Section */
.skills-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff; /* optional, to fill empty space if image doesn't fill area */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* this fits the entire image */
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tech span {
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: underline;
}

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

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.25);
}

/* Footer */
.footer {
  background-color: #222;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .detail-item {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }
  
  .mobile-menu-open li {
    margin: 0;
  }
  
  .mobile-menu-open a {
    display: block;
    padding: 1rem 2rem;
  }
  
  .mobile-menu-open a::after {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
