:root {
  --primary-color: #E10600;
  --bg-color: #050505;
  --bg-card: #111111;
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --glow-shadow: 0 0 15px rgba(225, 6, 0, 0.4);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

#canvas-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
  box-shadow: var(--glow-shadow);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(225, 6, 0, 0.6);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(225, 6, 0, 0.2);
}

/* Hero Section */
.hero {
  padding: 100px 0;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Section Headings */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

/* Tools Grid */
.tools-section {
  padding: 80px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.tool-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 30px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tool-card:hover {
  transform: translateY(-10px);
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: var(--glow-shadow);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1);
}

/* Tool Interface UI */
.tool-container {
  max-width: 800px;
  margin: 60px auto;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 60px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 30px;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary-color);
  background-color: rgba(225, 6, 0, 0.05);
}

.upload-area i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.file-list {
  margin-top: 20px;
  text-align: left;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 10px;
}

.file-item .remove-btn {
  color: #ff4444;
  cursor: pointer;
}

.controls-area {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.2);
}

.loader {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4CAF50;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Content Pages */
.content-page {
  padding: 60px 0;
}

.content-page h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.content-page h2 {
  margin: 30px 0 15px;
  color: var(--primary-color);
}

.content-page p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.content-page ul {
  color: var(--text-secondary);
  margin-left: 20px;
  margin-bottom: 20px;
}

.content-page li {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: #000;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 100;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    top: 100%;
    left: 0;
    padding: 10px 0;
}
.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
    font-size: 0.95rem;
}
.dropdown-content a:hover {
    background-color: rgba(225, 6, 0, 0.1);
    color: var(--primary-color);
}
.dropdown.show .dropdown-content {
    display: block;
}
.dropdown.show #toolsDropdownIcon {
    transform: rotate(180deg);
}

/* Mobile specific dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: 15px;
    }
}
