/* 
   ==== Main Styles ====
   Professional Portfolio for Paresh Mahyavanshi
*/

:root {
  /* Color Variables */
  --primary-color: #4e54c8;
  --primary-light: #8f94fb;
  --primary-dark: #383fc3;
  --secondary-color: #5a67d8;
  --dark-color: #2d3748;
  --light-color: #f7fafc;
  --text-color: #4a5568;
  --text-light: #a0aec0;
  --text-dark: #2d3748;
  --background-color: #f9f9fa;
  --card-color: #ffffff;
  --border-color: #e2e8f0;
  --success-color: #48bb78;

  /* Other Variables */
  --border-radius: 10px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ==== Global Styles ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-light {
  background-color: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-title-underline {
  height: 4px;
  width: 70px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-light)
  );
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-color);
}

.btn {
  font-weight: 500;
  border-radius: 30px;
  padding: 12px 30px;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(
    to right,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(78, 84, 200, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* ==== Navigation ==== */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: "Poppins", sans-serif;
}

.navbar-scrolled {
  background-color: rgba(45, 55, 72, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 10px;
  font-weight: 500;
  position: relative;
  padding: 8px 0 !important;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.resume-btn {
  color: white !important;
  background-color: var(--primary-color);
  border-radius: 30px;
  padding: 8px 20px !important;
  margin-left: 15px;
}

.resume-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==== Header/Hero ==== */
header {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a2e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(var(--primary-light), transparent 70%);
  opacity: 0.1;
  top: -50%;
  left: -50%;
  animation: rotate 30s infinite linear;
}

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

.subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
  color: var(--primary-light);
}

header h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 5px;
  background: linear-gradient(to right, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header .lead {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-text {
  margin-bottom: 25px;
  max-width: 500px;
}

.cta-buttons {
  margin-bottom: 25px;
}

.cta-buttons .btn {
  margin-right: 15px;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.hero-image {
  position: relative;
  width: 480px;
  height: 480px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 105%;
  height: 105%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-light)
  );
  z-index: -1;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.01);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-img {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.15);
}

/* ==== About Section ==== */
.about-image {
  position: relative;
  transition: var(--transition);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-image img {
  transition: var(--transition);
}

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

.about-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.key-highlights {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  text-align: center;
}

.highlight-item {
  flex: 1;
  padding: 20px 10px;
}

.highlight-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: inline-block;
}

.highlight-item h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-item p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ==== Skills Section ==== */
.skill-card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
}

.skill-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
}

.skill-icon i {
  font-size: 2rem;
}

.skill-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

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

.skill-list li {
  margin-bottom: 10px;
  position: relative;
}

.skill-list li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-right: 5px;
}

.tech-stack {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 50px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.tech-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--dark-color);
  font-weight: 600;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.tech-icons i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: var(--transition);
  opacity: 0.8;
}

.tech-icons i:hover {
  color: var(--primary-dark);
  transform: scale(1.2);
  opacity: 1;
}

/* Technology Ecosystem Table */
.tech-stack table {
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-stack th {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  vertical-align: middle;
  width: 130px;
  padding-right: 15px;
}

.tech-stack td {
  font-size: 0.9rem;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 8px 10px;
  margin: 4px;
  transition: var(--transition);
}

.tech-stack td:hover {
  background-color: rgba(78, 84, 200, 0.1);
  transform: translateY(-2px);
  color: var(--primary-color);
  font-weight: 500;
}

.tech-table td {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.5);
  margin: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.tech-table tr:nth-child(odd) th {
  color: var(--primary-dark);
}

.tech-table tr:nth-child(even) th {
  color: var(--primary-color);
}

/* ==== Experience Section ==== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  top: 20px;
  right: -8px;
  z-index: 5;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -8px;
}

.timeline-content {
  position: relative;
  padding: 30px;
  border-radius: var(--border-radius);
  background-color: var(--card-color);
  box-shadow: var(--box-shadow);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--card-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--card-color) transparent transparent;
}

.timeline-title {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.timeline-period {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  display: block;
  font-style: italic;
}

.timeline-description {
  margin-bottom: 15px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: rgba(78, 84, 200, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

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

/* ==== Projects Section ==== */
.project-card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-details {
  padding: 25px;
}

.project-details h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-details p {
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tech span {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: rgba(78, 84, 200, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.project-links a {
  margin-right: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==== Contact Section ==== */
.contact-info {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background-color: rgba(78, 84, 200, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.2);
}

/* ==== Footer Section ==== */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 30px;
}

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

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to right, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* ==== Back to Top Button ==== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==== Responsive Styles ==== */
@media (max-width: 992px) {
  header h1 {
    font-size: 3rem;
  }

  .section {
    padding: 80px 0;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-marker {
    left: 22px !important;
    right: auto !important;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }

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

  .timeline-content::before {
    left: -10px !important;
    border-width: 10px 10px 10px 0 !important;
    border-color: transparent var(--card-color) transparent transparent !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-logo,
  .footer-social {
    margin-bottom: 15px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
  }

  .tech-stack table {
    font-size: 0.85rem;
  }

  .tech-stack th {
    width: 100px;
    font-size: 0.85rem;
  }

  .tech-stack td {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 150px 0 100px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header .lead {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .key-highlights {
    flex-direction: column;
  }

  .highlight-item {
    margin-bottom: 20px;
  }

  .skill-card {
    padding: 20px 15px;
  }

  .contact-info {
    margin-bottom: 30px;
  }

  .tech-stack table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 2rem;
  }

  header .lead {
    font-size: 1.1rem;
  }

  .hero-text {
    margin-bottom: 20px;
  }

  .cta-buttons .btn {
    width: 100%;
    display: block;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .highlight-item {
    padding: 15px 10px;
  }

  .tech-icons i {
    font-size: 2rem;
    margin: 5px;
  }

  .timeline-content {
    padding: 20px;
  }
}
