/* ========================================
   GTIS Consulting - Corporate Website
   ======================================== */

:root {
  --primary: #1a5276;
  --secondary: #2980b9;
  --accent: #3498db;
  --accent-light: #5dade2;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #5a6c7d;
  --text-light: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--bg-white);
}

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navbar ---- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
  background: rgba(41, 128, 185, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("../assets/3d_blue_bg_s3_05.webp") center/cover no-repeat;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 800px;
}

.hero-logo {
  height: 100px;
  width: auto;
  margin: 0 auto 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 16px 36px;
  border-radius: 60px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: var(--text-light);
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

/* ---- Sections (general) ---- */

.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ---- About ---- */

.about-content {
  max-width: 780px;
  margin: 40px auto 56px;
  text-align: center;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 1.025rem;
}

.about-highlight h3 {
  text-align: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 36px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.highlight-icon svg {
  width: 100%;
  height: 100%;
}

.highlight-card h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

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

/* ---- Consulting ---- */

.consulting-main {
  max-width: 800px;
  margin: 48px auto 0;
}

.consulting-offer {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-light);
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
}

.consulting-offer::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.offer-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 16px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.consulting-offer h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.consulting-offer p {
  opacity: 0.9;
  line-height: 1.7;
}

.consulting-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.detail-item:hover {
  box-shadow: var(--shadow-md);
}

.detail-item svg {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-top: 2px;
}

.detail-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.detail-item p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ---- Section Banner ---- */

.section-banner {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  padding: 28px 24px;
  text-align: center;
  margin-top: 64px;
}

.section-banner p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.section-banner.banner-dark {
  background: linear-gradient(135deg, var(--primary), #154360);
}

/* ---- Technology ---- */

.tech-tiers {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 48px auto 0;
}

.tech-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--accent);
}

.tech-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.tech-card[data-tier="1"] { border-left-color: #1a5276; }
.tech-card[data-tier="2"] { border-left-color: #2471a3; }
.tech-card[data-tier="3"] { border-left-color: #2980b9; }
.tech-card[data-tier="4"] { border-left-color: #3498db; }
.tech-card[data-tier="5"] { border-left-color: #5dade2; }

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  cursor: default;
}

.tier-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--text-light);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-card[data-tier="1"] .tier-number { background: #1a5276; }
.tech-card[data-tier="2"] .tier-number { background: #2471a3; }
.tech-card[data-tier="3"] .tier-number { background: #2980b9; }
.tech-card[data-tier="4"] .tier-number { background: #3498db; }
.tech-card[data-tier="5"] .tier-number { background: #5dade2; }

.tech-card-header h3 {
  font-size: 1.1rem;
  color: var(--primary);
}

.tech-card-body {
  padding: 0 28px 24px;
  padding-left: 80px;
}

.tech-card-body ul {
  list-style: none;
}

.tech-card-body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.tech-card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

.tech-card-body p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

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

/* ---- Footer ---- */

.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 420px;
  line-height: 1.6;
  margin-top: 4px;
}

.footer-links h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ---- Legal Page ---- */

.legal-page {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

.legal-header {
  text-align: center;
  margin-bottom: 56px;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

.legal-section {
  max-width: 820px;
  margin: 0 auto 48px;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.legal-section article {
  margin-bottom: 28px;
}

.legal-section h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  margin: 8px 0 12px;
}

.legal-section li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-section a {
  color: var(--secondary);
  text-decoration: underline;
  transition: var(--transition);
}

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

.legal-divider {
  max-width: 820px;
  margin: 56px auto;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* ---- Scroll Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-white);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .section {
    padding: 72px 0;
  }

  .hero-tagline {
    padding: 14px 24px;
    border-radius: var(--radius-lg);
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .highlight-card {
    padding: 24px 16px;
  }

  .consulting-offer {
    padding: 28px 24px;
  }

  .tech-card-body {
    padding-left: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .section-banner {
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }
}
