/* --- VARIABLES --- */
:root {
  --primary: #1F2A44;
  --secondary: #F47C2A;
  --secondary-hover: #e06c1c;
  --bg-light: #F8F9FB;
  --text-dark: #2B2B2B;
  --text-light: #666666;
  --white: #FFFFFF;
  --border: #EAEAEA;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

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

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

.section {
  padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary); }
.text-white { color: var(--white); }
.text-secondary { color: var(--secondary); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }

.section-subtitle {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.bg-primary .section-header h2 {
  color: var(--white);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: #162035;
  color: var(--white);
}
.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--white);
}
.btn-outline-light {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
}
.btn-block {
  display: block;
  width: 100%;
}

/* --- ANIMATIONS (Utility) --- */
.animate {
  opacity: 0;
  visibility: hidden;
}

.fade-up {
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.slide-left {
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.slide-right {
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(0) !important;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- HEADER / NAVBAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}
.header.scrolled {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.header.scrolled .logo,
.header.scrolled .nav-links a,
.header.scrolled .hamburger {
  color: var(--text-dark);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  background: url('https://images.pexels.com/photos/323780/pexels-photo-323780.jpeg?auto=compress&cs=tinysrgb&w=2000') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(31, 42, 68, 0.9) 0%, rgba(31, 42, 68, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  max-width: 700px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: #E0E4EC;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* --- ABOUT SECTION --- */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 8px;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--secondary);
  color: var(--white);
  padding: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
}

.experience-badge .number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.experience-badge .text {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-features {
  margin-bottom: 30px;
}

.about-features li {
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-features li i {
  color: var(--secondary);
  font-size: 1.1rem;
}

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

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

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

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(244, 124, 42, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--secondary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* --- ADVANTAGES --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.adv-card {
  padding: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

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

.adv-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.adv-card h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.adv-card p {
  color: #B2B8C6;
  font-size: 0.95rem;
}

/* --- PROJECTS/PORTFOLIO --- */
.project-filters {
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 8px 16px;
  margin: 0 5px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  color: var(--secondary);
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--secondary);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.project-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-info {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(31, 42, 68, 0.95));
  color: var(--white);
  transition: bottom 0.4s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-item:hover .project-info {
  bottom: 0;
}

.project-info h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.project-info span {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- PROCESS TIMELINE --- */
.process-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 15px;
}

.step-num {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0 auto 20px;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.process-step:hover .step-num {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.process-step h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Connective line for desktop */
@media (min-width: 900px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
  }
}


/* --- CTA BANNER --- */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: url('https://images.pexels.com/photos/2219035/pexels-photo-2219035.jpeg?auto=compress&cs=tinysrgb&w=2000') center/cover fixed;
}
.cta-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(31, 42, 68, 0.85);
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

/* --- TESTIMONIALS --- */
.testimonials-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.testimonials-slider::-webkit-scrollbar {
  height: 8px;
}
.testimonials-slider::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 4px;
}
.testimonials-slider::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.testimonial-card {
  min-width: 350px;
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  scroll-snap-align: center;
}

.stars {
  color: #FFC107;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.review-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.client-info h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.client-info span {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

/* --- BLOG SECTION --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 30px;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.blog-content h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.blog-content h4 a {
  color: var(--text-dark);
}
.blog-content h4 a:hover {
  color: var(--secondary);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--primary);
}

.read-more:hover {
  color: var(--secondary);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info .info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card .icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.3rem;
  box-shadow: var(--shadow);
}

.info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

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

/* --- FOOTER --- */
.footer {
  background: #111827;
  color: #A0AEC0;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
}

.social-icons a:hover {
  background: var(--secondary);
}

.footer h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
  padding: 12px 20px;
}

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

/* --- FLOATING ACTION BUTTONS --- */
.fab-btn {
  position: fixed;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.3s;
}

.fab-btn:hover {
  transform: scale(1.1);
}

.fab-btn.whatsapp {
  right: 30px;
  background-color: #25D366;
}

.fab-btn.phone {
  right: 100px;
  background-color: var(--primary);
}


/* --- RESPONSIVE / MEDIA QUERIES --- */
@media (min-width: 992px) {
  .mobile-only { display: none !important; }
}

@media (max-width: 991px) {
  .desktop-only { display: none !important; }
  
  .hero-content h1 { font-size: 3rem; }
  
  .about-wrapper { grid-template-columns: 1fr; }
  .experience-badge { right: 20px; bottom: -20px; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  /* Mobile Menu */
  .hamburger { display: block; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    transition: left 0.4s ease;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  .nav-menu.active { left: 0; }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  
  .header.scrolled .nav-links a, 
  .nav-links a {
    color: var(--text-dark);
    font-size: 1.2rem;
    display: block;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-content h2 { font-size: 2rem; }
  
  .testimonial-card { min-width: 280px; padding: 20px; }
}

/* --- PRINT STYLES FOR PDF EXPORT --- */
@media print {
  .animate {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .header {
    position: absolute !important;
    background: #fff !important;
  }
  .hero-overlay {
    background: rgba(31, 42, 68, 0.7) !important;
  }
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
