/* ==========================================================================
   Design System & Stylesheet for K. Ravi Teja Portfolio
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-darker: #060911;
  --bg-primary: #0A0F1D;
  --bg-secondary: #121829;
  --bg-card: rgba(18, 24, 41, 0.5);
  --bg-glow: rgba(99, 102, 241, 0.15);
  
  --primary: #6366f1; /* Indigo */
  --primary-rgb: 99, 102, 241;
  --secondary: #a855f7; /* Purple */
  --accent: #14b8a6; /* Teal */
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(99, 102, 241, 0.05);
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Sora', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* Background Glow Elements */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-glow) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.glow-1 { top: -100px; right: -100px; }
.glow-2 { top: 60%; left: -200px; background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0) 70%); }
.glow-3 { bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0) 70%); }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

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

ul {
  list-style: none;
}

button, input, textarea, select {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  outline: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-title-wrap {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover {
  border-color: rgba(255, 42, 95, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 42, 95, 0.03);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, #FF2A5F 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 42, 95, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #FF2A5F 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 42, 95, 0.4);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.btn-icon {
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 50%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 42, 95, 0.08);
  border: 1px solid rgba(255, 42, 95, 0.2);
  color: #FF2A5F;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Header / Sticky Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.header.sticky {
  height: 70px;
  background: rgba(6, 9, 17, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Mobile Sidebar Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 101;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  transition: var(--transition-normal);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.mobile-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(6, 9, 17, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-pretitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #FF2A5F; /* Neon crimson red */
  letter-spacing: 0.35em;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: block;
  font-family: var(--font-heading);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title-first {
  display: inline-block;
}

@media (min-width: 1025px) {
  .hero-title-first {
    white-space: nowrap;
  }
}

.text-rotator {
  color: #FF2A5F; /* Matching neon crimson red */
  font-weight: 800;
}

.text-brand {
  color: #FF2A5F;
  font-weight: 700;
}

.typed-cursor {
  color: #ffffff;
  font-weight: 200;
  margin-left: 2px;
  animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-container {
  width: 85%;
  aspect-ratio: 1;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

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

.hero-badge-overlay {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: rgba(18, 24, 41, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-badge-overlay i {
  font-size: 2rem;
  color: var(--accent);
}

.hero-badge-overlay span {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-badge-overlay p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.05);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(5deg) scale(1.05);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Specialized Solutions sub-section */
.sub-section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-top: 5.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-heading);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.solution-item:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(20, 184, 166, 0.05);
}

.solution-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

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

.solution-item:hover .solution-image-wrap img {
  transform: scale(1.04);
}

.solution-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  padding: 0 1.5rem;
  font-family: var(--font-heading);
}

.solution-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ==========================================================================
   Projects / Portfolio
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

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

.project-card:hover .project-image-wrap img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.project-card:hover .project-overlay-content {
  transform: translateY(0);
}

.project-overlay-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.project-details-wrap {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.project-details-wrap h3 {
  font-size: 1.4rem;
}

.project-link-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto;
}

/* ==========================================================================
   Experience / Timeline
   ========================================================================== */
.timeline-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 5.5rem;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 4px solid var(--primary);
  z-index: 2;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  transition: var(--transition-fast);
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.timeline-item:hover .timeline-dot {
  background: var(--secondary);
  border-color: var(--text-primary);
  transform: scale(1.2);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.timeline-item h3 {
  font-size: 1.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-detail-info h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-detail-info p {
  font-weight: 600;
  font-size: 1.05rem;
}

.social-links-wrap {
  margin-top: 1rem;
}

.social-links-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-input-wrap label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.form-control {
  background: rgba(18, 24, 41, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(18, 24, 41, 0.7);
}

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

.form-status {
  padding: 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  background: var(--bg-darker);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

.footer-logo span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

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

.footer-link:hover {
  color: var(--text-primary);
}

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

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Custom cursor tracker (optional) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
}

@media (pointer: fine) {
  .cursor-glow {
    display: block;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .services-grid, .solutions-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .header-container {
    position: relative;
    justify-content: center;
  }
  .header-container .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header-actions {
    position: absolute;
    right: 1.5rem;
  }
  .project-overlay {
    display: none !important;
  }
  .section {
    padding: 4.5rem 0;
  }
  .hero {
    padding-top: calc(var(--header-height) + 1.5rem);
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-visual {
    order: -1;
  }
  .visual-container {
    width: 60%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid, .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .service-card {
    padding: 1.25rem;
  }
  .service-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .service-card p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .project-card .project-details-wrap {
    padding: 1rem;
  }
  .project-card h3 {
    font-size: 0.95rem;
  }
  .solution-item {
    padding: 0;
  }
  .solution-image-wrap {
    margin-bottom: 1rem;
  }
  .solution-item h4 {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  .solution-item p {
    font-size: 0.75rem;
    padding: 0 1rem 1rem 1rem;
    line-height: 1.5;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .nav-menu, .header-actions .btn {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .timeline-wrap::before {
    left: 15px;
  }
  .timeline-dot {
    left: 4px;
  }
  .timeline-item {
    padding-left: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .visual-container {
    width: 80%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==========================================================================
   Modal Popup Styles
   ========================================================================== */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  z-index: 10001;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Custom scrollbar for modal container */
.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
  .modal-container {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }
  .modal-header h3 {
    font-size: 1.5rem;
  }
}
