@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Reset & Base Variables --- */
:root {
  --font-title: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette (Light Corporate Blue Theme based on original site) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent-light: #f0f7ff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(10, 108, 190, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-blue: #0a6cbe;       /* Original brand blue */
  --accent-blue-hover: #085698;
  --accent-cyan: #0284c7;
  --accent-purple: #4f46e5;
  --accent-green: #059669;

  --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  --gradient-soft: linear-gradient(135deg, var(--bg-accent-light) 0%, #e0f2fe 100%);

  --shadow-sm: 0 2px 8px -2px rgba(10, 108, 190, 0.08);
  --shadow-md: 0 10px 30px -10px rgba(10, 108, 190, 0.12);
  --shadow-lg: 0 20px 40px -15px rgba(10, 108, 190, 0.18);

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

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

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Selection */
::selection {
  background: rgba(10, 108, 190, 0.15);
  color: var(--accent-blue);
}

/* Typography & Layout Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(10, 108, 190, 0.2);
  box-shadow: var(--shadow-lg);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding-block: 0.2rem;
  box-shadow: 0 4px 20px -10px rgba(10, 108, 190, 0.1);
  border-bottom-color: rgba(10, 108, 190, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-wrapper span {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--accent-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--accent-blue);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--accent-blue);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  padding-block: 180px 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(100% 100% at 50% 0%, #f0f7ff 0%, #ffffff 100%);
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 108, 190, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 2;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  place-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  background: rgba(10, 108, 190, 0.06);
  border: 1px solid rgba(10, 108, 190, 0.12);
  color: var(--accent-blue);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 3rem;
  max-width: 620px;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-lbl {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}



/* --- Section Layouts --- */
.section {
  padding-block: 100px;
  position: relative;
}

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

.section-tag {
  color: var(--accent-blue);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #0f172a;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-inline: auto;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(10, 108, 190, 0.06);
  border: 1px solid rgba(10, 108, 190, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 1.8rem;
  transition: var(--transition-smooth);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

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

.service-card:hover .service-icon-box {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -5px rgba(10, 108, 190, 0.3);
}

/* --- CMS Spotlight --- */
.cms-spotlight {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border-color);
}

.cms-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin-inline: auto;
}

.cms-info {
  display: flex;
  flex-direction: column;
}

.cms-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.cms-feature-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.cms-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 108, 190, 0.15);
}

.cms-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.cms-feat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cms-feat-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.cms-feat-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
}

.portfolio-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 108, 190, 0.08);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.portfolio-content-box {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.p-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-secondary);
}

.p-tag.android {
  background: rgba(5, 150, 105, 0.08);
  color: var(--accent-green);
}

.p-tag.ios {
  background: rgba(10, 108, 190, 0.08);
  color: var(--accent-blue);
}

.portfolio-content-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #0f172a;
}

.portfolio-content-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-btn {
  align-self: flex-start;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.portfolio-btn svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

.portfolio-btn:hover {
  color: var(--accent-blue-hover);
}

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

/* --- Contact & Maps Layout --- */
.contact-section {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: #ffffff;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(10, 108, 190, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-details h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-details p {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.contact-details a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
}

.social-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -5px rgba(10, 108, 190, 0.3);
}

/* Map Panel */
.map-panel {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: #ffffff;
  padding: 10px;
}

.map-panel iframe {
  display: block;
  border-radius: 12px;
  filter: grayscale(0.1) contrast(1.05);
}

/* --- Modals / Native Dialogs --- */
dialog.portfolio-modal {
  border: none;
  background: transparent;
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 1.5rem;
}

dialog.portfolio-modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(10, 108, 190, 0.25);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  position: relative;
}

.modal-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: transparent;
}

.modal-body {
  padding: 2.5rem;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.modal-tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.modal-features-list {
  list-style: none;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background: #0f172a;
  color: #f8fafc;
  padding-block: 80px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links-list a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-contact-list li svg {
  width: 18px;
  height: 18px;
  fill: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-list a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748b;
}

.footer-bottom-links a:hover {
  color: #94a3b8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-grid, .cms-grid, .contact-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding-block: 0;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #ffffff;
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
  }
  .nav-menu.active {
    left: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 2.5rem;
  }
  
  .cms-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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