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

:root {
  --primary-green: #2d5a3d;
  --secondary-green: #4a7c59;
  --accent-green: #6ba569;
  --light-green: #8dd4a8;
  --sage: #a4b494;
  --dark-bg: #0d1f14;
  --light-text: #f0f5f1;
  --nature-brown: #6b4423;
  --earth: #8b6f47;
  --light-gray: #1a2b22;
  --forest: #1b3a27;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--forest) 100%);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(109, 165, 104, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 124, 89, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% {
    background: 
      radial-gradient(circle at 20% 50%, rgba(109, 165, 104, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(74, 124, 89, 0.1) 0%, transparent 50%);
  }
  50% {
    background: 
      radial-gradient(circle at 30% 60%, rgba(109, 165, 104, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 70% 70%, rgba(74, 124, 89, 0.15) 0%, transparent 50%);
  }
}

/* Floating Particles Effect */
@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-30px) translateX(-10px); }
  75% { transform: translateY(-10px) translateX(15px); }
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  padding: 1.5rem 0;
  box-shadow: 0 8px 32px rgba(45, 90, 61, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: headerSlideDown 0.6s ease-out;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-text);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(139, 212, 168, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(139, 212, 168, 0.6), 0 0 30px rgba(109, 165, 104, 0.4);
  }
}

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

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--light-green), var(--accent-green));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--light-green);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(139, 212, 168, 0.5);
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--light-text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    flex-direction: column;
    background: linear-gradient(180deg, var(--primary-green), var(--forest));
    width: 100%;
    text-align: center;
    gap: 0;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
    animation: slideInDown 0.3s ease-out;
  }

  .nav-links a {
    padding: 1rem;
    display: block;
  }

}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.35), rgba(107, 165, 104, 0.25)),
              url('https://imgs.search.brave.com/262gHYD6ZmLz0Br3zov7HkBNlsHfDYcu6ROTr1tZKco/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly93YWxs/cGFwZXJhY2Nlc3Mu/Y29tL2Z1bGwvMjkx/MzE0LmpwZw') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 31, 20, 0.5);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 212, 168, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 10%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  animation: slideInDown 0.8s ease;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--light-green);
  animation: slideInUp 0.8s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
  color: var(--dark-bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--light-green);
  margin: 0 0.5rem;
  animation: slideInUp 0.8s ease 0.4s both;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--light-green), var(--accent-green));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 165, 104, 0.6);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button.secondary {
  background: transparent;
  color: var(--light-text);
  border-color: var(--light-green);
}

.cta-button.secondary:hover {
  background: var(--secondary-green);
  color: var(--light-text);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.6);
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--light-green));
  margin: 1rem auto 0;
  border-radius: 2px;
  animation: expandWidth 0.8s ease 0.3s both;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 60px; }
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1;
  cursor: pointer;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) rotateY(45deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(0.9);
}

.portfolio-item:hover img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.9), rgba(107, 165, 104, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  animation: overlayAppear 0.4s ease;
}

@keyframes overlayAppear {
  from {
    transform: translateY(20px);
  }
  to {
    transform: translateY(0);
  }
}

.portfolio-overlay h3 {
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.3rem;
  animation: textFadeIn 0.4s ease 0.1s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: linear-gradient(135deg, var(--light-gray), var(--forest));
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--accent-green);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: slideInWithBounce 0.6s ease;
}

@keyframes slideInWithBounce {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 212, 168, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: 0 15px 40px rgba(107, 165, 104, 0.3);
  border-left-color: var(--light-green);
  background: linear-gradient(135deg, var(--secondary-green), var(--light-gray));
}

.service-card:hover::before {
  top: -25%;
  right: -25%;
  background: radial-gradient(circle, rgba(139, 212, 168, 0.25) 0%, transparent 70%);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: iconBounce 0.6s ease;
  display: inline-block;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--light-green);
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--light-text);
  text-shadow: 0 0 10px rgba(139, 212, 168, 0.5);
}

.service-card p {
  color: #c4d4c8;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: var(--light-text);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease;
}

.about-text p {
  margin-bottom: 1rem;
  color: #c4d4c8;
  line-height: 1.8;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.about-text p:hover {
  color: var(--light-text);
  padding-left: 1rem;
  border-left: 3px solid var(--accent-green);
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(107, 165, 104, 0.3);
  animation: slideInRight 0.8s ease;
  position: relative;
  border: 3px solid var(--accent-green);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.4s ease;
}

.about-image:hover img {
  filter: brightness(1.1) saturate(1.1);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 1.8rem;
  }
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  background: linear-gradient(135deg, var(--light-gray), var(--forest));
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--accent-green);
  box-shadow: 0 10px 30px rgba(107, 165, 104, 0.2);
  animation: fadeInUp 0.8s ease;
}

.form-group {
  margin-bottom: 1.5rem;
  animation: slideInUp 0.6s ease;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--light-green);
  text-shadow: 0 0 5px rgba(139, 212, 168, 0.2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: rgba(13, 31, 20, 0.7);
  color: var(--light-text);
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 245, 241, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--accent-green);
  background: rgba(13, 31, 20, 0.9);
  box-shadow: 0 0 15px rgba(107, 165, 104, 0.3);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
  color: var(--dark-bg);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 165, 104, 0.4);
  animation: slideInUp 0.6s ease 0.2s both;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 165, 104, 0.6);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Success Message */
.success-message {
  background: rgba(76, 175, 80, 0.2);
  border-left: 4px solid #4caf50;
  color: #a8d5a8;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
  animation: slideInDown 0.4s ease;
}

.success-message.show {
  display: block;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-green), var(--forest));
  text-align: center;
  padding: 2rem;
  margin-top: 5rem;
  border-top: 2px solid var(--accent-green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

footer p {
  color: #c4d4c8;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.8s ease;
}

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

.social-links a {
  color: var(--light-green);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  animation: slideInUp 0.6s ease;
}

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

.social-links a:hover {
  color: var(--light-text);
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(139, 212, 168, 0.5);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Loading animation for images */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}
