/* ===================================
   MODERN PORTFOLIO CSS
   Enhanced with Glassmorphism, GSAP, 
   and 2025 Design Trends
   =================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ===================================
   CSS VARIABLES & ROOT STYLES
   =================================== */
:root {
  /* Colors - Modern Gradient System */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  
  /* Main Colors */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #4facfe;
  --success-color: #43e97b;
  
  /* Neutral Colors */
  --dark-bg: #0a0a1a;
  --darker-bg: #050510;
  --card-bg: rgba(20, 20, 40, 0.7);
  --text-primary: #ffffff;
  --text-secondary: #b4b4c8;
  --text-muted: #7a7a8c;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 15px;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-particles: -1;
  --z-content: 1;
  --z-navbar: 1000;
  --z-cursor: 9999;
}

/* ===================================
   GLOBAL STYLES & RESETS
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

::selection {
  background: var(--primary-color);
  color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* ===================================
   PARTICLE BACKGROUND
   =================================== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-particles);
  opacity: 0.6;
}

/* ===================================
   CUSTOM CURSOR
   =================================== */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: var(--z-cursor);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(102, 126, 234, 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-outline {
    opacity: 1;
  }
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-normal);
}

a:hover {
  color: var(--secondary-color);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: var(--section-padding);
}

.bg-dark {
  background: var(--darker-bg);
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   NAVBAR
   =================================== */
.glass-nav {
  background: rgba(10, 10, 26, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  transition: var(--transition-normal);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  position: relative;
}

.glitch-text {
  position: relative;
  color: var(--text-primary);
}

.glitch-text span {
  position: relative;
  display: inline-block;
}

.glitch-text:hover span::before,
.glitch-text:hover span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text:hover span::before {
  left: 2px;
  text-shadow: -2px 0 #667eea;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text:hover span::after {
  left: -2px;
  text-shadow: -2px 0 #764ba2;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 31px, 0); }
  5% { clip: rect(70px, 9999px, 71px, 0); }
  10% { clip: rect(30px, 9999px, 91px, 0); }
  15% { clip: rect(50px, 9999px, 21px, 0); }
  20% { clip: rect(10px, 9999px, 81px, 0); }
  100% { clip: rect(60px, 9999px, 11px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  5% { clip: rect(20px, 9999px, 50px, 0); }
  10% { clip: rect(80px, 9999px, 40px, 0); }
  15% { clip: rect(15px, 9999px, 85px, 0); }
  20% { clip: rect(40px, 9999px, 60px, 0); }
  100% { clip: rect(25px, 9999px, 75px, 0); }
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 15px;
  position: relative;
  transition: var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #43e97b;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(67, 233, 123, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-secondary);
  min-height: 80px;
}

.typing-text {
  color: var(--primary-color);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Buttons */
.btn-primary-custom,
.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom {
  background: var(--primary-gradient);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  color: var(--text-primary);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary-custom:hover {
  background: var(--glass-bg);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  color: var(--text-primary);
}

/* Magnetic Button Effect */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: var(--primary-gradient);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  color: var(--text-primary);
}

/* Hero Image */
.hero-image-container {
  position: relative;
}

.floating-card {
  position: relative;
  padding: 20px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-profile-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  font-size: 1.8rem;
  color: var(--primary-color);
  animation: floating 3s ease-in-out infinite;
}

.element-1 {
  top: 10%;
  right: -30px;
  animation-delay: 0s;
}

.element-2 {
  bottom: 20%;
  left: -30px;
  animation-delay: 1s;
}

.element-3 {
  top: 50%;
  right: -20px;
  animation-delay: 2s;
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-secondary);
  border-radius: 25px;
  position: relative;
  margin: 0 auto 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.scroll-indicator p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Continue in Part 2... */


/* ===================================
   SECTION HEADER
   =================================== */
.section-header {
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 15px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 20px auto;
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-content {
  padding: 40px;
  height: 100%;
}

.about-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 24px;
}

.info-item a {
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.info-item a:hover {
  color: var(--primary-color);
}

/* About Image */
.about-image-wrapper {
  position: relative;
  height: 100%;
}

.image-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 500px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: var(--transition-slow);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 126, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
  border-radius: 20px;
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.image-card:hover .about-img {
  transform: scale(1.1);
}

.overlay-content {
  text-align: center;
  color: var(--text-primary);
}

.overlay-content i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.overlay-content p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Floating Tech Icons */
.tech-float {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  animation: float-tech 4s ease-in-out infinite;
}

.tech-1 { top: 10%; left: -25px; animation-delay: 0s; }
.tech-2 { top: 40%; right: -25px; animation-delay: 1s; }
.tech-3 { bottom: 30%; left: -25px; animation-delay: 2s; }
.tech-4 { bottom: 10%; right: -25px; animation-delay: 3s; }

@keyframes float-tech {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.project-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 126, 234, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.15);
}

.project-link {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  color: var(--text-primary);
}

.project-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-badge {
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.project-btn:hover {
  gap: 15px;
  color: var(--secondary-color);
}

/* 3D Tilt Effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* ===================================
   SKILLS SECTION
   =================================== */
/* Skills Section */
#skills {
  background-color: var(--mid-bg);
  position: relative;
  overflow: hidden;
}

.skills-category {
  padding: 40px;
  height: 100%;
  text-align: center;
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.category-title i {
  font-size: 1.8rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Skills Grid Layout - No Progress/Percentages */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 15px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  transition: all var(--transition-normal);
  cursor: pointer;
  min-height: 100px;
  justify-content: center;
}

.skill-badge:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
}

.skill-badge i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all var(--transition-normal);
  margin-bottom: 5px;
}

.skill-badge:hover i {
  transform: scale(1.1) rotate(5deg);
  text-shadow: 0 0 15px var(--primary-color);
}

.skill-badge span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .skills-category {
    padding: 30px 20px;
  }
  
  .category-title {
    font-size: 1.3rem;
  }
  
  .skill-badge {
    padding: 15px 10px;
    min-height: 80px;
  }
  
  .skill-badge i {
    font-size: 2rem;
  }
  
  .skill-badge span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}


@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: var(--transition-normal);
  text-align: center;
}

.tool-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.tool-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.tool-item:hover i {
  transform: scale(1.1);
}

.tool-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===================================
   CERTIFICATES SECTION
   =================================== */
.certificate-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.certificate-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 126, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.certificate-card:hover .certificate-overlay {
  opacity: 1;
}

.certificate-card:hover .certificate-image img {
  transform: scale(1.1);
}

.certificate-overlay i {
  font-size: 2.5rem;
  color: var(--text-primary);
}

.certificate-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.certificate-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--text-primary);
}

.certificate-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.certificate-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-info {
  padding: 40px;
  height: 100%;
}

.contact-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.contact-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.detail-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon i {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.detail-content h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-weight: 600;
}

.detail-content p,
.detail-content a {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.detail-content a:hover {
  color: var(--primary-color);
}

.social-links h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.social-icons-contact {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrapper {
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Continue in Part 3 for Footer, Responsive, and JavaScript... */
   /* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--darker-bg);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text p {
  margin: 5px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-text i {
  color: #ff6b6b;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.footer-socials a:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
  color: var(--text-primary);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }
  
  .hero-section {
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .navbar {
    padding: 15px 0;
  }
  
  .nav-link {
    margin: 5px 0;
  }
  
  .hero-section {
    padding-top: 100px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    min-height: 60px;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    width: 100%;
    justify-content: center;
  }
  
  .hero-image-container {
    margin-top: 50px;
  }
  
  .floating-element {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .tech-float {
    display: none;
  }
  
  .project-card {
    margin-bottom: 30px;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
  }
  
  .tool-item {
    padding: 15px;
  }
  
  .tool-item i {
    font-size: 2rem;
  }
  
  .contact-form-wrapper {
    margin-top: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-tag {
    font-size: 0.8rem;
    padding: 6px 15px;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .about-content,
  .skills-category,
  .contact-info,
  .contact-form-wrapper {
    padding: 25px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-number {
    font-size: 2.5rem;
  }
  
  .project-title {
    font-size: 1.3rem;
  }
  
  .certificate-content {
    padding: 20px;
  }
  
  .certificate-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 15px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }
}

/* ===================================
   LOADING STATE
   =================================== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

.zoom-in {
  animation: zoomIn 0.6s ease forwards;
}

.no-scroll {
  overflow: hidden;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .navbar,
  .hero-socials,
  .back-to-top,
  #particles-js,
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section-padding {
    padding: 20px 0;
  }
}

/* ===================================
   BROWSER SPECIFIC FIXES
   =================================== */

/* Firefox */
@-moz-document url-prefix() {
  .glass-card {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Safari */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .glass-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* No backdrop-filter support */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .glass-card {
    background: rgba(20, 20, 40, 0.9);
  }
}

/* ===================================
   DARK MODE OVERRIDES (Optional)
   =================================== */
@media (prefers-color-scheme: light) {
  /* If you want to support light mode, add overrides here */
  /* For now, keeping it dark theme only */
}

/* ===================================
   END OF STYLESHEET
   =================================== */
