@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --hover-color: #1d4ed8;
    --bg-gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    --tech-primary: #3498db;
    --tech-secondary: #2ecc71;
    --tech-accent: #9b59b6;
    --tech-dark: #0a101e;
    --tech-light: #ecf0f1;
    --tech-gradient-1: linear-gradient(135deg, #3498db, #2ecc71);
    --tech-gradient-2: linear-gradient(135deg, #9b59b6, #3498db);
    --tech-gradient-3: linear-gradient(135deg, #e74c3c, #f39c12);
    --tech-glow: 0 0 15px rgba(52, 152, 219, 0.7);
    --tech-shadow: 0 10px 30px rgba(10, 16, 30, 0.2);
    --tech-card-bg: rgba(15, 23, 42, 0.8);
    --tech-card-border: rgba(52, 152, 219, 0.3);
    --tech-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --tech-border-radius: 12px;
    --tech-font-heading: 'Orbitron', sans-serif;
    --tech-font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9fafb;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
header {
    background: var(--bg-gradient);
    color: white;
    padding: 2rem 5%;
    position: relative;
    overflow: hidden;
}

.back-btn {
    margin-bottom: 1.5rem;
}

.back-btn a {
    color: white;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-btn a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.back-btn i {
    margin-right: 0.5rem;
}

.header-content {
    text-align: center;
    padding: 2rem 0;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.header-content h1 span {
    color: #10b981;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 5%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.featured-image {
    height: 100%;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.meta span {
    font-weight: 500;
    color: var(--dark-color);
}

.excerpt {
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: var(--hover-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 3rem 5%;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-img {
    height: 240px;
    overflow: hidden;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post:hover .post-img img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-content .meta {
    margin-bottom: 0.8rem;
}

.post-content p {
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.topics {
    list-style: none;
}

.topics li {
    margin-bottom: 0.8rem;
}

.topics li a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.topics li a:hover {
    padding-left: 0.5rem;
}

.newsletter p {
    margin-bottom: 1rem;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter input {
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
}

.newsletter button {
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter button:hover {
    background: var(--hover-color);
}

.trending-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.trending-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trending-post img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.trending-post h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.trending-post p {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Newsletter Banner */
.newsletter-banner {
    background: var(--bg-gradient);
    margin: 4rem 5%;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    overflow: hidden;
    position: relative;
}

.newsletter-content {
    max-width: 600px;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-content form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-content input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 30px;
    font-family: inherit;
}

.newsletter-content button {
    padding: 0.8rem 1.5rem;
    background: var(--dark-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-content button:hover {
    background: black;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark-color);
    color: white;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 400px;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-content form {
        flex-direction: column;
    }
    
    .newsletter-content input,
    .newsletter-content button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    header {
        padding: 1.5rem;
    }
    
    .featured-post,
    .blog-container {
        margin: 2rem 1.5rem;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .newsletter-banner {
        padding: 2rem 1.5rem;
        margin: 2rem 1.5rem;
    }
}

/* Tech Category Page Styles */

/* Tech Page Preloader */
.tech-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--tech-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.tech-preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.tech-loader {
  text-align: center;
  color: var(--tech-light);
}

.binary-stream {
  font-family: monospace;
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: binaryFade 2s infinite;
}

.loader-progress {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 auto 15px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--tech-gradient-1);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.loader-text {
  font-family: var(--tech-font-heading);
  font-size: 1rem;
  letter-spacing: 1px;
}

@keyframes binaryFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* 3D Background */
#tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--tech-dark);
}

/* Tech Header Styles */
.tech-header {
  background: transparent;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease;
}

.tech-header.scrolled {
  background: rgba(10, 16, 30, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.light-beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(52, 152, 219, 0.3), transparent);
  opacity: 0.5;
  animation: beam-move 8s infinite linear;
}

.light-beam:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
}

.light-beam:nth-child(2) {
  left: 50%;
  animation-delay: 3s;
}

.light-beam:nth-child(3) {
  left: 80%;
  animation-delay: 6s;
}

@keyframes beam-move {
  0% { transform: translateX(-50px); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateX(50px); opacity: 0; }
}

/* Tech Hero Section */
.tech-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
  background-color: var(--tech-dark);
}

.tech-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.tech-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.tech-category-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-family: var(--tech-font-heading);
  font-size: 0.9rem;
  color: var(--tech-primary);
  backdrop-filter: blur(5px);
}

.tech-category-badge i {
  margin-right: 8px;
  font-size: 1rem;
}

.tech-hero h1 {
  font-family: var(--tech-font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--tech-light);
}

.tech-hero h1 .text-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.tech-hero h1 .text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--tech-primary);
  animation: text-reveal 1.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.tech-hero h1 .gradient-text {
  background: var(--tech-gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.tech-hero p {
  font-family: var(--tech-font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(236, 240, 241, 0.8);
  margin-bottom: 32px;
}

.tech-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.tech-stat {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: var(--tech-border-radius);
  padding: 16px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--tech-transition);
}

.tech-stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--tech-glow);
  border-color: rgba(52, 152, 219, 0.5);
}

.stat-number {
  font-family: var(--tech-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--tech-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: var(--tech-light);
  opacity: 0.8;
}

.tech-hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 400px;
  perspective: 1000px;
}

.tech-cube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  width: 200px;
  height: 200px;
  animation: cube-rotate 20s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(52, 152, 219, 0.1);
  border: 2px solid rgba(52, 152, 219, 0.5);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--tech-light);
  backdrop-filter: blur(5px);
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes cube-rotate {
  from { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

@keyframes text-reveal {
  to { left: -100%; }
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.orbit-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  animation: orbit-rotate 15s linear infinite;
}

.orbit-particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--tech-gradient-1);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

.orbit-particle.p1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: particle-pulse 3s infinite alternate;
}

.orbit-particle.p2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation: particle-pulse 3s infinite alternate 1s;
}

.orbit-particle.p3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: particle-pulse 3s infinite alternate 2s;
}

.tech-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  cursor: pointer;
}

.scroll-text {
  font-family: var(--tech-font-heading);
  font-size: 0.8rem;
  color: var(--tech-light);
  opacity: 0.7;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  color: var(--tech-primary);
  animation: bounce 2s infinite;
}

/* Tech Filter Section */
.tech-filter-section {
  padding: 80px 0 40px;
  background-color: rgba(10, 16, 30, 0.97);
  position: relative;
}

.tech-filter-wrapper {
  position: relative;
  z-index: 2;
}

.tech-filter-header {
  text-align: center;
  margin-bottom: 40px;
}

.tech-filter-header h2 {
  font-family: var(--tech-font-heading);
  font-size: 2.5rem;
  color: var(--tech-light);
  margin-bottom: 16px;
}

.tech-filter-header h2 .highlight {
  position: relative;
  color: var(--tech-primary);
}

.tech-filter-header h2 .highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tech-gradient-1);
}

.tech-filter-header p {
  font-family: var(--tech-font-body);
  font-size: 1.1rem;
  color: rgba(236, 240, 241, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.tech-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.filter-btn {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: var(--tech-light);
  cursor: pointer;
  transition: var(--tech-transition);
  backdrop-filter: blur(5px);
}

.filter-btn .btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--tech-primary);
  transition: var(--tech-transition);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(52, 152, 219, 0.2);
  border-color: rgba(52, 152, 219, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--tech-glow);
}

.filter-btn:hover .btn-icon, .filter-btn.active .btn-icon {
  background: rgba(52, 152, 219, 0.3);
  transform: scale(1.1);
}

.filter-active-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  font-family: var(--tech-font-body);
  color: var(--tech-light);
  opacity: 0.8;
}

.clear-filter-btn {
  background: none;
  border: none;
  color: var(--tech-primary);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: var(--tech-transition);
}

.clear-filter-btn:hover {
  color: var(--tech-secondary);
}

/* Tech Articles Grid */
.tech-articles {
  padding: 40px 0 80px;
  background-color: rgba(10, 16, 30, 0.95);
  position: relative;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.tech-card {
  height: 450px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.tech-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--tech-border-radius);
  overflow: hidden;
}

.card-front {
  background: var(--tech-card-bg);
  border: 1px solid var(--tech-card-border);
  box-shadow: var(--tech-shadow);
  display: flex;
  flex-direction: column;
}

.card-back {
  background: var(--tech-card-bg);
  border: 1px solid var(--tech-card-border);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--tech-transition);
}

.tech-card:hover .card-image img {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.category-badge.ai {
  background: rgba(155, 89, 182, 0.2);
  border: 1px solid rgba(155, 89, 182, 0.3);
  color: #9b59b6;
}

.category-badge.web {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.category-badge.cyber {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.category-badge.iot {
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: #3498db;
}

.category-badge.blockchain {
  background: rgba(243, 156, 18, 0.2);
  border: 1px solid rgba(243, 156, 18, 0.3);
  color: #f39c12;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-family: var(--tech-font-heading);
  font-size: 1.2rem;
  color: var(--tech-light);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-content p {
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: rgba(236, 240, 241, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(236, 240, 241, 0.5);
  margin-bottom: 15px;
}

.meta-date i, .meta-time i {
  margin-right: 5px;
}

.flip-btn {
  align-self: flex-start;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: var(--tech-primary);
  cursor: pointer;
  transition: var(--tech-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flip-btn:hover {
  background: rgba(52, 152, 219, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--tech-glow);
}

.back-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.back-content h3 {
  font-family: var(--tech-font-heading);
  font-size: 1.2rem;
  color: var(--tech-light);
  margin-bottom: 15px;
  line-height: 1.4;
}

.back-content p {
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: rgba(236, 240, 241, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-highlights {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--tech-border-radius);
  padding: 15px;
  margin-bottom: 20px;
}

.article-highlights h4 {
  font-family: var(--tech-font-heading);
  font-size: 1rem;
  color: var(--tech-light);
  margin-bottom: 10px;
}

.article-highlights ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.article-highlights li {
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: rgba(236, 240, 241, 0.7);
  padding: 5px 0 5px 20px;
  position: relative;
}

.article-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--tech-primary);
}

.read-more-btn {
  background: var(--tech-gradient-1);
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: var(--tech-light);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--tech-transition);
  margin-top: auto;
  margin-bottom: 15px;
  display: inline-block;
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--tech-glow);
}

.flip-back-btn {
  align-self: flex-start;
  background: none;
  border: none;
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: rgba(236, 240, 241, 0.7);
  cursor: pointer;
  transition: var(--tech-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flip-back-btn:hover {
  color: var(--tech-primary);
}

.tech-load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 30px;
  padding: 12px 30px;
  font-family: var(--tech-font-heading);
  font-size: 1rem;
  color: var(--tech-light);
  cursor: pointer;
  transition: var(--tech-transition);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
  transition: var(--tech-transition);
}

.load-more-btn:hover {
  background: rgba(52, 152, 219, 0.2);
  border-color: rgba(52, 152, 219, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--tech-glow);
}

.load-more-btn:hover::before {
  animation: btn-shine 1.5s infinite;
}

.load-more-btn .btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--tech-transition);
}

.load-more-btn:hover .btn-icon {
  transform: rotate(180deg);
}

/* Tech Newsletter */
.tech-newsletter {
  padding: 80px 0;
  background: linear-gradient(to bottom, rgba(10, 16, 30, 0.95), rgba(10, 16, 30, 0.98));
  position: relative;
  overflow: hidden;
}

.newsletter-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: var(--tech-border-radius);
  padding: 50px;
  backdrop-filter: blur(10px);
}

.newsletter-icon {
  width: 80px;
  height: 80px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
  color: var(--tech-primary);
  font-size: 2rem;
  position: relative;
}

.newsletter-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(52, 152, 219, 0.3);
  animation: pulse 2s infinite;
}

.newsletter-content h2 {
  font-family: var(--tech-font-heading);
  font-size: 2.2rem;
  color: var(--tech-light);
  margin-bottom: 20px;
}

.newsletter-content h2 .highlight {
  position: relative;
  color: var(--tech-primary);
}

.newsletter-content h2 .highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tech-gradient-1);
}

.newsletter-content p {
  font-family: var(--tech-font-body);
  font-size: 1.1rem;
  color: rgba(236, 240, 241, 0.7);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  margin-bottom: 15px;
  box-shadow: var(--tech-shadow);
}

.form-group input {
  flex-grow: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-right: none;
  border-radius: 30px 0 0 30px;
  padding: 15px 20px;
  font-family: var(--tech-font-body);
  font-size: 1rem;
  color: var(--tech-light);
  outline: none;
  transition: var(--tech-transition);
}

.form-group input:focus {
  border-color: rgba(52, 152, 219, 0.7);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group button {
  background: var(--tech-gradient-1);
  border: none;
  border-radius: 0 30px 30px 0;
  padding: 0 25px;
  font-family: var(--tech-font-body);
  font-size: 1rem;
  color: var(--tech-light);
  cursor: pointer;
  transition: var(--tech-transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group button:hover {
  filter: brightness(1.1);
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.form-privacy input {
  margin-top: 5px;
}

.form-privacy label {
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: rgba(236, 240, 241, 0.6);
  line-height: 1.5;
}

.form-privacy a {
  color: var(--tech-primary);
  text-decoration: none;
  transition: var(--tech-transition);
}

.form-privacy a:hover {
  color: var(--tech-secondary);
  text-decoration: underline;
}

/* Tech Trending Topics */
.tech-trending {
  padding: 80px 0;
  background-color: rgba(10, 16, 30, 0.97);
  position: relative;
}

.trending-header {
  text-align: center;
  margin-bottom: 50px;
}

.trending-header h2 {
  font-family: var(--tech-font-heading);
  font-size: 2.5rem;
  color: var(--tech-light);
  margin-bottom: 16px;
}

.trending-header h2 .highlight {
  position: relative;
  color: var(--tech-primary);
}

.trending-header h2 .highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tech-gradient-1);
}

.trending-header p {
  font-family: var(--tech-font-body);
  font-size: 1.1rem;
  color: rgba(236, 240, 241, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.trending-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.topic-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: var(--tech-border-radius);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  transition: var(--tech-transition);
  backdrop-filter: blur(5px);
}

.topic-card:hover {
  transform: translateY(-10px);
  border-color: rgba(52, 152, 219, 0.5);
  box-shadow: var(--tech-glow);
}

.topic-icon {
  width: 60px;
  height: 60px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  color: var(--tech-primary);
  font-size: 1.5rem;
  transition: var(--tech-transition);
}

.topic-card:hover .topic-icon {
  background: rgba(52, 152, 219, 0.2);
  transform: scale(1.1);
}

.topic-card h3 {
  font-family: var(--tech-font-heading);
  font-size: 1.2rem;
  color: var(--tech-light);
  margin-bottom: 10px;
}

.topic-count {
  font-family: var(--tech-font-body);
  font-size: 0.9rem;
  color: rgba(236, 240, 241, 0.6);
}

/* Tech Footer Decoration */
.tech-footer-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.tech-circuit {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://assets.codepen.io/1462889/circuit-pattern.svg');
  background-size: cover;
  opacity: 0.05;
}

.tech-glow {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(52, 152, 219, 0.3) 0%, rgba(52, 152, 219, 0) 70%);
  opacity: 0.5;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--tech-primary);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--tech-transition);
  z-index: 100;
  backdrop-filter: blur(5px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(52, 152, 219, 0.2);
  border-color: rgba(52, 152, 219, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--tech-glow);
}

/* Animations */
@keyframes cube-rotate {
  0% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

@keyframes orbit-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes particle-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

@keyframes text-reveal {
  0% { left: 0; }
  100% { left: 100%; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

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

@keyframes btn-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .tech-hero h1 {
    font-size: 3rem;
  }
  
  .tech-hero-visual {
    height: 350px;
  }
  
  .tech-cube {
    width: 180px;
    height: 180px;
  }
  
  .cube-face {
    width: 180px;
    height: 180px;
  }
  
  .cube-face.front { transform: translateZ(90px); }
  .cube-face.back { transform: rotateY(180deg) translateZ(90px); }
  .cube-face.right { transform: rotateY(90deg) translateZ(90px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(90px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(90px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(90px); }
}

@media (max-width: 992px) {
  .tech-hero {
    padding: 100px 0 60px;
  }
  
  .tech-hero h1 {
    font-size: 2.5rem;
  }
  
  .tech-hero p {
    font-size: 1rem;
  }
  
  .tech-hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .tech-stats {
    justify-content: center;
  }
  
  .tech-hero-visual {
    height: 300px;
  }
  
  .newsletter-content {
    padding: 40px 30px;
  }
  
  .newsletter-content h2 {
    font-size: 2rem;
  }
  
  .trending-topics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .tech-hero h1 {
    font-size: 2.2rem;
  }
  
  .tech-category-badge {
    font-size: 0.8rem;
  }
  
  .tech-stats {
    flex-wrap: wrap;
  }
  
  .tech-stat {
    flex: 0 0 calc(50% - 12px);
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .tech-filter-buttons {
    flex-wrap: wrap;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  
  .filter-btn .btn-icon {
    width: 25px;
    height: 25px;
  }
  
  .newsletter-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group input {
    border-radius: 30px;
    border-right: 1px solid rgba(52, 152, 219, 0.3);
    margin-bottom: 10px;
  }
  
  .form-group button {
    border-radius: 30px;
    justify-content: center;
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .tech-hero h1 {
    font-size: 1.8rem;
  }
  
  .tech-hero p {
    font-size: 0.9rem;
  }
  
  .tech-stat {
    flex: 0 0 100%;
    margin-bottom: 15px;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-card {
    height: 400px;
  }
  
  .trending-topics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-content {
    padding: 30px 20px;
  }
  
  .newsletter-content h2 {
    font-size: 1.8rem;
  }
  
  .newsletter-content p {
    font-size: 0.9rem;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}