/* Custom Properties for Premium Dark Palette */
:root {
  /* Premium Dark Space Palette - Cyan/Violet/Deep Navy */
  --color-primary: #06b6d4;     /* Cyan */
  --color-primary-light: #22d3ee;
  --color-primary-dark: #0891b2;
  --color-primary-rgb: 6, 182, 212;
  
  --color-secondary: #8b5cf6;   /* Violet */
  --color-secondary-light: #a78bfa;
  --color-secondary-dark: #7c3aed;
  --color-secondary-rgb: 139, 92, 246;
  
  --color-accent: #f43f5e;      /* Rose */
  --color-accent-light: #fb7185;
  --color-accent-dark: #e11d48;
  --color-accent-rgb: 244, 63, 94;
  
  --color-background: #0B1120;  /* Deep Navy/Space */
  --color-surface: #1e293b;
  --color-surface-light: #334155;
  
  --color-text: #ffffff;
  --color-text-secondary: #f1f5f9;  /* Brighter secondary text */
  --color-text-muted: #cbd5e1;      /* Brighter muted text */
  
  /* Fonts */
  --font-family-base: 'Inter', sans-serif;
  --font-family-heading: 'Outfit', sans-serif;
  
  /* Enhanced gradients with new colors */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  --gradient-warm: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent-light) 100%);
  --gradient-cool: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  
  /* Refined Glassmorphism properties */
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.4);
  --glass-blur: blur(16px);
  
  /* Enhanced shadows */
  --shadow-glow: 0 0 30px rgba(var(--color-primary-rgb), 0.3);
  --shadow-glow-secondary: 0 0 20px rgba(var(--color-secondary-rgb), 0.2);
  --shadow-glow-accent: 0 0 20px rgba(var(--color-accent-rgb), 0.2);
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-deep: 0 25px 50px rgba(0, 0, 0, 0.5);
  
  /* Animation curves */
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

body {
  overflow-x: hidden;
  background: var(--color-background);
  font-family: var(--font-family-base);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-name, .ss-letter {
  font-family: var(--font-family-heading);
}

/* SS Logo Design */
.ss-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 60px;
  height: 60px;
  background: var(--gradient-hero);
  border-radius: 12px;
  padding: 8px;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: var(--shadow-glow);
}

.ss-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow), var(--shadow-float);
}

.ss-letter {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s var(--ease-bounce);
}

.ss-letter-1 {
  transform: translateX(2px);
}

.ss-letter-2 {
  transform: translateX(-2px);
}

.ss-logo:hover .ss-letter-1 {
  transform: translateX(4px) rotate(10deg);
}

.ss-logo:hover .ss-letter-2 {
  transform: translateX(-4px) rotate(-10deg);
}

/* Add geometric design elements */
.ss-logo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 14px;
  transform: rotate(45deg);
  animation: logoShine 3s linear infinite;
}

@keyframes logoShine {
  0% { transform: rotate(45deg) translateX(-100%); }
  50% { transform: rotate(45deg) translateX(100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.preloader-logo {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.preloader-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.preloader-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  width: 0%;
  animation: loading 3s ease-out forwards;
}

.preloader-text {
  font-size: 1.1rem;
  opacity: 0.8;
  animation: fadeInOut 2s infinite;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(var(--color-primary-rgb), 0.1);
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.3s ease-out;
}

/* Glassmorphism Effect */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ========================================================================= */
/* NEW THEME-COLORED LIGHT NAVBAR */
/* ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s var(--ease-smooth);
  
  /* Modern Dark Glass */
  background: rgba(11, 17, 32, 0.5); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(11, 17, 32, 0.85); 
  border-bottom: 1px solid rgba(6, 182, 212, 0.2); 
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #ffffff; /* Bright white text to pop against the teal */
  text-decoration: none;
  font-weight: 600; /* Bolder font */
  font-size: 1.1rem; 
  position: relative;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-smooth);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  transition: all 0.3s var(--ease-bounce);
  z-index: -1;
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); /* Glow effect on hover */
}

.nav-link:hover::before {
  width: 100%;
  height: 100%;
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.2); /* Highlight active link with white glass */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-background);
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 60%);
  z-index: 2;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  text-align: center;
  position: relative;
}

/* Floating Cards */
.hero-floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), rgba(var(--color-accent-rgb), 0.15));
  border: 1px solid rgba(255,255,255,0.05);
}

.floating-card:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-card:nth-child(3) {
  top: 40%;
  left: 80%;
  animation-delay: 4s;
}

.card-icon {
  font-size: 1.8rem;
}

/* Profile Image */
.hero-image {
  margin-bottom: 2rem;
}

.profile-container {
  position: relative;
  display: inline-block;
}

.profile-bg {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.25;
  animation: pulse 4s infinite;
}

.profile-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-primary);
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 2px solid rgba(var(--color-primary-rgb), 0.5);
  border-radius: 50%;
  border-top-color: transparent;
  animation: rotate 8s linear infinite;
}

/* Typography Sizes */
.hero-name {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.text-reveal {
  display: inline-block;
  animation: textReveal 1s var(--ease-smooth) forwards;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

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

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.typing-text {
  border-right: 2px solid var(--color-primary);
  animation: typing 3s steps(50), blink 1s infinite;
}

.cursor-blink {
  animation: blink 1s infinite;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
}

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

.btn-outline:hover {
  background: rgba(var(--color-primary-rgb), 0.15);
  color: white;
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover .btn-glow {
  transform: translateX(100%);
}

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

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 1.5rem 2.8rem;
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-smooth);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

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

/* Section Styles */
section {
  padding: 8rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  margin-bottom: 1.5rem;
}

/* Properly Sized Section Titles */
.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem); 
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.15rem; 
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section */
.about {
  background: rgba(255,255,255, 0.01);
}

.about-text {
  text-align: center;
  margin-bottom: 4rem;
}

.about-description {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 850px;
  margin: 0 auto;
}

/* ========================================================================= */
/* PORTFOLIO SECTION */
/* ========================================================================= */
.portfolio {
  background: rgba(0,0,0, 0.2);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s var(--ease-smooth);
  letter-spacing: 0.5px;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--color-primary);
  color: white;
  background: rgba(var(--color-primary-rgb), 0.2);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.3);
}

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

.project-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  background: rgba(20, 25, 40, 0.8);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(var(--color-primary-rgb), 0.4);
}

.project-image {
  height: 420px; 
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 1) 0%, rgba(11, 17, 32, 0.7) 40%, rgba(11, 17, 32, 0.2) 100%);
  z-index: 1;
  transition: all 0.5s ease;
}

.project-card:hover .project-image::before {
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(8px);
}

.project-3d-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-smooth);
  z-index: 0;
}

.project-card:hover .project-3d-effect {
  transform: translateX(100%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  z-index: 2;
  transition: all 0.5s ease;
}

.project-overlay .project-title {
  font-family: var(--font-family-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
  letter-spacing: -0.5px;
  transform: translateY(0);
  transition: all 0.4s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.project-overlay .project-subtitle {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-primary-light);
  margin-bottom: 1rem; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
}

.project-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0;
  opacity: 1;
  max-height: 100px;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.project-tech-details,
.project-link-indicator {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  margin: 0;
}

.project-card:hover .project-overlay {
  justify-content: flex-end;
}

.project-card:hover .project-overlay .project-title {
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.project-card:hover .project-overlay .project-subtitle {
  margin-bottom: 1.2rem;
  color: white;
}

.project-card:hover .project-tags {
  margin-bottom: 1.5rem;
}

.project-card:hover .project-tech-details,
.project-card:hover .project-link-indicator {
  opacity: 1;
  max-height: 350px;
  transform: translateY(0);
}

.project-card:hover .project-tech-details {
  margin-bottom: 1.5rem;
}

.project-card:hover .project-link-indicator {
  margin-top: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.project-tech-details p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.project-link-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #3b82f6; 
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: underline;
  text-underline-offset: 6px;
  border-bottom: none;
}

.project-link-indicator svg {
  transition: transform 0.3s ease;
}

.project-card:hover .project-link-indicator:hover svg {
  transform: translate(4px, -4px);
}

.project-info {
  padding: 1.4rem 1.8rem;
  background: rgba(11, 17, 32, 0.95);
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 3;
}

.project-category {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Skills Section */
.skills {
  background: rgba(255,255,255, 0.01);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.skill-category {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-smooth);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  background: rgba(255,255,255,0.03);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.2rem;
}

.category-icon {
  font-size: 2rem;
}

.category-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.4rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.skill-badge:hover {
  transform: translateY(-2px);
  background: rgba(var(--color-primary-rgb), 0.15);
  border-color: var(--color-primary);
  color: white;
}

/* Contact Section */
.contact {
  background: rgba(0,0,0, 0.2);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.contact-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s var(--ease-smooth);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--color-primary-rgb), 0.3);
}

.contact-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.contact-card a,
.contact-card span {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1.1rem;
}

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

.social-links h3 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius-base);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-smooth);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.social-link:hover {
  color: white;
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.social-icon {
  display: flex;
  align-items: center;
}

/* Contact Form */
.contact-form {
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

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

.floating-label {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.4rem 1.2rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-base);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1.05rem;
  transition: all 0.3s var(--ease-smooth);
  font-family: var(--font-family-base);
}

.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
  background: rgba(0, 0, 0, 0.4);
}

.form-label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 0.3rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.btn-full {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  padding: 4rem 0;
  text-align: center;
  margin-top: 2rem;
  background: rgba(10, 15, 28, 0.8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

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

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(2deg); }
  66% { transform: translateY(-5px) rotate(-2deg); }
}

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

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

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

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

@keyframes loading {
  to { width: 100%; }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Reveal Animation Classes */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-smooth);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    /* Mobile menu matching the light theme color */
    background: rgba(11, 17, 32, 0.98); 
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3rem;
    transition: right 0.3s var(--ease-smooth);
    border-left: 1px solid rgba(255,255,255,0.05);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

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

  .floating-card {
    display: none;
  }

  .portfolio-filters {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .project-card:hover {
    transform: translateY(-5px);
  }

  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .skills-badges {
    justify-content: center;
  }

  .ss-logo {
    width: 50px;
    height: 50px;
  }

  .ss-letter {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .preloader-logo {
    font-size: 3rem;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.8rem;
  }

  .project-overlay {
    padding: 1.5rem;
  }

  .skill-category {
    padding: 1.8rem;
  }
}/* ========================================================================= */
/* ========================================================================= */
/* CERTIFICATES SECTION (TIMELINE) */
/* ========================================================================= */
.certificates {
  background: rgba(0,0,0, 0.1);
}

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

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(var(--color-primary-rgb), 0.5), rgba(var(--color-secondary-rgb), 0.5));
}

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

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

.timeline-dot {
  position: absolute;
  left: 24px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.6);
  border: 3px solid rgba(11, 17, 32, 1);
  z-index: 2;
  transition: all 0.3s var(--ease-bounce);
}

.timeline-content {
  padding: 1.5rem 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s var(--ease-bounce);
  position: relative;
}

.timeline-item:hover .timeline-content {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover .timeline-dot {
  background: var(--color-secondary);
  box-shadow: 0 0 15px rgba(var(--color-secondary-rgb), 0.8);
  transform: scale(1.3);
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tech-icon {
  width: 30px;
  height: 30px;
}

.provider-logo {
  height: 20px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(25%) brightness(1.2);
}

.bg-white {
  background: white;
  padding: 4px;
  border-radius: 4px;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.cert-issuer {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-dot {
    left: 14px;
  }
  
  .timeline-content {
    padding: 1.2rem;
  }
  
  .cert-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}