/* ======================
   BASE & GLOBAL STYLES
   ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: sans-serif;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(145deg, #e8e8e8 0%, #dadada 100%);
  color: #111;
  line-height: 1.6;
  font-weight: 400;
  scroll-behavior: smooth;
}

/* Responsive Container */
.container {
  width: 100%;
  padding: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 2rem 4rem;
  }
}

/* Typography */
h1, h2, h3 {
  color: #222;
  font-weight: 700;
  letter-spacing: -0.5px;
}

p {
  color: #444;
}

a {
  transition: all 0.3s ease;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================
   NAVIGATION
   ====================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background-color: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(10px);
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 12px 12px;
  position: relative; 
  z-index: 1000;      
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links a {
  color: #c4cf42;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #00e0ff;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #00e0ff;
  text-shadow: 0 0 6px rgba(0, 224, 255, 0.5);
}

/* ======================
   MOBILE NAVIGATION
   ====================== */
.hamburger {
  display: none; /* Hidden by default */
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block; /* Only shows on mobile */
    background: none;
    border: none;
    font-size: 2rem;
    color: #c4cf42;
    cursor: pointer;
    margin-left: 1rem;
    position: relative;
    z-index: 10001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.98);
    padding: 2rem;
    z-index: 9999;
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 0 0 12px 12px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links a {
    color: #f0f0f0;
    font-weight: 500;
    font-size: 1.3rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 6px;
    transition: background 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media screen and (min-width: 769px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
  background: radial-gradient(circle at center, #ffffff, #f4f4f4);
  color: #111;
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
}

.hero-content h1 {
  font-size: 3.4rem;
  margin-bottom: 1rem;
  animation: fadeInDown 0.6s ease-out;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #555;
  animation: fadeIn 0.8s ease-out;
}

.cta-button {
  background: linear-gradient(to right, #007bff, #00c3ff);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.9s ease-out;
}

.cta-button:hover {
  background: #004999;
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.35);
}

/* ======================
   PAGE LAYOUT
   ====================== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-container section:nth-child(odd) {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.page-container section:nth-child(even) {
  background: #f4f4f4;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* ======================
   FEATURES GRID
   ====================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #181818;
}

.feature {
  position: relative;
  background-color: #ffffff;
  padding: 2rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.15);
  border-left: 4px solid #00e0ff;
}

.feature h2 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 1rem;
}

.feature::before {
  content: 'CTRL';
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.03);
  position: absolute;
  top: 10px;
  left: 10px;
  pointer-events: none;
  z-index: 0;
}

/* ======================
   BLOG SECTION
   ====================== */
.blog-header {
  color: #111;
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.1rem;
  color: #777;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  border-left: 6px solid #007bff;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-left-color: #00c3ff;
  box-shadow: 0 10px 22px rgba(0, 123, 255, 0.15);
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid #007BFF;
  padding-left: 0.75rem;
}

.blog-content h2 a {
  color: #007BFF;
  text-decoration: none;
}

.blog-content h2 a:hover {
  color: #0056b3;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.2);
}

.blog-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  color: #0056b3;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.2);
}

/* Ensure blog cards and thumbnails are equal height */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-thumb {
  height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.blog-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.read-more {
  margin-top: auto;
}


/* ======================
   BLOG IMAGE + CAPTION
   ====================== */
.blog-image-container {
  text-align: center;
  margin: 2rem 0;
}

.blog-image {
  width: 100%;
  height: auto;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.blog-caption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}


/* ======================
   BLOG POST HERO IMAGE (FIXED)
   ====================== */
.blog-post-hero {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.blog-post-hero img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*=====================
  BLOG POST FEATURE CARD AND IMG
  ===================== */
.product-review-card {
  max-width: 900px;
  margin: 3rem auto;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
}

.product-review-image-container {
  flex: 1 1 45%;
  min-width: 280px;
  position: relative;
}

.product-review-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-review-image-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.75rem;
  color: #666;
  background: rgba(255,255,255,0.85);
  padding: 4px 8px;
  border-radius: 6px;
}

.product-review-image-caption a {
  color: #ff9800;
}

.product-review-content {
  flex: 1 1 55%;
  min-width: 300px;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  color: #333;
}

.product-review-content h2 {
  margin-top: 0;
  color: #ff9800;
}

.product-review-content p {
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-review-content ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ------------------
  BLOG POST SWOT CARDS
  --------------------*/

.swot-card {
  background: #fff3e0;
  border-left: 6px solid #ff9800;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 45%;
  min-width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swot-card h3 {
  color: #2f00ff;
  margin-bottom: 1rem;
}

.swot-card ul {
  padding-left: 1.2rem;
  line-height: 1.5;
}


/* Responsive */
@media (max-width: 600px) {
  .product-review-card {
    flex-direction: column;
  }
  .product-review-image-container,
  .product-review-content {
    flex: 1 1 100%;
    min-width: auto;
    padding: 1rem 2rem;
  }
  .product-review-content {
    padding-top: 0;
  }
}
/* ---------------------
  COMPARISON TABLE
  ----------------------*/

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

.comparison-table thead th {
  background-color: #ff9800;
  color: #2f00ff;
  font-weight: 700;
  padding: 0.75rem;
  border: 2px solid #e68a00;
  text-align: left;
}

.comparison-table tbody td {
  padding: 0.75rem;
  border: 1px solid #f0e6cc; /* softer border */
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #fff3e0;
}

@media (max-width: 600px) {
  .comparison-table thead {
    display: none;
  }
  .comparison-table, 
  .comparison-table tbody, 
  .comparison-table tr, 
  .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table tr {
    margin-bottom: 1rem;
  }
  .comparison-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }
  .comparison-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 0;
    font-weight: 700;
    color: #ff9800;
    text-transform: uppercase;
    white-space: nowrap;
  }
}




/* ======================
   CONTACT SECTION
   ====================== */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form label {
  font-weight: 500;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem;
  color: #111;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.field-error {
  color: #e53935;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* ======================
   SPECIAL COMPONENTS
   ====================== */
.spec-box {
  border-left: 5px solid;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  color: #212121;
  background-color: #ffffff;
}

.cpu-quote {
  border-left: 4px solid #ff9800;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #444;
}

.conclusion-box {
  background: #f8f9fa;
  border-left: 5px solid #ff9800;
  padding: 1.5rem 1.5rem 1.8rem 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  color: #212121;
}

.ctrl-tagline {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.5px;
  color: #212121;
}

.ctrl-accent {
  color: #00c4b3;
}

.flag-icon {
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

/* CTRL Philosophy Index style */
.ctrl-section {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 4rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ctrl-inner {
  max-width: 960px;
  margin: 0 auto;
}

.ctrl-banner-logo {
  background: #111;
  padding: 1.5rem;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ctrl-banner-logo img {
  height: 100px;
  width: auto;
  display: block;
  filter: none;
}

.ctrl-banner-logo:hover {
  transform: scale(1.05);
}

.ctrl-banner-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.ctrl-banner-text {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

.ctrl-inner {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 2rem;
  transition: background 0.3s ease;
}

body:not(.dark-mode) .ctrl-banner-logo img {
  filter: invert(1);
}

/* ======================
   FOOTER
   ====================== */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: #f8f8f8;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* ======================
   SCROLL-TO-TOP BUTTON
   ====================== */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  font-size: 1.5rem;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.75rem 1rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #0056b3;
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================
   DARK MODE
   ====================== */
body.dark-mode {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  color: #f0f0f0;
}

/* Typography */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff;
}

body.dark-mode p {
  color: #cccccc;
}

/* Navbar */
body.dark-mode .navbar {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .nav-links a {
  color: #f0f0f0;
}

body.dark-mode .nav-links a:hover {
  color: #00e0ff;
  text-shadow: 0 0 6px rgba(0, 224, 255, 0.4);
}

/* Hero Section */
body.dark-mode .hero {
  background: radial-gradient(circle at center, #121212, #0f0f0f);
}

body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
  color: #f0f0f0;
}

/* Components */
body.dark-mode .feature,
body.dark-mode .contact-section,
body.dark-mode .blog-card {
  background-color: #1a1a1a;
  border-color: #2c2c2c;
  box-shadow: 0 6px 16px rgba(0, 224, 255, 0.05);
}

body.dark-mode .feature:hover,
body.dark-mode .blog-card:hover {
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.1);
}

body.dark-mode .blog-content h2 {
  color: #00e0ff;
}

body.dark-mode .blog-content p {
  color: #bbbbbb;
}

body.dark-mode .read-more {
  color: #00c3ff;
}

body.dark-mode .read-more:hover {
  color: #0096c7;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.2);
}

body.dark-mode .blog-caption {
  color: #aaa;
}

/* Contact Form */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #2a2a2a;
  border-color: #444;
  color: #f0f0f0;
}

/* Buttons */
body.dark-mode .cta-button {
  background: linear-gradient(to right, #00e0ff, #007bff);
  color: #0f0f0f;
  box-shadow: 0 4px 12px rgba(0, 224, 255, 0.2);
}

/* Footer */
body.dark-mode .footer {
  background-color: #111;
  color: #777;
  border-top: 1px solid #333;
}

/* Special Components */
body.dark-mode .spec-box {
  background-color: #1e1e1e !important;
  color: #f0f0f0 !important;
  border-color: #555 !important;
}

body.dark-mode .cpu-quote {
  color: #ccc;
  border-color: #ffa726;
}

body.dark-mode .conclusion-box {
  background: #1e1e1e;
  color: #e0e0e0;
  border-color: #ffa726;
}

body.dark-mode .ctrl-tagline {
  color: #f0f0f0;
}

body.dark-mode .ctrl-inner {
  background: #111; 
}

/* Contact Form Enhancements */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #262626;
  border: 1px solid #555;
  color: #fefefe;
  caret-color: #00e0ff;
  font-weight: 500;
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
  color: #999;
  opacity: 1;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #00e0ff;
  background-color: #1e1e1e;
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

body.dark-mode .contact-form label {
  color: #e0e0e0;
  font-weight: 600;
  letter-spacing: 0.3px;
}

