/* Modern UI Styles - Redesigned by Claude */
:root {
  /* Modern color palette - Masculine update */
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #93c5fd;
  --secondary-color: #0e7490;
  --secondary-light: #67e8f9;
  --gradient-1: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-2: linear-gradient(135deg, #2563eb, #0369a1);
  --dark-color: #0f172a;
  --dark-secondary: #1e293b;
  --light-color: #f8fafc;
  --gray-color: #64748b;
  --gray-light: #cbd5e1;
  --success-color: #10b981;
  --error-color: #ef4444;
  --text-color: #334155;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;

  /* Shadows and effects */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 14px 28px rgba(15, 23, 42, 0.15),
    0 10px 10px rgba(15, 23, 42, 0.08);

  /* Dimensions */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1.25rem;
  --border-radius-full: 9999px;
  --max-width: 1280px;
  --header-height: 4.5rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--dark-color);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

section {
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-1);
  background: linear-gradient(to right, #2563eb, #0e7490);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--gray-color);
}

.bg-blur {
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--primary-light) 0%,
    rgba(99, 102, 241, 0) 70%
  );
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
}

.bg-blur-1 {
  top: -10%;
  right: -10%;
}

.bg-blur-2 {
  bottom: -10%;
  left: -10%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-md);
  gap: 0.5rem;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  z-index: -1;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-outline {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px var(--primary-color);
  color: var(--primary-color);
}

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

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

.btn-secondary:hover {
  background-color: #db2777;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-icon:hover {
  transform: translateY(-3px);
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

/* Header & Navigation */
header {
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

.logo a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  left: 0;
  bottom: -5px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.logo a:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--dark-color);
  margin: 6px;
  transition: var(--transition);
  border-radius: 2px;
}

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

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(15, 23, 42, 0.15);
  z-index: 3;
  transform: translateY(20px) scale(0.9);
  opacity: 0.15;
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.hero-image-container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--gradient-1);
  z-index: -1;
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 3D Geometric Shape - Disabled */
.geometric-element {
  display: none; /* Hide all geometric elements */
  visibility: hidden;
  opacity: 0;
}

/* 
.geometric-element {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.geometric-element-1 {
  right: 10%;
  top: 25%;
  width: 80px;
  height: 80px;
  border: 3px solid var(--primary-color);
  transform: perspective(800px) rotateX(45deg) rotateY(15deg) rotate(45deg)
    scale(0.9);
  animation: float 6s ease-in-out infinite alternate;
}

.geometric-element-2 {
  left: 15%;
  top: 30%;
  width: 60px;
  height: 60px;
  border: 3px solid var(--secondary-color);
  transform: perspective(800px) rotateX(65deg) rotateY(25deg) rotate(20deg)
    scale(0.9);
  animation: float 5s ease-in-out infinite alternate-reverse;
}

.geometric-element-3 {
  right: 18%;
  bottom: 25%;
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary-light);
  transform: perspective(800px) rotateX(35deg) rotateY(45deg) rotate(10deg)
    scale(0.9);
  animation: float 7s ease-in-out infinite alternate;
}
*/

@keyframes float {
  0% {
    transform: perspective(800px) rotateX(45deg) rotateY(15deg) translateY(0)
      scale(0.9);
  }
  100% {
    transform: perspective(800px) rotateX(45deg) rotateY(15deg) translateY(15px)
      scale(1);
  }
}

.code-bracket {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 3rem;
  opacity: 0.08;
  z-index: 1;
  color: var(--dark-color);
  animation: fadeFloat 8s ease-in-out infinite alternate;
}

.bracket-open {
  left: 10%;
  top: 20%;
}

.bracket-close {
  right: 10%;
  bottom: 20%;
}

@keyframes fadeFloat {
  0% {
    transform: translateY(0);
    opacity: 0.08;
  }
  100% {
    transform: translateY(10px);
    opacity: 0.12;
  }
}

.hero-loaded .hero-image-container,
.hero-loaded .code-bracket {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 
.hero-loaded .geometric-element-1 {
  animation: float 6s ease-in-out infinite alternate;
}

.hero-loaded .geometric-element-2 {
  animation: float 5s ease-in-out infinite alternate-reverse;
}

.hero-loaded .geometric-element-3 {
  animation: float 7s ease-in-out infinite alternate;
}
*/

.hero h1 {
  opacity: 0.15;
  transform: translateY(-25px) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.hero p {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--gray-color);
  opacity: 0.15;
  transform: translateY(25px) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.15s,
    transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.15s;
  will-change: opacity, transform;
}

.hero .btn-group {
  justify-content: center;
  opacity: 0.15;
  transform: translateY(25px) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s,
    transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
  will-change: opacity, transform;
}

/* Add this class to make hero elements visible when loaded */
.hero-loaded .hero h1,
.hero-loaded .hero p,
.hero-loaded .hero .btn-group {
  opacity: 1;
  transform: translateY(0);
}

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

.hero-shape {
  position: absolute;
  background: var(--gradient-2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(30px);
  opacity: 0;
  z-index: -1;
  animation: morphShape 20s linear infinite alternate;
  transform: scale(0.9);
  transition: opacity 1s ease-out;
}

.hero-shape-1 {
  width: 60%;
  height: 60%;
  top: -20%;
  right: -20%;
  opacity: 0;
  background: linear-gradient(135deg, #1e40af, #075985);
}

.hero-shape-2 {
  width: 40%;
  height: 40%;
  bottom: -10%;
  left: -10%;
  background: linear-gradient(135deg, #0e7490, #0c4a6e);
  animation-delay: -10s;
  opacity: 0;
}

.hero-loaded .hero-shape-1 {
  opacity: 0.2;
  transform: scale(1);
  animation: morphShape 20s linear infinite alternate;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-loaded .hero-shape-2 {
  opacity: 0.2;
  transform: scale(1);
  animation: morphShape 20s linear infinite alternate;
  transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
}

@keyframes morphShape {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.fade-in {
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(60px) scale(0.93);
  transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
}

/* Featured Projects Section */
.featured-projects {
  background-color: var(--light-color);
  position: relative;
  perspective: 1000px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-origin: center bottom;
  will-change: transform, box-shadow;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  opacity: 0;
  z-index: 2;
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  border-radius: var(--border-radius-lg);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 15px 20px rgba(0, 0, 0, 0.1);
}

.project-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.project-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.project-card:hover .project-img::before {
  opacity: 1;
}

.project-img {
  background-color: var(--light-color);
}

.project-img img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Custom background colors for specific project cards */
.project-card[data-bg-color] .project-img {
  background-color: var(--card-bg-color, var(--light-color));
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tags {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.3rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

/* Email display button */
#show-email-btn {
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  transition: var(--transition);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#show-email-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
  z-index: -1;
}

#show-email-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

#show-email-btn:active {
  transform: translateY(-1px);
}

/* Email address styling */
#email-placeholder {
  transition: opacity 0.3s ease;
}

#email-address a {
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 3px;
}

#email-address a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#email-address a:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* About Section */
.about-section {
  background-color: var(--card-bg);
  position: relative;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: var(--border-radius-lg);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-img::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  z-index: 0;
}

.about-content h2 {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.skill-category h3 {
  position: relative;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--gradient-1);
  left: 0;
  bottom: -8px;
  border-radius: var(--border-radius-full);
}

.skill-category ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.skill-category ul li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.5rem;
}

.experience-item,
.education-item {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 2rem;
}

.experience-item::before,
.education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.company,
.institution {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-section {
  background-color: var(--light-color);
  position: relative;
}

.projects-section h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

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

.filter-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-full);
  transition: var(--transition);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  background-color: white;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.project-description {
  margin-bottom: 1.5rem;
}

/* Blog Section */
.blog-section {
  background-color: var(--card-bg);
  position: relative;
}

.blog-header {
  margin-bottom: 4rem;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    rgba(99, 102, 241, 0.05)
  );
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.blog-intro {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.blog-platform-img {
  max-width: 180px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
}

.blog-platform-info h2 {
  margin-bottom: 1.25rem;
}

.blog-categories {
  margin-bottom: 4rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.topic-tag {
  background-color: white;
  color: var(--primary-color);
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.topic-tag:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.featured-articles h3 {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.featured-articles h3::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--gradient-1);
  left: 0;
  bottom: -8px;
  border-radius: var(--border-radius-full);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.article-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.article-image {
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-content h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-date {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-date i {
  color: var(--primary-color);
}

.article-excerpt {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
  flex: 1;
}

.article-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.youtube-section {
  margin-top: 5rem;
  text-align: center;
  padding: 4rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(236, 72, 153, 0.08)
  );
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.youtube-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    var(--secondary-light) 0%,
    rgba(236, 72, 153, 0) 70%
  );
  top: -150px;
  right: -150px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.2;
  z-index: 0;
}

.youtube-section h3 {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.youtube-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

/* Contact Section */
.contact-section {
  background-color: var(--light-color);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2.5rem;
}

.contact-details {
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-item-icon {
  background-color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  color: var(--primary-color);
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.contact-item-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-item-content a,
.contact-item-content p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-social a {
  font-size: 1.25rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  color: var(--dark-color);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.contact-social a:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.contact-form h3 {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--light-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.btn-submit {
  width: 100%;
}

#formStatus {
  margin-top: 1.25rem;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  text-align: center;
}

#formStatus.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

#formStatus.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

/* Map Section */
.map-section {
  height: 400px;
  width: 100%;
  position: relative;
  margin-top: -80px;
  z-index: 1;
}

.map-responsive {
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-lg);
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: none;
}

.social-heading {
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
}

.social-heading::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  bottom: -5px;
  border-radius: var(--border-radius-full);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-logo a {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  position: relative;
}

.footer-logo a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  left: 0;
  bottom: -5px;
  border-radius: var(--border-radius-full);
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  margin: 1.5rem 0;
}

.footer-links a {
  color: var(--gray-light);
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.25rem;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  color: var(--gray-light);
  font-size: 0.9rem;
}

.company-info {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.company-info a {
  color: var(--primary-light);
  font-weight: 500;
  transition: var(--transition);
}

.company-info a:hover {
  color: white;
  text-decoration: underline;
}

.project-company {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  font-size: 0.95rem;
}

.project-company i {
  color: var(--primary-color);
}

.project-company a {
  font-weight: 500;
  transition: var(--transition);
}

.project-company a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--dark-secondary),
    var(--dark-color)
  );
  z-index: 0;
}

.footer-shape {
  position: absolute;
  background: var(--gradient-1);
  filter: blur(70px);
  opacity: 0.05;
  z-index: 1;
}

.footer-shape-1 {
  width: 40%;
  height: 30%;
  top: 20%;
  right: -10%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.footer-shape-2 {
  width: 20%;
  height: 20%;
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
}

/* Skills Showcase Section */
.skills-showcase {
  background-color: var(--card-bg);
  position: relative;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.skill-category {
  padding: 2.5rem;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.skill-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--border-radius-md);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.skill-category h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.skill-category p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  top: -50%;
  left: -50%;
  animation: ctaBackgroundMove 20s linear infinite;
  z-index: 1;
}

@keyframes ctaBackgroundMove {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: var(--primary-dark);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Badge Classes */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.badge-coming-soon {
  background-color: var(--secondary-light);
  color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 992px) {
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-info {
    text-align: center;
  }

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

  .contact-item-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .contact-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 4rem;
  }

  html {
    font-size: 15px;
  }

  section {
    padding: 5rem 1rem;
  }

  .burger {
    display: block;
    z-index: 101;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 0;
  }

  .burger.active .line1 {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  .burger.active .line2 {
    opacity: 0;
  }

  .burger.active .line3 {
    transform: rotate(45deg) translate(-6px, -6px);
  }

  .blog-intro {
    flex-direction: column;
    text-align: center;
  }

  .blog-platform-img {
    margin-bottom: 1.5rem;
  }

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

  .projects-filter {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .filter-btn {
    width: 80%;
  }

  /* Optimize animations for mobile */
  .fade-in {
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
      transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateY(30px) scale(0.97); /* Slightly smaller transform for mobile */
  }

  /* Optimize hero animations for mobile */
  .hero h1,
  .hero p,
  .hero .btn-group {
    transition-duration: 1s;
    backface-visibility: hidden;
    transform-style: preserve-3d;
  }

  .hero h1 {
    transform: translateY(-30px) scale(0.97);
  }

  .hero p,
  .hero .btn-group {
    transform: translateY(30px) scale(0.97);
  }

  /* Use transform instead of opacity for better performance on mobile */
  .project-card,
  .skill-category {
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links .btn-small {
    width: 100%;
  }

  .youtube-section {
    padding: 2.5rem 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Animations and Special Effects */
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  100% {
    transform: translateY(0);
  }
}

.float-animation {
  animation: floatAnimation 8s ease-in-out infinite;
}

.hover-lift {
  transition: var(--transition);
}

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

.no-scroll {
  overflow: hidden;
}

.typing-effect::after {
  content: '|';
  animation: typing 1s infinite;
}

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

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

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

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--primary-light);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.scroll-top i {
  font-size: 1.25rem;
}

/* Add new float animation with more subtle elegance */
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  100% {
    transform: translateY(0);
  }
}

.float-animation {
  animation: floatAnimation 8s ease-in-out infinite;
}

/* Code symbols and tech icons - New additions */
.code-symbol,
.tech-icon,
.tech-symbol {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 2rem;
  z-index: 1;
  color: var(--dark-color);
  animation: techFloat 8s ease-in-out infinite alternate;
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  opacity: 0;
}

/* Positioning for new elements */
.hash-symbol {
  left: 22%;
  top: 35%;
  font-size: 2.2rem;
  animation-delay: 0.8s;
  animation-duration: 7s;
}

.bracket-angle-open {
  left: 29%;
  top: 60%;
  font-size: 2.5rem;
  animation-delay: 1.2s;
  animation-duration: 8.5s;
}

.bracket-angle-close {
  right: 32%;
  top: 40%;
  font-size: 2.5rem;
  animation-delay: 2s;
  animation-duration: 7.5s;
}

.slash-symbol {
  right: 18%;
  top: 62%;
  font-size: 2.8rem;
  animation-delay: 1.5s;
  animation-duration: 9s;
}

.dollar-symbol {
  left: 36%;
  bottom: 28%;
  font-size: 1.8rem;
  animation-delay: 0.5s;
  animation-duration: 8.2s;
}

.binary-icon {
  right: 21%;
  top: 28%;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  animation-delay: 1s;
  animation-duration: 7.8s;
}

.function-icon {
  left: 8%;
  bottom: 40%;
  font-size: 1.8rem;
  font-weight: 500;
  animation-delay: 1.7s;
  animation-duration: 6.5s;
}

.array-icon {
  right: 32%;
  bottom: 22%;
  font-size: 2.2rem;
  animation-delay: 0.3s;
  animation-duration: 8.8s;
}

.terminal-icon {
  left: 40%;
  top: 15%;
  font-size: 2rem;
  font-weight: 700;
  animation-delay: 2.2s;
  animation-duration: 6.2s;
}

/* New subtle tech symbols */
.semicolon-symbol {
  right: 42%;
  top: 20%;
  font-size: 2.4rem;
  animation-delay: 0.3s;
  animation-duration: 9.2s;
}

.bracket-curly {
  left: 19%;
  top: 42%;
  font-size: 1.6rem;
  animation-delay: 1.9s;
  animation-duration: 7.1s;
  opacity: 0.08; /* Extra subtle */
}

.equals-symbol {
  right: 15%;
  bottom: 42%;
  font-size: 1.8rem;
  animation-delay: 1.1s;
  animation-duration: 8.7s;
}

.dot-symbol {
  left: 40%;
  bottom: 21%;
  font-size: 2.6rem;
  animation-delay: 0.7s;
  animation-duration: 7.4s;
}

.colon-symbol {
  right: 48%;
  top: 58%;
  font-size: 2rem;
  animation-delay: 1.5s;
  animation-duration: 8.1s;
}

.comment-symbol {
  left: 28%;
  bottom: 38%;
  font-size: 1.4rem;
  animation-delay: 0.9s;
  animation-duration: 7.8s;
  opacity: 0.08; /* Extra subtle */
}

.arrow-symbol {
  right: 25%;
  bottom: 18%;
  font-size: 1.6rem;
  animation-delay: 2.2s;
  animation-duration: 8.9s;
}

/* More subtle float animation for tech symbols */
@keyframes techFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
  100% {
    transform: translateY(5px) rotate(-1deg);
  }
}

/* Remove the old tech-element styles */
/* Tech geometric elements */
.tech-element {
  display: none; /* Hide any remaining elements */
}

/* Add this class to make hero elements visible when loaded */
.hero-loaded .code-symbol,
.hero-loaded .tech-icon,
.hero-loaded .tech-symbol {
  opacity: 0.1; /* Consistent subtle opacity for all symbols */
  transform: translateY(0);
}

/* Extra subtle symbols */
.hero-loaded .bracket-curly,
.hero-loaded .comment-symbol {
  opacity: 0.07; /* Even more subtle for these specific elements */
}

/* Hero loading effects and animations continue */
.hero-loaded .hero h1,
.hero-loaded .hero p,
.hero-loaded .hero .btn-group {
  opacity: 1;
  transform: translateY(0);
}
