/* ==========================================
   TECHSHEEL - PROFESSIONAL LIGHT DESIGN SYSTEM
   ========================================== */

/* CSS Variables - Light Theme Palette */
:root {
  /* Colors - Corporate Palette */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-secondary: #64748b;
  --color-accent: #0f172a;
  --color-success: #059669;
  
  /* Neutral Palette */
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-footer: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-light: #e2e8f0;
  
  /* Layout */
  --header-height: 80px;
  --container-max: 1200px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  
  /* Effects */
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animation Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animation Classes */
.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-in {
  animation: fadeUp 0.6s ease-out forwards;
}

/* Smooth Transitions */
* {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Typewriter Animation */
.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid rgba(255,255,255,0.9);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { max-width: 0; }
  to { max-width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: rgba(255,255,255,0.9); }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Top Contact Bar */
.top-bar {
  background: #2c2c2c;
  color: #cbd5e1;
  font-size: 0.875rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact {
  display: flex;
  gap: 2rem;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.top-contact-item:hover {
  color: white;
}

.top-contact-item svg {
  fill: currentColor;
}

.top-social {
  display: flex;
  gap: 1rem;
}

.top-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.top-social a:hover {
  color: white;
  transform: translateY(-2px);
}

.top-social svg {
  fill: currentColor;
}

/* Navigation */
.header {
  height: var(--header-height);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 40px; /* Account for top bar */
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logo-container img {
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Carousel Section */
.hero {
  position: relative;
  height: 100vh;
  margin-top: 0; /* Remove margin so hero starts from top */
  padding-top: calc(var(--header-height) + 40px); /* Add padding instead to prevent content overlap */
  overflow: hidden;
}

.carousel-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7));
}

.slide-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 3rem 2rem;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  line-height: 1.6;
}

.slide-content a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Sections */
.section {
  padding: var(--spacing-xl) 5%;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 0 auto;
}

/* About Us */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border-color: var(--color-primary);
}

.service-card img {
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.1) rotate(5deg);
}

/* Technology Grid */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tech-tab {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-light);
  background: white;
  cursor: pointer;
  border-radius: 2rem;
  font-weight: 500;
  transition: var(--transition);
}

.tech-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 3rem;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.tech-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.tech-item.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.tech-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(0.3);
}

.tech-item:hover img {
  transform: scale(1.15) translateY(-5px);
  filter: grayscale(0);
}

/* Office & Map */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: start;
}

.address-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.address-block {
  margin-bottom: 2rem;
}

.address-block h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-md);
}

/* Clients Section - Automatic Slider */
.clients-slider-container {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  position: relative;
}

.clients-slider-container::before,
.clients-slider-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-slider-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}

.clients-slider-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

.clients-slider {
  display: flex;
  gap: 3rem;
  animation: slide 40s linear infinite;
  width: fit-content;
}

.clients-slider:hover {
  animation-play-state: paused;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-slide {
  flex-shrink: 0;
  width: 600px;
  height: 350px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  border: 1px solid var(--border-light);
}

.client-slide:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.client-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Partners Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.partner-card {
  background: transparent;
  padding: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-card img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: all 0.4s ease;
}

.partner-card:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
  color: white;
  padding: var(--spacing-xl) 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-column h5 {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ==========================================
   MOBILE MENU STYLES
   ========================================== */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transform: translateY(-30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  position: relative;
}

.mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s ease;
}

.mobile-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-cta-btn {
  background: var(--color-primary) !important;
  color: white !important;
  padding: 1rem 2rem !important;
  border-radius: 0.5rem !important;
  margin-top: 1rem !important;
  display: inline-block;
}

.mobile-cta-btn:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablets and Small Desktops - 1024px */
@media (max-width: 1024px) {
  .hero {
    height: 80vh;
  }
  
  .slide-content h1 {
    font-size: 3rem;
  }
  
  .slide-content p {
    font-size: 1.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2rem;
  }
}

/* Tablets - 768px */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .office-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .top-contact {
    gap: 1rem;
  }
  
  .top-contact-item {
    font-size: 0.8rem;
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slide-content p {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .client-slide {
    width: 450px;
    height: 280px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape & Small Tablets - 768px */
@media (max-width: 768px) {
  /* Show Mobile Menu Button */
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Hide Desktop Navigation */
  .nav-links {
    display: none;
  }
  
  .header-cta {
    display: none;
  }
  
  /* Hero Section */
  .hero {
    height: 70vh;
    min-height: 500px;
  }
  
  .slide-content {
    padding: 2rem 1.5rem;
  }
  
  .slide-content h1 {
    font-size: 2.2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  /* Technology Section */
  .tech-tabs {
    gap: 0.5rem;
  }
  
  .tech-tab {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .tech-item img {
    width: 50px;
    height: 50px;
  }
  
  /* Clients */
  .client-slide {
    width: 350px;
    height: 220px;
  }
  
  /* Map */
  .map-container iframe {
    height: 300px;
  }
}

/* Mobile Portrait - 480px */
@media (max-width: 600px) {
  /* Top Bar */
  .top-bar-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 5%;
  }
  
  .top-contact {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }
  
  .top-social {
    gap: 0.8rem;
  }
  
  /* Header */
  .header {
    top: 95px;
    padding: 0 4%;
    height: 60px;
  }
  
  .logo-container img {
    height: 35px;
  }
  
  /* Hero */
  .hero {
    padding-top: calc(60px + 95px);
    height: 60vh;
    min-height: 450px;
  }
  
  .slide-content {
    padding: 1.5rem 1rem;
  }
  
  .slide-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .slide-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .slide-content div[style*="display: flex"] {
    flex-direction: column;
    gap: 0.8rem !important;
    align-items: center;
  }
  
  .slide-content a {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    max-width: 200px !important;
    width: 100% !important;
    display: inline-block !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  /* Sections */
  .section {
    padding: 3rem 4%;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title p {
    font-size: 0.95rem;
  }
  
  /* About */
  .about-content p {
    font-size: 1rem;
  }
  
  /* Services */
  .service-card {
    padding: 1.8rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
  
  /* Technology */
  .tech-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tech-tab {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .tech-item img {
    width: 45px;
    height: 45px;
  }
  
  .tech-item p {
    font-size: 0.8rem;
  }
  
  /* Clients */
  .clients-slider-container::before,
  .clients-slider-container::after {
    width: 30px;
  }
  
  .client-slide {
    width: 280px;
    height: 180px;
  }
  
  /* Partners */
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .partner-card {
    padding: 1.5rem;
  }
  
  .partner-card img {
    height: 50px;
  }
  
  /* Contact */
  .address-info h3 {
    font-size: 1.5rem;
  }
  
  .address-block h4 {
    font-size: 1.1rem;
  }
  
  .address-block p {
    font-size: 0.95rem;
  }
  
  .map-container iframe {
    height: 250px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand img {
    height: 35px;
  }
  
  .site-footer {
    padding: 3rem 4% 1.5rem;
  }
  
  .footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
  }
  
  /* Mobile Nav */
  .mobile-nav a {
    font-size: 1.3rem;
  }
}

/* Small Mobile - 375px */
@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 1.6rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .client-slide {
    width: 240px;
    height: 150px;
  }
  
  .tech-grid {
    gap: 1.2rem;
  }
  
  .mobile-nav a {
    font-size: 1.2rem;
    gap: 1.5rem;
  }
}

/* Extra Small Mobile - 320px */
@media (max-width: 360px) {
  .slide-content h1 {
    font-size: 1.4rem;
  }
  
  .slide-content p {
    font-size: 0.85rem;
  }
  
  .section-title h2 {
    font-size: 1.4rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .client-slide {
    width: 200px;
    height: 130px;
  }
  
  .mobile-nav a {
    font-size: 1.1rem;
  }
}
