/* ===== MODERN STANDARD STYLES WITH TRENDY ACCENTS ===== */
: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;
  --content-spacing: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--lighter);
  line-height: 1.6;
  overflow-x: hidden;
}

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

p {
  margin-bottom: 1.5rem;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--edge-spacing);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 var(--content-spacing);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

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

.section-dark {
  background-color: var(--dark);
  color: var(--light);
}

.section-dark .section-header h2::after {
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

/* ===== 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;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(85, 155, 186, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 155, 186, 0.4);
}

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

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

/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 14rem 0;
  position: relative;
  overflow: hidden;
}

.hero-text {
  flex: 1;
  padding-right: 2rem;
  position: relative;
  z-index: 2;
  padding: 30px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray);
  max-width: 600px;
}

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

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  transform: perspective(1000px) rotateY(-10deg);
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

/* Dot animation for hero */
.hero-dots {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 500px;
  height: 500px;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 20px 20px;
  z-index: -1;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

/* ===== STORY SECTION - IMPROVED VISIBILITY ===== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 0 var(--content-spacing);
}

.story-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--light);
}

.story-image {
  position: relative;
}

.story-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}

.story-image:hover img {
  transform: scale(1.02);
}

/* Dot animation for story section */
.story-dots {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(var(--accent) 2px, transparent 2px);
  background-size: 15px 15px;
  z-index: -1;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite reverse;
}

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

.metric {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.metric:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.metric .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.metric .label {
  font-size: 0.9rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== VALUES SECTION - IMPROVED HOVER ===== */
.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 var(--content-spacing);
}

.service-card {
  background: var(--light);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

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

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(225, 75, 5, 0.1), rgba(255, 209, 102, 0.1));
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--secondary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--light);
  transform: scale(1.1);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
  transition: var(--transition);
}

.service-card:hover .service-title {
  color: var(--secondary);
}

.service-description {
  color: var(--gray);
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-card:hover .service-description {
  color: var(--dark);
}

/* Dot animation for values section */
.values-dots {
  position: absolute;
  top: 50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 12px 12px;
  z-index: -1;
  opacity: 0.1;
  animation: float 7s ease-in-out infinite;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--darker));
  color: var(--light);
  position: relative;
  overflow: hidden;
  padding: 5rem var(--content-spacing);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
}

/* ===== FOOTER - IMPROVED SPACING ===== */
.footer-section {
  background-color: var(--darker);
  color: var(--light);
  padding: 5rem var(--content-spacing) 0;
}

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

.footer-column {
  padding: 0 1rem;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-column p, .footer-column li {
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: var(--transition);
}

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

.footer-column li:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer-column li a:hover {
  color: var(--accent);
}

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

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

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

.footer-bottom {
  text-align: center;
  padding: 2rem var(--content-spacing);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ===== 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;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  border: none;
  box-shadow: 0 2px 10px rgba(225, 75, 5, 0.3);
}

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

.back-to-top:hover {
  background: var(--secondary-light);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(225, 75, 5, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem 0;
    --edge-spacing: 2rem;
  }
  
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 6rem 0;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .startup-metrics {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 0;
    --edge-spacing: 1.5rem;
    --content-spacing: 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
}

/* ===== TRENDY EFFECTS ===== */
/* Selection color */
::selection {
  background: var(--secondary-light);
  color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--lighter);
}

::-webkit-scrollbar-thumb {
  background: var(--dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark);
}

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