/* ==========================================================================
   Img2WebP Premium Stylesheet
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Root Variables --- */
:root {
  --primary-red: #E50914;
  --primary-red-hover: #f40f21;
  --black: #111111;
  --white: #FFFFFF;
  --dark-gray: #1A1A1A;
  --light-gray: #CCCCCC;
  --glass-bg: rgba(26, 26, 26, 0.65);
  --glass-border: rgba(229, 9, 20, 0.15);
  --glass-border-focus: rgba(229, 9, 20, 0.4);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.3);
}

/* --- Base Reset & Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #220508 0%, #111111 50%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2.2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: #CCCCCC;
  font-weight: 400;
}

strong {
  color: var(--white);
  font-weight: 600;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

/* --- Header Section --- */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding var(--transition-normal), background var(--transition-normal);
}

.header-wrapper.scrolled {
  padding: 10px 0;
  background: rgba(17, 17, 17, 0.95);
  box-shadow: var(--shadow-md);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: padding var(--transition-normal);
}

.header-wrapper.scrolled header {
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* --- Mobile Nav Toggle --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Mobile Nav Menu Drawer */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 40px;
  gap: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  transition: right var(--transition-normal);
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile .nav-link {
  font-size: 1.2rem;
  padding: 10px 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  padding: 100px 0 60px 0;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  color: var(--primary-red);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #FFF 30%, var(--primary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: var(--light-gray);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Animated Sphere Container */
.hero-sphere-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 400px;
}

/* Outer wrapper handles the floating animation */
.sphere-wrapper {
  animation: float 6s ease-in-out infinite;
  perspective: 1000px;
}

/* The actual 3D Sphere */
.sphere {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e50914 0%, #8b00ff 30%, #ec4899 60%, #3b82f6 100%);
  position: relative;
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.4),
    inset 0 -15px 30px rgba(0, 0, 0, 0.3),
    inset 0 15px 30px rgba(255, 255, 255, 0.4),
    0 0 50px rgba(229, 9, 20, 0.25),
    0 0 80px rgba(139, 0, 255, 0.25);
  animation: rotateSphere 20s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Glassy Reflective Shine Layer */
.sphere::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.sphere::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  box-shadow: inset -15px -15px 40px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 1;
}

/* Glow ring */
.sphere-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(145deg);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* --- Ad Placement Containers --- */
.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-gray);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 30px auto;
  padding: 15px;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}

.ad-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.ad-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  background-color: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
}

.ad-top { max-width: 728px; }
.ad-middle { max-width: 728px; margin: 40px auto; }
.ad-sidebar { min-height: 250px; }
.ad-bottom { max-width: 728px; margin-top: 60px; }

/* --- Tool / Converter Section --- */
.tool-section {
  background-color: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
}

.upload-area {
  border: 2px dashed rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  background-color: rgba(17, 17, 17, 0.4);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  outline: none;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary-red);
  background-color: rgba(229, 9, 20, 0.04);
  box-shadow: inset 0 0 20px rgba(229, 9, 20, 0.05);
}

.upload-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(229, 9, 20, 0.1);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform var(--transition-normal);
}

.upload-area:hover .upload-icon {
  transform: translateY(-5px) scale(1.05);
}

.upload-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.upload-subtitle {
  font-size: 0.85rem;
  color: var(--light-gray);
}

.file-input {
  display: none;
}

/* Tool Settings */
.tool-settings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quality-control {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 250px;
}

.quality-control label {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.quality-slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.quality-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-red);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.quality-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.quality-val {
  font-weight: 700;
  color: var(--primary-red);
  min-width: 35px;
}

/* File list manager */
.file-list-container {
  margin-top: 32px;
  display: none; /* Shown dynamically via script.js */
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.file-list-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.file-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: grid;
  grid-template-columns: auto 1fr 150px 100px auto;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background-color: rgba(17, 17, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.file-item:hover {
  border-color: rgba(229, 9, 20, 0.2);
}

.file-thumb {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  background-color: #000;
}

.file-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.file-name {
  font-weight: 500;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.file-size-original {
  font-size: 0.8rem;
  color: var(--light-gray);
}

.file-status-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--primary-red);
  border-radius: 3px;
  transition: width 0.1s ease;
}

.status-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--light-gray);
}

.file-result-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: #10B981; /* Success Green */
  text-align: right;
}

.file-result-info.error {
  color: var(--primary-red);
}

.file-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-icon-danger:hover {
  background-color: rgba(229, 9, 20, 0.1);
  color: var(--primary-red);
}

/* Bulk actions footer */
.bulk-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bulk-stats {
  font-size: 0.9rem;
  color: var(--light-gray);
}

.bulk-buttons {
  display: flex;
  gap: 12px;
}

/* --- Features Grid --- */
.features-title-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.features-title-container h2 span {
  color: var(--primary-red);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(26, 26, 26, 0.7);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(229, 9, 20, 0.1);
  color: var(--primary-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #AAAAAA;
}

/* --- SEO Content Typography Rules --- */
.seo-content-section {
  background-color: rgba(17, 17, 17, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 80px 0;
}

.seo-rich-text {
  max-width: 850px;
  margin: 0 auto;
}

.seo-rich-text h2 {
  font-size: 1.9rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--white);
  border-bottom: 2px solid rgba(229, 9, 20, 0.15);
  padding-bottom: 10px;
}

.seo-rich-text h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--white);
}

.seo-rich-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #CCCCCC;
}

.seo-rich-text ul, .seo-rich-text ol {
  margin-left: 20px;
  margin-bottom: 20px;
  color: #CCCCCC;
}

.seo-rich-text li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.seo-rich-text blockquote {
  border-left: 4px solid var(--primary-red);
  padding: 15px 20px;
  margin: 25px 0;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Table Style in SEO content */
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
}

.seo-table th, .seo-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-table th {
  background-color: rgba(229, 9, 20, 0.1);
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-heading);
}

.seo-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* --- Blog Page Styles --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  margin-top: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Featured Post Card */
.featured-post-card {
  grid-column: span 2;
  background-color: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  transition: all var(--transition-normal);
}

.featured-post-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.featured-img-placeholder {
  min-height: 280px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.3) 0%, rgba(139, 0, 255, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
  position: relative;
}

.featured-post-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--light-gray);
  margin-bottom: 12px;
}

.post-category {
  color: var(--primary-red);
  font-weight: 600;
  text-transform: uppercase;
}

.post-card {
  background-color: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.post-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(229, 9, 20, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--light-gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #AAAAAA;
  margin-bottom: 20px;
  flex: 1;
}

.post-link {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Sidebar elements */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 24px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

/* Search bar */
.search-form {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.search-input:focus {
  border-color: var(--primary-red);
}

/* Categories widget */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--light-gray);
  padding: 4px 0;
}

.category-item a:hover {
  color: var(--primary-red);
}

.category-count {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Recent posts */
.recent-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.recent-thumb {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(0,0,0,0.5) 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.recent-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.recent-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-date {
  font-size: 0.75rem;
  color: var(--light-gray);
  margin-top: 4px;
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 0.85rem;
  color: var(--light-gray);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-email {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.newsletter-email:focus {
  border-color: var(--primary-red);
}

/* --- Contact Page Styles --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-card {
  background-color: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-gray);
}

.form-control {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(229, 9, 20, 0.1);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-text h4 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.info-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* FAQ style inside contact.html */
.faq-section {
  margin-top: 60px;
}

.faq-title {
  text-align: center;
  margin-bottom: 40px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background-color: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary-red);
  transition: transform var(--transition-normal);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  display: none;
  font-size: 0.95rem;
  color: var(--light-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  margin-top: -1px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* --- Scroll To Top Button --- */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: -60px; /* Hidden offscreen initially */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transition: right var(--transition-normal), background-color var(--transition-fast), transform var(--transition-fast);
}

.scroll-top-btn:hover {
  background-color: var(--primary-red-hover);
  transform: scale(1.1);
}

.scroll-top-btn.visible {
  right: 30px;
}

/* --- Footer Section --- */
footer {
  background-color: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px 0;
  margin-top: 80px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--light-gray);
  transition: all var(--transition-normal);
}

.social-icon:hover {
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
}

/* Specific Social Hover Colors */
.social-icon.youtube:hover { background-color: #FF0000; }
.social-icon.facebook:hover { background-color: #1877F2; }
.social-icon.twitter:hover { background-color: #000000; }
.social-icon.instagram:hover { background-color: #E4405F; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 0.9rem;
  color: var(--light-gray);
  display: inline-block;
  transition: all var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--light-gray);
}

/* --- Keyframe Animations --- */

/* Continuous Floating */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 3D Sphere continuous rotation */
@keyframes rotateSphere {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInEffect 0.8s ease forwards;
}

@keyframes fadeInEffect {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Layout Breakpoints --- */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-sphere-container {
    height: 320px;
  }
  
  .sphere {
    width: 220px;
    height: 220px;
  }
  
  .sphere-glow {
    width: 260px;
    height: 260px;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Menu Hamburger Animations when active */
  .hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-layout {
    grid-template-columns: 1fr;
  }
  
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .file-item {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  
  .file-status-wrapper {
    grid-column: 1 / -1;
  }
  
  .file-actions {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .tool-section {
    padding: 20px;
  }
  
  .upload-area {
    padding: 40px 20px;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .bulk-actions-bar {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .bulk-buttons {
    flex-direction: column;
  }
}
