/* CSS Custom Properties for Theming */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4338ca;
  --secondary-color: #ec4899;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --heading-font: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tech-font: "Orbitron", "Inter", monospace, sans-serif;
}

/* Dark Theme */
#theme-toggle:checked ~ * {
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --border-color: #475569;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition);
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 3s ease-in-out 3s forwards;
}

.loading-content {
  text-align: center;
  color: white;
}
.logo-image {
  width: 20%;
  height: 20%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid white;
  
}

.profile-photo-loader {
  position: relative;
  margin: 0 auto 2rem;
  width: 120px;
  height: 120px;
}

.profile-photo-loader img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-xl);
}

.loading-ring {
  position: absolute;
  inset: -10px;
  border: 4px solid transparent;
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.loading-text h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.loading-text p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  90% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Hidden inputs for theme and mobile menu */
.theme-toggle-input,
.mobile-menu-toggle {
  display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  transition: var(--transition);
}

h1:hover,
h2:hover,
h3:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  gap: 0.5rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  font-family: var(--tech-font);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
  position: relative;
  z-index: 1;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.btn-secondary:hover::after {
  width: 100%;
}

.btn-secondary:hover {
  color: white;
  transform: translateY(-2px);
}

/* Navigation with Logo */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

#theme-toggle:checked ~ .navbar {
  background: rgba(15, 23, 42, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

/* Enhanced Logo with Photo */
.nav-logo {
  text-decoration: none;
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.logo-image {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--tech-font);
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  animation: pulse 2s ease-in-out infinite;
}

.nav-logo:hover .logo-image {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.nav-logo:hover .logo-text {
  color: var(--secondary-color);
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
  transition: var(--transition);
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle-label {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  height: 2rem;
  background: var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

#theme-toggle:checked ~ * .toggle-slider {
  transform: translateX(1.5rem);
  background: var(--primary-color);
}

.sun-icon,
.moon-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  transition: var(--transition);
}

.sun-icon {
  left: 0.25rem;
  opacity: 1;
}

.moon-icon {
  right: 0.25rem;
  opacity: 0.3;
}

#theme-toggle:checked ~ * .sun-icon {
  opacity: 0.3;
}

#theme-toggle:checked ~ * .moon-icon {
  opacity: 1;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.25rem;
  padding: 0.5rem;
}

.bar {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

#mobile-menu-toggle:checked ~ .navbar .hamburger .bar:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

#mobile-menu-toggle:checked ~ .navbar .hamburger .bar:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle:checked ~ .navbar .hamburger .bar:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* Hide the mobile menu toggle checkbox */
#mobile-menu-toggle {
  display: none;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  /* Show hamburger menu on mobile */
  .hamburger {
    display: flex !important;
    z-index: 1001;
  }
  
  /* Hide regular navigation menu on mobile */
  .nav-menu {
    position: fixed;
    top: 4rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 4rem);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-color);
    gap: 1.5rem;
  }
  
  /* Dark mode mobile menu background */
  #theme-toggle:checked ~ .navbar .nav-menu {
    background: rgba(15, 23, 42, 0.98);
  }
  
  /* Show menu when hamburger is clicked */
  #mobile-menu-toggle:checked ~ .navbar .nav-menu {
    left: 0;
  }
  
  /* Style mobile menu items */
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    width: 100%;
  }
  
  /* Reduce logo size on mobile */
  .logo-image {
    width: 2rem;
    height: 2rem;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  /* Adjust navigation container padding */
  .nav-container {
    padding: 0 1rem;
  }
  
 /* Make theme toggle smaller on mobile */
  .theme-toggle-label {
    width: 3rem;
    height: 1.75rem;
  }
  
  .toggle-slider {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  #theme-toggle:checked ~ * .toggle-slider {
    transform: translateX(1.25rem);
  }
}

/* Tablet styles */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
}
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 2rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, var(--primary-color) 22 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--secondary-color) 22 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--accent-color) 22 0%, transparent 50%);
  opacity: 0.1;
  z-index: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 1.2s ease-out;
}

.hero-title {
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--tech-font);
}

.highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  animation: expandWidth 1s ease-out 0.5s both;
  border-radius: 2px;
}

.hero-subtitle {
  font-weight: 600;
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--tech-font);
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Enhanced Spinning Profile Photo */
.spinning-profile {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1.2s ease-out;
}

.profile-ring {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary-color),
    var(--secondary-color),
    var(--success-color),
    var(--accent-color),
    var(--primary-color)
  );
  animation: spinRing 8s linear infinite;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 25px 50px rgba(99, 102, 241, 0.3));
}

.profile-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-primary);
  z-index: 1;
}

.profile-ring::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary-color),
    var(--secondary-color),
    var(--success-color),
    var(--accent-color),
    var(--primary-color)
  );
  animation: spinRing 12s linear infinite reverse;
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
}

.profile-photo {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.profile-photo:hover img {
  transform: scale(1.1);
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Section Styles */
section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.section-title {
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  font-family: var(--tech-font);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* About Section - Enhanced */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}

.about-stats::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: rotateBackground 10s linear infinite;
}

.stat-item {
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.05);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--tech-font);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-description-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.education-section,
.tech-stack {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.education-section::before,
.tech-stack::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.education-section:hover,
.tech-stack:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.section-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.education-item::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: var(--transition);
}

.education-item:hover::before {
  left: 100%;
}

.education-item:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateX(0.5rem);
  border-color: transparent;
}

.education-icon {
  font-size: 1.5rem;
  min-width: 2rem;
  text-align: center;
}

.education-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.education-content strong {
  font-weight: 600;
  font-size: 1rem;
}

.education-content span {
  font-size: 0.875rem;
  opacity: 0.8;
}

.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tech-category-group h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--tech-font);
}

.about-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about {
  background-color: var(--bg-secondary);
}

.about-description {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-item {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-family: var(--tech-font);
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  z-index: -1;
}

.tech-item:hover::before {
  left: 0;
}

.tech-item:hover {
  color: white;
  transform: translateY(-2px);
  border-color: transparent;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(236, 72, 153, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  font-family: var(--tech-font);
}

.project-link:hover {
  background-color: white;
  transform: translateY(-2px);
}

.project-content {
  padding: 1.5rem;
}

.project-title,
.article-title {
  font-weight: 700;
  font-size: 1.5rem;
  transition: var(--transition);
  font-family: var(--tech-font);
}

.project-title:hover,
.article-title:hover {
  color: var(--primary-color);
}

.project-description {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--tech-font);
}

/* Skills Section */
.skills {
  background-color: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.skill-category-title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
  font-family: var(--tech-font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-icon {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.skill-name {
  flex: 1;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--tech-font);
}

.skill-item:hover .skill-name {
  color: var(--primary-color);
  transform: translateX(0.25rem);
}

.skill-level {
  flex: 2;
  height: 0.75rem;
  background-color: var(--bg-secondary);
  border-radius: 0.375rem;
  overflow: hidden;
  position: relative;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 0.375rem;
  transition: width 2s ease-out;
  position: relative;
}

.skill-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

/* Skill bar percentages */
.skill-90 {
  width: 90%;
  animation: fillBar90 2s ease-out 1s forwards;
}
.skill-85 {
  width: 85%;
  animation: fillBar85 2s ease-out 1s forwards;
}
.skill-95 {
  width: 95%;
  animation: fillBar95 2s ease-out 1s forwards;
}
.skill-80 {
  width: 80%;
  animation: fillBar80 2s ease-out 1s forwards;
}
.skill-75 {
  width: 75%;
  animation: fillBar75 2s ease-out 1s forwards;
}
.skill-70 {
  width: 70%;
  animation: fillBar70 2s ease-out 1s forwards;
}

@keyframes fillBar90 {
  from {
    width: 0;
  }
  to {
    width: 90%;
  }
}
@keyframes fillBar85 {
  from {
    width: 0;
  }
  to {
    width: 85%;
  }
}
@keyframes fillBar95 {
  from {
    width: 0;
  }
  to {
    width: 95%;
  }
}
@keyframes fillBar80 {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}
@keyframes fillBar75 {
  from {
    width: 0;
  }
  to {
    width: 75%;
  }
}
@keyframes fillBar70 {
  from {
    width: 0;
  }
  to {
    width: 70%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* AI Expertise Section */
.ai-expertise {
  background-color: var(--bg-secondary);
}

.ai-content {
  text-align: center;
}

.ai-description {
  margin-bottom: 3rem;
}

.ai-description p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.ai-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.ai-skill-card {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-skill-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color),
    var(--primary-color)
  );
  opacity: 0;
  transition: var(--transition);
  animation: rotateBackground 10s linear infinite;
}

.ai-skill-card:hover::before {
  opacity: 0.1;
}

.ai-skill-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.ai-skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.ai-skill-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-family: var(--tech-font);
  position: relative;
  z-index: 1;
}

.ai-skill-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--primary-color);
  font-family: serif;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.testimonial-card:hover::after {
  transform: scaleX(1);
}

.testimonial-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-xl);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-family: var(--tech-font);
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Blog Section */
.blog {
  background-color: var(--bg-primary);
}

.blog-description {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-description p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-tabs {
  max-width: 1200px;
  margin: 0 auto;
}

/* Tab Navigation */
input[name="blog-tab"] {
  display: none;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-button {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.875rem;
  font-family: var(--tech-font);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.tab-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  z-index: -1;
}

.tab-button:hover::before {
  left: 0;
}

.tab-button:hover {
  color: white;
  border-color: transparent;
}

/* Active tab styles */
#frontend-tab:checked ~ .tab-buttons label[for="frontend-tab"],
#security-tab:checked ~ .tab-buttons label[for="security-tab"],
#networking-tab:checked ~ .tab-buttons label[for="networking-tab"],
#ai-tab:checked ~ .tab-buttons label[for="ai-tab"] {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tab-content {
  min-height: 600px;
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

/* Show active tab panels */
#frontend-tab:checked ~ .tab-content #frontend-content,
#security-tab:checked ~ .tab-content #security-content,
#networking-tab:checked ~ .tab-content #networking-content,
#ai-tab:checked ~ .tab-content #ai-content {
  display: block;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.article-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.article-category {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--tech-font);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.article-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.article-title {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.article-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--tech-font);
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 1.25rem;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  z-index: -1;
}

.contact-link:hover::before {
  left: 0;
}

.contact-link:hover {
  color: white;
  transform: translateX(0.5rem);
  border-color: transparent;
}

.contact-icon {
  font-size: 1.25rem;
}

.contact-form {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--tech-font);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer p {
  color: var(--text-muted);
  margin: 0;
  font-family: var(--tech-font);
  font-weight: 500;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
 
  animation: fadeInUp 0.5s ease-out 5s forwards;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-0.75rem) translateX(-50%);
  }
  60% {
    transform: translateY(-0.375rem) translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes rotateBackground {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .loading-content {
    padding: 0 1rem;
  }

  .profile-photo-loader {
    width: 100px;
    height: 100px;
  }

  .loading-text h2 {
    font-size: 1.5rem;
  }

  .loading-text p {
    font-size: 1rem;
  }

  .loading-bar {
    width: 150px;
  }

  #mobile-menu-toggle:checked ~ .navbar .nav-menu {
    position: fixed;
    left: 0;
    top: 4rem;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    gap: 1.5rem;
  }

  #theme-toggle:checked ~ .navbar .nav-menu {
    background: rgba(15, 23, 42, 0.98);
  }

  .nav-menu {
    left: -100%;
    transition: var(--transition);
  }

  .hamburger {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .profile-ring {
    width: 250px;
    height: 250px;
  }

  .profile-photo {
    width: 220px;
    height: 220px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-actions {
    flex-direction: column;
    align-items: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .ai-skills-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    gap: 0.5rem;
  }

  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
  }

  .scroll-to-top {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .profile-ring {
    width: 200px;
    height: 200px;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .theme-toggle-label,
  .hamburger,
  .scroll-indicator,
  .scroll-to-top,
  .loading-screen {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }

  .profile-ring::after {
    display: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator,
  .loading-ring,
  .profile-ring,
  .skill-bar::after {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  }

  #theme-toggle:checked ~ * {
    --border-color: #ffffff;
  }

  .btn,
  .contact-link,
  .project-link {
    border: 2px solid currentColor;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Enhanced interactive elements */
.nav-link,
.btn,
.contact-link,
.project-link,
.tab-button,
.theme-toggle-label {
  position: relative;
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced loading screen for mobile */
@media (max-width: 768px) {
  .loading-screen {
    padding: 2rem 1rem;
  }

  .loading-content {
    max-width: 100%;
  }
}

/* Interactive color scheme enhancements */
:root {
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --gradient-tertiary: linear-gradient(135deg, var(--accent-color), var(--success-color));
}

/* Enhanced button interactions */
.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.contact-link:active,
.project-link:active {
  transform: scale(0.98);
}

/* Enhanced mobile touch targets */
@media (max-width: 768px) {
  .btn,
  .nav-link,
  .contact-link,
  .tab-button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Enhanced Contact Form Styles */
.contact-form select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  font-size: 1rem;
  cursor: pointer;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* Success Message Styles */
.form-success {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  animation: slideInUp 0.5s ease-out;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-family: var(--tech-font);
}

.form-success p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Enhanced Button States */
.btn-loading {
  display: none;
}

.contact-form:invalid .btn-primary {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Form Validation Styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Enhanced Mobile Form Styles */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 1.25rem;
    font-size: 1.1rem;
  }
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .blog {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            padding: 3rem;
            margin: 2rem 0;
        }

        .section-title {
            text-align: center;
            font-size: 3rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .blog-description {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 1.2rem;
            color: #666;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Tab System */
        .blog-tabs input[type="radio"] {
            display: none;
        }

        .tab-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .tab-button {
            padding: 1rem 2rem;
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            color: #495057;
        }

        .tab-button:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }

        #frontend-tab:checked ~ .tab-buttons label[for="frontend-tab"],
        #security-tab:checked ~ .tab-buttons label[for="security-tab"],
        #networking-tab:checked ~ .tab-buttons label[for="networking-tab"],
        #ai-tab:checked ~ .tab-buttons label[for="ai-tab"] {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-color: transparent;
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        }

        .tab-panel {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        #frontend-tab:checked ~ .tab-content #frontend-content,
        #security-tab:checked ~ .tab-content #security-content,
        #networking-tab:checked ~ .tab-content #networking-content,
        #ai-tab:checked ~ .tab-content #ai-content {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Articles Grid */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .article-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .article-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .article-image {
            height: 200px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
            text-align: center;
            padding: 1rem;
            position: relative;
            overflow: hidden;
        }

        .article-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%);
            background-size: 20px 20px;
            animation: slide 20s linear infinite;
        }

        @keyframes slide {
            0% { transform: translateX(-20px); }
            100% { transform: translateX(0); }
        }

        .article-content {
            padding: 1.5rem;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .article-category {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .article-date {
            color: #888;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .article-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 0.8rem;
            line-height: 1.4;
        }

        .article-excerpt {
            color: #666;
            line-height: 1.6;
            font-size: 0.95rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }

            .blog {
                padding: 2rem 1.5rem;
            }

            .section-title {
                font-size: 2.2rem;
            }

            .tab-buttons {
                flex-direction: column;
                align-items: center;
            }

            .tab-button {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }

            .articles-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .article-card {
                margin-bottom: 1rem;
            }
        }

        /* Special styling for different categories */
        #frontend-content .article-image { background: linear-gradient(135deg, #667eea, #764ba2); }
        #security-content .article-image { background: linear-gradient(135deg, #f093fb, #f5576c); }
        #networking-content .article-image { background: linear-gradient(135deg, #4facfe, #00f2fe); }
        #ai-content .article-image { background: linear-gradient(135deg, #43e97b, #38f9d7); }

        #frontend-content .article-category { background: linear-gradient(135deg, #667eea, #764ba2); }
        #security-content .article-category { background: linear-gradient(135deg, #f093fb, #f5576c); }
        #networking-content .article-category { background: linear-gradient(135deg, #4facfe, #00f2fe); }
        #ai-content .article-category { background: linear-gradient(135deg, #43e97b, #38f9d7); }

        /* Article content styling */
        .article-full {
            display: none;
            margin-top: 2rem;
            padding: 2rem;
            background: #f8f9fa;
            border-radius: 10px;
            line-height: 1.8;
        }

        .article-full h4 {
            color: #2c3e50;
            margin: 1.5rem 0 1rem 0;
            font-size: 1.2rem;
        }

        .article-full p {
            margin-bottom: 1rem;
            color: #555;
        }

        .article-full code {
            background: #e9ecef;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            color: #d63384;
        }

       
       /* Read More Toggle */
        .read-more-toggle {
            display: none;
        }

        .read-more {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }

        .read-more:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .article-full {
            display: none;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid #e9ecef;
            animation: expandContent 0.5s ease-in-out;
        }

        .read-more-toggle:checked ~ .article-full {
            display: block;
        }

        .read-more-toggle:checked ~ .read-more::after {
            content: "Show Less";
        }

        .read-more::after {
            content: "Read More";
        }

        @keyframes expandContent {
            from { 
                opacity: 0; 
                max-height: 0; 
                transform: translateY(-10px);
            }
            to { 
                opacity: 1; 
                max-height: 1000px; 
                transform: translateY(0);
            }
        }

        .article-full h4 {
            color: #212529;
            font-size: 1.1rem;
            font-weight: 700;
            margin: 1.5rem 0 0.75rem 0;
        }

        .article-full h4:first-child {
            margin-top: 0;
        }

        .article-full p {
            color: #495057;
            margin-bottom: 1rem;
            line-height: 1.7;
        }

        .article-full code {
            background: #f8f9fa;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 0.9rem;
            color: #e83e8c;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .tab-buttons {
                flex-wrap: wrap;
            }

            .tab-button {
                padding: 0.75rem 1rem;
                font-size: 0.9rem;
            }

            .articles-grid {
                grid-template-columns: 1fr;
            }

            .article-content {
                padding: 1rem;
            }
        }
