/*
  styles.css - BRIGHT HAND INNOVATION (Finalized Artistic Dark Theme)
  - BRIGHTER Cosmic Blue/Green/Purple Palette
  - FIXED: Enhanced visibility for ALL input fields (White border/margin)
  - FIXED: White border added to ALL service/info cards
  - FIXED: Logo background white with black border and vibration animation
*/

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
  /* --- Color Palette (BRIGHTER) --- */
  --color-primary: #00E676; /* Bright Green/Emerald */
  --color-secondary: #AB47BC; /* Medium Violet/Purple */
  --color-tertiary: #1976D2; /* Royal Blue */
  --color-white: #FFFFFF;
  --color-black: #000000; /* New black variable for border */
  
  /* --- Theme Backgrounds & Text (BRIGHTER DARK MODE) --- */
  --background-dark: #1F2E4D; /* Darker, but cleaner Navy Blue */
  --background-mid: #2C4068; /* Card/Section Background */
  --card-background: #3B5481; /* Slightly lighter Card Background */
  --text-primary: #FFFFFF;
  --text-secondary: #CFD8DC; /* High-contrast off-white */
  
  /* --- Glass/Border/Shadows --- */
  --glass-bg: rgba(255, 255, 255, 0.08); /* Brighter glass effect */
  --glass-border: rgba(255, 255, 255, 0.2); /* More visible border */
  --border-color: #4A638C; /* Clear separator line */
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 18px 45px rgba(0, 0, 0, 0.5);
  
  /* --- Gradients --- */
  --accent-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --text-gradient: linear-gradient(90deg, var(--color-white) 30%, var(--color-primary) 100%);
  
  /* --- Layout --- */
  --max-width: 1200px;
  --radius: 14px;
  --segment-margin: 60px 0;
}

/* Light Mode Variables (Placeholder/Toggle functionality) */
body.light-mode {
  --background-dark: #F5F7FA;
  --background-mid: #FFFFFF;
  --card-background: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #444444;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.1);
  --border-color: #E0E0E0;
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lift: 0 18px 45px rgba(0, 0, 0, 0.15);
}


/* --- Basic Setup & Reset --- */
* { 
  box-sizing: border-box; 
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: var(--text-primary);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(171,71,188,0.15), transparent 50%),
    radial-gradient(1000px 400px at 90% 90%, rgba(0,230,118,0.1), transparent 50%),
    var(--background-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
p, ul {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* --- Layout & Segment Separation --- */
.container {
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

section {
    padding: 40px 0;
    margin: var(--segment-margin);
    border-top: 1px solid var(--border-color); 
}
section:last-of-type {
    border-bottom: 1px solid var(--border-color); 
}

.section-title {
    margin: 0 0 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title h2 { font-size: 1.8em; margin: 0; }


/* --- NAVBAR --- */
.nav {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  backdrop-filter: blur(12px); 
  background: rgba(44, 64, 104, 0.7); 
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
}
.brand { display: flex; align-items: center; gap: 12px; }

/* --- LOGO ANIMATION & STYLE FIX --- */
.logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-white); /* White background for visibility */
  border: 2px solid var(--color-black); /* Black border */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); /* White glow */
  padding: 5px; 
  /* Constant Vibration Animation */
  animation: logoVibrate 0.3s ease-in-out infinite alternate;
}
@keyframes logoVibrate {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    100% { transform: translate(-1px, -1px) rotate(-0.5deg); }
}

.navlinks { display: flex; gap: 20px; align-items: center; }
.navlinks a, .navlinks button {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}

.navlinks a:hover, .navlinks button:hover {
  color: var(--color-primary);
}

/* --- ANIMATED BUTTON HOVER BAR --- */
.navlinks a::after, .navlinks button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; 
  width: 0%; 
  height: 3px;
  background: var(--color-primary);
  transition: width 0.3s ease-out; 
}

.navlinks a:hover::after, .navlinks button:hover::after {
  width: 100%; 
}

/* --- Hero Section --- */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
}
.hero-inner{
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: var(--max-width);
  padding: 80px 0;
}
.hero-copy{ max-width: 620px; }
.hero h1{
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 20px 0;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  animation: textFloat 6s ease-in-out infinite;
}
@keyframes textFloat{
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.hero p{ color: var(--text-secondary); margin: 0 0 30px 0; font-size: 1.1rem; }

/* --- Buttons --- */
.cta-row{ display: flex; gap: 15px; flex-wrap: wrap; }
.btn{
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all .3s ease;
  backdrop-filter: blur(4px);
}
.btn-primary{
  background: var(--accent-gradient);
  color: var(--color-white) !important;
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.3);
}
.btn-primary:hover{ 
  transform: translateY(-3px); 
  box-shadow: 0 12px 30px rgba(0, 230, 118, 0.5); 
}
.btn-outline{
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary) !important;
}
.btn-outline:hover{ 
  background: rgba(0, 230, 118, 0.1); 
  transform: translateY(-2px); 
}


/* --- Cards & Grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card-background); 
  /* FIX: Added thick white border for visibility */
  border: 3px solid var(--color-white); 
  box-shadow: var(--shadow-main);
  transition: all .3s ease;
}
.card h3{ margin: 0 0 8px 0; font-size: 1.1rem; }
.card p{ margin: 0; font-size: 0.95rem; }

.card:hover{ 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lift); 
}

.grid-2 { 
  display: grid; 
  grid-template-columns: 1fr 400px; 
  gap: 40px; 
  align-items: start; 
}


/* --- Footer --- */
.footer {
  padding: 30px 0;
  margin-top: 40px;
  background: var(--background-mid); 
  border-top: 1px solid var(--border-color);
}
.footer .container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 20px; 
  flex-wrap: wrap; 
}


/* --- Utility & Components --- */
.small{ font-size: 0.85rem; color: var(--text-secondary); }
.center{ text-align: center; }

/* --- FORM INPUT FIELD FIX --- */
input, textarea{
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  /* FIX: Visible white border */
  border: 2px solid var(--color-white); 
  background: var(--background-dark); 
  color: var(--text-primary);
  resize: vertical;
  /* FIX: Clear margin/separation below input */
  margin-bottom: 20px; 
}
label{ font-size: 0.95rem; display: block; margin-bottom: 6px; color: var(--text-secondary); }

/* --- WhatsApp Bubble (Fixed and Visible) --- */
.whatsapp{
  position: fixed; 
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366; 
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  cursor: pointer;
  border: 4px solid var(--card-background); 
}
.whatsapp img{
  width: 32px;
  height: 32px;
  filter: invert(100%); 
}

/* Responsive Adjustments */
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  .hero-inner{ flex-direction: column; text-align: center; }
  .cta-row{ justify-content: center; }
  .navlinks{ display: none; }
  .nav{ justify-content: space-between; left: 12px; right: 12px; }
  .footer .container{ flex-direction: column; }
}

/* Scroll Reveal Animation */
.reveal{ opacity: 0; transform: translateY(20px); transition: all 0.7s cubic-bezier(0.2, 0.9, 0.2, 1); }
.reveal.visible{ opacity: 1; transform: translateY(0); }