/* --- GLOBAL --- */
:root {
  --primary: #ff6b00;
  --primary-dark: #e65100;
  --dark-bg: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-white: #ffffff;
  --text-grey: #94a3b8;
  --font-main: "Plus Jakarta Sans", sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--dark-bg);
  color: var(--text-white);
  overflow-x: hidden;
}

/* --- BACKGROUND PARTICLES --- */
.particles span {
  position: fixed;
  bottom: -50px;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
  animation: rise 15s infinite linear;
  z-index: 0;
}
.particles span:nth-child(1) {
  left: 10%;
  width: 40px;
  height: 40px;
  animation-duration: 10s;
  background: rgba(255, 107, 0, 0.1);
}
.particles span:nth-child(2) {
  left: 30%;
  width: 20px;
  height: 20px;
  animation-duration: 12s;
  background: rgba(255, 255, 255, 0.05);
}
.particles span:nth-child(3) {
  left: 70%;
  width: 60px;
  height: 60px;
  animation-duration: 18s;
  background: rgba(255, 107, 0, 0.08);
}
.particles span:nth-child(4) {
  left: 90%;
  width: 30px;
  height: 30px;
  animation-duration: 9s;
  background: rgba(255, 255, 255, 0.05);
}

@keyframes rise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  position: absolute;
  width: 100%;
  z-index: 100;
}
.logo {
  background: rgba(255, 255, 255, 0.9); /* light background */
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.6); /* soft orange glow */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 45px;
  display: block;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}
.btn-glass:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* --- HERO SECTION --- */
/* Centering the Hero Content */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
    text-align: center;
}

.hero-center-container {
    width: 100%;
    max-width: 1200px;
}

/* Horizontal alignment of the cards */
.login-cards-main {
    display: flex;
    gap: 40px; /* Space between cards */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Stack on mobile */
    margin-top: -50px; /* Visual adjustment for the scroll mouse */
}

/* Increasing the Size of the Cards */
.glass-card.large-card {
    width: 380px;  /* Increased from standard size */
    padding: 50px 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card.large-card h2 {
    font-size: 2rem; /* Bigger Title */
    margin: 20px 0 10px;
}

.glass-card.large-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Make icons larger to match */
.glass-card.large-card .icon-box {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    margin: 0 auto;
}

/* Hover Effect Enhancement */
.glass-card.large-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .glass-card.large-card {
        width: 100%;
        max-width: 340px;
    }
    .login-cards-main {
        gap: 20px;
    }
}

/* Text Side */
.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 107, 0, 0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

h1 {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}
.text-gradient {
  background: linear-gradient(to right, #ff6b00, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  font-size: 18px;
  color: var(--text-grey);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 500px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
}

.link-secondary {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.link-secondary:hover {
  color: var(--primary);
}

/* Card Side */
.hero-card {
  position: relative;
  display: flex;
  justify-content: center;
}

.glass-card {
  width: 320px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  text-align: center;
  cursor: pointer;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: 0.4s;
}
.glass-card:hover .card-glow {
  opacity: 1;
}

.icon-box {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.glass-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.glass-card p {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 25px;
}

.arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: 0.3s;
}
.glass-card:hover .arrow-circle {
  background: white;
  color: var(--primary);
}

/* Floating Elements */
.float-box {
  position: absolute;
  background: rgba(30, 41, 59, 0.9);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: float 6s infinite ease-in-out;
}
.float-1 {
  top: 20px;
  left: -20px;
  animation-delay: 0s;
}
.float-1 i {
  color: #3b82f6;
}
.float-2 {
  bottom: 40px;
  right: -30px;
  animation-delay: 3s;
}
.float-2 i {
  color: #22c55e;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Scroll Mouse */
.scroll-mouse {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}
.wheel {
  width: 4px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* --- ANIMATION CLASSES --- */
.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
  opacity: 0;
}
.fade-in-right {
  animation: fadeInRight 1s ease forwards;
  opacity: 0;
}
.fade-in-up {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 1s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- FEATURES SECTION --- */
.features {
  padding: 100px 8%;
  background: #ffffff;
  color: var(--text-dark);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 40px;
  color: #0f172a;
  margin-bottom: 15px;
}
.section-header .highlight {
  color: var(--primary);
}
.section-header p {
  color: #64748b;
  font-size: 18px;
  margin: 0 auto;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-item {
  padding: 40px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: 0.3s;
}
.feature-item:hover {
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
}

.f-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
}
.color-1 {
  background: #fff7ed;
  color: #ff6b00;
}
.color-2 {
  background: #ecfdf5;
  color: #22c55e;
}
.color-3 {
  background: #eff6ff;
  color: #3b82f6;
}

.feature-item h3 {
  color: #0f172a;
  margin-bottom: 10px;
  font-size: 20px;
}
.feature-item p {
  color: #64748b;
  font-size: 15px;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  h1 {
    font-size: 48px;
  }
  p {
    margin: 0 auto 30px;
  }
  .cta-group {
    justify-content: center;
  }
}

/* Add these under your .f-icon styles */

.color-1 { background: #fff7ed; color: #ff6b00; } /* Orange */
.color-2 { background: #ecfdf5; color: #22c55e; } /* Green */
.color-3 { background: #eff6ff; color: #3b82f6; } /* Blue */
.color-4 { background: #fdf4ff; color: #a855f7; } /* Purple */
.color-5 { background: #fef2f2; color: #ef4444; } /* Red */
.color-6 { background: #fffbeb; color: #f59e0b; } /* Yellow */


/* --- HERO CARDS WRAPPER --- */
.hero-cards-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Adjust Glass Card Size for Side-by-Side Layout */
.glass-card {
    width: 240px; /* Slightly smaller to fit two */
    padding: 30px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    text-align: center;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,107,0,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.05);
}

.glass-card h2 { font-size: 18px; margin-bottom: 6px; color: white; }
.glass-card p { font-size: 12px; color: var(--text-grey); margin-bottom: 20px; }

/* Different Icon Colors */
.icon-employee { background: var(--primary); }
.icon-admin { background: #3b82f6; /* Blue for Admin */ }

/* Responsive: Stack cards on mobile */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-cards-wrapper {
        flex-direction: column; /* Stack vertically on tablets */
        align-items: center;
    }
    
    .glass-card { width: 280px; } /* Wider on mobile */
}

@media (min-width: 1025px) {
    .hero-cards-wrapper {
        flex-direction: row; /* Ensure side-by-side on desktop */
    }
}


/* all media queries */
/* ==========================================================================
   ROBUST RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- 1. Large Laptops & Desktops (Max: 1440px) --- */
@media (max-width: 1440px) {
  .hero-container {
    max-width: 1100px;
    gap: 40px;
  }
  
  h1 {
    font-size: 56px; /* Slightly smaller title */
  }
}

/* --- 2. Standard Laptops (Max: 1200px) --- */
@media (max-width: 1200px) {
  .navbar {
    padding: 20px 5%;
  }
  
  .hero {
    padding: 0 5%;
  }
  
  .hero-container {
    gap: 30px;
  }
  
  /* Prevent cards from getting too wide */
  .glass-card {
    width: 220px;
    padding: 25px 15px;
  }
}

/* --- 3. Tablets & Small Laptops (Max: 1024px) --- */
@media (max-width: 1024px) {
  /* Hero Section: Switch to Single Column */
  .hero-container {
    grid-template-columns: 1fr; /* Stack Text on top of Cards */
    text-align: center;
    padding-top: 100px; /* Add space for navbar */
    gap: 60px;
  }

  /* Text Adjustments */
  h1 {
    font-size: 48px;
    margin: 0 auto 20px;
  }
  
  p {
    margin: 0 auto 30px;
    max-width: 600px;
  }
  
  .cta-group {
    justify-content: center; /* Center buttons */
  }

  /* Hero Cards Wrapper */
  .hero-cards-wrapper {
    flex-direction: row; /* Keep side-by-side on tablet if space permits */
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping if screen is narrow */
  }
  
  .glass-card {
    width: 260px; /* Slightly wider cards for touch targets */
  }

  /* Floating Elements: Hide on Tablet to reduce clutter */
  .float-box, .scroll-mouse {
    display: none;
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Columns */
    gap: 30px;
  }
}

/* --- 4. Mobile Devices (Max: 768px) --- */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 20px;
  }
  .logo img {
    height: 35px; /* Smaller Logo */
  }
  .btn-glass {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Hero Typography */
  h1 {
    font-size: 36px;
  }
  
  p {
    font-size: 16px;
  }

  /* Stack Cards Vertically on Mobile */
  .hero-cards-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .glass-card {
    width: 100%; /* Full width cards */
    max-width: 320px;
  }

  /* Features Section */
  .features {
    padding: 60px 5%;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .features-grid {
    grid-template-columns: 1fr; /* 1 Column */
  }
}

/* --- 5. Small Phones (Max: 480px) --- */
@media (max-width: 480px) {
  /* Tighter Padding */
  .hero {
    padding: 0 20px;
  }
  
  /* Font Sizes */
  h1 {
    font-size: 32px;
  }
  
  .cta-group {
    flex-direction: column; /* Stack Buttons */
    width: 100%;
  }
  
  .btn-primary, .link-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  
  /* Ensure Cards fit */
  .glass-card {
    width: 100%;
  }
}
/* ==========================================================================
   UPDATED RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- 1. Tablets & Small Laptops (Max: 1024px) --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 5%;
    }

    .hero-center-container {
        padding-top: 60px;
    }

    /* Shrink cards slightly to keep them side-by-side as long as possible */
    .glass-card.large-card {
        width: 320px; 
        padding: 40px 25px;
    }

    .glass-card.large-card h2 {
        font-size: 1.7rem;
    }

    .login-cards-main {
        gap: 25px;
    }
}

/* --- 2. Mobile Landscape & Large Phones (Max: 768px) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .logo img {
        height: 38px;
    }

    /* Stack cards vertically for mobile */
    .login-cards-main {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 0; /* Reset margin for cleaner vertical flow */
    }

    /* Allow cards to take up more horizontal space on mobile */
    .glass-card.large-card {
        width: 100%;
        max-width: 400px; 
        padding: 45px 30px;
    }

    .glass-card.large-card h2 {
        font-size: 1.8rem;
    }

    /* Hide decorative elements that clutter mobile screens */
    .scroll-mouse, .particles {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
        justify-content: flex-start; /* Better scrolling experience on mobile */
    }
}

/* --- 3. Standard & Small Phones (Max: 480px) --- */
@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }

    .glass-card.large-card {
        padding: 35px 20px;
        border-radius: 24px;
    }

    .glass-card.large-card .icon-box {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .glass-card.large-card h2 {
        font-size: 1.5rem;
    }

    .glass-card.large-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .arrow-circle {
        width: 35px;
        height: 35px;
    }
}