/*
 * Jain Computer - Modern Home Page
 * Version: 2.0
 * Theme: Red & Black
 */

:root {
  --primary-red: #DC0000;
  --primary-red-dark: #B00000;
  --black: #000000;
  --dark-gray: #1A1A1A;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modern-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-top {
  background: var(--primary-red);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-left,
.header-top-right {
  display: flex;
  gap: 20px;
}

.header-top a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.header-top a:hover {
  opacity: 0.8;
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 50px;
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1;
  margin-bottom: 3px;
}

.logo-text p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition);
}

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

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-red);
}

.btn-trader {
  background: var(--primary-red);
  color: var(--white) !important;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-trader::after {
  display: none;
}

.btn-trader:hover {
  background: var(--primary-red-dark) !important;
  color: var(--white) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-red);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: var(--transition);
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  background: var(--primary-red);
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-header h3 {
  margin: 0;
  color: var(--white);
}

.close-menu {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu nav {
  padding: 20px 0;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: var(--dark-gray);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-menu nav a:hover {
  background: var(--light-gray);
  border-left-color: var(--primary-red);
  color: var(--primary-red);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  margin-top: 120px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../../image_db/hero_banner.jpg') center/cover no-repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0;
}

.hero-text {
  max-width: 800px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title span {
  color: var(--primary-red);
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.feature-item i {
  color: var(--primary-red);
  font-size: 20px;
}

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

.btn-hero-primary,
.btn-hero-secondary {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-hero-primary {
  background: var(--primary-red);
  color: var(--white);
}

.btn-hero-primary:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220,0,0,0.3);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-hero-secondary:hover {
  background: var(--white);
  color: var(--primary-red);
}

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--white);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* ===== STATS SECTION ===== */
.stats {
  padding: 60px 0;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: var(--light-gray);
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  font-size: 36px;
  color: var(--primary-red);
}

.stat-card:hover .stat-icon {
  background: var(--white);
  color: var(--primary-red);
}

.stat-content h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-red);
  margin: 0;
}

.stat-card:hover .stat-content h3,
.stat-card:hover .stat-content p {
  color: var(--white);
}

.stat-content p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: #666;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 80px 0;
  background: var(--light-gray);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.category-card {
  background: var(--white);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: var(--primary-red);
}

.category-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  font-size: 48px;
  color: var(--primary-red);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: var(--white);
  color: var(--primary-red);
}

.category-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 10px;
  transition: var(--transition);
}

.category-card:hover h3,
.category-card:hover p {
  color: var(--white);
}

.category-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ===== SERVICES ===== */
.services {
  padding: 80px 0;
  background: var(--white);
}

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

.service-card {
  padding: 40px 30px;
  background: var(--light-gray);
  transition: var(--transition);
}

.service-card:hover {
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-red);
  color: var(--white);
  font-size: 36px;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 25px;
}

.about-text p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.about-feature i {
  color: var(--primary-red);
  font-size: 20px;
}

.about-card {
  background: var(--white);
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-card i {
  font-size: 64px;
  color: var(--primary-red);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  text-align: center;
}

.cta-content h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-cta-primary {
  background: var(--primary-red);
  color: var(--white);
}

.btn-cta-primary:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220,0,0,0.3);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-cta-secondary:hover {
  background: var(--white);
  color: var(--primary-red);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  color: var(--white);
}

.footer-main {
  padding: 60px 0 40px;
}

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

.footer-section h3 {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul a:hover {
  color: var(--primary-red);
  padding-left: 10px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.footer-contact i {
  color: var(--primary-red);
  font-size: 18px;
  min-width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 30px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.footer-bottom strong {
  color: var(--primary-red);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero {
    margin-top: 110px;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .header-top-left,
  .header-top-right {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

