/* ========================================
   STUNNING DARK THEME PORTFOLIO
   ======================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dark Theme Variables */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --dark-bg: #0f0f23;
  --dark-surface: #1a1a2e;
  --dark-surface-light: #16213e;
  --dark-border: #2d3748;
  
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(15, 15, 35, 0.95);
  box-shadow: var(--shadow-lg);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

/* Modern Mobile Menu Toggle - Minimalist Dots to Lines */
.nav-toggle-btn { 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  z-index: 1001;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-toggle-btn:active {
  transform: translateY(0);
}

/* Three Dots Icon */
.hamburger {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.hamburger-line {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}

.hamburger-line:nth-child(1) {
  transition-delay: 0.1s;
}

.hamburger-line:nth-child(2) {
  transition-delay: 0.2s;
}

.hamburger-line:nth-child(3) {
  transition-delay: 0.3s;
}

/* Active state - Three Lines */
.nav-toggle-btn.active .hamburger-line {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1px;
  margin: 0;
}

.nav-toggle-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(-6px) rotate(45deg);
  transform-origin: center;
}

.nav-toggle-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(6px) rotate(-45deg);
  transform-origin: center;
}

.nav-toggle-btn.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.nav-toggle-btn.active:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.navbar-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.navbar-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.navbar-list {
  list-style: none;
  text-align: center;
}

.navbar-link {
  display: block;
  padding: 1rem 0;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  transition: var(--transition);
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-toggle-btn {
    display: none;
  }
  
  .navbar-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    backdrop-filter: none;
  }
  
  .navbar-list {
    display: flex;
    gap: 2rem;
  }
  
  .navbar-link {
    padding: 0.5rem 0;
    font-size: 1rem;
  }
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  padding-top: 80px; /* Account for fixed header */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 85vh;
  padding: 1.5rem 0;
}

.hero-text-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-greeting {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.greeting-text {
  display: inline-block;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.name-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.title-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--primary);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.typing-text {
  display: inline-block;
  border-right: 2px solid var(--primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { border-color: var(--primary); }
  51%, 100% { border-color: transparent; }
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
    line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 1s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

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

.social-link ion-icon {
  font-size: 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s ease 1.2s both;
}

.hero-image-container {
  position: relative;
  max-width: 280px;
}

.image-wrapper {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(99, 102, 241, 0.3);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

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

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  animation: floatElement 6s ease-in-out infinite;
}

.floating-element ion-icon {
  font-size: 1.25rem;
}

.element-1 {
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.element-2 {
  top: 60%;
  right: -15%;
  animation-delay: 2s;
}

.element-3 {
  bottom: 30%;
  left: -5%;
  animation-delay: 4s;
}

.element-4 {
  top: 10%;
  right: -20%;
  animation-delay: 1s;
}

@keyframes floatElement {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  text-align: left;
  }
  
  .hero-text-content {
    text-align: left;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .hero-social {
    justify-content: flex-start;
  }
}

/* Portfolio CTA */
.portfolio-cta {
  margin-top: 2rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::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);
}

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

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

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-cv {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: 2px solid rgba(79, 70, 229, 0.3);
  color: white;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
}

.btn-cv:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.6);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Styles */
.section {
  padding: 3rem 0;
  position: relative;
  scroll-margin-top: 80px; /* Account for fixed header when scrolling */
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-description {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

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

.about-text {
  text-align: center;
}

.about-description {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

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

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.highlight-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.highlight-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-image-container {
  position: relative;
  max-width: 400px;
}

.image-wrapper {
    position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(99, 102, 241, 0.2);
}

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

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

.image-overlay {
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

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

.tech-badges {
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.tech-badge {
    position: absolute;
  display: flex;
    align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  animation: floatElement 6s ease-in-out infinite;
}

.tech-badge img {
  width: 24px;
  height: 24px;
    object-fit: contain;
  }

.badge-python {
  top: 20%;
  left: -15%;
  animation-delay: 0s;
}

.badge-tensorflow {
  top: 60%;
  right: -20%;
  animation-delay: 2s;
}

.badge-scikit {
  bottom: 20%;
  left: -10%;
  animation-delay: 4s;
}

/* Tech Stack Section */
.tech-stack {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
    position: relative;
  overflow: hidden;
}

.tech-stack::before {
  content: '';
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.tech-stack-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.tech-stack-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s ease;
}

.tech-tag:hover::before {
  left: 100%;
}

.tech-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  color: var(--primary);
}

.about-cta {
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .about-text {
    text-align: left;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--dark-surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--dark-border);
    position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.portfolio-card:hover .card-img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.overlay-content {
  text-align: center;
  color: white;
}

.tech-stack {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.card-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 140px;
  justify-content: center;
}

.action-btn::before {
  content: '';
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 50%, #e5e7eb 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 4px;
}

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

.action-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.6);
}

.action-btn span,
.action-btn ion-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.action-btn:hover span {
  transform: translateX(2px);
}

.action-btn:hover ion-icon {
  transform: translateX(4px);
}

.action-btn.secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.action-btn.secondary::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.action-btn.secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2);
}

.card-content {
  padding: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.card-meta {
    display: flex;
  justify-content: space-between;
    align-items: center;
}

.project-type {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-year {
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-surface);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--dark-border);
    position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 0.9rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
    position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Skills Section */
.skills-grid {
    display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skill-card {
  background: var(--dark-surface);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--dark-border);
    position: relative;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.skill-icon {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  display: flex;
    align-items: center;
    justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 2rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

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

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--dark-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-sm);
  transition: width 1.5s ease;
  width: 0%;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.skill-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-percentage {
  display: none;
}

.skill-bar {
  display: none;
}

.skill-progress {
  display: none;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Section */
.contact-content {
    display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-container {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  overflow: visible;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem 0;
  border: none;
  border-bottom: 2px solid var(--dark-border);
  border-radius: 0;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: transparent;
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
  background: transparent;
  box-shadow: none;
  transform: none;
}

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

/* Status Notifications */
.status-notification {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
  animation: slideIn 0.3s ease;
}

.status-notification.show {
  display: block;
}

.success-notification {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #10b981;
    display: flex;
    align-items: center;
  gap: 1rem;
}

.error-notification {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.success-icon,
.error-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.success-content,
.error-content {
  flex: 1;
}

.success-content h4,
.error-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.success-content p,
.error-content p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.close-notification {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.close-notification:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 
      0 12px 40px rgba(99, 102, 241, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 
      0 12px 40px rgba(99, 102, 241, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 20px rgba(99, 102, 241, 0.3);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes menu-slide-in {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes list-glow {
  0% {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 30px rgba(99, 102, 241, 0.2);
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  /* Header mobile */
  .header {
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0 1rem;
    position: relative;
  }
  
  /* Mobile navbar toggle button */
  .nav-toggle-btn {
    display: flex;
  position: relative;
    z-index: 1001;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 50%, rgba(168, 85, 247, 0.25) 100%);
    border: 3px solid rgba(99, 102, 241, 0.6);
    border-radius: 20px;
    padding: 16px;
    backdrop-filter: blur(25px);
    box-shadow: 
      0 12px 40px rgba(99, 102, 241, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  overflow: hidden;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

  .nav-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
  }

  .nav-toggle-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7aa, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: gradient-shift 3s ease infinite;
    opacity: 0.7;
  }

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

  .nav-toggle-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
      0 20px 60px rgba(99, 102, 241, 0.6),
      0 0 0 2px rgba(255, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    animation: none;
  }

  .nav-toggle-btn:hover::after {
    opacity: 1;
    animation-duration: 1s;
  }

  .nav-toggle-btn.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.3) 100%);
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 
      0 15px 50px rgba(239, 68, 68, 0.5),
      0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  .nav-toggle-btn.active::after {
    background: linear-gradient(45deg, #ef4444, #dc2626, #b91c1c);
    animation-duration: 1.5s;
  }
  
  /* Mobile navbar menu */
  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(135deg, 
      rgba(15, 15, 15, 0.98) 0%, 
      rgba(25, 25, 25, 0.98) 25%, 
      rgba(35, 35, 35, 0.98) 50%, 
      rgba(25, 25, 25, 0.98) 75%, 
      rgba(15, 15, 15, 0.98) 100%);
    backdrop-filter: blur(40px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 100px;
    padding-left: 1rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-right: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 
      inset 0 0 50px rgba(99, 102, 241, 0.1),
      0 0 100px rgba(0, 0, 0, 0.5);
  }

  .navbar-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
      rgba(99, 102, 241, 0.05) 0%, 
      rgba(139, 92, 246, 0.05) 25%, 
      rgba(168, 85, 247, 0.05) 50%, 
      rgba(139, 92, 246, 0.05) 75%, 
      rgba(99, 102, 241, 0.05) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
    pointer-events: none;
  }
  
  .navbar-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    animation: menu-slide-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .navbar-list {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    animation: none;
    width: 100%;
    max-width: 180px;
  }

  
  .navbar-list li {
    margin: 0.8rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

  .navbar-list li:hover::before {
  left: 100%;
}

  .navbar-list li:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(5px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
      0 8px 25px rgba(99, 102, 241, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .navbar-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 0 10px rgba(99, 102, 241, 0.3);
    display: block;
    padding: 0.2rem 0;
    position: relative;
    z-index: 1;
  }
  
  .navbar-link:hover {
    color: #ffd700;
    transform: scale(1.05);
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(255, 215, 0, 0.6);
  }
  
  /* Hide Skills link on mobile */
  .navbar-list li:nth-child(5) {
    display: none;
  }
  
  .navbar-cta {
    margin-top: 1rem;
    padding: 0.3rem;
  }
  
  .navbar-cta .btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: 2px solid rgba(79, 70, 229, 0.3);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
  }
  
  .navbar-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  }
  
  /* Prevent body scroll when mobile menu is open */
  body.nav-active {
  overflow: hidden;
}

  /* Hero section mobile */
  .hero {
    padding: 6rem 0 2rem 0;
    min-height: auto;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  /* Hero image mobile - completely hide */
  .hero-visual {
    display: none;
  }
  
  /* About section mobile */
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-visual {
    display: none;
  }
  
  /* Portfolio grid mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Services grid mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Skills section mobile - completely hide */
  .skills {
    display: none;
  }
  
  /* Tech stack mobile */
  .tech-tags {
    gap: 0.75rem;
  }
  
  .tech-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  /* Contact form mobile */
  .contact-content {
    gap: 2rem;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  /* Action buttons mobile */
  .action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    min-width: 120px;
  }
  
  .card-actions {
    gap: 1rem;
  }
  
  /* Footer mobile - decrease size */
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-main {
    gap: 1.5rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .footer-social {
    gap: 0.75rem;
  }
  
  .footer-social .social-link {
    width: 40px;
    height: 40px;
  }
  
  .footer-social .social-link ion-icon {
    font-size: 1.1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Hide Quick Links and Services sections on mobile */
  .footer-section:nth-child(1),
  .footer-section:nth-child(2) {
    display: none;
  }
  
  /* Only show Contact section */
  .footer-section:nth-child(3) {
    display: block;
  }
  
  .footer-section {
    margin-bottom: 1rem;
  }
  
  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-list li {
    margin-bottom: 0.5rem;
  }
  
  .footer-list a {
    font-size: 0.8rem;
  }
  
  .footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
  }
  
  .footer-contact ion-icon {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding-top: 1rem;
    gap: 0.75rem;
  }
  
  .footer-copyright,
  .footer-tagline {
    font-size: 0.8rem;
  }
  
  .footer-legal {
    gap: 0.75rem;
  }
  
  .legal-link,
  .separator {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .action-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    min-width: 100px;
  }
  
  .tech-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .contact-form-container {
    padding: 1rem;
  }
  
  /* Footer extra small mobile - even more compact */
  .footer {
    padding: 1rem 0 0.75rem;
  }
  
  .footer-content {
    gap: 1rem;
  }
  
  .footer-main {
    gap: 1rem;
  }
  
  .footer-description {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-social .social-link {
    width: 35px;
    height: 35px;
  }
  
  .footer-social .social-link ion-icon {
    font-size: 1rem;
  }
  
  .footer-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-list a {
    font-size: 0.75rem;
  }
  
  .footer-contact li {
    font-size: 0.75rem;
  }
  
  .footer-contact ion-icon {
    font-size: 0.8rem;
  }
  
  .footer-bottom {
    padding-top: 0.75rem;
    gap: 0.5rem;
  }
  
  .footer-copyright,
  .footer-tagline {
    font-size: 0.75rem;
  }
  
  .legal-link,
  .separator {
    font-size: 0.75rem;
  }
}

/* Certificates Page Styles */
.certificates {
  padding-top: 100px;
}

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

.certificate-card {
  background: var(--dark-surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--dark-border);
  position: relative;
}

.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.certificate-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.certificate-card:hover .certificate-image img {
  transform: scale(1.1);
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.certificate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}


.certificate-content {
  padding: 1.5rem;
}

.certificate-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.certificate-issuer {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.certificate-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.certificate-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Certificate Modal */
.certificate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: var(--dark-surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .certificate-modal {
    padding: 1rem;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-primary);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--dark-border);
  position: relative;
}

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

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-main {
  display: grid;
    grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social .social-link {
    width: 45px;
    height: 45px;
  background: var(--dark-surface);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--dark-border);
}

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

.footer-social .social-link ion-icon {
  font-size: 1.25rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section {
  text-align: center;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}

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

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-contact ion-icon {
  color: var(--primary);
  font-size: 1rem;
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

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

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.heart {
  color: var(--error);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-legal {
  display: flex;
    justify-content: center;
  gap: 1rem;
  align-items: center;
}

.legal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

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

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

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 2fr;
    text-align: left;
  }
  
  .footer-brand {
    text-align: left;
  }
  
  .footer-description {
    margin-left: 0;
    margin-right: 0;
  }
  
  .footer-social {
    justify-content: flex-start;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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