/* Shared CSS for Multi-Page Website */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles - Green and Gold Blend */
header {
  background: linear-gradient(135deg, #2C5530 0%, #4A7C59 30%, #F8C471 70%, #F4D03F 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(244, 208, 63, 0.25);
  backdrop-filter: blur(10px);
}

/* Removed header flip/slide animations */

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

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 400px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  white-space: normal;
  max-width: 350px;
  word-wrap: break-word;
  hyphens: auto;
}

.logo-abbrev {
  font-weight: 800;
  color: #F8C471;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-left: 8px;
}

.logo-accent {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8), #fff);
  margin-top: 4px;
  border-radius: 2px;
}

/* Removed logo vibrate animation */

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
}

.nav-links a:hover {
  color: #2C5530;
  background: rgba(244, 208, 63, 0.9);
}

.nav-links a.active {
  color: #2C5530;
  background: rgba(244, 208, 63, 0.95);
  box-shadow: 0 4px 12px rgba(244, 208, 63, 0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #ffffff;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 0;
  padding-top: 140px;
  animation: fadeInUp 1.2s ease-out 0.3s both;
  transition: background-image 0.8s ease-in-out;
}

/* Page-specific hero backgrounds */
.hero.about-page {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/2.jpg');
}

.hero.services-page {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/3.jpg');
}

.hero.work-page {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/4.jpg');
}

.hero.csr-page {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/10.jpg');
}

.hero.placement-page {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/11.jpg');
}

.hero.contact-page {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/9.jpg');
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1.2s ease-out 0.5s both;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  animation: fadeInUp 1.2s ease-out 0.7s both;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #4A7C59, #F8C471);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  margin: 0 10px;
  box-shadow: 0 4px 15px rgba(248, 196, 113, 0.3);
}

.btn:hover {
  background: linear-gradient(135deg, #2C5530, #F4D03F);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 208, 63, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #2C5530;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn {
  animation: fadeInUp 1.2s ease-out 0.9s both;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3748;
  position: relative;
  animation: fadeInUp 1s ease-out both;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #F8C471, #F4D03F);
  animation: expandWidth 1.5s ease-out 0.5s both;
}

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

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #718096;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out both;
  animation-fill-mode: both;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-icon {
  font-size: 3rem;
  color: #4A7C59;
  margin-bottom: 1rem;
}

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

.service-card p {
  color: #718096;
  line-height: 1.6;
}

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

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #718096;
  line-height: 1.7;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Placement image tweaks to prevent distortion and improve responsiveness */
.placement-image img {
  width: 100%;
  max-height: 480px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 768px) {
  .placement-image img {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }
}

/* Work with us */
.work-with-us {
  background: #f7fafc;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.work-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.work-content p {
  margin-bottom: 1.5rem;
  color: #718096;
  line-height: 1.7;
}

.work-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Stats */
.stats {
  background: linear-gradient(135deg, #2C5530 0%, #4A7C59 30%, #F8C471 70%, #F4D03F 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Contact Section */
.contact-section {
  background: #f8fafc;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d3748;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #4a5568;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
}

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

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.contact-info p {
  margin-bottom: 1rem;
  color: #718096;
}

.contact-info i {
  color: #F8C471;
  margin-right: 10px;
  width: 20px;
}

/* Footer */
footer {
  background: #2d3748;
  color: white;
  padding: 40px 0 20px;
}

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

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
  color: #cbd5e0;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 20px;
  text-align: center;
  color: #a0aec0;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #f7fafc;
  padding: 15px 0;
  margin-top: 80px;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs a {
  color: #667eea;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: #718096;
}

/* Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4A7C59, #F8C471);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
}

#scrollToTop:hover {
  background: #FF4500;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.loading {
  animation: pulse 1.5s infinite;
}

/* Professional hover effects */
.service-card:hover .service-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.btn:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Smooth page transitions */
* {
  scroll-behavior: smooth;
}

/* Professional micro-interactions */
.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transform: none;
  transition: none;
  z-index: -1;
}

/* Removed link background scale animation */

/* Enhanced footer animations */
.footer-section {
  animation: fadeInUp 1s ease-out both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Professional image hover effects */
.about-image img, .work-image img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-image:hover img, .work-image:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Professional form animations */
.form-group input:focus, .form-group textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 127, 0, 0.1);
  transition: all 0.3s ease;
}

/* File Upload Styling */
.file-upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.file-upload-area:hover {
  border-color: #F8C471;
  background: #fefcf7;
}

.file-upload-area.dragover {
  border-color: #F8C471;
  background: #fefcf7;
  transform: scale(1.02);
}

.upload-placeholder {
  transition: opacity 0.3s ease;
}

.upload-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 5px;
  animation: fadeInUp 0.3s ease;
}

.upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #F8C471, #F4D03F);
  border-radius: 0 0 8px 8px;
  animation: progressBar 2s ease-in-out;
}

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Upload feedback */
.upload-success {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
  padding: 10px;
  border-radius: 5px;
  animation: fadeInUp 0.3s ease;
}

.upload-error {
  background: #fed7d7;
  border: 1px solid #feb2b2;
  color: #742a2a;
  padding: 10px;
  border-radius: 5px;
  animation: fadeInUp 0.3s ease;
}

/* Stats counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: countUp 1s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .logo-text {
    font-size: 1rem;
    max-width: 250px;
  }

  .logo-abbrev {
    font-size: 1rem;
    margin-left: 6px;
  }

  .logo-accent {
    width: 40px;
    height: 2px;
    margin-top: 3px;
  }

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

  .about-content, .work-grid, .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumbs .container {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 0.9rem;
    max-width: 180px;
    line-height: 1.2;
  }

  .logo-abbrev {
    font-size: 0.85rem;
    margin-left: 4px;
  }

  .logo-accent {
    width: 35px;
    height: 2px;
    margin-top: 2px;
  }
}

/* Team Section Styles */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.team-card img {
  transition: transform 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.03);
}

.team-grid {
  margin-bottom: 3rem;
}

.read-more-btn:hover {
  background: #8E44AD !important;
}
