/* ===== CSS Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Variables ===== */
:root {
  --primary: #2c5530;
  --primary-light: #4a7856;
  --secondary: #d4a574;
  --accent: #e76f51;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  
  /* Theme Variables */
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --footer-bg: #212529;
  --border-color: #e9ecef;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e9ecef;
  --card-bg: #1e1e1e;
  --header-bg: #1a1a1a;
  --footer-bg: #0a0a0a;
  --border-color: #333333;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --gray-light: #2a2a2a;
}

/* ===== Base Styles ===== */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

.muted {
  color: var(--gray);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background-color: var(--gray-light);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: #333;
}

.theme-icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

/* Hide moon icon by default, show sun icon in dark mode */
.theme-icon.moon { display: none; }
.theme-icon.sun { display: block; }

[data-theme="dark"] .theme-icon.moon { display: block; }
[data-theme="dark"] .theme-icon.sun { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: #d45a3c;
}

/* ===== Header / Navbar ===== */
.site-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.logo-mark {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-color);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--gray);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-link {
  padding: 10px 15px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: var(--primary);
}

.nav-link.cta {
  background-color: var(--accent);
  color: white;
  border-radius: var(--border-radius);
  margin-left: 10px;
}

.nav-link.cta:hover {
  background-color: #d45a3c;
  color: white;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 400px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('together2.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Main Content ===== */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-head h2 {
  margin-bottom: 1rem;
}

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.project-content p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 60px 0 0;
  transition: background-color 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-light);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== Animations ===== */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim].animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    height: 350px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 20px;
  }
  
  .nav-link {
    display: block;
    padding: 12px 0;
  }
  
  .nav-link.cta {
    margin: 10px 0 0;
    text-align: center;
  }
  
  .hero {
    height: 300px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .header-inner {
    padding: 12px 15px;
  }
  
  .hero {
    height: 250px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}