/* ===== HERO SECTION STYLES ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}

.hero-text {
  animation: fadeInLeft 1s ease forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
}

.stat {
  text-align: center;
  min-width: 120px;
  flex-shrink: 0;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
  text-shadow: 0 0 20px var(--shadow-glow);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 0.5rem;
}

/* Special animation for surround audio stats */
#surround-number,
#portfolio-surround-number {
  position: relative;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}

#surround-number:hover,
#portfolio-surround-number:hover {
  transform: scale(1.1) !important;
  text-shadow: 0 0 30px var(--shadow-glow);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease forwards;
}

.hero-avatar {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 5px solid var(--accent-primary);
  box-shadow: 0 0 50px var(--shadow-glow);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.hero-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, var(--accent-glow), transparent);
  animation: rotate 3s linear infinite;
  z-index: -1;
}

.hero-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px var(--shadow-glow);
}

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

/* Floating Elements */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(-10px) rotate(240deg);
  }
}

/* ===== ABOUT SECTION STYLES ===== */
.about {
  background: var(--bg-secondary);
  position: relative;
}

/* Gradient overlay to blend with animated background */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, 
    rgba(26, 26, 46, 0.9) 0%, 
    rgba(26, 26, 46, 0.7) 30%, 
    rgba(26, 26, 46, 0.4) 60%, 
    rgba(26, 26, 46, 0.1) 80%, 
    transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  text-align: center;
}

.about-photo {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 20px 40px var(--shadow-dark);
  transition: var(--transition-slow);
}

.about-photo:hover {
  transform: rotateY(15deg) rotateX(5deg);
  box-shadow: 0 30px 60px var(--shadow-dark), 0 0 40px var(--shadow-glow);
}

.about-text h3 {
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.skill-item {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 5px 20px var(--shadow-glow);
  transform: translateY(-3px);
}

.skill-item i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

/* ===== EXPERIENCE SECTION STYLES ===== */
.experience {
  position: relative;
}

/* Gradient overlay for smooth transition */
.experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, 
    rgba(26, 26, 26, 0.8) 0%, 
    rgba(26, 26, 26, 0.5) 40%, 
    rgba(26, 26, 26, 0.2) 70%, 
    transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.experience .container {
  position: relative;
  z-index: 1;
}

.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--accent-primary), var(--accent-secondary));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 55%;
}

.timeline-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 10px 30px var(--shadow-dark);
  transition: var(--transition-slow);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow-dark), 0 0 30px var(--shadow-glow);
  border-color: var(--accent-primary);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 20px var(--shadow-glow);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -35px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -35px;
}

.timeline-date {
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-company {
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-position {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SERVICES SECTION STYLES ===== */
.services {
  background: var(--bg-secondary);
  position: relative;
}

/* Extended gradient overlay for smooth blending */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, 
    rgba(16, 16, 30, 0.7) 0%, 
    rgba(16, 16, 30, 0.4) 50%, 
    rgba(16, 16, 30, 0.1) 80%, 
    transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  display: block;
  transition: var(--transition-slow);
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotateY(360deg);
  color: var(--accent-secondary);
}

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

.service-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ===== CONTACT SECTION STYLES ===== */
.contact {
  background: var(--bg-secondary);
  position: relative;
}

/* Long gradient overlay for final smooth transition */
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, 
    rgba(26, 26, 26, 0.6) 0%, 
    rgba(26, 26, 26, 0.3) 60%, 
    transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 5px 20px var(--shadow-glow);
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-primary);
  width: 30px;
  text-align: center;
}

.contact-item-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-item-content p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow-dark);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

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

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

/* ===== FOOTER STYLES ===== */
.footer {
  background: var(--bg-primary);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--shadow-glow);
  transform: translateY(-3px);
}

.footer-bottom {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-content {
    padding: 0 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    gap: 1rem;
    transition: var(--transition-fast);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-avatar {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  
  .hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .stat {
    min-width: 100px;
    flex: 1;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
  }
  
  .experience-timeline::before {
    left: 20px;
  }
  
  .timeline-content::before {
    left: -35px !important;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  
  .stat {
    min-width: 80px;
    flex: 1;
    max-width: 120px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}