/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --dark3: #0f3460;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --gray-bg: #f5f5f5;
  --border: #e0e0e0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --nav-height: 70px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--dark);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark);
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

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

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary);
}

/* Dropdown */
.nav-links .has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: var(--gray-bg);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: 0.3s;
}

/* ===== PAGE OFFSET ===== */
.page-content {
  padding-top: var(--nav-height);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  color: var(--white);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content h1 span { color: var(--primary); }

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,30,99,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--gray-bg); }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
  font-style: italic;
}

.section-title .divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.blog-card-body { padding: 25px; }

.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-body h3 a:hover { color: var(--primary); }

.blog-card-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.read-more:hover { gap: 10px; }

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

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.1);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 30px 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

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

footer p { font-size: 0.8rem; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-header p {
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}

/* ===== BLOG POST ===== */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-meta a { color: var(--primary); }

.post-content h2 {
  font-size: 1.6rem;
  margin: 35px 0 15px;
  color: var(--dark);
}

.post-content h2:first-child { margin-top: 0; }

.post-content p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.975rem;
}

.post-content img {
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.post-content ul, .post-content ol {
  margin: 15px 0 15px 25px;
  color: var(--text);
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li { margin-bottom: 8px; font-size: 0.975rem; }

.post-categories {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}

.post-categories a {
  color: var(--primary);
  font-weight: 600;
}

/* Download button */
.download-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-top: 10px;
  transition: all 0.3s;
}

.download-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,30,99,0.4);
}

.download-info {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  font-size: 0.9rem;
}

.download-info strong { color: var(--primary); }

/* About page */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.about-intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.skill-tag {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
}

.about-area {
  margin-bottom: 40px;
}

.about-area h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.about-area ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.about-area ul li {
  padding: 10px 15px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  font-size: 0.9rem;
  border-left: 3px solid var(--primary);
}

/* Tools page */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.tool-card-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  padding: 30px;
  color: var(--white);
}

.tool-card-header h3 { color: var(--white); font-size: 1.3rem; }
.tool-card-header p { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-top: 8px; }

.tool-card-body { padding: 25px; }
.tool-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

/* Comment form */
.comment-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.comment-section h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* ===== NAVBAR TRANSPARENT (hero pages only) ===== */
.navbar {
  transition: background 0.4s, box-shadow 0.4s, color 0.4s;
}

.nav-transparent {
  background: transparent !important;
  box-shadow: none !important;
}

.nav-transparent .navbar-brand,
.nav-transparent .nav-links > li > a {
  color: var(--white) !important;
}

.nav-transparent .hamburger span {
  background: var(--white) !important;
}

/* Hero extends behind transparent navbar so dark background shows through */
.navbar[data-transparent="true"] ~ .page-content {
  padding-top: 0;
}

.navbar[data-transparent="true"] ~ .page-content .hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* ===== HERO CANVAS ===== */
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ===== TYPEWRITER ===== */
.typewriter-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== SCROLL ARROW ===== */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-arrow span {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: arrowBounce 1.8s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) { animation-delay: 0.2s; opacity: 0.6; }
.scroll-arrow span:nth-child(3) { animation-delay: 0.4s; opacity: 0.3; }

@keyframes arrowBounce {
  0%   { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark2);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat {
  padding: 20px 10px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===== VALUE CARD ICONS ===== */
.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(233,30,99,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1.15rem;
  color: var(--primary);
  transition: background 0.3s, transform 0.3s;
}

.value-card:hover .value-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

/* Fix 7-card grid centering */
.values-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.value-card {
  flex: 1 1 280px;
  max-width: calc(33.333% - 18px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }

/* ===== FOOTER REDESIGN ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 35px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-links-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links > li > a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 15px;
  }

  .has-dropdown.open .dropdown { display: block; }

  .hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:last-child { border-bottom: none; }
  .value-card { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-social { justify-content: flex-start; }
}
