/**
 * Glen Infotech - Main Stylesheet
 * Brand Colors: Pink #FF3CAC → Orange #FF7043 → Gold #FFB800
 */

/* ============================================
   CSS VARIABLES - BRAND COLOR SYSTEM
   ============================================ */
:root {
  /* === BRAND GRADIENT === */
  --brand-pink:    #FF3CAC;
  --brand-orange:  #FF7043;
  --brand-gold:    #FFB800;

  /* === GRADIENT DEFINITIONS === */
  --grad-main:     linear-gradient(135deg, #FF3CAC 0%, #FF7043 50%, #FFB800 100%);
  --grad-reverse:  linear-gradient(135deg, #FFB800 0%, #FF7043 50%, #FF3CAC 100%);
  --grad-horizontal: linear-gradient(90deg, #FF3CAC 0%, #FF7043 50%, #FFB800 100%);
  --grad-text:     linear-gradient(135deg, #FF3CAC, #FF7043, #FFB800);

  /* === DARK BACKGROUNDS === */
  --bg-primary:    #0A0A0F;
  --bg-secondary:  #111118;
  --bg-tertiary:   #16161F;
  --bg-card:       rgba(255, 255, 255, 0.04);

  /* === BORDER & GLOW === */
  --border-default: rgba(255, 112, 67, 0.15);
  --border-hover:   rgba(255, 112, 67, 0.45);
  --border-pink:    rgba(255, 60, 172, 0.25);
  --glow-pink:      0 0 20px rgba(255, 60, 172, 0.3);
  --glow-orange:    0 0 20px rgba(255, 112, 67, 0.3);
  --glow-gold:      0 0 20px rgba(255, 184, 0, 0.3);

  /* === TEXT === */
  --text-primary:   #F0F0F0;
  --text-secondary: #AAAAAA;
  --text-muted:     #666666;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--grad-main);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

/* Selection */
::selection {
  background: var(--brand-orange);
  color: white;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.brand-text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-orange);
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
  padding-left: 50px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 3px;
  background: var(--grad-main);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 700px;
}

/* Buttons */
.btn-gradient {
  background: var(--grad-main);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-orange);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--brand-orange);
  border: 2px solid var(--brand-orange);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--brand-orange);
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.glass-card:hover::before {
  transform: scaleX(1);
}

/* Grid Background */
.grid-bg {
  background-image: 
    linear-gradient(rgba(255, 112, 67, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 112, 67, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-default);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-img {
  height: 40px;
  width: auto;
}

.brand-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border-color: var(--brand-orange);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF7043' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Animated Gradient Background */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 60, 172, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 112, 67, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 184, 0, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, 5%) rotate(120deg); }
  66% { transform: translate(-5%, 5%) rotate(240deg); }
}

/* Floating Geometric Shapes */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(255, 112, 67, 0.05) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 60, 172, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  background-position: 0 0, 25px 25px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

#three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-glow-top {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 60, 172, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
  filter: blur(60px);
}

.hero-glow-bottom {
  position: absolute;
  bottom: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite reverse;
  filter: blur(60px);
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-container {
  min-height: 80px;
  margin-bottom: 2rem;
}

.typewriter-text {
  font-size: 2.5rem;
  color: var(--brand-orange);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: 6rem 0;
}

.service-card {
  height: 100%;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 184, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand-gold);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--grad-main);
  color: white;
  transform: scale(1.1);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--brand-orange);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  gap: 12px;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--grad-main);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  display: inline-block;
  background: rgba(255, 60, 172, 0.1);
  color: var(--brand-pink);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.portfolio-title a:hover {
  color: var(--brand-orange);
}

body.light-mode .portfolio-overlay .portfolio-title,
body.light-mode .portfolio-overlay .portfolio-title a {
  color: #ffffff;
}

body.light-mode .portfolio-overlay .portfolio-client {
  color: rgba(255, 255, 255, 0.85);
}

.portfolio-client {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.portfolio-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tech-badge {
  background: rgba(255, 184, 0, 0.1);
  color: var(--brand-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 6rem 0;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(255, 184, 0, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-orange);
}

.testimonial-info h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.testimonial-company {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.testimonial-message {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-default);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 40px;
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--grad-main);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--brand-orange);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-orange);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.footer-contact i {
  color: var(--brand-orange);
  font-size: 1.25rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-default);
}

.copyright {
  color: var(--text-secondary);
  margin: 0;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: var(--text-secondary);
}

.footer-bottom-links a:hover {
  color: var(--brand-orange);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--grad-main);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-orange);
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 2px solid var(--brand-orange);
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  color: var(--text-secondary);
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .typewriter-text {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .typewriter-text {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn-gradient,
  .hero-buttons .btn-outline {
    width: 100%;
    text-align: center;
  }
}


/* ============================================
   PASSWORD TOGGLE
   ============================================ */
.password-toggle-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.password-toggle-btn:hover {
    background: var(--bg-secondary);
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 112, 67, 0.25);
}

.input-group .password-toggle-btn {
    margin-left: -1px;
}

.input-group .form-control:focus + .password-toggle-btn {
    border-color: var(--brand-orange);
}


/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-default);
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.theme-toggle:hover {
  border-color: var(--brand-orange);
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.theme-toggle i {
  font-size: 1.25rem;
  position: absolute;
  transition: all 0.3s ease;
}

.theme-icon-light {
  color: var(--brand-gold);
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

.theme-icon-dark {
  color: var(--brand-orange);
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Light mode active state */
body.light-mode .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-mode .theme-icon-dark {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

/* ============================================
   LIGHT MODE THEME
   ============================================ */
body.light-mode {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F0F2F5;
  --bg-card: rgba(0, 0, 0, 0.03);
  
  --border-default: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(255, 112, 67, 0.4);
  --border-pink: rgba(255, 60, 172, 0.2);
  
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #999999;
  
  --glow-pink: 0 0 20px rgba(255, 60, 172, 0.15);
  --glow-orange: 0 0 20px rgba(255, 112, 67, 0.15);
  --glow-gold: 0 0 20px rgba(255, 184, 0, 0.15);
}

/* Light mode navbar */
body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--border-default);
}

body.light-mode .navbar-brand .brand-text {
  color: var(--text-primary);
}

body.light-mode .nav-link {
  color: var(--text-secondary) !important;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--brand-orange) !important;
}

/* Light mode cards */
body.light-mode .glass-card,
body.light-mode .service-card,
body.light-mode .portfolio-item,
body.light-mode .testimonial-card,
body.light-mode .blog-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border-default);
}

body.light-mode .glass-card:hover,
body.light-mode .service-card:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Light mode floating cards */
body.light-mode .floating-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--border-default);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .floating-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--brand-orange);
  box-shadow: 0 20px 40px rgba(255, 112, 67, 0.2);
}

/* Light mode card icons - keep gradient visible */
body.light-mode .card-icon {
  box-shadow: 0 5px 15px rgba(255, 112, 67, 0.3);
}

/* Light mode card content - ensure text is visible */
body.light-mode .card-content h4 {
  color: #1A1A1A;
  font-weight: 600;
}

body.light-mode .card-content p {
  color: #555555;
}

/* Light mode hero stats */
body.light-mode .hero-stats {
  border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .hero-stat-label {
  color: #666666;
}

/* Light mode hero central glow */
body.light-mode .hero-central-glow {
  background: radial-gradient(circle, rgba(255, 112, 67, 0.25) 0%, transparent 70%);
  opacity: 0.6;
}

/* Light mode stats bar */
body.light-mode .stats-bar {
  background: var(--bg-secondary);
  border-color: var(--border-default);
}

/* Light mode footer */
body.light-mode .footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
}

body.light-mode .footer-bottom {
  border-top: 1px solid var(--border-default);
}

/* Light mode form inputs */
body.light-mode .form-control,
body.light-mode .form-select {
  background: var(--bg-tertiary);
  border-color: var(--border-default);
  color: var(--text-primary);
}

body.light-mode .form-control:focus,
body.light-mode .form-select:focus {
  background: var(--bg-tertiary);
  border-color: var(--brand-orange);
  color: var(--text-primary);
}

/* Light mode buttons */
body.light-mode .btn-outline {
  border-color: var(--border-default);
  color: var(--text-primary);
}

body.light-mode .btn-outline:hover {
  background: var(--grad-main);
  color: white;
  border-color: transparent;
}

/* Light mode hero background */
body.light-mode .hero-bg {
  opacity: 0.15;
}

body.light-mode .hero-glow-top,
body.light-mode .hero-glow-bottom {
  opacity: 0.3;
}

/* Light mode grid background */
body.light-mode .grid-bg::before {
  opacity: 0.03;
}

/* Light mode scrollbar */
body.light-mode ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: var(--grad-main);
}

/* Light mode selection */
body.light-mode ::selection {
  background: var(--brand-orange);
  color: white;
}

/* Light mode portfolio filters */
body.light-mode .filter-btn {
  background: var(--bg-tertiary);
  color: #333333;
}

body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active {
  background: var(--grad-main);
  color: #ffffff;
}

/* Light mode badges */
body.light-mode .portfolio-category,
body.light-mode .tech-badge {
  background: rgba(255, 112, 67, 0.1);
  color: var(--brand-orange);
}

/* Light mode availability badge */
body.light-mode .availability-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-default);
}

/* Light mode preloader */
body.light-mode #preloader {
  background: var(--bg-primary);
}

body.light-mode .logo-mark {
  color: var(--text-primary);
}

/* Smooth theme transition */
body,
.navbar,
.glass-card,
.service-card,
.portfolio-item,
.testimonial-card,
.floating-card,
.stats-bar,
.footer,
.form-control,
.form-select,
.btn-outline,
.filter-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Mobile theme toggle */
@media (max-width: 991px) {
  .theme-toggle {
    margin: 1rem auto;
  }
}


/* ============================================
   TRENDY BACKGROUND EFFECTS
   ============================================ */

/* Animated Diagonal Lines */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(255, 112, 67, 0.03) 49%, rgba(255, 112, 67, 0.03) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 60, 172, 0.03) 49%, rgba(255, 60, 172, 0.03) 51%, transparent 52%);
  background-size: 100px 100px;
  animation: lineMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes lineMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 100px 100px, -100px 100px; }
}

/* Floating Orbs */
.hero-section::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: orbFloat 10s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Mesh Gradient Effect */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(at 30% 30%, rgba(255, 60, 172, 0.08) 0%, transparent 50%),
    radial-gradient(at 70% 70%, rgba(255, 112, 67, 0.08) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 184, 0, 0.05) 0%, transparent 50%);
  animation: meshRotate 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes meshRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Particle Effect Dots */
.floating-cards::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(255, 112, 67, 0.4) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 60, 172, 0.3) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 184, 0, 0.3) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 120px 120px;
  background-position: 0 0, 50px 50px, 25px 75px;
  animation: particleFloat 30s linear infinite;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

@keyframes particleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

/* Glowing Lines Effect */
.floating-cards::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255, 112, 67, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineGlow 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes lineGlow {
  0%, 100% { background-position: -200% 0; opacity: 0; }
  50% { background-position: 200% 0; opacity: 1; }
}

/* Enhanced Central Glow with Animation */
.hero-central-glow {
  animation: centralGlowPulse 6s ease-in-out infinite;
}

@keyframes centralGlowPulse {
  0%, 100% { 
    opacity: 0.5; 
    transform: translate(-50%, -50%) scale(1);
    filter: blur(60px) hue-rotate(0deg);
  }
  50% { 
    opacity: 0.8; 
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(80px) hue-rotate(30deg);
  }
}

/* Animated Border Glow for Cards */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 112, 67, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 60, 172, 0.5); }
}

.floating-card:hover {
  animation: borderGlow 2s ease-in-out infinite;
}

/* Light Mode Adjustments for New Effects */
body.light-mode .hero-section::before {
  opacity: 0.5;
}

body.light-mode .hero-section::after {
  opacity: 0.6;
}

body.light-mode .hero-visual::before {
  opacity: 0.8;
}

body.light-mode .floating-cards::before {
  opacity: 0.2;
}

body.light-mode .floating-cards::after {
  opacity: 0.3;
}

body.light-mode .hero-glow-top {
  opacity: 0.4;
}

body.light-mode .hero-glow-bottom {
  opacity: 0.3;
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after,
  .hero-section::before,
  .hero-section::after,
  .hero-visual::before,
  .floating-cards::before,
  .floating-cards::after,
  .hero-glow-top,
  .hero-glow-bottom,
  .hero-central-glow {
    animation: none;
  }
}

/* Mobile Optimization */
@media (max-width: 767px) {
  .hero-section::before,
  .hero-section::after,
  .hero-visual::before {
    opacity: 0.3;
  }
  
  .hero-glow-top,
  .hero-glow-bottom {
    width: 300px;
    height: 300px;
  }
}


/* ============================================
   3D FLOATING CARDS - FULL COVERAGE
   ============================================ */
.hero-row {
  min-height: 100vh;
}

.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.floating-card {
  text-decoration: none;
  color: inherit;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  min-width: 240px;
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.05) !important;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(255, 112, 67, 0.3);
  z-index: 10;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(255, 112, 67, 0.4);
}

.card-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.card-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Card Positions - 6 cards for full coverage */
.card-1 {
  top: 5%;
  left: 0;
  animation-name: float1;
}

.card-2 {
  top: 5%;
  right: 0;
  animation-name: float2;
  animation-delay: 0.5s;
}

.card-3 {
  top: 35%;
  left: -5%;
  animation-name: float3;
  animation-delay: 1s;
}

.card-4 {
  top: 35%;
  right: -5%;
  animation-name: float4;
  animation-delay: 1.5s;
}

.card-5 {
  bottom: 10%;
  left: 5%;
  animation-name: float5;
  animation-delay: 2s;
}

.card-6 {
  bottom: 10%;
  right: 5%;
  animation-name: float6;
  animation-delay: 2.5s;
}

/* Floating Animations - Varied movements */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(2deg); }
  50% { transform: translate(20px, -10px) rotate(0deg); }
  75% { transform: translate(10px, -20px) rotate(-2deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, -20px) rotate(-2deg); }
  50% { transform: translate(-20px, -15px) rotate(0deg); }
  75% { transform: translate(-10px, -25px) rotate(2deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, 10px) rotate(3deg); }
  50% { transform: translate(25px, 5px) rotate(0deg); }
  75% { transform: translate(15px, 15px) rotate(-3deg); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-15px, 15px) rotate(-3deg); }
  50% { transform: translate(-25px, 10px) rotate(0deg); }
  75% { transform: translate(-15px, 20px) rotate(3deg); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, 10px) rotate(2deg); }
  50% { transform: translate(15px, 5px) rotate(0deg); }
  75% { transform: translate(10px, 15px) rotate(-2deg); }
}

@keyframes float6 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, 15px) rotate(-2deg); }
  50% { transform: translate(-15px, 10px) rotate(0deg); }
  75% { transform: translate(-10px, 20px) rotate(2deg); }
}

/* Central Glow Effect */
.hero-central-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 112, 67, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse-glow 5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* ============================================
   RESPONSIVE - FLOATING CARDS
   ============================================ */
@media (max-width: 991px) {
  .hero-row {
    min-height: auto !important;
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 1.25rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    height: auto;
    min-height: 0;
    padding: 0.25rem 0 0.5rem;
  }

  .floating-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .floating-card,
  .floating-card.card-1,
  .floating-card.card-2,
  .floating-card.card-3,
  .floating-card.card-4,
  .floating-card.card-5,
  .floating-card.card-6 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    animation: none !important;
    transform: none !important;
    padding: 0.875rem 1rem;
    border-radius: 16px;
    gap: 0.75rem;
  }

  .floating-card:hover {
    transform: translateY(-4px) !important;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border-radius: 12px;
  }

  .card-content h4 {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .card-content p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .hero-central-glow {
    display: none;
  }
}

@media (max-width: 575px) {
  .floating-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .floating-card {
    padding: 1rem 1.125rem;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .card-content h4 {
    font-size: 1rem;
  }

  .card-content p {
    font-size: 0.8125rem;
  }
}
