/* ===================================
   PORTFOLIO MAIN STYLES
   =================================== */

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

:root {
  /* Dark Theme (Default - Only Theme) */
  --primary-color: #00ff88;
  --secondary-color: #00ffff;
  --accent-color: #ff00ff;
  --dark-bg: #0a0e27;
  --card-bg: #1a1f3a;
  --text-primary: #ffffff;
  --text-secondary: #b0b8d4;
  --border-color: #2a3050;
  --transition: all 0.3s ease;
  --header-bg: rgba(10, 14, 39, 0.95);
  --glow-color: rgba(0, 255, 136, 0.1);
  --shadow-color: rgba(0, 255, 136, 0.1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
  box-shadow: 0 4px 20px var(--glow-color);
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.theme-toggle {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--glow-color);
  transform: scale(1.1) rotate(20deg);
  box-shadow: 0 0 20px var(--primary-color);
}

.theme-toggle.active {
  animation: themeSwitch 0.6s ease-out;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 101;
  width: 0%;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 80px;
  margin-top: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 20px 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--text-secondary);
  margin: 15px 0;
  min-height: 60px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 30px auto;
  line-height: 1.8;
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 40px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--glow-color);
}

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

.btn-secondary:hover {
  background: var(--glow-color);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 2px;
  height: 8px;
  background: var(--primary-color);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    top: 8px;
  }
  50% {
    top: 16px;
  }
  100% {
    top: 8px;
  }
}

@keyframes themeSwitch {
  0% {
    transform: rotateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotateY(180deg) scale(1.2);
  }
  100% {
    transform: rotateY(360deg) scale(1);
    opacity: 1;
  }
}

/* ===================================
   GALLERY SECTION
   =================================== */

.gallery-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 255, 0.05));
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===================================
   ABOUT ME SECTION - PREMIUM
   =================================== */

.about-section {
  position: relative;
  padding: 100px 40px;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.8) 0%, rgba(26, 31, 58, 0.95) 100%);
  border-top: 2px solid;
  border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
  overflow: hidden;
}

/* Background elements */
.about-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

.about-orb-1 {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.4), transparent);
  border-radius: 50%;
  top: -10%;
  left: -5%;
  filter: blur(80px);
  animation: float 10s ease-in-out infinite;
}

.about-orb-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
  border-radius: 50%;
  bottom: -5%;
  right: -10%;
  filter: blur(80px);
  animation: float 12s ease-in-out infinite reverse;
}

/* About Container */
.about-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* About Content */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-card {
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
  background: var(--card-bg);
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px var(--glow-color);
  transform: translateY(-4px);
}

.about-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 8px 0;
}

.about-text strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.about-stat {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, var(--glow-color), rgba(0, 150, 255, 0.05));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.about-stat:hover {
  background: linear-gradient(135deg, var(--primary-color)15, var(--secondary-color)15);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.stat-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* About CTA Buttons */
.about-cta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* About Highlights */
.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.highlight-card {
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-color)15, transparent);
  transition: left 0.3s ease;
}

.highlight-card:hover {
  background: var(--card-bg);
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--glow-color);
}

.highlight-card:hover::before {
  left: 100%;
}

.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  font-size: 1.4rem;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.1) rotate(5deg);
}

.highlight-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px 0;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Code Block Styling (Coder Vibe) */
.code-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 !important;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.code-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red {
  background-color: #ff6b6b;
}

.code-dot.yellow {
  background-color: #ffd93d;
}

.code-dot.green {
  background-color: #6bcf7f;
}

.code-filename {
  margin-left: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.code-content {
  padding: 20px;
  overflow-x: auto;
  line-height: 1.6;
}

.code-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-line.indent {
  margin-left: 20px;
}

.code-line.indent.indent {
  margin-left: 40px;
}

.code-keyword {
  color: #d946ef;
  font-weight: 600;
}

.code-variable {
  color: var(--secondary-color);
  font-weight: 600;
}

.code-property {
  color: var(--primary-color);
}

.code-string {
  color: #10b981;
}

.code-number {
  color: #f59e0b;
}

.code-function {
  color: var(--secondary-color);
  font-weight: 600;
}

.code-block:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 48px var(--glow-color);
  transform: translateY(-4px);
}

/* Tech Card Styling (Terminal-like) */
.tech-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(26, 31, 58, 0.6));
  border-left: 3px solid var(--primary-color);
}

.tech-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-family: 'Space Mono', monospace;
}

.tech-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
  }
  50% {
    opacity: 0.8;
  }
}

.tech-card h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.tech-card h4::before {
  content: '';
  margin-right: 0;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tech-card p::first-letter {
  color: var(--secondary-color);
}

/* ===================================
   ABOUT ME - RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  .about-section {
    padding: 80px 30px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 20px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-cta {
    flex-direction: column;
  }

  .about-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 50px 15px;
  }

  .about-card {
    padding: 15px;
  }

  .about-title {
    font-size: 1.1rem;
  }

  .about-text {
    font-size: 0.9rem;
  }

  .highlight-card {
    padding: 15px;
  }

  .highlight-card h4 {
    font-size: 1rem;
  }

  .highlight-card p {
    font-size: 0.85rem;
  }
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.gallery-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid var(--border-color);
}

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

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.gallery-overlay p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===================================
   STATS SECTION
   =================================== */

.stats-section {
  padding: 80px 40px;
  background: var(--dark-bg);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary-color);
  background: rgba(0, 255, 136, 0.05);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===================================
   TECH CAROUSEL / SPECIALIZATION
   =================================== */

.tech-carousel {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 255, 0.05));
  border-radius: 15px;
  border: 2px solid var(--border-color);
}

.carousel-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollRightInfinite 40s linear infinite;
  will-change: transform;
}

@keyframes scrollRightInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

.carousel-item {
  flex: 0 0 auto;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.carousel-item:hover::before {
  left: 100%;
}

.carousel-item:hover {
  border-color: var(--primary-color);
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.carousel-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.carousel-item:hover .carousel-icon {
  color: var(--secondary-color);
  transform: scale(1.2) rotate(10deg);
}

.carousel-item span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.carousel-item:hover span {
  color: var(--primary-color);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===================================
   RESPONSIVE CAROUSEL
   =================================== */

@media (max-width: 768px) {
  .tech-carousel {
    padding: 25px;
    margin-top: 40px;
  }

  .carousel-title {
    font-size: 1.3rem;
    margin-bottom: 30px;
  }

  .carousel-track {
    gap: 15px;
    animation: scrollRightInfinite 35s linear infinite;
  }

  .carousel-item {
    width: 110px;
    padding: 18px 10px;
  }

  .carousel-icon {
    font-size: 2rem;
    min-height: 40px;
  }

  .carousel-item span {
    font-size: 0.85rem;
  }

  .carousel-nav {
    gap: 15px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tech-carousel {
    padding: 15px;
  }

  .carousel-track {
    gap: 10px;
    animation: scrollRightInfinite 30s linear infinite;
  }

  .carousel-item {
    width: 90px;
    padding: 15px 8px;
  }

  .carousel-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .carousel-item span {
    font-size: 0.75rem;
  }

  .carousel-container {
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  }
}

/* ===================================
   SKILLS SECTION (Updated)
   =================================== */

.skills-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.05));
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
  transition: var(--transition);
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  border-color: var(--primary-color);
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 255, 136, 0.25);
}

.skill-icon-wrapper {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 255, 0.1));
  border-radius: 10px;
  border: 2px solid rgba(0, 255, 136, 0.3);
}

.skill-item:hover .skill-icon {
  color: var(--secondary-color);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.2));
  border-color: var(--primary-color);
  transform: scale(1.15) rotate(-5deg);
}

.skill-item span {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.skill-item:hover span {
  color: var(--primary-color);
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects-section {
  padding: 100px 40px;
  background: var(--dark-bg);
  perspective: 1000px;
}

.project-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.05));
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

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

.filter-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 136, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.filter-btn:hover::after {
  opacity: 1;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 255, 136, 0.2);
}

.filter-btn i {
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.filter-btn:hover i {
  transform: scale(1.2) rotate(10deg);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-4px) scale(1.05);
}

.filter-btn.active i {
  color: var(--dark-bg);
  transform: scale(1.25) rotate(15deg);
}

.filter-btn.active::after {
  opacity: 1;
}

.filter-btn span {
  transition: all 0.3s ease;
  display: inline-block;
}

.filter-btn:hover span {
  letter-spacing: 0.5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 3D Card Container */
.project-card-wrapper {
  height: 400px;
  cursor: pointer;
  perspective: 1000px;
}

.project-card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
}

.project-card-wrapper:hover .project-card {
  transform: rotateY(180deg) rotateX(5deg);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: none;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.card-front {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 255, 0.05));
  text-align: center;
  backdrop-filter: blur(10px);
}

.card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
  opacity: 0;
  border-radius: 15px;
  animation: shimmerEffect 3s infinite;
  pointer-events: none;
}

.card-back {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 255, 0.1));
  transform: rotateY(180deg);
  padding: 25px;
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  text-align: left;
}

.card-back::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  border-radius: 15px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

.project-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.card-front h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-badge {
  display: inline-block;
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid var(--primary-color);
}

.project-preview {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.hover-hint {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-style: italic;
  margin-top: 20px;
  opacity: 0.7;
  animation: pulse 2s ease-in-out infinite;
}

.card-back h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-back > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.card-back .tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.card-back .tech-tag {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-back .tech-tag:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: scale(1.1);
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.project-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

/* Project Status Indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 10px 0;
}

.status-indicator.completed {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.status-indicator.ongoing {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid #22c55e;
}

.status-indicator i {
  font-size: 0.7rem;
  animation: pulse 2s ease-in-out infinite;
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

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

.tech-tag {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  padding: 8px 16px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-links a:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
}

/* ===================================
   CERTIFICATIONS & ACHIEVEMENTS
   =================================== */

.certifications-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), rgba(0, 255, 255, 0.03));
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 136, 0.05));
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
}

.cert-badge.new-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  animation: badgePulse 2s ease-in-out infinite;
}

.cert-badge.popular-badge {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: var(--dark-bg);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.cert-card:hover::before {
  transform: translateX(0);
}

.cert-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 255, 136, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cert-card:hover::after {
  opacity: 1;
}

.cert-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  animation: iconFloat 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
  background: rgba(0, 255, 136, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.4;
}

.cert-issuer {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-issuer::before {
  content: '✓';
  display: inline-block;
}

.cert-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
  flex-grow: 1;
}

.certs-button-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 20px;
}

.view-all-certs-btn {
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.view-all-certs-btn:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Certificates Modal */
.certs-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.certs-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.certs-modal-content {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 136, 0.05));
  border: 2px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
}

.certs-modal-header {
  position: sticky;
  top: 0;
  background: var(--card-bg);
  padding: 30px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-radius: 18px 18px 0 0;
}

.certs-modal-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0;
}

.certs-modal-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
}

.certs-modal-close:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: rotate(90deg);
  color: var(--secondary-color);
}

.certs-modal-body {
  padding: 40px 30px;
}

.cert-modal-card {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal scrollbar styling */
.certs-modal-content::-webkit-scrollbar {
  width: 8px;
}

.certs-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 255, 136, 0.05);
  border-radius: 10px;
}

.certs-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.certs-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.cert-date {
  display: inline-block;
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.cert-id {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 15px;
  word-break: break-all;
  font-family: 'Space Mono', monospace;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: fit-content;
  margin-top: auto;
}

.cert-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
  gap: 10px;
}

.cert-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.cert-link:hover i {
  transform: scale(1.2);
}

/* ===================================
   EDUCATION SECTION
   =================================== */

.education-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), rgba(0, 255, 255, 0.03));
}

.timeline {
  max-width: 1000px;
  margin: 50px auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  border-radius: 3px;
}

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

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 51%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 51%;
  margin-right: 0;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--dark-bg);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  animation: markerGlow 2s ease-in-out infinite;
}

@keyframes markerGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.8), inset 0 0 10px rgba(0, 255, 136, 0.3);
  }
}

.timeline-content {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 136, 0.05));
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-content::before {
  transform: scaleX(1);
}

.timeline-item:hover .timeline-content {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 15px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
}

.timeline-date {
  display: inline-block;
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(0, 255, 136, 0.3);
  min-width: fit-content;
}

.timeline-degree {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-location {
  justify-content: flex-start;
}

.timeline-cgpa {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-cgpa {
  justify-content: flex-start;
}

.timeline-cgpa strong {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.timeline-logo {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-logo {
  justify-content: flex-start;
}

.timeline-logo img {
  max-width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.1);
  padding: 8px;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-logo img {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(255, 0, 255, 0.05));
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form-wrapper {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 136, 0.05));
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.contact-form-wrapper:hover {
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.contact-form {
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.form-group {
  display: grid;
  gap: 8px;
  position: relative;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  font-size: 1rem;
  backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Poppins', sans-serif;
}

.form-error {
  color: #ff4444;
  font-size: 0.8rem;
  display: none;
  animation: slideIn 0.3s ease;
}

.form-error.show {
  display: block;
}

.submit-btn {
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

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

.form-status {
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-top: 15px;
  display: none;
  animation: slideIn 0.4s ease;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 136, 0.15);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.form-status.error {
  display: block;
  background: rgba(255, 68, 68, 0.15);
  border: 2px solid #ff4444;
  color: #ff4444;
}

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

/* Contact Info Cards */
.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 255, 0.05));
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px) translateX(10px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.contact-card i {
  font-size: 2.2rem;
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 10px;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card:hover i {
  transform: scale(1.2) rotate(10deg);
  background: rgba(0, 255, 136, 0.2);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 700;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-card a:hover {
  gap: 5px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.form-submit {
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* ===================================
   PROFILES / CONNECT WITH ME
   =================================== */

.profiles-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), rgba(0, 255, 255, 0.03));
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1300px;
  margin: 50px auto 0;
}

.profile-card {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 136, 0.05));
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.profile-card:hover::before {
  transform: scaleX(1);
}

.profile-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 255, 136, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.profile-card:hover::after {
  opacity: 1;
}

.profile-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 255, 136, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.profile-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 255, 0.1));
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.profile-card:hover .profile-icon {
  transform: scale(1.15) rotate(-10deg);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 255, 0.15));
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.profile-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.profile-card:hover .profile-badge {
  transform: scale(1.1);
}

.profile-card h3 {
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.profile-subtitle {
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.profile-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.stat-item {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.profile-card:hover .stat-item {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.stat-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.profile-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
  z-index: -1;
}

.profile-card:hover .profile-action::before {
  left: 100%;
}

.profile-card:hover .profile-action {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

.action-text {
  display: inline-block;
  transition: transform 0.3s ease;
}

.profile-action i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.profile-card:hover .action-text {
  transform: translateX(-5px);
}

.profile-card:hover .action-text + i {
  transform: translateX(5px);
}

/* ===================================
   FOOTER - PREMIUM DESIGN
   =================================== */

.premium-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 31, 58, 0.95) 0%, rgba(10, 14, 39, 0.99) 100%);
  border-top: 2px solid;
  border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
  padding: 80px 40px 40px;
  overflow: hidden;
}

/* Background animated elements */
.footer-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.3), transparent);
  top: 10%;
  left: -10%;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
  top: 50%;
  right: -5%;
  animation-delay: 2s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.2), transparent);
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

/* Footer Container */
.footer-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 50px;
}

/* Footer Section Styling */
.footer-section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Brand Section */
.footer-brand {
  max-width: 100%;
}

.brand-header {
  margin-bottom: 20px;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 15px 0 25px 0;
}

/* Social Links Footer */
.social-links-footer {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  position: relative;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
  border-color: var(--primary-color);
}

.social-link.linkedin:hover {
  background: #0077b5;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.4);
  border-color: #0077b5;
}

.social-link.leetcode:hover {
  background: #ffa726;
  color: white;
  box-shadow: 0 8px 24px rgba(255, 167, 38, 0.4);
  border-color: #ffa726;
}

.social-link.gfg:hover {
  background: #2f8d46;
  color: white;
  box-shadow: 0 8px 24px rgba(47, 141, 70, 0.4);
  border-color: #2f8d46;
}

.social-link i {
  font-size: 1.1rem;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  position: relative;
}

.footer-link:hover {
  color: var(--primary-color);
  background: rgba(0, 255, 136, 0.1);
  padding-left: 22px;
}

.footer-link i {
  width: 20px;
  text-align: center;
}

/* Services List */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.services-list li:hover {
  color: var(--primary-color);
  transform: translateX(6px);
}

.services-list i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Contact Button */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 255, 136, 0.5);
}

/* Contact Info */
.contact-info {
  margin-top: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 8px 0;
  transition: all 0.3s ease;
}

.info-item:hover {
  color: var(--primary-color);
}

.info-item i {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* Footer Divider */
.footer-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 40px 0;
}

/* Footer Bottom */
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.made-with {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.made-with i {
  animation: heartbeat 1.3s ease-in-out infinite;
}

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

/* Back to Top Button */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  cursor: pointer;
}

.back-to-top:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-4px);
}

/* ===================================
   FOOTER - RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .premium-footer {
    padding: 60px 20px 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links-footer {
    justify-content: center;
  }

  .footer-nav {
    align-items: center;
  }

  .services-list {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .copyright p {
    font-size: 0.85rem;
  }

  .footer-link:hover {
    padding-left: 16px;
  }

  .services-list li:hover {
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .premium-footer {
    padding: 50px 15px 30px;
  }

  .footer-container {
    gap: 25px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-tagline {
    font-size: 0.8rem;
  }

  .brand-desc {
    font-size: 0.85rem;
    margin: 12px 0 20px 0;
  }

  .section-title {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .social-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .footer-link {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    gap: 15px;
  }

  .copyright p {
    font-size: 0.8rem;
  }

  .back-to-top {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  header {
    padding: 0 20px;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

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

  .hero-subtitle {
    font-size: 1.3rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .gallery-container,
  .project-grid,
  .skills-container,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .project-card-wrapper {
    height: 350px;
  }

  .card-front,
  .card-back {
    padding: 20px;
  }

  .certifications-grid {
    gap: 20px;
  }

  .cert-card {
    padding: 20px;
  }

  .cert-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .cert-card h3 {
    font-size: 1.1rem;
  }

  .project-filters {
    gap: 12px;
    margin-bottom: 40px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    gap: 6px;
  }

  .filter-btn i {
    font-size: 1rem;
  }

  .filter-btn span {
    display: none;
  }

  .filter-btn.active span {
    display: inline-block;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form-wrapper {
    padding: 30px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 8px;
  }

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

  .submit-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px;
  }

  .contact-card:hover {
    transform: translateY(-8px);
  }

  .contact-card i {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  .contact-card h3 {
    font-size: 1rem;
  }

  .contact-info {
    gap: 15px;
  }

  .project-icon {
    font-size: 2.5rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form-wrapper {
    padding: 30px;
  }

  .profiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .profile-card {
    padding: 25px;
  }

  .profile-icon {
    width: 60px;
    height: 60px;
    font-size: 2.2rem;
  }

  .profile-card h3 {
    font-size: 1.25rem;
  }

  .profile-stats {
    gap: 10px;
  }

  .stat-item {
    padding: 10px;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-card:hover {
    transform: translateY(-8px);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-location,
  .timeline-item:nth-child(even) .timeline-location,
  .timeline-item:nth-child(odd) .timeline-cgpa,
  .timeline-item:nth-child(even) .timeline-cgpa {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-logo,
  .timeline-item:nth-child(even) .timeline-logo {
    justify-content: flex-start;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-marker {
    left: 5px;
  }

  .gallery-section,
  .skills-section,
  .contact-section,
  .projects-section,
  .certifications-section,
  .education-section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  header {
    height: 60px;
    padding: 0 15px;
  }

  .logo-image {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 80px 15px 50px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .skill-item {
    padding: 15px;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .project-grid {
    gap: 20px;
  }

  .project-card-wrapper {
    height: 320px;
  }

  .card-front,
  .card-back {
    padding: 15px;
  }

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

  .card-front h3,
  .card-back h3 {
    font-size: 1.2rem;
  }

  .project-preview {
    font-size: 0.85rem;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cert-card {
    padding: 15px;
  }

  .cert-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .cert-card h3 {
    font-size: 1rem;
  }

  .cert-desc {
    font-size: 0.85rem;
  }

  .cert-link {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .form-group textarea {
    min-height: 90px;
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .contact-info {
    gap: 15px;
  }

  .contact-card {
    padding: 15px;
  }

  .contact-card i {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .contact-card h3 {
    font-size: 1rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    left: 5px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 70px;
    padding: 15px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-date {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .timeline-degree {
    font-size: 0.95rem;
  }

  .timeline-location,
  .timeline-cgpa {
    font-size: 0.85rem;
  }

  .timeline-logo img {
    max-width: 50px;
    height: 50px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-icon {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }

  .profile-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .profile-card h3 {
    font-size: 1.15rem;
  }

  .profile-subtitle {
    font-size: 0.9rem;
  }

  .profile-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .profile-stats {
    gap: 8px;
    margin-bottom: 15px;
  }

  .stat-item {
    padding: 8px;
  }

  .stat-item i {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .profile-action {
    padding: 10px 16px;
    font-size: 0.9rem;
    gap: 8px;
  }

  .project-filters {
    gap: 8px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    gap: 5px;
    border-radius: 8px;
  }

  .filter-btn i {
    font-size: 0.9rem;
  }

  .filter-btn span {
    display: none;
  }

  .filter-btn.active {
    padding: 8px 16px;
  }

  .filter-btn.active span {
    display: inline-block;
    font-size: 0.85rem;
  }
