/* =========================================
   UNVER.TECH - Premium Design System
   Author: Sinan Ünver
   Theme: Dark Glassmorphism
   ========================================= */

/* ===== CSS Custom Properties (Design Tokens) ===== */
:root {
  /* Primary Colors */
  --color-bg-primary: #0a0a1a;
  --color-bg-secondary: #0f0f2a;
  --color-bg-tertiary: #151535;

  /* Accent Colors */
  --color-accent-cyan: #00f0ff;
  --color-accent-magenta: #ff00aa;
  --color-accent-purple: #8b5cf6;
  --color-accent-blue: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #00f0ff 0%, #ff00aa 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #151535 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.3);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s;

  /* Container */
  --container-max: 1200px;
  --header-height: 85px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

/* ===== CSS Reset & Base ===== */
/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  /* Using var(--font-body) for consistency */
}

/* Custom Neon Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 5px;
  border: 2px solid var(--color-bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.6);
}

/* Global Overflow Fixes */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--gradient-dark);
  /* Original background */
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

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

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

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
}

/* Utilities */
.gradient-text {
  background: var(--gradient-accent);
  /* Changed to accent for consistency with existing */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: orb-float 20s ease-in-out infinite alternate;
}

.glow-orb.primary {
  background: var(--color-bg-primary);
  /* Using existing primary color var */
  width: 400px;
  height: 400px;
}

.glow-orb.secondary {
  background: var(--color-bg-secondary);
  /* Using existing secondary color var */
  width: 500px;
  height: 500px;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(100px, 50px) scale(1.1);
  }

  100% {
    transform: translate(-50px, -100px) scale(0.9);
  }
}

@media (max-width: 968px) {
  /* Original media query content was not provided, keeping existing structure */
}

/* ===== Layout & Sections ===== */
.section {
  padding: 3rem 0;
  position: relative;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
  color: var(--color-bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: background var(--transition-normal);
}

.header.scrolled {
  background: rgba(10, 10, 26, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 100px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  z-index: 10;
  width: 180px;
  /* Reduced width for better balance */
  overflow: hidden;
}

.logo-img {
  height: 90px;
  /* Optimal size to fill the 85px header space after cropping whitespace */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.7)) brightness(1.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img:hover {
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 1)) brightness(1.4);
  transform: scale(1.05);
}








.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 10px;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Nav Dropdown (Apps Menu) - STRICT FIX */
.nav-dropdown {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  cursor: pointer !important;
}

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 1rem !important;
  height: 100% !important;
}

/* Varsayılan olarak GİZLİ ve DİKEY */
.nav-dropdown-menu {
  display: none !important;
  /* Kesinlikle gizli başla */
  flex-direction: column !important;
  /* Dikey sırala */
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 220px !important;
  background-color: #0f0f2a !important;
  /* Koyu arka plan */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 0 8px 8px !important;
  padding: 10px 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  z-index: 10000 !important;
}

/* Mouse üstüne gelince GÖSTER (Dikey Flex olarak) */
.nav-dropdown:hover .nav-dropdown-menu {
  display: flex !important;
}

/* Menü öğeleri stilleri */
.nav-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 20px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  width: 100% !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav-dropdown-item:last-child {
  border-bottom: none !important;
}

.nav-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding-left: 25px !important;
  /* Hover efekti */
}

.nav-dropdown-item .app-icon {
  font-size: 1.2rem !important;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 8px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent-cyan);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.lang-selector:hover .lang-dropdown,
.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 8px 10px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background: var(--glass-bg);
  color: var(--color-text-primary);
}

.lang-option.active {
  color: var(--color-accent-cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-xs);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 18, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-list.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .nav-link {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: capitalize;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    color: var(--color-accent-cyan);
    transform: scale(1.1);
  }

  .nav-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-list.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-list.active li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-list.active li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-list.active li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-list.active li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--color-accent-cyan);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--color-accent-cyan);
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 1000px;
}

/* Hero Badge Styling */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero-greeting {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.hero-title .name {
  display: block;
  background: linear-gradient(to right,
      #ffffff,
      var(--color-accent-cyan),
      var(--color-accent-purple),
      var(--color-accent-cyan),
      #ffffff);
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: premium-shine 15s ease infinite;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.1));
}

@keyframes premium-shine {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
}

.scroll-icon {
  width: 26px;
  height: 44px;
  border: 2px solid var(--glass-border);
  border-radius: 100px;
  position: relative;
}

.scroll-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-accent-cyan);
  border-radius: 100px;
  animation: scroll-indicator 2s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}

/* ===== About Section ===== */
.about {
  background: var(--color-bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  align-items: start;
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 350px;
  margin: 0 auto;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  opacity: 0.5;
  filter: blur(20px);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--color-text-primary);
}

.section-label {
  display: inline-block;
  color: var(--color-accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
}

.about-text {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Skills Section */
.skills-section {
  margin-top: var(--spacing-lg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: var(--spacing-md);
}

.skill-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.skill-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.skill-percent {
  color: var(--color-accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  transition: width 1s ease;
  width: 0;
}

.skill-progress.animate {
  width: var(--progress);
}

/* ===== Expertise Section ===== */
.expertise {
  background: var(--color-bg-primary);
}

.expertise-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.expertise-card {
  background: var(--gradient-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.expertise-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

.expertise-title {
  margin-bottom: var(--spacing-xs);
}

.expertise-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.expertise-tag {
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--color-accent-cyan);
}

/* ===== Projects Section ===== */
.projects {
  background: var(--color-bg-secondary);
}

.projects-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg-secondary), transparent);
}

.project-content {
  padding: var(--spacing-md);
}

.project-type {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--color-accent-purple);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xs);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.project-text {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.project-links {
  display: flex;
  gap: var(--spacing-xs);
}

.project-link {
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.project-link:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
}

/* ===== Contact Section ===== */
.contact {
  background: var(--color-bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin-bottom: var(--spacing-md);
}

.contact-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.contact-details {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-sm) 0;
  color: var(--color-text-secondary);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--color-bg-primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

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

.form-submit {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text-primary);
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.footer-link {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--glass-border);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ===== Particle Background ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ===== Animations ===== */
/* EMERGENCY FIX: Force visibility - JS animations were unreliable */
.fade-in,
.fade-in-left,
.fade-in-right,
.fade-in-up {
  opacity: 1 !important;
  transform: none !important;
}

.stagger-children>* {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--color-accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Premium Corporate Identity - About Us Expansion */
.journey-timeline {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem 0;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-accent-blue), var(--color-accent-cyan), transparent);
  transform: translateX(-50%);
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
}

.timeline-event:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-event:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-marker {
  position: absolute;
  top: 2.5rem;
  width: 20px;
  height: 20px;
  background: var(--color-accent-cyan);
  border: 4px solid #0a0a1a;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 15px var(--color-accent-cyan);
}

.timeline-event:nth-child(even) .timeline-marker {
  left: -10px;
}

.timeline-event:nth-child(odd) .timeline-marker {
  right: -10px;
}

.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-light);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--color-accent-cyan);
  box-shadow: var(--shadow-accent);
}

.timeline-year {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.competency-card {
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border-light);
  padding: 2.5rem;
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.competency-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-accent-blue);
  background: rgba(255, 255, 255, 0.05);
}

.competency-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(135deg, #00f0ff, #667eea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.corporate-journey-header {
  text-align: center;
  margin-bottom: 5rem;
}

.journey-subtitle {
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .journey-timeline::before {
    left: 30px;
  }

  .timeline-event {
    width: 100%;
    left: 0 !important;
    padding-left: 70px;
    text-align: left !important;
  }

  .timeline-marker {
    left: 20px !important;
  }
}

/* ===== Premium App Detail Components ===== */

/* Store Buttons */
.store-buttons-container {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn .btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn .btn-text span:first-child {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.store-btn .btn-text span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Tech Badges */
.tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tech-badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-badge i {
  font-size: 0.9rem;
  color: var(--color-accent-cyan);
}

/* QR Code Section */
.qr-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
}

.testimonial-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-info h4 {
  font-size: 0.95rem;
  margin: 0;
}

.author-info p {
  font-size: 0.75rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .qr-section {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Phase 9: Global Authority Styles ===== */

/* Typography Overhaul */
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}


/* ===== Phase 10: Premium Visual Overhaul ===== */

/* Global Premium Enhancements */
:root {
  --glass-bg-heavy: rgba(15, 23, 42, 0.85);
  --glass-border-light: rgba(255, 255, 255, 0.08);
  --neon-glow: 0 0 20px rgba(0, 240, 255, 0.3);
}

body {
  background-color: #050511;
  /* Deeper black-blue */
  background-image:
    radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.1), transparent 25%);
}

/* Premium Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 2.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}

/* Premium Services Cards */
.service-card-pro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  padding: 3rem 2rem;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.service-card-pro::before {
  /* Gradient Border Top */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card-pro h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-list-item {
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.service-list-item:last-child {
  border-bottom: none;
}

.check-icon {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  margin-right: 12px;
}

/* Premium Contact Form & Info Layout */
/* Premium Contact Form & Info Layout */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-content {
    grid-template-columns: 450px 1fr !important;
    /* Increased width for info column */
  }
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-light);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: #00f0ff;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f0ff;
  font-size: 1.5rem;
}

.contact-details h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-details p,
.contact-details a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #00f0ff;
}

.social-links-contact {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #00f0ff;
  color: black;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transform: translateY(-3px);
}

.contact-form-wrapper {
  flex: 1.5;
  /* Form takes more width */
  min-width: 350px;
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border-light);
  border-radius: 20px;
  padding: 2rem;
  /* Reduced padding */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

/* Global Premium Input Styles */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.4) !important;
  /* Force override */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: white !important;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
  box-shadow: none !important;
  /* Reset any default shadows */
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.submit-btn {
  background: linear-gradient(90deg, #00f0ff, #0066ff);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
  width: 100%;
  text-transform: uppercase;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.6);
}

/* Premium Project Cards (Homepage Gateway) */
.project-card-premium {
  background: #0f172a;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.project-card-premium:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.project-thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, #0f172a);
}

.project-details {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 0;
  /* Changed from 1 to 0 to prevent stretching */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-height: 4.8rem !important;
  /* 3 lines * 1.6 line-height */
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #00f0ff;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.visit-btn:hover {
  gap: 15px;
  color: #fff;
}

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.innovation-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(0, 240, 255, 0.1);
  padding: 2.5rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.innovation-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.innovation-card:hover::after {
  opacity: 1;
}

.innovation-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.innovation-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent-cyan);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Global Impact Stats */
.impact-section {
  position: relative;
  overflow: hidden;
}

.impact-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.impact-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.impact-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
}

/* Tech Arsenal Marquee - Fixed & Premium */
.tech-arsenal-wrapper {
  position: relative;
  /* Changed from absolute to flow naturally */
  width: 100%;
  z-index: 20;
  overflow: hidden;
  padding: 1.5rem 0;
  background: rgba(5, 5, 17, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Added bottom border */
}

.tech-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.tech-item {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  color: #00f0ff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Loading Screen Fix with Fallback */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-primary);
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;

  /* CSS Fallback: Auto hide after 3.5s if JS fails */
  opacity: 1;
  visibility: visible;
  animation: hideLoader 0.5s ease-out 3.5s forwards;
  pointer-events: auto;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--color-accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes hideLoader {
  99% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    z-index: -1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Corporate Journey & Competencies (About Page) */
.corporate-journey-header {
  text-align: center;
  margin-bottom: 4rem;
}

.journey-subtitle {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent-cyan);
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent-cyan), var(--color-accent-purple), transparent);
}

.timeline-event {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 3px solid var(--color-accent-cyan);
  z-index: 2;
}

.timeline-card {
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border-light);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateX(10px);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.timeline-year {
  display: inline-block;
  padding: 2px 10px;
  background: var(--gradient-accent);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.competency-card {
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border-light);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
}

.competency-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-accent-cyan);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(0, 240, 255, 0.05));
}

.competency-icon {
  font-size: 2.5rem;
  color: var(--color-accent-cyan);
  margin-bottom: 1.5rem;
  height: 80px;
  width: 80px;
  background: rgba(0, 240, 255, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Apps Hero Section (Premium Redesign) ===== */
.apps-hero {
  position: relative;
  padding: 120px 0 80px;
  background: var(--color-bg-primary);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.glow-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  animation: pulse-glow 8s infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 0 0 50%;
  max-width: 700px;
  padding-top: 2rem;
}

.hero-brand {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--color-accent-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 800px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-left: 4rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent-cyan);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

.cyber-brain {
  width: 100%;
  max-width: 650px;
  height: auto;
  filter: drop-shadow(0 0 50px rgba(0, 240, 255, 0.5));
  animation: float-brain 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  from {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes float-brain {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Neural Network Animation */
.neural-line {
  stroke-dasharray: 100;
  animation: dash 5s linear infinite;
}

@keyframes dash {
  from {
    stroke-dashoffset: 200;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #00f0ff, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 800;
}

.contact-description {
  max-width: 650px;
  margin: 1.5rem auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-card-text {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

/* Contact Page Layout & Components */
.contact-hero-section {
  padding: 140px 0 100px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0a1a 0%, #151535 100%);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.contact-icon-box {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #00f0ff, #667eea);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, #00f0ff, #667eea);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.submit-btn span {
  display: inline-block;
  line-height: 1;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.3);
}

.submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.social-links-container {
  margin-top: 2.5rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-cyan);
  color: white;
  transform: translateY(-3px) rotate(8deg);
}

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem;
    padding: 0 var(--spacing-md);
  }

  .contact-info,
  .contact-form-wrapper {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-form-container {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
    padding: 0 var(--spacing-md);
  }

  .projects-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 var(--spacing-md);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }

  .apps-hero {
    padding: 100px var(--spacing-md) 60px !important;
  }

  .hero-brand {
    font-size: 0.8rem !important;
    letter-spacing: 3px !important;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-left: 0 !important;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
}

/* Compact App Cards UI Overhaul */
.projects-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.project-card-compact {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-compact:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
}

.project-thumb-compact {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-thumb-compact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.project-details-compact {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title-compact {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.project-desc-compact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-badge-compact {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  display: inline-block;
  width: fit-content;
}