@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  /* Brand Colors from Logo */
  --primary-blue: #2A368F; 
  --primary-orange: #F38C20; 
  --secondary-blue: #eef2ff;
  --secondary-orange: #fff7ed;
  
  /* Light Theme Colors */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Utilities */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -5px rgba(42, 54, 143, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Background Animated Mesh/Gradient Overlay */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(243, 140, 32, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(42, 54, 143, 0.04) 0%, transparent 40%);
  z-index: -1;
  animation: pulse-bg 15s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulse-bg {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

/* ================= HEADER & NAV ================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-container img {
  height: 50px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-text span.blue { color: var(--primary-blue); }
.logo-text span.orange { color: var(--primary-orange); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

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

.nav-links a:hover {
  color: var(--primary-orange);
}

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

.btn {
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), #ff7a1f);
  color: #fff;
  box-shadow: 0 8px 20px rgba(243, 140, 32, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #ff7a1f, var(--primary-orange));
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(243, 140, 32, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

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

.btn-outline:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(42, 54, 143, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 32px;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 3px;
  transition: var(--transition);
}

/* ================= HERO SECTION ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  flex: 1.2;
  z-index: 2;
  padding-right: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  animation: slideUp 0.8s ease-out forwards;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  animation: slideUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: slideUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-image-container {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-image {
  width: 100%;
  max-width: 650px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Background Glows (Light Mode Adjusted) */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary-blue);
  filter: blur(150px);
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.glow-orange {
  background: var(--primary-orange);
  left: 80%;
  top: 20%;
  opacity: 0.05;
}

/* ================= SECTION STYLES ================= */
.section {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header h2 span {
  color: var(--primary-orange);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ================= SERVICES GRID ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Card Hover Reveal Effect */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 54, 143, 0.1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--secondary-orange);
  color: var(--primary-orange);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-orange);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ================= ABOUT US ================= */
.about-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.about-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  position: relative;
}

/* Image styling */
.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

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

/* Decorative element behind image */
.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--primary-orange);
  border-radius: 24px;
  z-index: 1;
  transition: var(--transition);
}

.about-image:hover::before {
  top: -10px;
  right: -10px;
}

/* ================= CONTACT SECTION ================= */
.contact-container {
  display: flex;
  gap: 4rem;
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 55px;
  height: 55px;
  background: var(--secondary-blue);
  color: var(--primary-blue);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--primary-blue);
  color: white;
}

.contact-item h4 {
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.contact-form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-main);
  padding: 3rem;
  border-radius: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(42, 54, 143, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ================= SHOWCASE PORTFOLIO ================= */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 140, 32, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  z-index: 1;
}

.portfolio-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .overlay-content {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ================= FOOTER ================= */
footer {
  background: var(--text-dark);
  color: white;
  padding: 5rem 5% 2rem;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.footer-logo .logo-text {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: white;
}

.footer-logo p {
  color: #94a3b8;
  margin-top: 1rem;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 40px; height: 3px;
  background: var(--primary-orange);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  margin-top: 2rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer-links a::before {
  content: '→';
  margin-right: 8px;
  color: var(--primary-orange);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  position: relative;
  z-index: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 12rem;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 4rem;
  }
  
  .hero p {
    margin: 0 auto 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .contact-container {
    flex-direction: column;
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .section {
    padding: 4rem 5%;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }

  .portfolio-grid, .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-text h3, .contact-info h3 {
    font-size: 1.8rem;
  }

  .portfolio-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: 2.3rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 5%;
  }

  .portfolio-item img {
    height: 250px;
  }

  nav {
    padding: 1rem 5%;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }

  .contact-container {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
