/* ===================================
   Tech Coderyx - Main Stylesheet
   Color Palette: Green, White, Dark Gray
   =================================== */

:root {
  --primary-green: #2d9659;
  --dark-green: #1a7d44;
  --light-green: #e8f5e9;
  --accent-gold: #f39c12;
  --dark-text: #2c3e50;
  --light-text: #ecf0f1;
  --white: #ffffff;
  --gray: #95a5a6;
  --light-gray: #f8f9fa;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-green);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-green);
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-gold);
}

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

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

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

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

.cta-button {
  background: var(--primary-green);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
}

.cta-button:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--dark-green);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: var(--white);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

.hero-buttons .cta-button {
  background: var(--accent-gold);
  color: var(--dark-text);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.hero-buttons .cta-button:hover {
  background: #e67e22;
}

.hero-buttons .secondary-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.8rem 1.8rem;
}

.hero-buttons .secondary-btn:hover {
  background: var(--white);
  color: var(--primary-green);
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-green);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 3rem;
  text-align: center;
}

/* ===== ABOUT SECTION ===== */
#about {
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--gray);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-light);
  border-top: 4px solid var(--primary-green);
}

.stat-box h4 {
  font-size: 2.5rem;
  color: var(--dark-green);
  margin-bottom: 0.5rem;
}

.stat-box p {
  color: var(--gray);
  font-size: 0.95rem;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  border-radius: 10px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
}

/* ===== EXPERTISE/SERVICES SECTION ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.expertise-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-green);
  transition: all 0.3s ease;
  text-align: center;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-left-color: var(--accent-gold);
}

.expertise-card h3 {
  color: var(--dark-green);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.expertise-card p {
  color: var(--gray);
  line-height: 1.8;
}

.icon-placeholder {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ===== PROJECTS/PORTFOLIO SECTION ===== */
#projects {
  background: var(--light-gray);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.project-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.project-content {
  padding: 1.5rem;
}

.project-content h4 {
  color: var(--dark-green);
  margin-bottom: 0.5rem;
}

.project-category {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-link {
  color: var(--primary-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== TEAM SECTION ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.member-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.member-info {
  padding: 1.5rem;
}

.member-info h4 {
  color: var(--dark-green);
  margin-bottom: 0.3rem;
}

.member-role {
  color: var(--primary-green);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 10px;
  margin: 3rem auto;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-section .cta-button {
  background: var(--accent-gold);
  color: var(--dark-text);
  padding: 1rem 2rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-text);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

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

.footer-section h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.7rem;
}

.footer-section a {
  color: var(--light-text);
}

.footer-section a:hover {
  color: var(--primary-green);
}

.footer-contact p {
  margin-bottom: 0.7rem;
  color: var(--light-text);
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--accent-gold);
  color: var(--dark-text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray);
}

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

  .mobile-menu-btn {
    display: block;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons button {
    width: 100%;
  }

  section {
    padding: 3rem 1rem;
  }

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

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

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

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

  .expertise-grid,
  .projects-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

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

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