/* Enhanced About Section Styles */
.about-section {
    padding: 6rem 2rem;
    background-color: rgba(15, 22, 33, 0.97);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* Enhanced Image Frame with Vibrant Colors */
.about-image-frame {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(30, 45, 61, 0.8), rgba(15, 22, 33, 0.9));
    padding: 10px;
    border: 1px solid rgba(78, 205, 196, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4), 
        0 0 20px rgba(78, 205, 196, 0.3),
        0 0 40px rgba(78, 205, 196, 0.2);
    z-index: 1;
}

/* Rainbow border animation */
.about-image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(78, 205, 196, 0.8),
        rgba(255, 107, 107, 0.6),
        rgba(255, 230, 109, 0.6),
        rgba(78, 205, 196, 0.8),
        transparent
    );
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.about-image-frame::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: linear-gradient(45deg, rgba(15, 22, 33, 0.95), rgba(30, 45, 61, 0.9));
    border-radius: 7px;
    z-index: 0;
}

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

/* Profile Image Container */
.about-image {
    position: relative;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    overflow: hidden;
    border-radius: 8px;
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.about-image:hover .profile-image {
    transform: scale(1.05);
}

/* Glow Effect */
.image-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(78, 205, 196, 0.2) 0%,
        rgba(78, 205, 196, 0) 70%
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-image-frame:hover .image-glow-effect {
    opacity: 1;
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 4;
    border-style: solid;
    border-width: 2px;
    border-color: transparent;
}

.top-left {
    top: 10px;
    left: 10px;
    border-top-color: var(--primary);
    border-left-color: var(--primary);
}

.top-right {
    top: 10px;
    right: 10px;
    border-top-color: var(--secondary);
    border-right-color: var(--secondary);
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-bottom-color: var(--secondary);
    border-left-color: var(--secondary);
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-bottom-color: var(--primary);
    border-right-color: var(--primary);
}

/* Tech Stack Icon Enhancement */
.image-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(78, 205, 196, 0.4);
    border-radius: 50%;
    top: -30px;
    right: -30px;
    z-index: 0;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

/* About Text Section */
.about-text {
    flex: 2;
    min-width: 300px;
}

.typed-container {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #ddd;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced Tech Stack */
.tech-stack {
    margin-top: 2rem;
}

.tech-stack h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.tech-stack h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-badge {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.2) 100%);
    border: 1px solid rgba(78, 205, 196, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(78, 205, 196, 0.3) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(78, 205, 196, 0.3);
}

.tech-badge i {
    color: var(--primary);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 2px rgba(78, 205, 196, 0.5));
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .about-image-container {
        width: 100%;
    }
    
    .about-text {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about-image-frame {
        width: 250px;
        height: 250px;
    }
    
    .tech-badges {
        gap: 0.5rem;
    }
    
    .tech-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.profile-quote {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: quote-fade-in 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.8s;
  }
  
  .quote-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.1), rgba(78, 205, 196, 0.8));
    flex-grow: 1;
    max-width: 0;
    transition: max-width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: line-expand 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 1s;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
  }
  
  .quote-line.left {
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.8), rgba(78, 205, 196, 0.1));
    margin-right: 15px;
  }
  
  .quote-line.right {
    margin-left: 15px;
  }
  
  .quote-content {
    position: relative;
    max-width: 260px;
    text-align: center;
  }
  
  .quote-content p {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: #eee;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
    transition: text-shadow 2s ease;
  }
  
  .profile-quote:hover .quote-content p {
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.6);
  }
  
  .quote-content::before,
  .quote-content::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 2rem;
    position: absolute;
    color: var(--primary);
    opacity: 0.6;
  }
  
  .quote-content::before {
    top: -15px;
    left: -10px;
  }
  
  .quote-content::after {
    bottom: -25px;
    right: -10px;
  }
  
  @keyframes quote-fade-in {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes line-expand {
    0% {
      max-width: 0;
    }
    100% {
      max-width: 80px;
    }
  }
  
  /* Add a pulse glow animation to quote marks */
  .quote-content::before,
  .quote-content::after {
    animation: pulse-glow 4s infinite alternate;
  }
  
  @keyframes pulse-glow {
    0%, 100% {
      opacity: 0.6;
      text-shadow: 0 0 5px rgba(78, 205, 196, 0.5);
    }
    50% {
      opacity: 0.8;
      text-shadow: 0 0 12px rgba(78, 205, 196, 0.8);
    }
  }
  
  /* Responsive adjustments */
  @media (max-width: 480px) {
    .quote-line {
      max-width: 40px;
    }
    
    .quote-content {
      max-width: 220px;
    }
    
    .quote-content p {
      font-size: 0.8rem;
    }
  }