/* ============================================
   CORINOVATE — Modernized (original brand)
   White + Gold #d2b356
   ============================================ */

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

:root {
  --gold:        #d2b356;
  --gold-light:  #e8cc7a;
  --gold-dark:   #b8952e;
  --bg:          #ffffff;
  --bg-alt:      #f8f8f6;
  --bg-dark:     #111111;
  --text:        #111111;
  --text-muted:  #666666;
  --text-light:  #9c9c9c;
  --border:      #e8e8e4;
  --font:        'Open Sans', Arial, sans-serif;
  --radius:      8px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-gold: 0 4px 24px rgba(210,179,86,0.18);
  --transition:  0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0ec; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  max-width: 620px;
  margin: 0 auto 60px;
}

.section-header.center { text-align: center; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
}

/* Gold bar accent under title */
.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--gold);
  margin-top: 18px;
  border-radius: 2px;
}

.section-header.center .section-title::after {
  margin: 18px auto 0;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}
#navbar.scrolled .nav-logo img {
  height: 28px;
}
.nav-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  margin-left: 8px;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  color: #fff !important;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO / BANNER
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Parallax wrapper — JS moves this on scroll */
.hero-parallax {
  position: absolute;
  inset: -12%;   /* extra room for both parallax drift and Ken Burns zoom */
  will-change: transform;
}

/* Animated background image layer — Ken Burns zoom/pan */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('../images/banner-images/banner-image-1.jpg') no-repeat center center;
  background-size: cover;
  animation: kenBurns 22s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

@keyframes kenBurns {
  0%   { transform: scale(1.00) translate(0%,    0%);   }
  25%  { transform: scale(1.07) translate(-1.2%, -0.6%); }
  50%  { transform: scale(1.10) translate(-0.5%, -1.2%); }
  75%  { transform: scale(1.06) translate( 0.8%, -0.4%); }
  100% { transform: scale(1.00) translate(0%,    0%);   }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.96) 0%,
    rgba(255,255,255,0.88) 40%,
    rgba(255,255,255,0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-left {}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(210,179,86,0.12);
  border: 1px solid rgba(210,179,86,0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInDown 0.7s ease both;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.75); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-title .highlight {
  color: var(--gold);
}
.hero-title .code-style {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.88em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-sub b { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.6s both;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
  animation: fadeInUp 0.7s ease 1s both;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollGrow 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollGrow {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   TERMINAL WINDOW
   ============================================ */
.terminal-window {
  width: 100%;
  max-width: 480px;
  background: rgba(8, 10, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  border: 1px solid rgba(210,179,86,0.28);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
  font-family: 'Courier New', 'Lucida Console', monospace;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.terminal-header {
  background: rgba(15, 18, 26, 0.90);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-size: 0.72rem;
  color: #555;
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
  font-family: var(--font);
}

.terminal-body {
  padding: 18px 20px 20px;
  min-height: 240px;
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #d4dae3;
  scroll-behavior: smooth;
  background: transparent;
}
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(210,179,86,0.3); border-radius: 2px; }

#terminal-history .t-line {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
}
#terminal-history .t-cmd-line {
  color: #c9d1d9;
}
#terminal-history .t-cmd-line .t-prompt-old {
  color: var(--gold);
  font-weight: 700;
}
#terminal-history .t-output {
  color: #6e7681;
  padding-left: 2px;
}
#terminal-history .t-output.t-success {
  color: #3fb950;
}
#terminal-history .t-output.t-highlight {
  color: var(--gold);
  font-weight: 700;
}
#terminal-history .t-blank { display: block; height: 6px; }

.terminal-active-line {
  display: flex;
  align-items: center;
  margin-top: 2px;
}
.t-prompt {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
#terminal-cmd {
  color: #c9d1d9;
  white-space: pre;
}
.t-cursor {
  color: var(--gold);
  animation: cursorBlink 1s step-end infinite;
  margin-left: 1px;
  line-height: 1;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================
   ABOUT / FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(210,179,86,0.25);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(210,179,86,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 18px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--gold);
  color: #fff;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 24px;
  align-items: start;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(210,179,86,0.3);
}

.service-card-featured {
  border-color: var(--gold);
  border-width: 2px;
}
.service-card-featured:hover {
  box-shadow: var(--shadow-gold);
}

.service-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}

.service-icon {
  width: 46px; height: 46px;
  background: rgba(210,179,86,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--gold);
}
.service-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}
.service-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding-bottom: 4px;
}
.service-list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list li i {
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.btn-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-service-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.service-card-featured .btn-service-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.service-card-featured .btn-service-link:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

/* ============================================
   GITHUB PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(210,179,86,0.3);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-icon {
  width: 42px; height: 42px;
  background: rgba(210,179,86,0.1);
  border: 1px solid rgba(210,179,86,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.project-lang {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(210,179,86,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}
.project-card h3 {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  transition: var(--transition);
}
.project-link:hover { color: var(--gold-dark); gap: 12px; }
.project-link .fa-external-link-alt { font-size: 0.65rem; }

.project-card-cta {
  background: var(--bg-alt);
  border: 2px dashed rgba(210,179,86,0.35);
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.project-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.project-cta-inner > .fab { font-size: 2.2rem; color: var(--gold); opacity: 0.6; }
.project-cta-inner h3 { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--text); }
.project-cta-inner p { font-size: 0.84rem; color: var(--text-muted); }

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.team-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
  border-color: rgba(210,179,86,0.35);
}

.team-avatar {
  width: 68px; height: 68px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  border: 3px solid rgba(210,179,86,0.2);
}
.team-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}
.team-role {
  font-size: 0.8rem;
  color: var(--text-light);
}
.team-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: rgba(210,179,86,0.1);
  border: 1px solid rgba(210,179,86,0.25);
  border-radius: 7px;
  color: var(--gold);
  font-size: 0.85rem;
  transition: var(--transition);
  margin-top: 6px;
}
.team-social:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.partner-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.partner-logo:hover {
  border-color: rgba(210,179,86,0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.partner-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: var(--transition);
}
.partner-logo:hover img { filter: grayscale(0%) opacity(1); }
.partner-logo span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(210,179,86,0.1);
  border: 1px solid rgba(210,179,86,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: var(--transition);
}
.contact-item a:hover { color: var(--gold); }

.contact-socials {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}
.contact-socials a {
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.contact-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 100%; display: block; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: #111;
  color: #999;
  padding: 44px 0 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { display: block; }
.footer-brand p {
  font-size: 0.82rem;
  color: #666;
  max-width: 240px;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: var(--transition);
  font-size: 0.85rem;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.footer-bottom {
  font-size: 0.78rem;
  color: #555;
  text-align: center;
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================
   AI SECTION
   ============================================ */
.section-dark-brand {
  background: #111;
}
.section-eyebrow-gold {
  color: var(--gold);
  background: rgba(210,179,86,0.12);
  border-color: rgba(210,179,86,0.25);
}
.section-title-light {
  color: #fff;
}
.section-title-light::after {
  background: var(--gold);
}
.section-subtitle-light {
  color: #999;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.ai-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.ai-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(210,179,86,0.25);
  transform: translateY(-4px);
}
.ai-card:hover::before { transform: scaleX(1); }

.ai-icon {
  width: 50px; height: 50px;
  background: rgba(210,179,86,0.12);
  border: 1px solid rgba(210,179,86,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 18px;
  transition: var(--transition);
}
.ai-card:hover .ai-icon {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.ai-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.ai-card p {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.75;
}

.ai-cta {
  text-align: center;
}

/* ============================================
   GITHUB CTA BLOCK
   ============================================ */
.github-cta-block {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 48px;
  flex-wrap: wrap;
}

.github-cta-icon {
  font-size: 5rem;
  color: var(--text);
  opacity: 0.75;
  flex-shrink: 0;
  line-height: 1;
}

.github-cta-text {
  flex: 1;
  min-width: 220px;
}
.github-cta-text .section-title {
  font-size: 1.8rem;
  margin-bottom: 0;
}
.github-cta-text .section-subtitle {
  margin-top: 12px;
}

.github-cta-btn {
  flex-shrink: 0;
  font-size: 0.95rem;
  padding: 14px 28px;
}

/* WhatsApp icon green tint */
.contact-icon-whatsapp {
  background: rgba(37,211,102,0.1) !important;
  border-color: rgba(37,211,102,0.2) !important;
  color: #25d366 !important;
}

/* WhatsApp clickable link */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px;
  transition: var(--transition);
  margin-top: 4px;
}
.whatsapp-link:hover {
  background: #1da851;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

/* Footer logo — invert to white on dark background */
.footer-logo {
  filter: brightness(0) invert(1);
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }
  .github-cta-block { flex-direction: column; text-align: center; padding: 36px 28px; gap: 24px; }
  .github-cta-icon { font-size: 3.5rem; }
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
  }
  .hero-right { display: none; } /* hide terminal on tablet/mobile to keep it clean */
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.1rem; padding: 10px 24px; }
  .nav-hamburger { display: flex; }
  .nav-hamburger.open span { background: var(--text); }

  .section { padding: 64px 0; }
  .hero-content { padding: 100px 28px 60px; }
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }

  .footer-top { flex-direction: column; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
