/* Modern Professional Company Profile CSS */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --light: #ffffff;
  --light-gray: #f8fafc;
  --dark: #1e293b;
  --text: #334155;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Selector */
.language-selector {
  position: relative;
  z-index: 100;
}

.lang-btn {
  background: var(--light);
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 10px 15px;
  color: var(--primary);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  min-width: 60px;
  justify-content: center;
}

.lang-btn:hover {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.lang-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.lang-btn:active {
  transform: translateY(0);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--light);
  border: 1px solid var(--gray);
  border-radius: 6px;
  min-width: 150px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}

.language-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Debug - force visible when active */
.language-selector.active .lang-dropdown {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.lang-option {
  display: block;
  padding: 12px 15px;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  background: none;
  cursor: pointer;
}

.lang-option:hover {
  background-color: var(--gray);
}

.lang-option.active {
  background-color: var(--primary);
  color: var(--light);
}

.lang-option.active:hover {
  background-color: var(--primary);
}

.nav-logo h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--light);
  max-width: 800px;
  padding: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Buttons */
.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-btn.primary {
  background: var(--gradient);
  color: var(--light);
  box-shadow: var(--shadow);
}

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

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

.cta-btn.secondary:hover {
  background: var(--light);
  color: var(--primary);
}

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

.bg-light {
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.vision-mission {
  display: grid;
  gap: 1.5rem;
}

.vm-item h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.vm-item p {
  font-size: 1rem;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Services Section */
#services {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('https://images.unsplash.com/photo-1559136555-9303baea8ebd?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--light);
}

#services .section-header h2,
#services .section-subtitle {
  color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.service-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.service-icon img {
  width: 70px;
  height: 70px;
}

.service-card h3 {
  color: var(--light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  text-align: center;
}

.service-features li {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-features li:before {
  content: "✓";
  color: var(--light);
  font-weight: bold;
  margin-right: 10px;
}

/* Why Choose Us Section */
#why {
  background: var(--light-gray);
  color: var(--text);
}

#why .section-header h2,
#why .section-subtitle {
  color: var(--dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.why-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--light);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.why-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  background: linear-gradient(135deg, var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.why-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--light);
}

.why-item h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.why-item p {
  color: var(--text);
}

.why-image {
  display: none; /* Hide the separate image since we're using background */
}

/* Portfolio Section */
#portfolio {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--light);
}

#portfolio .section-title,
#portfolio .section-subtitle {
  color: var(--light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  /* Ensure all items have the same height */
  align-items: stretch;
}

.portfolio-item {
  transition: transform 0.3s ease;
  /* Make each portfolio item stretch to full height */
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  /* Make the card fill the entire height of its container */
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

.portfolio-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 25px;
  /* Make content area flexible and push tech stack to bottom */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.portfolio-description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  /* Allow description to grow and fill available space */
  flex: 1;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* Keep tech stack at bottom */
  margin-top: auto;
}

.tech-stack {
  background: var(--primary);
  color: var(--light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.portfolio-cta {
  text-align: center;
  margin-top: 40px;
}

.portfolio-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item h4 {
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Form Styles */
.contact-form {
  background: var(--light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 50px 0 20px;
}

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

.footer-section h4 {
  margin-bottom: 20px;
  color: var(--light);
}

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

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--light);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }
  
  .nav-actions {
    gap: 10px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  #services {
    background-attachment: scroll;
  }

  #portfolio {
    background-attachment: scroll;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    /* Maintain equal heights on mobile */
    align-items: stretch;
  }
  
  .portfolio-content {
    padding: 20px;
  }
  
  .portfolio-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta-btn {
    padding: 12px 24px;
  }
  
  .service-card,
  .contact-form {
    padding: 20px;
  }
}
