/* =============================================
   HOMEPAGE SPECIFIC STYLES
   Modern dark theme with enhanced animations
   ============================================= */

/* Page-specific overrides and enhancements */
.homepage {
  background: var(--color-bg-primary);
  overflow-x: hidden;
}

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

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced status indicator */
.status-indicator {
  animation: slideInDown 0.8s ease-out;
}

.status-dot {
  position: relative;
  animation: statusPulse 2s ease-in-out infinite;
}

.status-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--color-online);
  opacity: 0.3;
  animation: ripple 2s linear infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hero title */
.hero-title {
  position: relative;
  z-index: 2;
}

.hero-title .highlight-name-disabled {
  position: relative;
  display: inline-block;
}

.hero-title .highlight-name::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: highlightExpand 1s ease-out 0.5s forwards;
}

@keyframes highlightExpand {
  to {
    transform: scaleX(1);
  }
}

.hero-subtitle {
  animation: slideInUp 1s ease-out 0.3s both;
  transform-origin: left center;
}

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

/* Typing cursor animation */
.typing-cursor {
  animation: blink 1s infinite;
}

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

/* Enhanced action buttons */
.action-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.action-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: left 0.5s;
}

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

.action-btn.primary {
  box-shadow: 
    0 4px 15px rgba(124, 58, 237, 0.4),
    0 0 0 0 rgba(124, 58, 237, 0.5);
  transition: all 0.3s ease;
}

.action-btn.primary:hover {
  box-shadow: 
    0 8px 25px rgba(124, 58, 237, 0.6),
    0 0 0 8px rgba(124, 58, 237, 0.1);
  transform: translateY(-3px) scale(1.02);
}

.action-btn.primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 4px 15px rgba(124, 58, 237, 0.4),
    0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* =============================================
   ENHANCED SIDEBAR NAVIGATION
   ============================================= */

.left-sidebar {
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-nav {
  backdrop-filter: blur(20px);
}

.sidebar-icon {
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: -1;
}

.sidebar-icon:hover::before {
  width: 100%;
  height: 100%;
}

.sidebar-icon.active {
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-primary-light);
  box-shadow: inset 0 0 0 2px rgba(124, 58, 237, 0.3);
}

/* =============================================
   PROJECT CARDS ENHANCEMENTS
   ============================================= */

.project-card {
  position: relative;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

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

.project-images {
  position: relative;
  overflow: hidden;
}

.project-images::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-images::after {
  opacity: 1;
}

.project-image {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-image {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

/* Enhanced tech tags */
.tech-tag {
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.tech-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tech-tag:hover::before {
  opacity: 0.3;
}

.tech-tag:hover {
  transform: translateY(-2px) scale(1.05);
  color: var(--color-text-primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* =============================================
   ABOUT SECTION ENHANCEMENTS
   ============================================= */

.about-section {
  position: relative;
  padding: var(--space-24) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-section .section-title {
  color: var(--color-text-primary);
  -webkit-text-fill-color: var(--color-text-primary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-align: left;
  margin-bottom: var(--space-12);
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  line-height: 1.1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.about-text {
  max-width: 700px;
}

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 var(--space-8) 0;
  text-align: left;
  font-weight: var(--font-normal);
}

/* Tech Stack Section */
.tech-stack {
  margin-top: var(--space-8);
}

.tech-stack-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  text-align: left;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: var(--space-3);
  max-width: 600px;
}

.tech-item {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary-light);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-align: center;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  aspect-ratio: 1;
}

.tech-item i {
  font-size: var(--text-lg);
  transition: all 0.3s ease;
  opacity: 1;
}

.tech-item .tech-text {
  position: absolute;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.tech-item:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.tech-item:hover i {
  opacity: 0;
  transform: scale(0.8);
}

.tech-item:hover .tech-text {
  opacity: 1;
  transform: scale(1.1);
}

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Texture patterns near the image */
.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 20px 20px, 15px 15px, 25px 25px;
  background-position: 0 0, 10px 10px, 5px 5px;
  z-index: -1;
  opacity: 0.6;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 18px 18px, 12px 12px, 22px 22px;
  background-position: 0 0, 8px 8px, 3px 3px;
  z-index: -1;
  opacity: 0.5;
}

.profile-image {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-3xl);
  border: 3px solid var(--color-primary);
  box-shadow: 
    0 20px 40px rgba(124, 58, 237, 0.3),
    0 0 0 1px rgba(124, 58, 237, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.profile-image:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 25px 50px rgba(124, 58, 237, 0.4),
    0 0 0 1px rgba(124, 58, 237, 0.2);
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .about-text {
    max-width: 100%;
  }
  
  .about-text p {
    font-size: var(--text-base);
  }
  
  .tech-stack-grid {
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  
  .profile-image {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: var(--space-16) 0;
  }
  
  .about-section .section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
  }
  
  .about-text p {
    font-size: var(--text-sm);
    line-height: 1.6;
  }
  
  .tech-stack-title {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
  }
  
  .tech-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: var(--space-2);
  }
  
  .tech-item {
    font-size: var(--text-sm);
    padding: var(--space-1);
    min-height: 35px;
    min-width: 35px;
  }
  
  .tech-item i {
    font-size: var(--text-base);
  }
  
  .tech-item .tech-text {
    font-size: var(--text-xs);
  }
  
  .profile-image {
    width: 250px;
    height: 250px;
  }
}

/* =============================================
   FLOATING ELEMENTS
   ============================================= */

.floating-element {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: floatRandom 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatRandom {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-15px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) translateX(5px) rotate(270deg);
  }
}

/* =============================================
   LOADING STATES
   ============================================= */

.homepage.loading * {
  animation-play-state: paused;
}

.homepage.loaded {
  animation: fadeIn 0.5s ease-out;
}
  
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =============================================
   TEXT ANIMATIONS
   ============================================= */

.section-title span {
  display: inline-block;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title span:hover {
  transform: translateY(-5px) scale(1.1);
  color: var(--color-primary);
}

/* =============================================
   RESPONSIVE ENHANCEMENTS
   ============================================= */

@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-16) 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}

/* =============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .status-dot::before {
    animation: none;
  }
  
  .floating-element {
    animation: none;
  }
}

@media (prefers-contrast: high) {
  .hero-section,
  .project-card,
  .left-sidebar {
    border: 2px solid var(--color-text-primary);
  }
  
  .action-btn,
  .contact-btn {
    border: 2px solid var(--color-text-primary);
  }
}

/* =============================================
   FOCUS MANAGEMENT
   ============================================= */

.sidebar-icon:focus,
.action-btn:focus,
.contact-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
  
.sidebar-icon:focus-visible,
.action-btn:focus-visible {
  transform: scale(1.05);
}

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */

.hero-section,
.projects-section,
.about-section,
.contact-section {
  will-change: transform;
  transform: translateZ(0);
}
  
.project-image,
.profile-image {
  will-change: transform, filter;
}
  
.floating-shapes > * {
  will-change: transform;
  transform: translateZ(0);
} 

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

.contact-section {
  padding: var(--space-24) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Contact Form Section */
.contact-form-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  animation: slideInFromLeft 0.8s ease-out;
}

.contact-form-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-8);
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--space-4);
  position: relative;
  overflow: hidden;
}

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

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

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

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

.submit-btn i {
  font-size: var(--text-sm);
}

/* Contact Info Section */
.contact-info-section {
  animation: slideInFromRight 0.8s ease-out 0.2s both;
}

.contact-info-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  text-align: left;
}

.contact-info-intro {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-info-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-info-item:hover::before {
  opacity: 1;
}

.contact-info-item:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: var(--text-lg);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-info-item:hover .contact-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

/* Form Validation Styles */
.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown) {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading State */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success State */
.submit-btn.success {
  background: #10b981;
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .contact-form-section,
  .contact-info-section {
    animation: slideInFromBottom 0.8s ease-out;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: var(--space-16) 0;
  }
  
  .contact-form-section,
  .contact-info-section {
    padding: var(--space-6);
  }
  
  .contact-form-title,
  .contact-info-title {
    font-size: var(--text-xl);
  }
  
  .contact-info-item {
    padding: var(--space-4);
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .contact-layout {
    gap: var(--space-8);
  }
  
  .submit-btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }
  
  .contact-info-grid {
    gap: var(--space-3);
  }
}

/* Animation Keyframes */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus Management */
.contact-info-item:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .contact-form-section,
  .contact-info-section,
  .contact-info-item,
  .submit-btn {
    animation: none;
    transition: none;
  }
  
  .submit-btn.loading i {
    animation: none;
  }
} 

/* =============================================
   BACKDROP TEXTURES
   ============================================= */

/* Main backdrop texture container */
.backdrop-textures {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Grid pattern texture */
.texture-grid {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 200px;
  height: 200px;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 20px 20px, 15px 15px;
  background-position: 0 0, 10px 10px;
  opacity: 0.6;
  animation: floatSlow 8s ease-in-out infinite;
}

/* Zigzag line texture */
.texture-zigzag {
  position: absolute;
  top: 40%;
  right: 15%;
  width: 120px;
  height: 40px;
  background: linear-gradient(45deg, transparent 30%, rgba(124, 58, 237, 0.1) 30%, rgba(124, 58, 237, 0.1) 40%, transparent 40%, transparent 60%, rgba(124, 58, 237, 0.1) 60%, rgba(124, 58, 237, 0.1) 70%, transparent 70%);
  background-size: 20px 20px;
  opacity: 0.4;
  animation: floatMedium 6s ease-in-out infinite reverse;
}

/* Staircase pattern texture */
.texture-staircase {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 150px;
  height: 80px;
  background: 
    linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.5;
  animation: floatSlow 10s ease-in-out infinite;
}

/* Circular dots texture */
.texture-circles {
  position: absolute;
  top: 60%;
  left: 5%;
  width: 100px;
  height: 20px;
  background-image: 
    radial-gradient(circle, rgba(124, 58, 237, 0.1) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.6;
  animation: floatMedium 7s ease-in-out infinite reverse;
}

/* Large dot grid texture */
.texture-dot-grid {
  position: absolute;
  top: 20%;
  left: 60%;
  width: 120px;
  height: 120px;
  background-image: 
    radial-gradient(circle, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.4;
  animation: floatSlow 9s ease-in-out infinite;
}

/* Floating animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes floatMedium {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-1deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .texture-grid,
  .texture-zigzag,
  .texture-staircase,
  .texture-circles,
  .texture-dot-grid {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

@media (max-width: 480px) {
  .texture-grid,
  .texture-zigzag,
  .texture-staircase,
  .texture-circles,
  .texture-dot-grid {
    opacity: 0.2;
    transform: scale(0.6);
  }
} 

/* =============================================
   PROJECT SECTION TEXTURES
   ============================================= */

.projects-section {
  position: relative;
  overflow: hidden;
}

/* Project section specific textures */
.projects-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 150px;
  height: 150px;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 18px 18px, 12px 12px;
  background-position: 0 0, 8px 8px;
  opacity: 0.5;
  animation: projectFloat 12s ease-in-out infinite;
  z-index: 0;
}

.projects-section::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 100px;
  height: 60px;
  background: 
    linear-gradient(45deg, transparent 40%, rgba(124, 58, 237, 0.08) 40%, rgba(124, 58, 237, 0.08) 50%, transparent 50%),
    linear-gradient(-45deg, transparent 40%, rgba(124, 58, 237, 0.06) 40%, rgba(124, 58, 237, 0.06) 50%, transparent 50%);
  background-size: 25px 25px;
  opacity: 0.4;
  animation: projectFloat 8s ease-in-out infinite reverse;
  z-index: 0;
}

/* Additional project textures */
.projects-texture-1 {
  position: absolute;
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  background-image: 
    radial-gradient(circle, rgba(124, 58, 237, 0.05) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  opacity: 0.6;
  animation: projectFloat 10s ease-in-out infinite;
  z-index: 0;
}

.projects-texture-2 {
  position: absolute;
  top: 30%;
  left: 5%;
  width: 120px;
  height: 40px;
  background: 
    linear-gradient(90deg, rgba(124, 58, 237, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  animation: projectFloat 14s ease-in-out infinite reverse;
  z-index: 0;
}

.projects-texture-3 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 60px;
  height: 60px;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.5;
  animation: projectFloat 9s ease-in-out infinite;
  z-index: 0;
}

/* Project-specific floating animation */
@keyframes projectFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) translateX(3px) rotate(0.5deg);
  }
  66% {
    transform: translateY(-5px) translateX(-2px) rotate(-0.3deg);
  }
}

/* Ensure project cards stay above textures */
.project-card {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for project textures */
@media (max-width: 768px) {
  .projects-section::before,
  .projects-section::after,
  .projects-texture-1,
  .projects-texture-2,
  .projects-texture-3 {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

@media (max-width: 480px) {
  .projects-section::before,
  .projects-section::after,
  .projects-texture-1,
  .projects-texture-2,
  .projects-texture-3 {
    opacity: 0.2;
    transform: scale(0.5);
  }
} 

.tech-item svg {
  font-size: var(--text-lg);
  width: 1em;
  height: 1em;
  transition: all 0.3s ease;
  opacity: 1;
  display: block;
}

.tech-item:hover svg {
  opacity: 0;
  transform: scale(0.8);
} 