/* ========================================
   FINODAX - CSS Styles
   ======================================== */

/* CSS Variables */
:root {
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(220, 20%, 10%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 20%, 10%);
  --primary: hsl(174, 72%, 40%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(220, 14%, 92%);
  --secondary-foreground: hsl(220, 20%, 10%);
  --muted: hsl(220, 14%, 95%);
  --muted-foreground: hsl(220, 10%, 45%);
  --border: hsl(220, 13%, 88%);
  --radius: 0.75rem;
  
  --gradient-primary: linear-gradient(135deg, hsl(174, 72%, 40%), hsl(190, 85%, 35%));
  --gradient-text: linear-gradient(90deg, hsl(174, 72%, 35%), hsl(190, 85%, 40%));
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(220, 14%, 97%) 100%);
  --shadow-card: 0 20px 50px -10px hsla(220, 20%, 10%, 0.1);
  --shadow-button: 0 8px 30px -6px hsla(220, 20%, 10%, 0.15);
  --glow-primary: 0 0 60px hsla(220, 20%, 10%, 0.1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal overflow */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Ensure containers don't overflow */
.container, 
[class*="container"],
[class*="section"] {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
}

/* Prevent all sections from causing overflow */
section {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

/* Ensure all absolutely positioned elements don't overflow */
.hero-bg-effects,
.grid-pattern,
.glow-orb,
.contact-glow,
.about-stats-glow,
.about-stats-wrapper,
.footer::before {
  max-width: 100vw;
  overflow: hidden;
}

/* Prevent transforms from causing overflow */
* {
  transform-origin: center;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  max-width: 100vw;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Prevent any direct child of body from causing horizontal overflow */
body > * {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid hsla(220, 13%, 88%, 0.5);
  box-shadow: var(--shadow-card);
  border-radius: 1rem;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(hsla(220, 13%, 88%, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsla(220, 13%, 88%, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-button);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -6px hsla(220, 20%, 10%, 0.2);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: hsla(220, 14%, 92%, 0.5);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Section Styles */
.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-tag {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow-y: hidden;
}

.section-title.text-left {
  text-align: left;
  overflow-y: hidden;
}

.section-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  box-sizing: border-box;
  overflow-y: hidden;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.animate-fade-up {
  animation: fade-up 0.8s ease-out forwards;
}

.animate-fade-up-delay-1 {
  animation: fade-up 0.8s ease-out 0.1s forwards;
  opacity: 0;
}

.animate-fade-up-delay-2 {
  animation: fade-up 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-up-delay-3 {
  animation: fade-up 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(210, 40%, 98%, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsla(220, 13%, 88%, 0.5);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-links .nav-cta {
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
}

.mobile-nav {
  padding: 1.5rem;
  border-top: 1px solid hsla(220, 13%, 88%, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--foreground);
}

.mobile-nav .btn-primary {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-nav:not(.hidden) {
    display: flex;
  }
  
  .section-container,
  .nav-container,
  .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: pulse-glow 3s ease-in-out infinite;
  max-width: 100vw;
  overflow: hidden;
}

.glow-orb-1 {
  top: 25%;
  left: 25%;
  width: min(24rem, 100vw);
  height: 24rem;
  background: transparent;
  max-width: 100vw;
}

.glow-orb-2 {
  bottom: 25%;
  right: 25%;
  width: min(20rem, 100vw);
  height: 20rem;
  background: transparent;
  max-width: 100vw;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsla(220, 14%, 92%, 0.8);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero-badge svg {
  color: var(--primary);
}

.hero-badge span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  display: block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid hsla(220, 13%, 88%, 0.5);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  position: relative;
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  transition: all 0.5s ease;
}

.service-card:hover {
  border-color: hsla(220, 13%, 88%, 0.8);
}

/* Service Card as Link */
a.service-card {
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

a.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: hsla(220, 14%, 92%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.service-card:hover .service-icon {
  background: hsla(220, 14%, 92%, 0.8);
}

.service-icon svg {
  color: var(--primary);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
  padding: 6rem 0;
  background: hsla(220, 14%, 92%, 0.3);
}

.process-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
}

.step-number {
  font-size: 4.5rem;
  font-weight: 700;
  color: hsla(220, 13%, 88%, 0.5);
  position: absolute;
  top: -1rem;
  left: 0;
  line-height: 1;
}

.step-content {
  position: relative;
  padding-top: 3rem;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(220, 14%, 92%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-icon svg {
  color: var(--primary);
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio {
  position: relative;
  padding: 6rem 0;
}

.portfolio-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-image {
    min-height: 160px !important;
    aspect-ratio: 20/9 !important;
  }
}

@media (max-width: 480px) {
  .portfolio-image {
    min-height: 140px !important;
    aspect-ratio: 20/9 !important;
  }
  
  .hero-content {
    padding: 4rem 1rem;
  }
  
  .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.portfolio-card {
  overflow: hidden;
  cursor: pointer;
}

/* Portfolio Card as Link */
a.portfolio-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

a.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-image {
  position: relative;
  height: auto !important;
  min-height: 180px !important;
  aspect-ratio: 20/9 !important;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.5rem 0.5rem 0 0;
}

.portfolio-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: transform 0.3s ease;
  opacity: 1;
  filter: none;
  display: block;
  background: var(--bg-secondary);
}

/* Force proper image display for all portfolio images */
.portfolio-grid .portfolio-card .portfolio-image {
  height: auto !important;
  min-height: 180px !important;
  aspect-ratio: 20/9 !important;
}

.portfolio-grid .portfolio-card .portfolio-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Fallback for images that don't load properly */
.portfolio-image img:not([src]), 
.portfolio-image img[src=""], 
.portfolio-image img[src="#"] {
  display: none;
}

/* Ensure consistent aspect ratio for all portfolio images */
.portfolio-image::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--bg-secondary);
  z-index: -1;
}

.portfolio-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  gap: 0.5rem;
}

.portfolio-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

/* Add subtle overlay for better text readability on images */
.portfolio-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-image::after {
  opacity: 1;
}


.portfolio-content {
  padding: 1.5rem;
}

.portfolio-category {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-content h3 {
  color: var(--primary);
}

.portfolio-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: 6rem 0;
  background: hsla(220, 14%, 92%, 0.3);
  overflow: hidden;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content .section-tag {
  display: block;
  margin-bottom: 0;
}

.about-content {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.about-content .section-title {
  margin-top: 1rem;
  max-width: 100%;
}

.about-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow-y: hidden;
}

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

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.highlight-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.highlight-item span {
  font-size: 0.875rem;
}

.about-stats-wrapper {
  position: relative;
}

.about-stats-glow {
  position: absolute;
  inset: -1rem;
  background: transparent;
  border-radius: 1.5rem;
  filter: blur(40px);
}

.about-stats {
  position: relative;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: hsla(210, 40%, 98%, 0.5);
}

.about-stat .stat-value {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

.about-stat .stat-label {
  font-size: 0.875rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(37.5rem, 100vw);
  max-width: 100vw;
  height: 37.5rem;
  background: transparent;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: hsla(210, 40%, 98%, 0.5);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(220, 13%, 88%, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea {
  resize: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsla(220, 14%, 92%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--primary);
}

.contact-item h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--muted-foreground);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, hsla(210, 40%, 98%, 0.8) 0%, hsla(210, 40%, 96%, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.footer-top {
  margin-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
  }
}

/* Footer Column */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Brand Section */
.footer-brand {
  max-width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo-img {
  height: 45px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Social Media Section */
.footer-social {
  margin-top: 1rem;
}

.footer-social h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link svg {
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px hsla(220, 14%, 92%, 0.5);
}

.social-link:hover svg {
  color: white;
  transform: scale(1.1);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--primary);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 1rem;
}

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

/* Contact Section */
.footer-contact {
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-contact-item .contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: hsla(220, 14%, 92%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-contact-item:hover .contact-icon {
  background: var(--primary);
  transform: scale(1.05);
}

.footer-contact-item .contact-icon svg {
  color: var(--primary);
  transition: color 0.3s ease;
}

.footer-contact-item:hover .contact-icon svg {
  color: white;
}

.footer-contact-item a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-contact-item span {
  color: var(--muted-foreground);
}

/* Footer CTA Button */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px hsla(220, 14%, 92%, 0.3);
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px hsla(220, 14%, 92%, 0.5);
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
}

.footer-cta svg {
  transition: transform 0.3s ease;
}

.footer-cta:hover svg {
  transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

.copyright strong {
  color: var(--foreground);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal .separator {
  color: var(--muted-foreground);
  opacity: 0.5;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px -10px hsla(220, 20%, 10%, 0.2);
}

.toast-content svg {
  color: var(--primary);
  flex-shrink: 0;
}

.toast-content strong {
  display: block;
  font-size: 0.875rem;
}

.toast-content p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin: 0;
}