/* Desktop CSS for HirWay Job Solution */

/* Navbar - Always Visible Fixed Position */
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background-color: white !important;
}

/* Add padding to body to prevent content from hiding under navbar */
body {
    padding-top: 64px !important; /* Height of navbar */
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.3s both;
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out 0.6s both;
}

.animate-pulse-custom {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #E62727;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000B58;
}

/* Navbar Enhancements */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #E62727 0%, #000B58 50%, #1A1F7A 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Button Hover Effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover-effect:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(230, 39, 39, 0.1), rgba(0, 11, 88, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Pattern Animation */
.slide-pattern {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Icon Animations */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    transform: scale(1.2) rotate(5deg);
}

.icon-rotate {
    transition: transform 0.3s ease;
}

.icon-rotate:hover {
    transform: rotate(360deg);
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E62727;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Animations */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    transition: transform 0.3s ease-out;
}

/* Form Enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #E62727;
    box-shadow: 0 0 0 3px rgba(230, 39, 39, 0.1);
    transform: translateY(-2px);
}

/* Success/Error Messages */
.message-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    animation: slideInRight 0.5s ease;
}

.message-error {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    animation: slideInRight 0.5s ease;
}


/* Custom Selection */
::selection {
    background: #E62727;
    color: white;
}

::-moz-selection {
    background: #E62727;
    color: white;
}

/* Focus Styles */
.focus-visible:focus {
    outline: 2px solid #E62727;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Logo Styling */
.logo {
    height: auto;
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigation Logo */
nav .logo {
    max-height: 40px;
}

/* Footer Logo */
footer .logo {
    max-height: 60px;
}

/* About Section Logo */
#about .logo {
    max-height: 50px;
}

/* WhatsApp Floating Action Button */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E, #075E54);
}

.whatsapp-fab i {
    font-size: 1.5rem;
}

/* WhatsApp pulse animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Why Choose HirWay Section - Responsive Design */
.why-choose-container {
  position: relative;
  width: 100%;
}

.why-choose-content {
  background: linear-gradient(135deg, #dc2626 0%, #1e3a8a 50%, #3b82f6 100%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Background Pattern */
.pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.circle-1 {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 5rem;
  height: 5rem;
  border: 2px solid white;
  border-radius: 50%;
}

.circle-2 {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  width: 4rem;
  height: 4rem;
  border: 2px solid white;
  border-radius: 50%;
}

.circle-3 {
  position: absolute;
  top: 50%;
  right: 33%;
  width: 3rem;
  height: 3rem;
  border: 2px solid white;
  border-radius: 50%;
}

/* Content Styling */
.content-wrapper {
  position: relative;
  z-index: 10;
}

.header-section {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}

.icon-container {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.icon-container i {
  color: white;
  font-size: 1.25rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* Features Grid - Mobile: 2 per row, Desktop: 4 per row */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 140px;
  justify-content: flex-start;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1rem;
  color: white;
}

.feature-content {
  width: 100%;
}

.feature-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.feature-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* CTA Section */
.cta-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button {
  background: white;
  color: #dc2626;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: translateY(0);
}

/* Tablet Styles */
@media (min-width: 768px) {
  .why-choose-content {
    padding: 2.5rem;
  }
  
  .header-section {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    justify-content: center;
  }
  
  .icon-container {
    width: 3rem;
    height: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
    text-align: left;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 1.5rem 1rem;
    min-height: 160px;
  }
  
  .feature-content h4 {
    font-size: 1.1rem;
  }
  
  .feature-content p {
    font-size: 0.9rem;
  }
  
  .cta-button {
    width: auto;
    display: inline-flex;
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

/* Desktop Styles - 4 per row */
@media (min-width: 1024px) {
  .why-choose-content {
    padding: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 1.75rem 1rem;
    min-height: 180px;
  }
  
  .feature-content h4 {
    font-size: 1.125rem;
  }
  
  .feature-content p {
    font-size: 0.875rem;
  }
}

/* Large Desktop Enhancement */
@media (min-width: 1280px) {
  .features-grid {
    gap: 2rem;
  }
  
  .feature-item {
    padding: 2rem 1.25rem;
    min-height: 200px;
  }
  
  .feature-content h4 {
    font-size: 1.25rem;
  }
  
  .feature-content p {
    font-size: 0.9rem;
  }
}

/* Small Mobile Optimization */
@media (max-width: 375px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-item {
    min-height: auto;
    padding: 1rem 0.75rem;
  }
  
  .feature-content h4 {
    font-size: 0.9rem;
  }
  
  .feature-content p {
    font-size: 0.75rem;
  }
}

/* Animation for elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item {
  animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced focus states for accessibility */
.cta-button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .feature-item,
  .cta-button {
    animation: none;
    transition: none;
  }
}

/* Featured Jobs Section Styles */
.featured-jobs-table {
    border-collapse: separate;
    border-spacing: 0;
}

.featured-jobs-table thead tr {
    background: linear-gradient(135deg, #E62727 0%, #000B58 100%);
}

.featured-jobs-table tbody tr {
    transition: all 0.3s ease;
}

.featured-jobs-table tbody tr:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-jobs-table tbody tr td:first-child {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.featured-jobs-table tbody tr:hover td:first-child {
    border-left-color: #E62727;
}

/* Job Apply Button Hover Effect */
.featured-jobs-table button {
    position: relative;
    overflow: hidden;
}

.featured-jobs-table button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.featured-jobs-table button:hover::before {
    width: 300px;
    height: 300px;
}

/* Horizontal Scroll Partners */
.scrollbar-hide {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.partners-scroll-container {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.partner-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 18rem; /* w-72 */
}

/* Professional Poster Section Styles */
.poster-section {
    position: relative;
    overflow: hidden;
}

.poster-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 39, 39, 0.1), rgba(0, 11, 88, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.poster-section:hover::before {
    opacity: 1;
}

/* Poster Image Hover Effects */
.poster-image {
    transition: all 0.5s ease;
    filter: brightness(1) contrast(1);
}

.poster-image:hover {
    filter: brightness(1.1) contrast(1.05);
}

/* Glass Morphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Animated Background Elements */
.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float 8s ease-in-out infinite reverse;
}

/* Stats Counter Animation */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
    color: #E62727;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
