/* css/modern-tech.css */

/* =========================================
   1. CORE VARIABLES & THEME SETUP
   ========================================= */
:root {
  --tanics-bg-dark: #050505;
  --tanics-bg-card: #121212;
  --tanics-bg-accent: #1a1a1a;
  
  --tanics-primary-red: #ff2e2e;
  --tanics-dark-red: #8a0000;
  
  --tanics-text-main: #ffffff;
  --tanics-text-muted: #a0a0a0;
  
  --tanics-font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --tanics-grid-pattern: radial-gradient(circle, #333 1px, transparent 1px);
}

/* =========================================
   2. GLOBAL WRAPPER & UTILITIES
   ========================================= */
body {
  background-color: var(--tanics-bg-dark);
  color: var(--tanics-text-main);
  background-image: var(--tanics-grid-pattern);
  background-size: 40px 40px;
}

.tech-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.t-heading {
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.t-text-accent {
  color: var(--tanics-primary-red) !important;
}

/* FIX: Made lead text brighter white for better contrast */
.t-lead {
  font-size: 1.15rem;
  color: #ffffff; 
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.9;
}

/* Buttons */
.btn-tech {
  background-color: transparent;
  border: 1px solid var(--tanics-primary-red);
  color: var(--tanics-primary-red);
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-tech::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background-color: var(--tanics-primary-red);
  z-index: -1;
  transition: width 0.3s ease;
}

.btn-tech:hover {
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 46, 46, 0.4);
}

.btn-tech:hover::before {
  width: 100%;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.tech-hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5,5,5,0) 0%, var(--tanics-bg-dark) 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
  }
}

.hero-content {
  z-index: 2;
}

/* Square Carousel Container */
.square-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 1px solid #333;
  padding: 10px;
  background: var(--tanics-bg-card);
}

.square-carousel-wrapper .carousel,
.square-carousel-wrapper .carousel-inner,
.square-carousel-wrapper .carousel-item {
  height: 100%;
  width: 100%;
}

.square-carousel-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  transition: filter 0.5s ease;
}

.square-carousel-wrapper:hover img {
  filter: grayscale(0%) contrast(100%);
}

.square-carousel-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10px; right: -10px;
  width: 100px; height: 100px;
  border-bottom: 2px solid var(--tanics-primary-red);
  border-right: 2px solid var(--tanics-primary-red);
  pointer-events: none;
}

/* =========================================
   4. MISSION GRID (Modern Cards)
   ========================================= */
.tech-section {
  padding: 80px 0;
  position: relative;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-card {
  background: var(--tanics-bg-card);
  border: 1px solid #222;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* FIX: Force all text inside cards to be light/white */
.tech-card h4 {
    color: #ffffff;
}
.tech-card p, 
.tech-card .text-muted {
    color: #e0e0e0 !important; /* Forces light grey/white text */
    opacity: 0.9;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--tanics-primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: #333;
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-icon-box {
  font-size: 2.5rem;
  color: var(--tanics-primary-red);
  margin-bottom: 1.5rem;
}

/* =========================================
   5. STATS STRIP
   ========================================= */
.stats-strip {
  background: var(--tanics-bg-accent);
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 60px 0;
}

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.stat-item p {
  color: var(--tanics-primary-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* =========================================
   6. SERVICES
   ========================================= */
.service-showcase-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid #333;
}

.service-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  opacity: 0.4;
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(0deg, #000 0%, transparent 100%);
  z-index: 2;
}

.service-showcase-item:hover .service-bg {
  transform: scale(1.1);
  opacity: 0.7;
}

.service-showcase-item h5 {
  border-left: 3px solid var(--tanics-primary-red);
  padding-left: 15px;
  color: #fff;
  font-size: 1.5rem;
}

/* =========================================
   7. TESTIMONIALS & NEWSLETTER
   ========================================= */
.client-quote {
  border-left: 4px solid var(--tanics-primary-red);
  padding-left: 2rem;
  font-size: 1.5rem;
  font-style: italic;
  color: #ddd;
}

.newsletter-box {
  background: linear-gradient(45deg, var(--tanics-bg-card), #1a1a1a);
  padding: 4rem 2rem;
  border: 1px solid #333;
  text-align: center;
}

.form-tech-input {
  background: #000;
  border: 1px solid #333;
  color: #fff;
  padding: 15px;
  width: 100%;
  max-width: 400px;
  margin-right: 10px;
}
.form-tech-input:focus {
  outline: none;
  border-color: var(--tanics-primary-red);
  color: #fff;
}