/* ================================================
   apnaPR — Shared Design System
   Cinematic Hybrid (Dark/Light) Theme
   ================================================ */

:root {
  /* Brand Colors */
  --navy:        #060B14; /* Extremely Dark Navy / Near Black */
  --blue:        #1b5fc1; /* Royal blue accents */
  --cyan:        #00d2ff; /* Glowing cyan accents */
  --blue-l:      #eff6ff; /* Light blue */
  
  /* Neutral Palette (Light Mode) */
  --bg-color:    #ffffff;
  --bg-alt:      #f8fafc;
  --text-main:   #334155;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  
  /* Neutral Palette (Dark Mode Overrides) */
  --dark-bg:     #060B14;
  --dark-alt:    #0B1320;
  --dark-text:   #f8fafc;
  --dark-muted:  #94a3b8;
  --dark-border: rgba(255,255,255,0.1);
  
  /* UI Elements */
  --radius:      16px;
  --radius-s:    8px;
  --tr:          all .3s cubic-bezier(.4,0,.2,1);
  --shadow-sm:   0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow:      0 10px 30px -5px rgba(0,0,0,0.2);
  --glow:        0 0 20px rgba(0, 210, 255, 0.4);
  
  /* Typography */
  --font-h:      'Rubik', sans-serif;
  --font-b:      'Inter', sans-serif;
  --max-w:       1200px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{background:var(--bg-color);color:var(--text-main);font-family:var(--font-b);line-height:1.65;overflow-x:hidden}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{display:block;max-width:100%}
input,select,textarea,button{font-family:inherit;outline:none;border:none}
::selection{background:var(--cyan);color:#000}
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:var(--dark-bg)}
::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--cyan)}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-h); color: var(--navy); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.text-blue { color: var(--blue); }
.text-cyan { color: var(--cyan); }
.glow-text { text-shadow: 0 0 10px rgba(0, 210, 255, 0.5); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: var(--tr); white-space: nowrap; }
.btn-p { background: var(--blue); color: #fff; border: 2px solid var(--blue); box-shadow: 0 4px 14px rgba(27,95,193,.25); }
.btn-p:hover { background: transparent; border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow); transform: translateY(-2px); }
.btn-g { background: transparent; border: 2px solid var(--text-muted); color: var(--text-main); }
.btn-g:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #fff; border: 2px solid #25d366; }
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(37,211,102,.3); }

/* ── Section & Dark Mode Utilities ── */
.section { padding: 96px 0; position: relative; z-index: 1; }
.section.alt { background: var(--bg-alt); }
.section-dark { background: var(--dark-bg); color: var(--dark-text); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5 { color: #ffffff; }
.section-dark p { color: var(--dark-muted); }
.section-dark .btn-g { border-color: rgba(255,255,255,0.3); color: #ffffff; }
.section-dark .btn-g:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,210,255,0.05); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sec-badge { display: inline-block; padding: 6px 16px; background: var(--blue-l); border: 1px solid rgba(27,95,193,.2); border-radius: 100px; font-size: .8rem; font-weight: 700; color: var(--blue); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 20px; }
.section-dark .sec-badge { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); color: var(--cyan); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; }

/* ── Reveal Animations ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-l.show { opacity: 1; transform: translateX(0); }
.reveal-r { opacity: 0; transform: translateX(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-r.show { opacity: 1; transform: translateX(0); }

/* ================================================
   NAVBAR (Dark Theme default for cinematic feel)
   ================================================ */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px; transition: var(--tr); background: rgba(6, 11, 20, 0.98); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); }
#nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.nav-wrap { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; height: 90px; gap: 24px; }
.logo img { filter: invert(1) brightness(2); } /* Make the black text white for dark backgrounds */

.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-links a { padding: 8px 16px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: #cbd5e1; transition: var(--tr); }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--tr); }

/* ================================================
   FOOTER
   ================================================ */
footer { background: var(--dark-bg); color: #fff; position: relative; z-index: 1; padding-top: 80px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer-brand .logo img { filter: invert(1) brightness(2); margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; color: #cbd5e1; line-height: 1.7; max-width: 300px; margin-bottom: 24px; }
.socials { display: flex; gap: 12px; }
.social-a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--tr); font-weight: bold; }
.social-a:hover { background: var(--cyan); transform: translateY(-3px); box-shadow: var(--glow); color: #000; }
.footer-col h5 { font-size: .95rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 24px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .95rem; color: #cbd5e1; transition: var(--tr); }
.footer-col a:hover { color: var(--cyan); padding-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* WhatsApp Float */
.wa-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37,211,102,.4); z-index: 999; transition: var(--tr); }
.wa-float:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 14px 30px rgba(37,211,102,.5); }
.scroll-top-btn { position: fixed; bottom: 100px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: var(--dark-alt); color: #fff; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; transform: translateY(10px); transition: var(--tr); z-index: 998; }
.scroll-top-btn.show { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--cyan); color: #000; transform: translateY(-3px); box-shadow: var(--glow); }

/* Toast */
.toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--cyan); color: #000; border-radius: var(--radius-s); padding: 16px 32px; font-size: .95rem; font-weight: 700; opacity: 0; transition: var(--tr); z-index: 9999; box-shadow: var(--glow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media(max-width:992px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media(max-width:768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 90px; left: 0; right: 0; background: var(--dark-bg); padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); z-index: 999; }
  .nav-links.open a { padding: 12px 16px; font-size: 1.1rem; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .scroll-top-btn { right: 20px; }
}
