/* ===== MODERN MINIMALISTIC STYLES ===== */
:root {
  --primary: #559BBA;
  --primary-light: #6FC1E4;
  --secondary: #E14B05;
  --secondary-light: #FF5E1A;
  --accent: #FFD166;
  --dark: #2C3E50;
  --darker: #1A1A2E;
  --light: #FFFFFF;
  --lighter: #F9F7F3;
  --gray: #A5A9AA;
  --gray-light: #E0E0E0;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  --container-width: 1400px;
  --section-padding: 6rem 0;
  --edge-spacing: 3rem; /* Adjusted to a more appropriate value */
}

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

html {
  scroll-behavior: smooth;
  
  
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--lighter);
  overflow-x: hidden;
  padding-top: 120px;
  
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: 1.5rem;
  color: var(--dark);
  opacity: 0.9;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--edge-spacing); /* Updated to use edge-spacing variable */
}

section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}


/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  align-items: center;
  padding: 10px; /* No top and bottom padding */
  height: auto; /* Let content decide the height */
  position: relative;
  overflow: hidden;
  margin-top: 0px; /* Keep this for fixed header */
}


/* Visible Animated Dot Background */
.hero-dots {
  position: absolute;
  width: 320px; /* Adjust to be a little bigger than logo */
  height: 320px;
  background-image: radial-gradient(#FF5E1A 3px, transparent 2px);

  background-size: 30px 30px;
  opacity: 0.2;
  z-index: 1; /* behind the logo */
  animation: rotate 60s linear infinite;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-text {
  flex: 1;
  max-width: 600px;
  padding: 30px;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; /* Add this to center child elements vertically */
}

.hero-logo {
  max-width: 300px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  position: relative; /* Make sure logo stays above dots */
}

/* ===== TYPEWRITER TAGLINE ===== */
.typewriter-container {
  position: relative;
  text-align: center;
  margin: 3rem auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

}

#typewriter-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--secondary);
  display: inline-block;
  padding: 1rem 2rem;
  position: relative;
  text-align: center;
  margin: 0 auto; /* Center the typewriter text */
}

/* Expanding border animation */
#typewriter-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius-lg);
  animation: borderGrow 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes borderGrow {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

#typewriter-text::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--secondary);
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* Enhanced Scroll Down Button */
.scroll-down-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  width: 100%;
}

.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-top: 1rem;
}

.scroll-text {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  opacity: 0.8;
  transition: var(--transition);
}

.scroll-down:hover .scroll-text {
  color: var(--secondary);
  opacity: 1;
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid var(--secondary);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
}

.scroll-down:hover .scroll-arrow {
  border-color: var(--secondary-light);
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
  0% { transform: translate(-50%, 0); opacity: 0; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
  100% { transform: translate(-50%, 16px); opacity: 0; }
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--light);
  position: relative;
  padding-left: var(--edge-spacing);
  padding-right: var(--edge-spacing);
}

.services-container {
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.services-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.services-slider {
  display: flex;
  gap: 1.5rem;
  padding: 0 2rem;
}

/* ===== SERVICE CARD WITH FLOATING TITLE ===== */
.service-card {
  background: var(--light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  min-width: 300px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 320px; /* Slightly taller for better animation */
}

.service-card-header {
  position: relative;
  z-index: 3;
  margin-bottom: 1rem;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
  display: inline-block;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  display: inline-block;
  margin-left: 0.8rem;
  vertical-align: middle;
}

.service-description {
  font-size: 0.95rem;
  color: var(--dark);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.service-hover-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  color: var(--light);
  padding: 2rem;
  transition: var(--transition-slow);
  z-index: 1;
  border-radius: var(--border-radius-lg);
}

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

.service-card:hover .service-icon {
  color: var(--accent);
  transform: rotate(15deg) scale(1.2);
}

.service-card:hover .service-title {
  color: var(--light);
  transform: translateX(10px);
}

.service-card:hover .service-description {
  opacity: 0;
  transform: translateY(20px);
}

.service-card:hover .service-hover-content {
  top: 80px; /* Matches header height */
}

.service-hover-content ul {
  list-style: none;
  margin-top: 2rem;
}

.service-hover-content li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.service-card:hover .service-hover-content li {
  opacity: 1;
  transform: translateY(0);
}

.service-hover-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

/* Staggered animation delays */
.service-hover-content li:nth-child(1) { transition-delay: 0.1s; }
.service-hover-content li:nth-child(2) { transition-delay: 0.2s; }
.service-hover-content li:nth-child(3) { transition-delay: 0.3s; }
.service-hover-content li:nth-child(4) { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-card {
    height: 300px;
  }
  
  .service-card:hover .service-hover-content {
    top: 70px;
  }
}
.services-cta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

/* ===== TECHNOLOGY SECTION ===== */
.tech-section {
  background: var(--lighter);
  padding-left: var(--edge-spacing);
  padding-right: var(--edge-spacing);
}

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

.tech-category {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.tech-category-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  position: relative;
  padding-bottom: 0.5rem;
}

.tech-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.tech-item:hover {
  background: rgba(225, 75, 5, 0.05);
}

.tech-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: var(--transition);
}

.tech-item:hover img {
  transform: scale(1.1);
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.tech-cta {
  text-align: center;
  margin-top: 4rem;
}

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

/* ===== FOOTER ===== */
.footer-section {
  background: var(--darker);
  color: var(--light);
  padding: 5rem var(--edge-spacing) 2rem; /* Added horizontal edge-spacing */
}

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

.footer-column h3 {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-column p, .footer-column a {
  opacity: 0.8;
  color: var(--gray-light);
  margin-bottom: 1rem;
  display: block;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--light);
  transform: translateX(5px);
}

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

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

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

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

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.no-underline { text-decoration: none; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem 0;
    --edge-spacing: 2rem; /* Smaller edge spacing on medium screens */
  }
  
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 6rem 0;
  }
  
  .hero-text {
    margin-bottom: 3rem;
    align-items: center;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
    --edge-spacing: 1.5rem; /* Even smaller edge spacing on small screens */
  }
  
  .container {
    padding: 0 var(--edge-spacing);
  }
  
  .top-contact-strip .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .top-nav {
    top: 80px; /* Adjusted to account for the expanded contact strip */
  }
  
  html {
    padding-top: 120px; /* Adjusted padding to account for larger header */
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--light);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    z-index: 1000;
    padding: 6rem 2rem 2rem;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links ul {
    flex-direction: column;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .services-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 0;
    --edge-spacing: 1rem; /* Minimal edge spacing on very small screens */
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .service-card {
    min-width: 260px;
  }
  
  #typewriter-text {
    font-size: 1.2rem;
  }
  
  .scroll-arrow {
    width: 20px;
    height: 36px;
  }
}