@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Source+Code+Pro:wght@400;600&display=swap');

:root {
  --primary-color: #cc630d;
  --primary-hover: #ff7300;
  --primary-light: rgba(204, 99, 13, 0.1);
  --dark-bg: #292a2b;
  --darker-bg: #1d1d1d;
  --text-light: #ffffff;
  --text-dark: #222222;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

body, html {
  font-family: 'Lato', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: transparent;
  color: var(--text-dark);
}

/* Header Styling */
header {
  background-color: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: 3px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
}

.brand-container {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
  transition: var(--transition);
}

.brand:hover {
  color: var(--primary-hover);
}

.navbar-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-item {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-icon {
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-item:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-hover);
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--primary-hover);
}

.nav-item:hover:after {
  width: 100%;
}

/* Auth buttons */
.auth-container {
  display: flex;
  gap: 0.75rem;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.login-btn {
  color: var(--text-light);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.register-btn, .user-btn {
  color: var(--text-light);
  background-color: var(--primary-color);
}

.register-btn:hover, .user-btn:hover {
  background-color: var(--primary-hover);
}

.logout-btn {
  color: var(--text-light);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  border-radius: 10px;
  transition: var(--transition);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

#dropdownToggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#dropdownArrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Rotation class for the dropdown arrow */
#dropdownArrow.rotate {
  transform: rotate(180deg);
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.dropdown-arrow.rotate {
  transform: rotate(180deg);
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #373839;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transform: translateY(-10px);
  transition: visibility 0s linear 0.3s, opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  overflow: hidden;
  margin-top: 0.5rem;
}

.dropdown-content.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.dropdown-content a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
  font-size: 0.85rem;
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background-color: #444648;
  border-left-color: var(--primary-color);
}

.dropdown-content a img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  filter: brightness(0.9);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 130px); /* Header + Footer height */
  width: 100%;
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
  
.video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.cta-button.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.scroll-indicator i {
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Feature Section */
.feature-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 2rem;
  background-color: #fff;
}

.feature-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  padding: 2rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.feature-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--dark-bg);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.feature-link:hover {
  color: var(--primary-hover);
}

.feature-link i {
  transition: var(--transition);
}

.feature-link:hover i {
  transform: translateX(5px);
}

/* Stats Section */
.stats-section {
  position: relative;
  padding: 5rem 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
}

.stats-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stats-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* Typewriter effect */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid var(--text-light);
  animation: typing 3s steps(21), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--text-light); }
}

/* Original Sections (for backward compatibility) */
.section {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  background: rgba(0, 0, 0, 0.5);
  text-align: center;  
  font-family: "Source Code Pro", monospace;
  padding: 2rem;
}
  
.section:nth-child(odd) {
  background: rgba(29, 29, 29, 0.5);
}
  
.section .title {
  margin-top: 20px;
  font-size: 3rem;
  font-weight: normal;
}
  
.section h1, .section h2 {
  margin: 0;
  padding: 2rem;
  font-weight: normal;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 35px;
  width: auto;
  margin-right: 0.5rem;
}

.footer-brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-hover);
  opacity: 1;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
  
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
  
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
  
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-wrapper {
    padding: 0 1rem;
  }
  
  .nav-item {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 900px) {
  .feature-section {
    padding: 4rem 1.5rem;
  }
  
  .stats-title {
    font-size: 2rem;
  }
  
  .section .title {
    font-size: 2.5rem;
  }
  
  .typewriter {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  
  .brand-container {
    margin-bottom: 1rem;
  }
  
  .navbar-container {
    flex-direction: column;
    width: 100%;
  }
  
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  .navbar-container.mobile-active .main-nav {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .auth-container {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .navbar-container.mobile-active .auth-container {
    display: flex;
  }
  
  .auth-btn {
    width: 100%;
    justify-content: center;
  }
  
  .mobile-toggle {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .dropdown {
    width: 100%;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .dropdown-content.visible {
    transform: none;
  }
  
  .hero-section {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .section {
    height: auto;
    min-height: 70vh;
    padding: 3rem 1rem;
  }
  
  .section h1, .section h2 {
    padding: 1rem;
    font-size: 1.8rem;
  }
  
  .section p {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .typewriter {
    font-size: 1.6rem;
    animation: none;
    white-space: normal;
    border-right: none;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.3rem;
  }
  
  .header-logo {
    height: 30px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .feature-section {
    padding: 3rem 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-card h2 {
    font-size: 1.3rem;
  }
  
  .stats-title {
    font-size: 1.8rem;
  }
  
  .typewriter {
    font-size: 1.4rem;
  }
  
  .section .title {
    font-size: 1.8rem;
  }
}

/* Component Grids & Tables (for PC Builder) */
.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.component {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--primary-color);
}

.component:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.component h3 {
  color: var(--dark-bg);
  margin-bottom: 1rem;
  font-weight: 600;
}

.component-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.component-price {
  font-weight: 600;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.component-select {
  margin-top: 1rem;
  padding: 0.5rem;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: var(--text-dark);
}

/* Cards and Forms */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border-top: 3px solid var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-hover);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: white;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: var(--dark-bg);
  color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

tbody tr:hover {
  background-color: #f9f9f9;
}