/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Brand Color Tokens */
  --primary-blue: #0B4FD9;
  --secondary-blue: #2F80ED;
  --primary-orange: #FF6B00;
  --secondary-orange: #FFA54B;
  
  /* Category Colors (AA Contrast Compliant) */
  --blue-theme: #0B4FD9;
  --purple-theme: #7C3AED;
  --green-theme: #0B7A57;
  --gold-theme: #B45309;
  
  /* Semantic Colors */
  --purple: #8B5CF6;
  --green: #10B981;
  --teal: #0891B2;
  --gold: #D97706;
  --red: #F43F5E;
  
  /* Text and Backgrounds */
  --text-dark: #0F172A; /* Slate 900 for absolute readability */
  --text-light: #475569; /* Slate 600 for description text */
  --text-muted: #64748B; /* Slate 500 */
  --card-bg: #FFFFFF;
  --page-bg: #F8FAFC;
  --border-color: rgba(226, 232, 240, 0.8); /* Slate 200 */
  
  /* Shadow Systems */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-focus: 0 0 0 4px rgba(11, 79, 217, 0.25);
  
  /* Animation Speeds */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-dark);
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   FUTURISTIC HERO BANNER
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 300px;
  background: #FFFFFF url('../images/banner.png') no-repeat top center / cover;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Content Area */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.logo-wrapper {
  width: 320px;
  height: auto;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-20px);
  animation: heroFadeIn 0.8s var(--transition-slow) forwards;
}

.kalorex-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeIn 0.8s var(--transition-slow) 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeIn 0.8s var(--transition-slow) 0.4s forwards;
}

/* ==========================================================================
   HERO BACKGROUND VISUALS (PURE CSS)
   ========================================================================== */
.hero-visuals-container {
  display: none;
}

/* Center Platform Rings & Glow */
.platform-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.radial-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.12) 0%, rgba(255, 107, 0, 0.06) 50%, transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
  animation: softPulse 6s ease-in-out infinite alternate;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(11, 79, 217, 0.08);
  transform-style: preserve-3d;
}

.ring-outer {
  width: 500px;
  height: 500px;
  border-color: rgba(255, 107, 0, 0.05);
  animation: rotateClockwise 25s linear infinite;
}

.ring-middle {
  width: 380px;
  height: 380px;
  border-color: rgba(11, 79, 217, 0.08);
  border-style: dashed;
  animation: rotateCounterClockwise 20s linear infinite;
}

.ring-inner {
  width: 260px;
  height: 260px;
  border-color: rgba(11, 79, 217, 0.12);
  box-shadow: inset 0 0 20px rgba(11, 79, 217, 0.03);
}

.digital-pad {
  position: absolute;
  width: 200px;
  height: 70px;
  background: linear-gradient(135deg, rgba(11, 79, 217, 0.04) 0%, rgba(255, 107, 0, 0.02) 100%);
  border: 1px solid rgba(11, 79, 217, 0.1);
  border-radius: 50%;
  transform: rotateX(65deg) translateY(120px);
  box-shadow: 0 15px 35px rgba(11, 79, 217, 0.1);
  backdrop-filter: blur(2px);
  animation: floatPad 4s ease-in-out infinite alternate;
}

/* Left & Right Circuit Board Sections */
.circuit-side {
  position: absolute;
  top: 0;
  width: 35%;
  height: 100%;
}

.circuit-left {
  left: 0;
}

.circuit-right {
  right: 0;
}

/* Circuit lines styling */
.circuit-line {
  position: absolute;
  background: transparent;
  pointer-events: none;
}

/* Left Circuit Details (Blue) */
.circuit-left .line-1 {
  top: 15%;
  left: 10%;
  width: 150px;
  height: 120px;
  border-left: 2px solid rgba(11, 79, 217, 0.15);
  border-bottom: 2px solid rgba(11, 79, 217, 0.15);
  border-bottom-left-radius: 20px;
}

.circuit-left .line-2 {
  top: 55%;
  left: -50px;
  width: 250px;
  height: 80px;
  border-top: 2px solid rgba(11, 79, 217, 0.15);
  border-right: 2px solid rgba(11, 79, 217, 0.15);
  border-top-right-radius: 24px;
}

.circuit-left .line-3 {
  bottom: 12%;
  left: 15%;
  width: 120px;
  height: 100px;
  border-right: 2px solid rgba(11, 79, 217, 0.15);
  border-top: 2px solid rgba(11, 79, 217, 0.15);
  border-top-right-radius: 16px;
}

/* Circuit Nodes */
.circuit-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.circuit-left .node-1 {
  top: calc(15% + 120px - 5px);
  left: calc(10% + 150px);
  background: var(--primary-blue);
  box-shadow: 0 0 10px var(--primary-blue);
}

.circuit-left .node-2 {
  top: calc(55% - 1px);
  left: calc(-50px + 250px - 4px);
  background: var(--secondary-blue);
  box-shadow: 0 0 10px var(--secondary-blue);
}

/* Right Circuit Details (Orange) */
.circuit-right .line-4 {
  top: 20%;
  right: 12%;
  width: 140px;
  height: 100px;
  border-right: 2px solid rgba(255, 107, 0, 0.15);
  border-bottom: 2px solid rgba(255, 107, 0, 0.15);
  border-bottom-right-radius: 20px;
}

.circuit-right .line-5 {
  top: 50%;
  right: -30px;
  width: 220px;
  height: 90px;
  border-top: 2px solid rgba(255, 107, 0, 0.15);
  border-left: 2px solid rgba(255, 107, 0, 0.15);
  border-top-left-radius: 24px;
}

.circuit-right .line-6 {
  bottom: 15%;
  right: 18%;
  width: 100px;
  height: 80px;
  border-left: 2px solid rgba(255, 107, 0, 0.15);
  border-top: 2px solid rgba(255, 107, 0, 0.15);
  border-top-left-radius: 16px;
}

.circuit-right .node-3 {
  top: calc(20% + 100px - 5px);
  right: calc(12% + 140px);
  background: var(--primary-orange);
  box-shadow: 0 0 10px var(--primary-orange);
}

.circuit-right .node-4 {
  top: calc(50% - 1px);
  right: calc(-30px + 220px - 4px);
  background: var(--secondary-orange);
  box-shadow: 0 0 10px var(--secondary-orange);
}

/* Layered Geometric Diagonal Shapes */
.diagonal-shape {
  position: absolute;
  opacity: 0.03;
  transform: rotate(-15deg);
}

.diagonal-blue-1 {
  top: 5%;
  left: 2%;
  width: 300px;
  height: 80px;
  background: linear-gradient(90deg, var(--primary-blue), transparent);
  border-radius: 40px;
}

.diagonal-blue-2 {
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 120px;
  background: linear-gradient(90deg, var(--secondary-blue), transparent);
  border-radius: 60px;
}


/* Geometric Dot Overlays */
.geo-pattern {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.6;
}

.pattern-1 { top: 8%; left: 5%; }
.pattern-2 { bottom: 25%; left: 22%; }
.pattern-3 { top: 28%; right: 25%; }
.pattern-4 { bottom: 8%; right: 5%; }

/* ==========================================================================
   MAIN CONTENT CONTAINER & SECTIONS
   ========================================================================== */
.main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

.portal-section {
  margin-bottom: 60px;
}

.portal-section:last-of-type {
  margin-bottom: 20px;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 30px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}


.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dark);
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Apply Section Theme Colors */
.section-blue .section-icon-box { color: var(--blue-theme); border-color: rgba(11, 79, 217, 0.2); }
.section-blue .section-tag { color: var(--blue-theme); }

.section-purple .section-icon-box { color: var(--purple-theme); border-color: rgba(124, 58, 237, 0.2); }
.section-purple .section-tag { color: var(--purple-theme); }

.section-green .section-icon-box { color: var(--green-theme); border-color: rgba(11, 122, 87, 0.2); }
.section-green .section-tag { color: var(--green-theme); }

.section-gold .section-icon-box { color: var(--gold-theme); border-color: rgba(180, 83, 9, 0.2); }
.section-gold .section-tag { color: var(--gold-theme); }


/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */
.grid-layout {
  display: grid;
  gap: 30px;
  width: 100%;
}

.grid-1-col {
  grid-template-columns: 1fr;
}

.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4-cols {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   MODERN GLASS-LIKE CARDS
   ========================================================================== */
.app-card {
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.3s ease;
  outline: none;
}

/* Card Load Fade In Styles */
.fade-in-card {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-card.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Keyboard Focus State */
.app-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-color: var(--primary-blue);
}

/* Left Column: Large Icon */
.card-left {
  margin-right: 24px;
  flex-shrink: 0;
}

.card-icon-container {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
  transition: transform 0.3s var(--transition-normal);
}

/* Center Column: App Info & Button */
.card-center {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2; /* Over dots */
}

.app-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.app-description {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
}

.btn-arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.85rem;
}

/* Right Column: Decorative Dotted Pattern */
.card-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.dotted-pattern {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  opacity: 0.7;
  transform: translate(25px, -15px);
  transition: transform 0.4s var(--transition-normal), opacity 0.4s ease;
}



/* ==========================================================================
   THEMED CARD SPECIALIZATION
   ========================================================================== */

/* Blue Category (ERP) */
.section-blue .app-card .card-icon-container {
  background-color: rgba(11, 79, 217, 0.08);
  color: var(--blue-theme);
}
.section-blue .app-card .portal-btn {
  background-color: var(--blue-theme);
  color: #FFFFFF;
}
.section-blue .app-card .portal-btn:hover,
.section-blue .app-card .portal-btn:focus {
  background-color: #083cb0;
  box-shadow: 0 8px 20px rgba(11, 79, 217, 0.25);
}
.section-blue .app-card:hover {
  border-color: rgba(11, 79, 217, 0.25);
  box-shadow: 0 20px 40px rgba(11, 79, 217, 0.08);
}

/* Purple Category (HR) */
.section-purple .app-card .card-icon-container {
  background-color: rgba(124, 58, 237, 0.08);
  color: var(--purple-theme);
}
.section-purple .app-card .portal-btn {
  background-color: var(--purple-theme);
  color: #FFFFFF;
}
.section-purple .app-card .portal-btn:hover,
.section-purple .app-card .portal-btn:focus {
  background-color: #6320d6;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}
.section-purple .app-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
}

/* Green Category (Training) */
.section-green .app-card .card-icon-container {
  background-color: rgba(11, 122, 87, 0.08);
  color: var(--green-theme);
}
.section-green .app-card .portal-btn {
  background-color: var(--green-theme);
  color: #FFFFFF;
}
.section-green .app-card .portal-btn:hover,
.section-green .app-card .portal-btn:focus {
  background-color: #085a40;
  box-shadow: 0 8px 20px rgba(11, 122, 87, 0.25);
}
.section-green .app-card:hover {
  border-color: rgba(11, 122, 87, 0.25);
  box-shadow: 0 20px 40px rgba(11, 122, 87, 0.08);
}

/* Gold Category (Business Applications) */
.section-gold .app-card .card-icon-container {
  background-color: rgba(180, 83, 9, 0.08);
  color: var(--gold-theme);
}




/* ==========================================================================
   INTERACTIVE HOVER STATES
   ========================================================================== */
.app-card:hover {
  transform: translateY(-8px);
}

.app-card:hover .card-icon-container {
  transform: scale(1.05);
}

.app-card:hover .dotted-pattern {
  transform: translate(15px, -8px);
  opacity: 1;
}
.btn-open:hover .btn-arrow,
.btn-open:focus .btn-arrow {
  transform: translateX(4px);
}
.btn-arrow {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.85rem;
}

/* Full Width Card Styling Adjustment */
.full-width-card {
  min-height: 180px;
}


/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes floatPad {
  0% {
    transform: rotateX(65deg) translateY(120px);
    box-shadow: 0 10px 25px rgba(11, 79, 217, 0.08);
  }
  100% {
    transform: rotateX(65deg) translateY(110px);
    box-shadow: 0 20px 40px rgba(11, 79, 217, 0.15);
  }
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}


/* ==========================================================================
   RESPONSIVE DESIGN Breakpoints
   ========================================================================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  
  .logo-wrapper {
    width: 280px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .main-container {
    padding: 30px 24px;
  }
  
  .grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .circuit-side {
    width: 25%;
  }
  
  .platform-center {
    width: 450px;
    height: 450px;
  }
  
  .ring-outer {
    width: 420px;
    height: 420px;
  }
  
  .ring-middle {
    width: 320px;
    height: 320px;
  }
  
  .ring-inner {
    width: 220px;
    height: 220px;
  }
}

/* Mobile (Below 768px) */
@media screen and (max-width: 768px) {
  .hero{
    height: 300px !important;
  }

  .box-bookmark{
gap: 20px;
flex-wrap: wrap;
  }
  
  .logo-wrapper {
    width: 220px;
    margin-bottom: 16px;
  }
  
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  /* Circuit hides on smaller mobile to avoid overlapping text */
  .circuit-side {
    display: none;
  }
  
  .platform-center {
    width: 300px;
    height: 300px;
  }
  
  .radial-glow {
    width: 250px;
    height: 250px;
  }
  
  .ring-outer {
    width: 280px;
    height: 280px;
  }
  
  .ring-middle {
    width: 200px;
    height: 200px;
  }
  
  .ring-inner {
    width: 130px;
    height: 130px;
  }
  
  .main-container {
    padding: 24px 16px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .grid-2-cols,
  .grid-4-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-card {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .card-left {
    margin-right: 0;
  }
  
  .card-icon-container {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
    border-radius: 14px;
  }
  
  .card-center {
    width: 100%;
  }
  
  .portal-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
  }
  
  .dotted-pattern {
    transform: translate(40px, -20px);
  }
  
  .footer {
    height: 80px;
    font-size: 0.85rem;
  }
}
