/* ========== BASE STYLES ========== */
:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-dark: #1e4fbf;
  --primary-light: #3b82f6;
  --secondary: #10b981;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --lighter: #ffffff;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--lighter);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.text-center {
  text-align: center;
}

/* ========== HEADER STYLES ========== */
.top-bar {
  background-color: var(--darker);
  color: var(--light);
  padding: 10px 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i, .social-links a {
  margin-right: 8px;
  color: var(--light);
}

.social-links a:hover {
  color: var(--primary-light);
}

.main-header {
  padding: 20px 0;
  background-color: var(--lighter);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.main-header.sticky {
  padding: 10px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.main-nav li {
  margin-left: 30px;
  position: relative;
}

.main-nav a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.main-nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.main-nav a:hover:after,
.main-nav .active a:after {
  width: 100%;
}

.main-nav .active a {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--gray);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* ========== SERVICES SECTION ========== */
.services {
  background-color: var(--lighter);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary);
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 15px;
}

.learn-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
}

.learn-more i {
  margin-left: 5px;
  transition: var(--transition);
}

.learn-more:hover i {
  transform: translateX(5px);
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background-color: #f8fafc;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-content {
  flex: 1;
}

.about-features {
  margin: 30px 0;
}

.feature {
  display: flex;
  margin-bottom: 20px;
}

.feature i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 3px;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-showcase {
  background-color: var(--lighter);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 350px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 30px;
  background: rgba(30, 41, 59, 0.9);
  color: white;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  bottom: 0;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.view-project {
  display: inline-block;
  margin-top: 15px;
  color: white;
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
  background-color: #f8fafc;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.testimonial-content {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.btn-light {
  background-color: white;
  color: var(--primary);
}

.btn-outline-light {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary);
}

/* ========== FOOTER ========== */
.main-footer {
  background-color: var(--darker);
  color: var(--light);
  padding-top: 80px;
}

.footer-top {
  padding-bottom: 40px;
}

.footer-top .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 25px;
  position: relative;
  color: white;
}

.footer-col h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--primary);
  bottom: -10px;
  left: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--light-gray);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-light);
  margin-top: 3px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: var(--light-gray);
}

.legal-links a:hover {
  color: var(--primary-light);
}

/* ========== ANIMATIONS ========== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  .hero-container,
  .about-container {
    flex-direction: column;
  }
  
  .hero-content,
  .about-content {
    padding-right: 0;
    margin-bottom: 50px;
    text-align: center;
  }
  
  .hero-buttons,
  .cta-buttons {
    justify-content: center;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}