/* ==========================================================================
   Vinoth.asia 2.0 - Core CSS Design System
   Official Personal Brand, Public Service & Tech Ecosystem Portal
   ========================================================================== */

:root {
  --bg-main: #0B0E14;
  --bg-card: #121824;
  --bg-card-hover: #182030;
  --bg-glass: rgba(18, 24, 36, 0.85);
  --border-color: #212B3E;
  --border-gold: #F7931A;
  
  --primary-gold: #F7931A;
  --primary-green: #00E676;
  --accent-blue: #38BDF8;
  --accent-purple: #A855F7;
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(247, 147, 26, 0.18);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Container */
.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(247, 147, 26, 0.12);
  color: var(--primary-gold);
  border: 1px solid rgba(247, 147, 26, 0.3);
}

.badge-green {
  background: rgba(0, 230, 118, 0.12);
  color: var(--primary-green);
  border-color: rgba(0, 230, 118, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #F7931A 0%, #FFB74D 100%);
  color: #000000;
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 147, 26, 0.5);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  background: rgba(247, 147, 26, 0.08);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 0 12px rgba(247, 147, 26, 0.25);
  transition: var(--transition);
}

.nav-logo-img:hover {
  transform: scale(1.04);
}

.footer-logo-img {
  height: 60px;
  width: auto;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F7931A 0%, #E65100 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(247, 147, 26, 0.4);
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-heading);
}

.brand-title span { color: var(--primary-gold); }

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.desktop-nav {
  display: flex;
  gap: 18px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-gold);
  background: rgba(247, 147, 26, 0.1);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(247, 147, 26, 0.1) 0%, transparent 60%);
}

.hero-title {
  font-size: 3.2rem;
  margin: 20px 0 15px;
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, #F7931A 0%, #FFD54F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 25px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 35px 0;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  text-align: center;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Public Service Section */
.service-vision-box {
  background: linear-gradient(135deg, rgba(18, 24, 36, 0.9) 0%, rgba(24, 32, 48, 0.9) 100%);
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 40px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.principle-card {
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

.principle-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-3px);
}

/* 5 Core Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-card);
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.pillar-title {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pillar-features {
  list-style: none;
  margin-bottom: 20px;
}

.pillar-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-features li::before {
  content: "✓";
  color: var(--primary-green);
  font-weight: bold;
}

/* Calculator Wrapper */
.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-card);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  padding: 12px 16px;
  background: #0B0E14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-gold);
}

.calc-results {
  background: #0A0D13;
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-top: 20px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}
.result-row:last-child { border-bottom: none; }

.result-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: var(--font-heading);
}

/* Section Padding & Headings */
.section-padding { padding: 60px 0; }

.section-header { margin-bottom: 30px; }

.section-title {
  font-size: 2rem;
  margin-top: 6px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.main-footer {
  background: #06080C;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 25px;
  margin-top: 80px;
  font-size: 0.88rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 30px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* 18 Solutions Grid from Visiting Card */
.card-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.card-service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  transition: var(--transition);
}

.card-service-item:hover {
  border-color: var(--primary-gold);
  transform: translateY(-4px);
  background: rgba(247, 147, 26, 0.08);
}

.card-service-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.card-service-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Authorized Brands Flex Bar */
.brands-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.brand-badge {
  padding: 8px 16px;
  background: rgba(18, 24, 36, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 3D Visual Canvas Background */
#canvas3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* 3D Perspective Card Tilt Container */
.card-3d-wrap {
  perspective: 1200px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tilt-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(247, 147, 26, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover::before {
  opacity: 1;
}

.tilt-card:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 15px 35px rgba(247, 147, 26, 0.25), 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Instagram Media Gallery Grid */
.ig-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.ig-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.ig-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 24, 36, 0.8);
}

.ig-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 800;
  font-size: 0.9rem;
}

.ig-media-box {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #FFFFFF;
  position: relative;
}

.ig-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-gold);
}

.ig-card-body {
  padding: 18px;
  flex: 1;
}

.ig-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 14, 20, 0.6);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Quick Floating Speed Dial Dock */
.mobile-floating-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(247, 147, 26, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(247, 147, 26, 0.3);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #FFF;
  transition: transform 0.2s ease;
}
.dock-btn:active { transform: scale(0.92); }

.dock-wa { background: #25D366; color: #FFF; }
.dock-tg { background: #0088cc; color: #FFF; }
.dock-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #FFF; }
.dock-vcard { background: var(--primary-gold); color: #000; }

/* Downloads Hub Grid */
.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.download-card {
  background: linear-gradient(135deg, rgba(18, 24, 36, 0.9) 0%, rgba(24, 32, 48, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.download-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .desktop-nav { display: none; }
  .card-services-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .mobile-floating-dock { width: 92%; justify-content: space-around; padding: 6px 10px; }
  .dock-btn span { display: none; }
}


