/* Modern Styles for Creative Engineering & Environment Website */

:root {
  /* Modern color palette based on logo colors */
  --primary-color: #c9b18c;       /* Beige from logo */
  --secondary-color: #8c8c8c;     /* Gray from logo */
  --accent-color: #4a4a4a;        /* Dark gray from logo */
  --accent-secondary: #e0d5c0;    /* Light beige */
  --text-color: #1f2937;          /* Dark gray for text */
  --text-light: #6b7280;          /* Medium gray for secondary text */
  --light-gray: #f9fafb;          /* Very light gray for backgrounds */
  --medium-gray: #e5e7eb;         /* Light gray for borders */
  --dark-gray: #4b5563;           /* Dark gray */
  --white: #ffffff;
  --black: #000000;
  
  /* Modern fonts */
  --font-family: 'Inter', 'Roboto', sans-serif;
  
  /* Modern effects */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
}

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base styles */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--light-gray);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

/* Modern button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

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

.btn.primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

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

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

/* Modern header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.logo h1 {
  font-weight: 700;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.25rem 0;
}

.logo img {
  max-height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo a:hover img {
  transform: scale(1.05);
}

nav ul li a {
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Language switcher */
.language-switcher {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-full);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.language-switcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

/* Modern hero section */
.hero {
  background-image: linear-gradient(135deg, rgba(201, 177, 140, 0.85), rgba(140, 140, 140, 0.85)), url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1s ease-out;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
  animation: fadeInDown 1s ease-out 0.2s both;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

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

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

/* Modern section styling */
section {
  padding: 6rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  padding-bottom: 1.5rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius-full);
}

/* About section */
.about {
  background-color: var(--white);
}

.about-content {
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  transition: var(--transition);
  transform: rotate(2deg);
}

.about-image:hover img {
  transform: rotate(0deg) scale(1.02);
}

/* Why Us Section */
.why-us {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(201, 177, 140, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.reasons-grid {
  gap: 2rem;
}

.reason-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  z-index: 2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.reason-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.reason-card:hover::before {
  transform: scaleX(1);
}

.reason-card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.reason-card:hover i {
  transform: scale(1.1);
}

.reason-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.reason-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* Mission Vision Section */
.mission-vision {
  background-color: var(--white);
}

.mission-vision .container {
  gap: 3rem;
}

.mission-box, .vision-box {
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.mission-box {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.vision-box {
  background-color: var(--light-gray);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-box:hover, .vision-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.mission-box h2, .vision-box h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: left;
  padding-bottom: 1rem;
}

.mission-box h2::after, .vision-box h2::after {
  left: 0;
  transform: none;
  width: 60px;
}

.mission-box h2::after {
  background: var(--accent-color);
}

.vision-box h2::after {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Services Section */
.services {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, rgba(201, 177, 140, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.services-grid {
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, rgba(201, 177, 140, 0.05), transparent);
  z-index: -1;
  transition: height 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.service-card:hover::before {
  height: 100%;
}

.service-card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.service-card:hover i {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.service-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* Featured Projects */
.featured-projects {
  background-color: var(--white);
}

.project-categories {
  gap: 2rem;
  margin-bottom: 3rem;
}

.category {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.category:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.category img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

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

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  transition: var(--transition);
}

.category:hover .category-info {
  padding-bottom: 3rem;
}

.category-info h3 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.category-info p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  opacity: 0.9;
}

.category-info .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Contact Section */
.contact {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom right, rgba(201, 177, 140, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  gap: 3rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.contact-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.contact-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: var(--light-gray);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(201, 177, 140, 0.1);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  padding: 5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-about p {
  opacity: 0.9;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-logo h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: var(--border-radius-full);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  position: relative;
  padding-left: 1.25rem;
  display: inline-block;
}

.footer-links ul li a::before {
  content: '→';
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--white);
  padding-left: 1.5rem;
}

.footer-links ul li a:hover::before {
  left: 0.25rem;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.footer-contact p i {
  margin-right: 0.75rem;
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  opacity: 0.8;
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 150px 0 100px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  nav ul.show {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  section h2 {
    font-size: 1.75rem;
  }
  
  .mission-box h2, .vision-box h2 {
    font-size: 1.75rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
  
  .mission-box, .vision-box {
    padding: 2rem;
  }
  
  .mission-box h2, .vision-box h2 {
    font-size: 1.5rem;
  }
  
  .service-card, .reason-card, .contact-item {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Animation utilities */
.animate-fade-in {
  animation: fadeIn 1s ease-out both;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out both;
}

.animate-fade-in-down {
  animation: fadeInDown 1s ease-out both;
}

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

/* Scroll animations */
.reveal {
  opacity: 1; /* Changed from 0 to 1 to ensure content is visible by default */
  transform: translateY(0); /* Changed from 30px to 0 to prevent content from being offset */
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
