:root {
  --primary: #0F172A;
  --secondary: #1E293B;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  
  /* Enhanced sky gradient */
  --gradient: linear-gradient(to bottom, 
    #87CEEB 0%,     /* Sky blue at top */
    #E0F6FF 25%,    /* Light blue */
    #B0E0E6 50%,    /* Powder blue */
    #FFF8DC 75%,    /* Cornsilk */
    #F5DEB3 100%    /* Wheat at bottom */
  );
  
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Technology-specific gradients */
  --python-gradient: linear-gradient(135deg, #3776ab 0%, #ffd343 100%);
  --blazor-gradient: linear-gradient(135deg, #512bd4 0%, #0067b8 100%);
  --javascript-gradient: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
  --react-gradient: linear-gradient(135deg, #61dafb 0%, #21b5c4 100%);
  --sql-gradient: linear-gradient(135deg, #336791 0%, #50a3d9 100%);
  --azure-gradient: linear-gradient(135deg, #0078d4 0%, #40e0d0 100%);
  --docker-gradient: linear-gradient(135deg, #2496ed 0%, #0db7ed 100%);
  --git-gradient: linear-gradient(135deg, #f05032 0%, #f14e32 100%);
  --nodejs-gradient: linear-gradient(135deg, #8cc84b 0%, #6cc24a 100%);
  
  /* Lerp values for hover effect */
  --lerp-0: 1;
  --lerp-1: 0.5625;
  --lerp-2: 0.25;
  --lerp-3: 0.0625;
  --lerp-4: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Main Layout */
.main-container {
  display: flex;
  min-height: 100vh;
}

/* Left Panel - Fixed with enhanced sky background */
.left-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 40%;
  height: 100vh;
  background: var(--gradient);
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  z-index: 100;
  /* overflow: hidden; */
  /* position: relative; */
}

/* Enhanced atmospheric effects */
.left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Subtle clouds */
    radial-gradient(ellipse 200px 100px at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 300px 150px at 80% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 250px 120px at 40% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 180px 90px at 70% 80%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
    /* Grid pattern overlay */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.6;
  z-index: 1;
  animation: cloudDrift 60s linear infinite;
}

/* Floating cloud animation */
@keyframes cloudDrift {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(10px) translateY(-5px);
  }
  50% {
    transform: translateX(-5px) translateY(5px);
  }
  75% {
    transform: translateX(8px) translateY(-3px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Additional atmospheric layer */
.left-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Horizon glow */
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(255, 248, 220, 0.3) 0%, transparent 70%),
    /* Sky highlight */
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(135, 206, 235, 0.2) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.left-content {
  position: relative;
  z-index: 10;
  max-width: 100%;
}

.profile-image {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.left-panel h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.left-panel .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.left-panel .description {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cta-button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Right Panel - Scrollable */
.right-panel {
  margin-left: 40%;
  width: 60%;
  background: var(--light);
}

/* Navigation for right panel */
.right-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  z-index: 50;
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3B82F6 0%, #667eea 100%);
  transition: width 0.3s ease;
}

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

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

/* Content sections */
.content-section {
  padding: 6rem 3rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-section:first-child {
  padding-top: 8rem;
}

/* About Section */
.about-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-tag {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* My Toolbox Section */
.toolbox {
  background: var(--white);
  text-align: center;
}

.toolbox h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.toolbox .section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Technology Toolbar */
.tech-blocks {
  display: flex;
  list-style-type: none;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  align-content: center;
  margin: 0 auto;
  max-width: fit-content;
  flex-wrap: wrap;
}

.tech-blocks:hover {
  --show: 1;
}

.tech-block {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  align-content: center;
  transition: flex 0.3s ease;
  flex: calc(0.2 + (var(--lerp, 0) * .25));
  position: relative;
  text-decoration: none;
  outline: none;
}

.tech-block:after {
  content: '';
  width: 8%;
  aspect-ratio: 1;
  background: var(--text-secondary);
  position: absolute;
  bottom: 8%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.3;
}

.tech-block:before {
  content: '';
  position: absolute;
  width: calc(100% + 1rem);
  bottom: 0;
  aspect-ratio: 1 / 2;
  left: 50%;
  transition: transform 0.3s ease;
  transform-origin: 50% 100%;
  transform: translateX(-50%) scaleY(var(--show, 0));
  z-index: -1;
  border-radius: 10px;
}

.tech-block .block__item {
  transition: all 0.3s ease;
  outline: transparent 2px solid;
  position: relative;
}

:is(.tech-block:hover, .tech-block:focus-visible) .block__item {
  outline: var(--accent) 2px solid;
  transform: scale(1.1);
}

.tech-block__item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 15px;
  background: var(--tech-bg, linear-gradient(135deg, #3B82F6 0%, #667eea 100%));
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: 50% 100%;
  position: relative;
  transform: translateY(calc(var(--lerp) * -75%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tech-block__item:after {
  content: '';
  position: absolute;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  border-top: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
}

/* Hover effects for tech blocks */
:is(.tech-block:hover, .tech-block:focus-visible) {
  --lerp: var(--lerp-0);
  z-index: 5;
}
.tech-block:has( + :is(.tech-block:hover, .tech-block:focus-visible)),
:is(.tech-block:hover, .tech-block:focus-visible) + .tech-block {
  --lerp: var(--lerp-1);
  z-index: 4;
}
.tech-block:has( + .tech-block + :is(.tech-block:hover, .tech-block:focus-visible)),
:is(.tech-block:hover, .tech-block:focus-visible) + .tech-block + .tech-block {
  --lerp: var(--lerp-2);
  z-index: 3;
}
.tech-block:has( + .tech-block + .tech-block + :is(.tech-block:hover, .tech-block:focus-visible)),
:is(.tech-block:hover, .tech-block:focus-visible) + .tech-block + .tech-block + .tech-block {
  --lerp: var(--lerp-3);
  z-index: 2;
}
.tech-block:has( + .tech-block + .tech-block + .tech-block + :is(.tech-block:hover, .tech-block:focus-visible)),
:is(.tech-block:hover, .tech-block:focus-visible) + .tech-block + .tech-block + .tech-block + .tech-block {
  --lerp: var(--lerp-4);
  z-index: 1;
}

/* Tech-specific styling */
.tech-python { --tech-bg: var(--python-gradient); }
.tech-blazor { --tech-bg: var(--blazor-gradient); }
.tech-javascript { --tech-bg: var(--javascript-gradient); color: #333 !important; }
.tech-react { --tech-bg: var(--react-gradient); }
.tech-sql { --tech-bg: var(--sql-gradient); }
.tech-azure { --tech-bg: var(--azure-gradient); }
.tech-docker { --tech-bg: var(--docker-gradient); }
.tech-git { --tech-bg: var(--git-gradient); }
.tech-nodejs { --tech-bg: var(--nodejs-gradient); }

/* Services Section */
.services {
  background: var(--light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3B82F6 0%, #667eea 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3B82F6 0%, #667eea 100%);
  color: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--light);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease;
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 3rem;
  color: var(--accent);
  font-weight: bold;
  opacity: 0.3;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background: var(--light);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-button {
  background: linear-gradient(135deg, #3B82F6 0%, #667eea 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .left-panel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }
  
  .right-panel {
    margin-left: 0;
    width: 100%;
  }
  
  .right-nav {
    width: 100%;
    position: relative;
  }
  
  .content-section {
    padding: 4rem 2rem 3rem;
    min-height: auto;
  }
  
  .left-panel h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-cards, .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-blocks {
    gap: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .tech-block {
    width: 50px;
    height: 50px;
  }
  
  .tech-block__item {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .content-section {
    padding: 3rem 1.5rem 2rem;
  }
  
  .tech-blocks {
    gap: 0.75rem;
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tech-block {
    width: 45px;
    height: 45px;
  }
  
  .tech-block__item {
    font-size: 1.2rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card, .testimonial-card, .tech-block {
  animation: fadeInUp 0.6s ease forwards;
}

.loading {
  text-align: center;
  padding: 3rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.error {
  text-align: center;
  padding: 2rem;
  color: #e74c3c;
  background: #ffeaea;
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 500px;
  border: 1px solid #f5c6cb;
}

.blog-card {
  background: var(--light);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3B82F6 0%, #667eea 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #3B82F6 0%, #667eea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.blog-card-content {
  padding: 2rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent-hover);
}