@import url('./variables.css');

/* ==========================================
   1. Base & Reset
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   2. Layout & Containers
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Grid helper */
.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}

@media (max-width: 576px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================
   3. Custom Components
   ========================================== */

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition-normal), 
              border-color var(--transition-normal), 
              box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-6px);
  border: var(--border-glass-glow);
  box-shadow: var(--shadow-glass), var(--shadow-neon);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #04080f;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
  z-index: -1;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45), var(--shadow-neon-strong);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

/* Ambient glow blobs */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, rgba(0,0,0,0) 70%);
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.glow-blob-1 { top: 10%; left: -10%; }
.glow-blob-2 { bottom: 10%; right: -10%; }

/* ==========================================
   4. Header & Navigation (Loaded dynamically)
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), 
              border-color var(--transition-normal),
              backdrop-filter var(--transition-normal),
              height var(--transition-normal);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(8, 11, 17);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header.scrolled {
  background-color: rgba(8, 11, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-color);
  height: 70px;
}

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

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  color: #fff;

}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color:#fff
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color:#fff
}

/* Hamburger mobile menu button */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-normal);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: right var(--transition-normal);
    z-index: 1050;
    border-left: var(--border-glass);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ==========================================
   5. Hero / Intro Area
   ========================================== */
.hero-sec {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  overflow: hidden;
  position: relative;
  background-image: linear-gradient(135deg, rgba(10, 16, 32, 0.95) 0%, rgba(10, 16, 32, 0.8) 50%, rgba(10, 16, 32, 0.45) 100%), url('../images/Banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-text {
  flex: 1.2;
  position: relative;
  z-index: 10;
  padding: 20px;
  border-radius: 24px;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--color-primary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  color: #fff;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 24px;
     font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  color: #fff;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 992px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-desc {
    margin: 0 auto 40px auto;
  }
  .hero-text {
    padding: 32px 24px;
    margin: 0 auto;
  }
}

/* ==========================================
   6. Custom Page Banner
   ========================================== */
.page-banner {
  padding: 140px 0 60px 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: var(--border-glass);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.banner-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ==========================================
   7. Vision & Corporate Info (About Us)
   ========================================== */
.info-section {
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  color: var(--color-primary);
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.content-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.content-row:nth-child(even) {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1.2;
}

.content-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-text h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.content-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.content-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  .content-row, .content-row:nth-child(even) {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }
}

/* ==========================================
   8. Services Styles
   ========================================== */
.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  transition: transform var(--transition-normal);
}

.glass-card:hover .service-icon-wrapper {
  transform: scale(1.1);
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================
   9. Testimonial & Core Values (Index Slider)
   ========================================== */
.values-container {
  display: flex;
  gap: 32px;
  margin-top: 20px;
}

.value-card {
  flex: 1;
  border-left: 2px solid var(--border-color);
  padding-left: 24px;
  transition: border-color var(--transition-normal);
}

.value-card:hover {
  border-color: var(--color-primary);
}

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

.value-card p {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .values-container {
    flex-direction: column;
    gap: 40px;
  }
}

/* ==========================================
   10. Contact Us & Form Styles
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(2, 132, 199, 0.06);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.contact-details h4 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-details p {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.contact-form-card {
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

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

@media (max-width: 576px) {
  .form-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.03);
  border: var(--border-glass);
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

input:focus, textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.15), var(--shadow-sm);
}

/* User inputs validation styles via CSS :user-valid and :invalid */
input:not(:placeholder-shown):user-valid,
textarea:not(:placeholder-shown):user-valid {
  border-color: var(--color-success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* ==========================================
   11. Privacy Policy Page
   ========================================== */
.policy-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
}

.policy-card h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.policy-card p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.policy-card ul {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style-type: square;
}

.policy-card li {
  margin-bottom: 10px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .policy-card {
    padding: 30px 20px;
  }
}

/* ==========================================
   12. Footer (Loaded dynamically)
   ========================================== */
footer {
  background-color: var(--bg-secondary);
  border-top: var(--border-glass);
  padding: 80px 0 40px 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.footer-logo-box img {
  height: 50px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-sm);
  padding: 6px;
  border: var(--border-glass);
  object-fit: contain;
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact p i {
  color: var(--color-primary);
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================
   13. Animated Interactive SVGs (Aesthetics Upgrade)
   ========================================== */
.animated-mesh {
  width: 100%;
  max-width: 500px;
  height: 380px;
}

.network-nodes circle {
  animation: pulse-node 3s infinite ease-in-out;
}

.network-nodes circle:nth-child(2n) {
  animation-delay: 1s;
}

.network-nodes circle:nth-child(3n) {
  animation-delay: 2s;
}

.network-lines path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-line 8s infinite linear;
}

.network-lines path:nth-child(2) {
  animation-delay: 1s;
}
.network-lines path:nth-child(3) {
  animation-delay: 2s;
}

.data-bars rect {
  transform-origin: bottom;
  animation: grow-bar 4s infinite ease-in-out alternate;
}

.data-bars rect:nth-child(1) { animation-delay: 0.2s; }
.data-bars rect:nth-child(2) { animation-delay: 0.6s; }
.data-bars rect:nth-child(3) { animation-delay: 0.4s; }
.data-bars rect:nth-child(4) { animation-delay: 0.8s; }

@keyframes pulse-node {
  0%, 100% { r: 5px; fill-opacity: 0.7; filter: drop-shadow(0 0 2px var(--color-primary)); }
  50% { r: 9px; fill-opacity: 1; filter: drop-shadow(0 0 10px var(--color-primary)); }
}

@keyframes draw-line {
  0% { stroke-dashoffset: 800; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -800; }
}

@keyframes grow-bar {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Services Page SVG Illustration animation */
.shield-rotate {
  transform-origin: 250px 250px;
  animation: rotate-shield 20s infinite linear;
}

.data-flow path {
  stroke-dasharray: 20;
  animation: flow-data 2s infinite linear;
}

@keyframes rotate-shield {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes flow-data {
  to {
    stroke-dashoffset: -40;
  }
}

/* ==========================================
   14. Reveal on Scroll (Scroll Animation)
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

