/* style.css - Main Stylesheet for Akshay Khandizod Portfolio */

:root {
  --primary: #2e3192;
  --secondary: #ffb400;
  --bg: #f7f8fa;
  --text: #22223b;
  --accent: #e0e7ff;
  --white: #fff;
  --shadow: 0 4px 24px rgba(46,49,146,0.08);
  --shadow-hover: 0 8px 32px rgba(46,49,146,0.15);
  --shadow-large: 0 20px 40px rgba(46,49,146,0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 100;
  transition: background 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: -1;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-profile {
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-avatar:hover {
  transform: scale(1.1);
}

.hero-content h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.hero-content h2 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.animated-headline {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  min-height: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

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

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

.about-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 4rem 0 2rem 0;
}

.about-container {
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(46, 49, 146, 0.2);
  background: var(--accent);
  border: 4px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(46, 49, 146, 0.3);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.projects-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 4rem 0 2rem 0;
  text-align: center;
}

.projects-section h2,
.experience-section h2,
.skills-section h2,
.technical-expertise-section h2,
.certifications-section h2,
.contact-section h2 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  font-weight: 700;
}

.projects-section h2::after,
.experience-section h2::after,
.skills-section h2::after,
.technical-expertise-section h2::after,
.certifications-section h2::after,
.contact-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.projects-carousel {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.project-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.btn-project {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.experience-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 4rem 0 2rem 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  padding-left: 2rem;
  border-left: 3px solid var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -1.1rem;
  top: 0.5rem;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow);
}

.timeline-content {
  margin-left: 2rem;
  background: var(--accent);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
}

.timeline-content span {
  color: var(--secondary);
  font-weight: 600;
}

.skills-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 4rem 0 2rem 0;
}

.skills-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.skill-category {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  min-width: 200px;
  text-align: left;
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Technical Expertise Section */
.technical-expertise-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 4rem 0 2rem 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.expertise-category {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.expertise-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.expertise-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-category li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1rem;
  color: var(--text);
}

.expertise-category li::before {
  content: "▸";
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.certifications-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 4rem 0 2rem 0;
}

.certifications-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cert-card {
  background: var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  min-width: 200px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.contact-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 4rem 0 2rem 0;
  text-align: center;
}

.contact-form {
  max-width: 400px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
}

.contact-form button {
  align-self: flex-end;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--secondary);
}

footer {
  background: var(--primary);
  color: var(--white);
  padding: 1.2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.footer-social a {
  color: var(--white);
  font-size: 1.3rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--secondary);
  transform: scale(1.15);
}

/* Enhanced Carousel Styles */
.image-carousel {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(46, 49, 146, 0.15);
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.carousel-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.carousel-caption h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.carousel-caption p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  backdrop-filter: blur(10px);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 49, 146, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
  transform: scale(1.3);
}

.indicator:hover {
  background: var(--secondary);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  text-align: center;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

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

.loading-spinner p {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.scroll-to-top:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Hero Social Buttons Styling */
.hero-social-buttons {
  position: absolute;
  top: 50%;
  right: 2.5rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 2;
}
.hero-social-buttons a {
  background: rgba(30, 30, 30, 0.85);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 2px solid transparent;
}
.hero-social-buttons a:hover {
  transform: scale(1.13) rotate(-8deg);
  background: linear-gradient(135deg, #0077b5 0%, #1dbf73 100%);
  color: #fff200;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  border-color: #fff200;
}
.hero-social-buttons a img {
  max-width: 60%;
  max-height: 60%;
  filter: brightness(0) invert(1);
  transition: filter 0.2s;
}
.hero-social-buttons a:hover img {
  filter: brightness(1) invert(0) drop-shadow(0 0 4px #fff200);
}

/* LeetCode icon specific: match other social buttons */
.hero-social-buttons a.leetcode-icon {
  background: rgba(30, 30, 30, 0.85);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 2px solid transparent;
}
.hero-social-buttons a.leetcode-icon:hover {
  transform: scale(1.13) rotate(-8deg);
  background: linear-gradient(135deg, #0077b5 0%, #1dbf73 100%);
  color: #fff200;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  border-color: #fff200;
}
.hero-social-buttons a.leetcode-icon img {
  max-width: 60%;
  max-height: 60%;
  filter: brightness(0) invert(1);
  transition: filter 0.2s;
}
.hero-social-buttons a.leetcode-icon:hover img {
  filter: brightness(1) invert(0) drop-shadow(0 0 4px #fff200);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .navbar {
    max-width: 100%;
    padding: 1rem 1.2rem;
  }
  .projects-section,
  .about-section,
  .skills-section,
  .technical-expertise-section,
  .certifications-section,
  .experience-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: row;
    padding: 1rem 0.5rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .about-container,
  .skills-grid,
  .projects-carousel,
  .certifications-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 700px) {
  .navbar {
    padding: 0.7rem 0.3rem;
  }
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0.5rem 1rem 0.5rem;
  }
  .about-section,
  .projects-section,
  .skills-section,
  .technical-expertise-section,
  .certifications-section,
  .experience-section {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
  }
  .timeline {
    padding-left: 0.5rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    padding: 0.5rem 0.2rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white);
    flex-direction: column;
    width: 80vw;
    max-width: 220px;
    gap: 1.2rem;
    box-shadow: var(--shadow);
    padding: 1.5rem 0.5rem;
    display: none;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .about-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .profile-photo {
    width: 110px;
    height: 110px;
  }
  .hero-avatar {
    width: 90px;
    height: 90px;
  }
  .hero-content h1 {
    font-size: 1.3rem;
  }
  .hero-content h2 {
    font-size: 1rem;
  }
  .hero-content h3,
  .animated-headline {
    font-size: 1rem;
  }
  .project-card {
    width: 98vw;
    min-width: unset;
    padding: 1.2rem 0.5rem;
  }
  .carousel-image {
    height: 140px;
  }
  .carousel-caption {
    padding: 1rem 0.5rem 0.7rem;
  }
  .carousel-caption h3 {
    font-size: 1rem;
  }
  .carousel-caption p {
    font-size: 0.8rem;
  }
  .expertise-category {
    padding: 0.7rem 0.7rem;
  }
  .expertise-category h3 {
    font-size: 0.9rem;
  }
  .expertise-category li {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  .skills-grid {
    gap: 1rem;
  }
  .skill-category {
    min-width: unset;
    padding: 1rem 0.5rem;
  }
  .cert-card {
    min-width: unset;
    padding: 1rem 0.5rem;
  }
  .footer-content {
    gap: 0.2rem;
  }
  .footer-social {
    gap: 0.7rem;
  }
  .scroll-to-top {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 400px) {
  .navbar {
    padding: 0.2rem 0.1rem;
  }
  .logo {
    font-size: 0.9rem;
  }
  .hero-content h1 {
    font-size: 1rem;
  }
  .hero-content h2 {
    font-size: 0.8rem;
  }
  .hero-content h3,
  .animated-headline {
    font-size: 0.8rem;
  }
  .project-card {
    padding: 0.7rem 0.2rem;
  }
}

/* --- End Responsive Improvements --- */
