/* 
   CIASoft Solutions - Stylesheet
   Brand Colors:
   - Primary Blue: #002db7
   - Secondary Green/Cyan: #2596be
   - White: #ffffff
   - Accent/Dark: #111424
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  --primary: #002db7;
  --secondary: #2596be;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --bg-card-light: rgba(255, 255, 255, 0.75);
  --text-dark: #0f172a;
  --text-muted-light: #475569;
  
  --bg-dark: #0b0f19;
  --bg-card-dark: rgba(15, 23, 42, 0.6);
  --text-light: #f1f5f9;
  --text-muted-dark: #94a3b8;
  
  /* Current Theme values default to Light */
  --current-bg: var(--bg-light);
  --current-text: var(--text-dark);
  --current-card: var(--bg-card-light);
  --current-muted: var(--text-muted-light);
  --border-color: rgba(226, 232, 240, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 4px rgba(0, 45, 183, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 45, 183, 0.1), 0 8px 10px -6px rgba(0, 45, 183, 0.1);
  --shadow-lg: 0 20px 30px -10px rgba(0, 45, 183, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --current-bg: var(--bg-dark);
    --current-text: var(--text-light);
    --current-card: var(--bg-card-dark);
    --current-muted: var(--text-muted-dark);
    --border-color: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
  }
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--current-bg);
  color: var(--current-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--current-muted);
  font-weight: 400;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.2rem 0;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo img {
  display: block;
  max-height: 45px;
  width: auto;
  transition: var(--transition-smooth);
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--current-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav ul li a.active {
  color: var(--primary);
}

nav ul li a.active::after {
  transform: scaleX(1);
}

/* Contact Nav CTA Button */
nav ul li.nav-cta a {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 45, 183, 0.2);
}

nav ul li.nav-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 45, 183, 0.3);
}

nav ul li.nav-cta a::after {
  display: none;
}

/* Mobile Toggle Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--current-text);
  transition: var(--transition-smooth);
  transform-origin: left;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background: #060913;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero_home.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 9, 19, 0.92) 20%, rgba(0, 45, 183, 0.4) 70%, rgba(37, 150, 190, 0.3) 100%);
}

.hero .container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #38bdf8, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 45, 183, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 45, 183, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Floating WhatsApp Widget */
@keyframes pulse-whatsapp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.float-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  animation: pulse-whatsapp 2s infinite;
}

.float-whatsapp img {
  width: 32px;
  height: 32px;
}

.float-whatsapp:hover {
  animation-play-state: paused;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 2px 8px 20px rgba(0,0,0,0.4);
}

/* Global Sections & Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section.section-padding {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Glassmorphism Card Style */
.card-glass {
  background: var(--current-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.card-glass:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 150, 190, 0.4);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Services Page Card Style */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 45, 183, 0.1), rgba(37, 150, 190, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.card-glass:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

/* Stats Counter Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #031340 100%);
  color: var(--white);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 500;
}

/* Portfolio Filtering & Grid */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--current-card);
  color: var(--current-text);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 45, 183, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 9, 19, 0.9), rgba(0, 45, 183, 0.4));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.portfolio-link:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Blog Section */
.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-body {
  padding: 2rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-body h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.blog-body p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Contact Form & Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 45, 183, 0.1), rgba(37, 150, 190, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-info-details p, .contact-info-details a {
  font-size: 0.95rem;
  color: var(--current-muted);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--current-bg);
  color: var(--current-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.15);
}

textarea.form-control {
  resize: vertical;
}

.g-recaptcha {
  margin-bottom: 1.5rem;
}

/* Footer Section */
footer {
  background: #ffffff;
  color: #0f172a;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-col p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links li a {
  color: #475569;
  font-size: 0.95rem;
}

.footer-links li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #64748b;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Font Awesome fallbacks or embed support */
.fa, .fas, .fab {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", sans-serif;
  font-weight: 900;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--current-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 1.5rem;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  
  nav ul.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
