/**
* Modern Portfolio Template
* Updated with modern design principles and enhanced UX
* Author: Walugembe Expedicto
*/

/*--------------------------------------------------------------
# CSS Variables & Root Styles
--------------------------------------------------------------*/
:root {
  /* Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --danger-color: #ef4444;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-hero: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

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

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

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

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

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

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

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary, .btn-secondary, .btn-download, .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-download {
  background: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-download:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-contact {
  background: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-contact:hover {
  background: var(--gray-700);
  color: var(--white);
  border-color: var(--gray-700);
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Section Styles
--------------------------------------------------------------*/
section {
  padding: var(--space-20) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-full);
}

.section-title p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
  box-shadow: var(--shadow-2xl);
  z-index: 9997;
  transition: var(--transition-normal);
  border-right: 1px solid var(--gray-200);
}

#navbar {
  padding: var(--space-12) 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#navbar ul li {
  margin-bottom: var(--space-3);
}

#navbar .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  color: var(--gray-600);
  font-weight: 500;
  font-size: var(--text-base);
  transition: var(--transition-normal);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  margin-right: var(--space-4);
  position: relative;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
  color: var(--primary-color);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.15));
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

#navbar .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: var(--transition-normal);
}

#navbar .nav-link:hover::before,
#navbar .nav-link.active::before {
  height: 70%;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition-normal);
}

#navbar .nav-link:hover::after,
#navbar .nav-link.active::after {
  opacity: 1;
}

#navbar .nav-link i {
  font-size: var(--text-xl);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

#navbar .nav-link:hover i,
#navbar .nav-link.active i {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

#navbar .nav-link span {
  font-weight: 600;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 9998;
  border: 0;
  background: var(--white);
  color: var(--primary-color);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  cursor: pointer;
  font-size: var(--text-xl);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  border: 2px solid rgba(99, 102, 241, 0.1);
}

.mobile-nav-toggle:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

.mobile-nav-toggle:active {
  transform: scale(0.95);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  margin-left: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s ease-in-out infinite;
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-6);
}

.badge-text {
  color: var(--secondary-color);
  font-size: var(--text-sm);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-greeting {
  display: block;
  font-size: var(--text-xl);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2);
}

.hero-name {
  display: block;
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  margin-bottom: var(--space-6);
}

.hero-subtitle p {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  font-weight: 400;
}

.hero-subtitle .typed {
  color: var(--secondary-color);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
  margin-bottom: var(--space-8);
}

.hero-description p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: var(--text-lg);
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
  padding: var(--space-2);
  pointer-events: all;
}

.scroll-down:hover {
  color: var(--white);
  transform: translateY(-3px);
}

.scroll-text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.scroll-down:hover .scroll-text {
  opacity: 1;
}

.scroll-icon {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.scroll-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: var(--transition-fast);
}

.scroll-down:hover .scroll-icon {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.scroll-down:hover .scroll-icon::before {
  opacity: 1;
}

.scroll-icon i {
  font-size: var(--text-xl);
  color: inherit;
  position: relative;
  z-index: 2;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { 
    transform: translateY(0); 
  }
  40% { 
    transform: translateY(-8px); 
  }
  60% { 
    transform: translateY(-4px); 
  }
}

/*--------------------------------------------------------------
# Main Content
--------------------------------------------------------------*/
#main {
  margin-left: 280px;
}

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

.about-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition-slow);
}

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

.about-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.about-image:hover .about-image-overlay {
  opacity: 1;
}

.about-badge {
  background: var(--white);
  color: var(--primary-color);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.about-content {
  padding-left: var(--space-8);
}

.about-subtitle {
  color: var(--primary-color);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.about-description {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.about-stats {
  margin-bottom: var(--space-8);
}

.about-info-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
  transition: var(--transition-fast);
  border: 1px solid var(--gray-200);
}

.about-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-lg);
}

.info-content h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: var(--space-1);
}

.info-content p {
  font-size: var(--text-base);
  color: var(--gray-900);
  margin-bottom: 0;
  font-weight: 500;
}

.about-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/*--------------------------------------------------------------
# Facts Section
--------------------------------------------------------------*/
#facts {
  background: var(--bg-primary);
}

.count-box {
  text-align: center;
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.count-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.count-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.count-box i {
  font-size: var(--text-4xl);
  color: var(--primary-color);
  margin-bottom: var(--space-4);
}

.count-box .purecounter {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--gray-900);
  display: block;
  margin-bottom: var(--space-2);
}

.count-box p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
#skills {
  background: var(--bg-secondary);
}

/* Skills Categories */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.skill-category {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(99, 102, 241, 0.2);
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.category-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-4xl);
  margin: 0 auto var(--space-4) auto;
  box-shadow: var(--shadow-lg);
}

.category-header h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.category-header p {
  color: var(--gray-600);
  font-size: var(--text-base);
  margin-bottom: 0;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

.skill-item:hover {
  background: var(--white);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.skill-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.skill-details h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.skill-level {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-level.expert {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.skill-level.advanced {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.skill-level.intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Circular Progress */
.skill-progress {
  flex-shrink: 0;
}

.progress-circle {
  position: relative;
  width: 60px;
  height: 60px;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 2;
}

.circle {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  animation: progressAnimation 2s ease-in-out;
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary-color);
}

@keyframes progressAnimation {
  0% {
    stroke-dasharray: 0, 100;
  }
}

/* Skills Summary */
.skills-summary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  border: 1px solid rgba(99, 102, 241, 0.1);
  text-align: center;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
}

.skills-summary .stat-item {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

.skills-summary .stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skills-summary .stat-item h3 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-summary .stat-item p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: 0;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991px) {
  .skills-categories {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .skill-category {
    padding: var(--space-6);
  }
  
  .category-icon {
    width: 60px;
    height: 60px;
    font-size: var(--text-3xl);
  }
  
  .skill-item {
    padding: var(--space-3);
  }
  
  .skill-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-xl);
  }
  
  .progress-circle {
    width: 50px;
    height: 50px;
  }
  
  .skills-summary {
    padding: var(--space-8);
  }
  
  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
#services {
  background: var(--bg-primary);
}

.icon-box {
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  text-align: center;
  border: 1px solid var(--gray-200);
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.icon-box:hover::before {
  transform: scaleX(1);
}

.icon-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(99, 102, 241, 0.08));
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
}

.icon-box:hover::after {
  opacity: 1;
}

.icon-box:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(99, 102, 241, 0.2);
}

.icon-box .icon {
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 2;
}

.icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  opacity: 0.1;
  transition: var(--transition-normal);
}

.icon-box:hover .icon svg {
  opacity: 0.15;
  transform: translateX(-50%) scale(1.1);
}

.icon-box .icon i {
  font-size: var(--text-4xl);
  color: var(--primary-color);
  position: relative;
  z-index: 3;
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
  margin: 0 auto;
}

.icon-box:hover .icon i {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.icon-box h4 {
  font-weight: 700;
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
}

.icon-box h4 a {
  color: var(--gray-900);
  transition: var(--transition-fast);
}

.icon-box:hover h4 a {
  color: var(--primary-color);
}

.icon-box p {
  line-height: 1.7;
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
}

.icon-box:hover p {
  color: var(--gray-700);
}

/* Service Card Hover Effects */
.icon-box.iconbox-blue:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.icon-box.iconbox-orange:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.icon-box.iconbox-pink:hover {
  border-color: rgba(236, 72, 153, 0.3);
}

.icon-box.iconbox-yellow:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.icon-box.iconbox-red:hover {
  border-color: rgba(239, 68, 68, 0.3);
}

.icon-box.iconbox-teal:hover {
  border-color: rgba(20, 184, 166, 0.3);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
#resume {
  background: var(--bg-secondary);
  position: relative;
}

/* Resume Summary Card */
.resume-summary {
  margin-bottom: var(--space-16);
}

.summary-card {
  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-2xl);
  border: 2px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

.summary-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.summary-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-4xl);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.summary-info h3 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.summary-title {
  font-size: var(--text-lg);
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0;
}

.summary-content p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: var(--space-6);
}

.summary-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-600);
  font-weight: 500;
}

.contact-item i {
  color: var(--primary-color);
  font-size: var(--text-lg);
}

/* Resume Sections */
.resume-content {
  margin-bottom: var(--space-16);
}

.resume-section {
  margin-bottom: var(--space-12);
}

.resume-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-8);
  position: relative;
}

.resume-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), transparent);
  margin-left: var(--space-4);
}

.resume-section-title i {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: var(--text-xl);
}

/* Timeline Design */
.timeline {
  position: relative;
  padding-left: var(--space-6);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

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

.timeline-marker {
  position: absolute;
  left: -23px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-marker.current {
  background: var(--primary-color);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.2);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  gap: var(--space-4);
}

.timeline-header h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0;
  flex: 1;
}

.timeline-date {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.timeline-date.current {
  background: var(--primary-color);
  color: var(--white);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
  100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.6); }
}

.timeline-institution {
  color: var(--gray-500);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.timeline-description {
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.timeline-achievements {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.timeline-achievements li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.timeline-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

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

/* Skills and Competencies */
.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.skill-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.competency-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

.competency-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.competency-item i {
  font-size: var(--text-xl);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.competency-item span {
  font-weight: 600;
  color: var(--gray-700);
  font-size: var(--text-sm);
}

/* Download Resume Section */
.resume-download {
  margin-top: var(--space-16);
}

.download-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: downloadGlow 4s ease-in-out infinite alternate;
}

@keyframes downloadGlow {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(180deg) scale(1.1); }
}

.download-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.download-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.download-content h4 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--white);
}

.download-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-size: var(--text-base);
}

.btn-download-resume {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: var(--text-base);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.btn-download-resume:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .summary-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .summary-contact {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .timeline {
    padding-left: var(--space-4);
  }
  
  .timeline::before {
    left: 8px;
  }
  
  .timeline-marker {
    left: -16px;
    width: 12px;
    height: 12px;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .competencies-grid {
    grid-template-columns: 1fr;
  }
  
  .download-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
#portfolio {
  background: var(--bg-secondary);
}

/* Portfolio Filters */
.portfolio-filters-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-12);
}

#portfolio-flters {
  padding: 0;
  margin: 0;
  list-style: none;
  display: inline-flex;
  gap: var(--space-2);
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

#portfolio-flters li {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition-normal);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

#portfolio-flters li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transition: var(--transition-normal);
  z-index: -1;
}

#portfolio-flters li:hover::before,
#portfolio-flters li.filter-active::before {
  left: 0;
}

#portfolio-flters li:hover,
#portfolio-flters li.filter-active {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#portfolio-flters li i {
  font-size: var(--text-lg);
  transition: var(--transition-fast);
}

#portfolio-flters li:hover i,
#portfolio-flters li.filter-active i {
  transform: scale(1.1);
}

/* Portfolio Items */
.portfolio-item {
  margin-bottom: var(--space-8);
}

.featured-item .portfolio-wrap {
  box-shadow: var(--shadow-2xl);
  border: 2px solid rgba(99, 102, 241, 0.1);
}

.portfolio-wrap {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-wrap:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(99, 102, 241, 0.2);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-4);
}

.portfolio-wrap:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-badge {
  background: var(--secondary-color);
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  color: var(--primary-color);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.portfolio-content h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.portfolio-content p {
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tech-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.portfolio-links {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.portfolio-link,
.portfolio-lightbox {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: var(--text-lg);
  text-decoration: none;
}

.portfolio-link:hover,
.portfolio-lightbox:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.portfolio-link {
  background: var(--secondary-color);
}

.portfolio-link:hover {
  background: #d97706;
}

/* Portfolio CTA */
.portfolio-cta {
  text-align: center;
  margin-top: var(--space-16);
  padding: var(--space-12);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.portfolio-cta p {
  font-size: var(--text-xl);
  color: var(--gray-700);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

.btn-portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: var(--text-base);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.btn-portfolio-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.btn-portfolio-cta:hover::before {
  left: 100%;
}

.btn-portfolio-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

/* Featured Items */
.featured-item .portfolio-content {
  padding: var(--space-8);
}

.featured-item .portfolio-content h4 {
  font-size: var(--text-2xl);
}

.featured-item .portfolio-content p {
  font-size: var(--text-base);
}

/* Responsive Design */
@media (max-width: 768px) {
  #portfolio-flters {
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
  }
  
  #portfolio-flters li {
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }
  
  .portfolio-image {
    height: 200px;
  }
  
  .portfolio-content {
    padding: var(--space-4);
  }
  
  .featured-item .portfolio-content {
    padding: var(--space-6);
  }
  
  .portfolio-cta {
    padding: var(--space-8);
  }
  
  .portfolio-cta p {
    font-size: var(--text-lg);
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
#testimonials {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.testimonials-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.testimonials-grid {
  position: relative;
  z-index: 2;
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* Featured Testimonial */
.testimonial-featured {
  grid-column: 1 / -1;
}

.testimonial-card.featured {
  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  padding: var(--space-10);
  border: 2px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

.testimonial-card.featured::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  animation: testimonialGlow 6s ease-in-out infinite alternate;
}

@keyframes testimonialGlow {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(180deg) scale(1.2); }
}

/* Regular Testimonials Grid */
.testimonials-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(99, 102, 241, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.testimonial-card.featured .testimonial-header {
  margin-bottom: var(--space-6);
}

.testimonial-avatar {
  position: relative;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  transition: var(--transition-fast);
}

.testimonial-card.featured .testimonial-avatar img {
  width: 80px;
  height: 80px;
  border-width: 4px;
}

.avatar-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.testimonial-author h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.testimonial-card.featured .testimonial-author h3 {
  font-size: var(--text-xl);
}

.testimonial-author h4 {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.rating {
  display: flex;
  gap: var(--space-1);
}

.rating i {
  color: var(--secondary-color);
  font-size: var(--text-sm);
}

.rating .bx-star {
  color: var(--gray-300);
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  font-size: var(--text-4xl);
  color: var(--primary-color);
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.testimonial-content p {
  color: var(--gray-700);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  flex: 1;
}

.testimonial-card.featured .testimonial-content p {
  font-size: var(--text-lg);
  font-style: italic;
}

.testimonial-project {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.project-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Testimonials Stats */
.testimonials-stats {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--space-4);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.stat-content h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.stat-content p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: 0;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid-items {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .testimonials-grid-items {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: var(--space-5);
  }
  
  .testimonial-card.featured {
    padding: var(--space-8);
  }
  
  .testimonials-stats {
    padding: var(--space-6);
  }
  
  .stat-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.contact-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  z-index: 1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-16);
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-intro {
  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.contact-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.contact-intro h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.contact-intro p {
  color: var(--gray-600);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.method-content h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.method-content p {
  font-size: var(--text-base);
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.method-note {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-style: italic;
}

.method-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: var(--transition-fast);
}

.method-link:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* Quick Links */
.contact-quick-links {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.contact-quick-links h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.quick-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition-fast);
  font-weight: 500;
  font-size: var(--text-sm);
}

.quick-link.linkedin {
  background: rgba(0, 119, 181, 0.1);
  color: #0077b5;
}

.quick-link.linkedin:hover {
  background: #0077b5;
  color: var(--white);
}

.quick-link.github {
  background: rgba(51, 51, 51, 0.1);
  color: #333;
}

.quick-link.github:hover {
  background: #333;
  color: var(--white);
}

.quick-link.twitter {
  background: rgba(29, 161, 242, 0.1);
  color: #1da1f2;
}

.quick-link.twitter:hover {
  background: #1da1f2;
  color: var(--white);
}

/* Contact Form */
.contact-form-wrapper {
  position: relative;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: relative;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

.form-header {
  padding: var(--space-8) var(--space-8) 0 var(--space-8);
  text-align: center;
}

.form-header h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.form-header p {
  color: var(--gray-600);
  font-size: var(--text-base);
  margin-bottom: 0;
}

.contact-form {
  padding: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-control {
  width: 100%;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: var(--transition-fast);
  background: var(--bg-secondary);
  color: var(--gray-700);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--white);
}

.form-control::placeholder {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-primary);
}

.form-submit {
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: 0;
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  z-index: 2;
}

.cta-content h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.btn-cta-primary {
  background: linear-gradient(135deg, #25d366, #20c157);
  color: var(--white);
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-cta-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-cta-secondary:hover {
  background: var(--gray-700);
  color: var(--white);
  border-color: var(--gray-700);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 991px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .contact-intro,
  .contact-form-card {
    padding: var(--space-6);
  }
  
  .contact-method {
    padding: var(--space-4);
  }
  
  .method-icon {
    width: 45px;
    height: 45px;
    font-size: var(--text-lg);
  }
  
  .quick-links {
    justify-content: center;
  }
  
  .contact-cta {
    padding: var(--space-8);
  }
  
  .cta-content h3 {
    font-size: var(--text-2xl);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, #0f172a 100%);
  color: var(--gray-300);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-20) 0 var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

#footer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  animation: footerGlow 8s ease-in-out infinite alternate;
}

@keyframes footerGlow {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(180deg) scale(1.1); }
}

.footer-content {
  position: relative;
  z-index: 3;
}

/* Footer Particles Animation */
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  animation: floatParticles 15s infinite linear;
}

.particle:nth-child(1) {
  left: 5%;
  width: 4px;
  height: 4px;
  animation-delay: 0s;
  animation-duration: 20s;
}

.particle:nth-child(2) {
  left: 15%;
  width: 6px;
  height: 6px;
  animation-delay: 2s;
  animation-duration: 18s;
}

.particle:nth-child(3) {
  left: 25%;
  width: 3px;
  height: 3px;
  animation-delay: 4s;
  animation-duration: 22s;
}

.particle:nth-child(4) {
  left: 35%;
  width: 5px;
  height: 5px;
  animation-delay: 1s;
  animation-duration: 19s;
}

.particle:nth-child(5) {
  left: 45%;
  width: 4px;
  height: 4px;
  animation-delay: 6s;
  animation-duration: 16s;
}

.particle:nth-child(6) {
  left: 55%;
  width: 7px;
  height: 7px;
  animation-delay: 3s;
  animation-duration: 21s;
}

.particle:nth-child(7) {
  left: 65%;
  width: 3px;
  height: 3px;
  animation-delay: 8s;
  animation-duration: 17s;
}

.particle:nth-child(8) {
  left: 75%;
  width: 5px;
  height: 5px;
  animation-delay: 5s;
  animation-duration: 23s;
}

.particle:nth-child(9) {
  left: 85%;
  width: 4px;
  height: 4px;
  animation-delay: 7s;
  animation-duration: 15s;
}

.particle:nth-child(10) {
  left: 95%;
  width: 6px;
  height: 6px;
  animation-delay: 9s;
  animation-duration: 24s;
}

.particle:nth-child(11) {
  left: 10%;
  width: 3px;
  height: 3px;
  animation-delay: 11s;
  animation-duration: 18s;
  background: rgba(245, 158, 11, 0.5);
}

.particle:nth-child(12) {
  left: 30%;
  width: 5px;
  height: 5px;
  animation-delay: 13s;
  animation-duration: 20s;
  background: rgba(245, 158, 11, 0.5);
}

.particle:nth-child(13) {
  left: 50%;
  width: 4px;
  height: 4px;
  animation-delay: 15s;
  animation-duration: 16s;
  background: rgba(245, 158, 11, 0.5);
}

.particle:nth-child(14) {
  left: 70%;
  width: 6px;
  height: 6px;
  animation-delay: 12s;
  animation-duration: 22s;
  background: rgba(245, 158, 11, 0.5);
}

.particle:nth-child(15) {
  left: 90%;
  width: 3px;
  height: 3px;
  animation-delay: 14s;
  animation-duration: 19s;
  background: rgba(245, 158, 11, 0.5);
}

.particle:nth-child(16) {
  left: 20%;
  width: 2px;
  height: 2px;
  animation-delay: 16s;
  animation-duration: 25s;
  background: rgba(16, 185, 129, 0.4);
}

.particle:nth-child(17) {
  left: 40%;
  width: 4px;
  height: 4px;
  animation-delay: 18s;
  animation-duration: 17s;
  background: rgba(16, 185, 129, 0.4);
}

.particle:nth-child(18) {
  left: 60%;
  width: 3px;
  height: 3px;
  animation-delay: 20s;
  animation-duration: 21s;
  background: rgba(16, 185, 129, 0.4);
}

.particle:nth-child(19) {
  left: 80%;
  width: 5px;
  height: 5px;
  animation-delay: 22s;
  animation-duration: 18s;
  background: rgba(16, 185, 129, 0.4);
}

.particle:nth-child(20) {
  left: 12%;
  width: 4px;
  height: 4px;
  animation-delay: 24s;
  animation-duration: 23s;
  background: rgba(16, 185, 129, 0.4);
}

@keyframes floatParticles {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Footer Stars Animation */
.footer-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.star {
  position: absolute;
  background: var(--white);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle 3s ease-in-out infinite alternate;
}

.star:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 8px;
  height: 8px;
  animation-delay: 0s;
}

.star:nth-child(2) {
  top: 30%;
  left: 80%;
  width: 6px;
  height: 6px;
  animation-delay: 1s;
}

.star:nth-child(3) {
  top: 60%;
  left: 20%;
  width: 10px;
  height: 10px;
  animation-delay: 2s;
}

.star:nth-child(4) {
  top: 40%;
  left: 90%;
  width: 7px;
  height: 7px;
  animation-delay: 0.5s;
}

.star:nth-child(5) {
  top: 70%;
  left: 70%;
  width: 5px;
  height: 5px;
  animation-delay: 1.5s;
}

.star:nth-child(6) {
  top: 15%;
  left: 50%;
  width: 9px;
  height: 9px;
  animation-delay: 2.5s;
}

.star:nth-child(7) {
  top: 80%;
  left: 30%;
  width: 6px;
  height: 6px;
  animation-delay: 3s;
}

.star:nth-child(8) {
  top: 25%;
  left: 60%;
  width: 8px;
  height: 8px;
  animation-delay: 0.8s;
}

.star:nth-child(9) {
  top: 55%;
  left: 5%;
  width: 7px;
  height: 7px;
  animation-delay: 1.8s;
}

.star:nth-child(10) {
  top: 35%;
  left: 40%;
  width: 5px;
  height: 5px;
  animation-delay: 2.2s;
}

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

#footer h3 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

#footer p {
  color: var(--gray-400);
  margin-bottom: var(--space-10);
  font-size: var(--text-base);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

#footer .social-links {
  margin-bottom: var(--space-12);
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

#footer .social-links a {
  font-size: var(--text-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-300);
  line-height: 1;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

#footer .social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

#footer .social-links a:hover::before {
  left: 100%;
}

#footer .social-links a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  border-color: var(--primary-color);
}

#footer .social-links a.twitter:hover {
  background: #1da1f2;
  box-shadow: 0 10px 25px rgba(29, 161, 242, 0.3);
}

#footer .social-links a.linkedin:hover {
  background: #0077b5;
  box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

#footer .social-links a.github:hover {
  background: #333;
  box-shadow: 0 10px 25px rgba(51, 51, 51, 0.3);
}

#footer .social-links a.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.3);
}

#footer .social-links a.whatsapp:hover {
  background: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

#footer .social-links a.facebook:hover {
  background: #1877f2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  margin: 0 auto var(--space-8) auto;
  border-radius: var(--radius-full);
}

#footer .copyright {
  margin-bottom: var(--space-4);
  color: var(--gray-400);
  font-size: var(--text-sm);
  position: relative;
  z-index: 2;
}

#footer .copyright strong {
  color: var(--primary-color);
  font-weight: 600;
}

#footer .credits {
  color: var(--gray-500);
  font-size: var(--text-xs);
  position: relative;
  z-index: 2;
}

#footer .credits a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

#footer .credits a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Footer responsive design */
@media (max-width: 768px) {
  #footer {
    padding: var(--space-16) 0 var(--space-6) 0;
  }
  
  #footer h3 {
    font-size: var(--text-3xl);
  }
  
  #footer .social-links {
    gap: var(--space-3);
  }
  
  #footer .social-links a {
    width: 50px;
    height: 50px;
    font-size: var(--text-base);
  }
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 996;
  background: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

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

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-300);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: animate-preloader 1s linear infinite;
}

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

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  #header {
    left: -280px;
  }
  
  #hero,
  #main {
    margin-left: 0;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 991px) {
  .hero-name {
    font-size: var(--text-5xl);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .about-content {
    padding-left: 0;
    margin-top: var(--space-8);
  }
  
  .about-cta {
  justify-content: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-16) 0;
  }
  
  .section-title h2 {
    font-size: var(--text-3xl);
  }
  
  #hero {
    padding: var(--space-8) 0;
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 0 var(--space-4);
  }
  
  .hero-name {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle p {
    font-size: var(--text-lg);
  }
  
  .hero-description p {
    font-size: var(--text-base);
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .social-links {
    gap: var(--space-2);
  }
  
  .social-link {
    width: 45px;
    height: 45px;
  }
  
  .count-box,
  .icon-box,
  .testimonial-item {
    padding: var(--space-6);
  }
  
  .twitter-container {
    padding: var(--space-6);
  }
  
  form {
    padding: var(--space-6);
  }
  
  .info {
    padding: var(--space-6);
    margin-bottom: var(--space-6);
  }
}

/*--------------------------------------------------------------
# Skills Carousel Styles
--------------------------------------------------------------*/
.skills-carousel-wrapper {
  position: relative;
  padding: 0 80px 40px 80px;
}

.skillsSwiper {
  overflow: hidden;
}

.skillsSwiper .swiper-slide {
  height: auto;
}

.skills-next,
.skills-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.skills-next:hover,
.skills-prev:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.skills-next {
  right: 20px;
}

.skills-prev {
  left: 20px;
}

.skills-next::after,
.skills-prev::after {
  font-family: 'boxicons';
  font-size: 20px;
}

.skills-next::after {
  content: '\ea50';
}

.skills-prev::after {
  content: '\ea4f';
}

@media (max-width: 768px) {
  .skills-carousel-wrapper {
    padding: 0 60px 30px 60px;
  }
  
  .skills-next,
  .skills-prev {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .skills-next {
    right: 10px;
  }
  
  .skills-prev {
    left: 10px;
  }
}

@media (max-width: 576px) {
  .hero-greeting {
    font-size: var(--text-lg);
  }
  
  .hero-name {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle p {
    font-size: var(--text-base);
  }
  
  .about-info-card {
    padding: var(--space-3);
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
  }
  
  #portfolio-flters {
    flex-direction: column;
    gap: var(--space-1);
  }
  
  .twitter-container {
    padding: var(--space-4);
  }
}

/*--------------------------------------------------------------
# Mobile Navigation Active
--------------------------------------------------------------*/
.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}