/* 
 * Hamidulla Khabibullayev - Professional Portfolio CSS
 * Design: Ultra Modern, Minimal, Premium, Dark Theme
 * Author: Antigravity AI
 */

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

:root {
  /* Color Palette */
  --bg-color: #050816;
  --bg-darker: #02040a;
  --card-bg: rgba(11, 17, 32, 0.55);
  --card-bg-hover: rgba(15, 23, 42, 0.8);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-hover: rgba(59, 130, 246, 0.3);
  
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --accent: #60a5fa;
  --secondary: #a855f7;
  --secondary-rgb: 168, 85, 247;
  --cyan: #06b6d4;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Layout & Animations */
  --nav-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-color);
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

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

input, button, textarea, select {
  font-family: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* Selection */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

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

/* ==========================================================================
   Global Interactive & Decorative Elements
   ========================================================================== */

/* Custom Cursor */
.custom-cursor-dot,
.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
}

.custom-cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background-color: rgba(59, 130, 246, 0.03);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Mouse Glow Background Effect */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
  border-radius: 50%;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* Ambient Background Blobs */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: float-blob 20s infinite alternate ease-in-out;
}

.bg-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -10%;
  left: 10%;
  animation-duration: 25s;
}

.bg-blob-2 {
  width: 600px;
  height: 600px;
  background: var(--secondary);
  bottom: -10%;
  right: 10%;
  animation-duration: 30s;
}

.bg-blob-3 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  top: 40%;
  left: 60%;
  animation-duration: 22s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.1);
  }
  100% {
    transform: translate(-40px, -60px) scale(0.9);
  }
}

/* Tech Dot Grid Overlay */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  font-size: 1rem;
  position: relative;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: var(--transition-fast);
}

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

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

.nav-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid var(--primary);
  color: var(--text-primary);
  padding: 10px 22px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: var(--transition-fast);
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--cyan), var(--secondary));
  width: 0%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-primary);
  border: none;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -5px rgba(59, 130, 246, 0.7);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
  transform: translateY(-3px);
}

.btn-accent {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--primary);
}

.btn-accent:hover {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================================================
   1. Hero Section (index.html)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tagline {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-tagline span {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--accent); }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-title {
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-typing-wrap {
  min-height: 48px; /* prevents layout shifting */
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.typed-cursor {
  color: var(--primary);
  font-weight: 300;
  animation: blink-cursor 0.7s infinite;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* Floating interactive device/avatar mockup */
.hero-orb-interactive {
  width: 320px;
  height: 320px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.4), rgba(168, 85, 247, 0.4));
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.3);
  animation: liquid-shape 12s infinite alternate ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-orb-interactive::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: inherit;
  background: var(--bg-color);
  z-index: 1;
}

.hero-orb-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-orb-content svg {
  width: 100px;
  height: 100px;
  fill: url(#gradient);
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
  animation: float-icon 4s infinite ease-in-out;
}

@keyframes liquid-shape {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  33% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
  66% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes float-icon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.hero-ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: spin-ring 40s linear infinite;
  z-index: 1;
}

.hero-ring-1 {
  width: 420px;
  height: 420px;
}

.hero-ring-2 {
  width: 520px;
  height: 520px;
  border-style: solid;
  border-color: rgba(168, 85, 247, 0.05);
  animation-duration: 60s;
  animation-direction: reverse;
}

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

/* ==========================================================================
   2. Statistics Section
   ========================================================================== */
.stats {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(2, 4, 10, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   3. Skills Section (index.html, about.html summary)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.skill-card {
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
}

.skill-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.skill-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: var(--text-secondary);
  transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-wrap {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.1) rotate(5deg);
}

.skill-card:hover .skill-icon-wrap svg {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

.skill-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   4. Projects Section
   ========================================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

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

.project-image-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 22, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

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

.project-overlay-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.project-overlay-link svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-color);
}

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

.project-card:hover .project-overlay-link:nth-child(2) {
  transition-delay: 0.05s;
}

.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tech-tag {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(96, 165, 250, 0.08);
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 600;
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.project-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.project-link:hover {
  color: var(--text-white);
}

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

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

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
}

.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-color);
  border: 4px solid var(--primary);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
  transform: scale(1.15);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.timeline-company {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.05);
}

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

/* ==========================================================================
   6. Certificates Section (projects.html / standalone)
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

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

.cert-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition-smooth);
}

.cert-card:hover .cert-image {
  transform: scale(1.03);
}

.cert-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cert-org {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.cert-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-verify-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cert-verify-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   7. Testimonials Section
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
}

.quote-icon {
  width: 40px;
  height: 40px;
  fill: rgba(59, 130, 246, 0.2);
  margin-bottom: 20px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--bg-darker);
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. Contact Section (contact.html / index.html)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-item-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-item-text a:hover {
  color: var(--primary);
}

/* Form Styles */
.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: rgba(5, 8, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
  background: rgba(5, 8, 22, 0.8);
}

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

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

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

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

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

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

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

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: var(--transition-smooth);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.scroll-top-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transform: rotate(-90deg);
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.9);
  animation: logo-fade-in 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes logo-fade-in {
  to { opacity: 1; transform: scale(1); }
}

.loader-bar {
  width: 150px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 10px;
  animation: progress-fill 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes progress-fill {
  to { width: 100%; }
}

/* ==========================================================================
   Intersection Observer Animations (Fade-in & Reveal)
   ========================================================================== */
.reveal {
  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);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-desc {
    margin: 0 auto 40px;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 8, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 45px;
  }
  
  .timeline-dot {
    left: 4px;
    top: 8px;
    width: 20px;
    height: 20px;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  /* Disable Custom Cursor on Touch Devices */
  .custom-cursor-dot,
  .custom-cursor-outline {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .project-filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
