/* ========================================
   PORTFOLIO REFINEMENTS - OVERRIDES.CSS
======================================== */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Raleway:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* Typography overrides */
:root {
  --primary-font: 'Poppins', sans-serif;
  --heading-font: 'Raleway', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #fafafa;
}

body {
  font-family: var(--body-font);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
}

/* ========================================
   NAVBAR IMPROVEMENTS
======================================== */

#header {
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: none;
  padding: 15px 0;
}

#header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: var(--primary-font);
  font-weight: 700;
}

.simple-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--primary-font);
  transition: all 0.3s ease;
  /* Thin white circle border with no fill on hero */
  border: 2px solid white;
  /* Remove any backdrop */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* When header is transparent (on hero), use white border and text */
#header:not(.scrolled) .simple-logo {
  background: transparent;
  border: 2px solid white;
  color: white;
}

/* When scrolled, switch to black border and text for contrast on dark navbar */
#header.scrolled .simple-logo {
  background: transparent;
  border: 2px solid black;
  color: black;
}

.simple-logo:hover {
  transform: scale(1.05);
  /* Keep hover effect subtle without background */
  opacity: 0.8;
}

.sitename {
  color: white;
  font-size: 1.1rem;
  margin-left: 8px;
}

#header.scrolled .sitename {
  color: white;
}

.navmenu ul li a {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--body-font);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

/* Remove any possible separators/dots between nav items */
.navmenu ul li:not(:last-child)::after {
  content: none !important;
}

.navmenu ul li::before,
.navmenu ul li::after {
  content: none !important;
}

#header.scrolled .navmenu ul li a {
  color: rgba(255, 255, 255, 0.9);
}

.navmenu ul li a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.navmenu ul li a.active {
  color: rgba(255, 255, 255, 1);
}

/* Remove the blue dot/underline for active items */
.navmenu ul li a.active::after {
  content: none !important;
}

/* ========================================
   HERO SECTION ENHANCEMENTS
======================================== */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Strong vignette overlay with dark center and fully black corners */
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
  /* Move content about 3.5 inches (336px) lower from center on desktop - additional 0.5 inch (~48px) added */
  margin-top: 336px;
  animation: heroFadeIn 1.5s ease-out;
}

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

.hero h1 {
  font-family: 'Poppins', var(--primary-font);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  /* Clean shadow for depth */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Remove gradient effect - use pure white for "Tejaswini K" */
.hero h1 .hero-name {
  color: #ffffff;
  /* Remove gradient and webkit effects */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  -webkit-text-stroke: none;
  filter: none;
}

.hero .lead {
  font-family: 'Poppins', var(--primary-font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: #dcdcdc;
  margin-bottom: 2rem;
  /* Clean shadow for depth */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .lead .typed {
  font-weight: 500;
  /* Increase typed text size by 12-15% for better visual balance */
  font-size: clamp(2.0rem, 3.6vw, 2.7rem);
  color: #dcdcdc;
}

/* Floating Impact Chips - REMOVED (not used) */
.impact-chips {
  display: none;
}

.impact-chips .chip {
  display: none;
}

.chip:nth-child(1) { animation-delay: 0s; }
.chip:nth-child(2) { animation-delay: 1.2s; }
.chip:nth-child(3) { animation-delay: 2.4s; }
.chip:nth-child(4) { animation-delay: 3.6s; }
.chip:nth-child(5) { animation-delay: 4.8s; }

@keyframes float {
  0%, 100% { 
    transform: translate(var(--tx, 0), var(--ty, 0)) translateY(0px);
    opacity: 0.8;
  }
  50% { 
    transform: translate(var(--tx, 0), var(--ty, 0)) translateY(-10px);
    opacity: 1;
  }
}



/* ========================================
   ABOUT SECTION IMPROVEMENTS
======================================== */

.about img {
  max-width: 280px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

/* Shift image right on desktop and expand text container */
@media (min-width: 992px) {
  .about .col-lg-5 {
    padding-right: 0;
    margin-left: -2rem;
    flex: 0 0 35%; /* Reduce image column width */
    max-width: 35%;
  }
  
  .about .col-lg-7 {
    flex: 0 0 65%; /* Expand text column width */
    max-width: 65%;
    padding-left: 2.5rem; /* Reduce gap between photo and text */
  }
  
  .about img {
    margin-left: auto;
    margin-right: 0;
  }
}

.about-title {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.about-copy {
  font-family: var(--body-font);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* New About Section Styles */
.about-content {
  animation: fadeInUp 0.8s ease-out;
  max-width: 800px; /* Add max-width for better readability */
}

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

.about-heading {
  font-family: 'Plus Jakarta Sans', var(--heading-font);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.about-intro {
  font-family: var(--body-font);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.about-intro strong {
  color: var(--text-dark);
  font-weight: 600;
}

.about-subheading {
  font-family: 'Plus Jakarta Sans', var(--heading-font);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.about-impact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.about-impact-list li {
  font-family: var(--body-font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.25rem; /* Increased spacing between bullets */
  padding-left: 1.5rem;
  position: relative;
  transition: all 0.2s ease; /* Add smooth hover transition */
  font-weight: 400; /* Consistent professional font weight */
}

.about-impact-list li::before {
  content: "•"; /* Changed from arrow to circular dot */
  position: absolute;
  left: 0;
  color: #1f2937; /* Changed from blue to black */
  font-weight: 700;
  font-size: 1.4rem; /* Slightly larger for better visibility */
  line-height: 1.7; /* Match text line-height for alignment */
}

.about-impact-list li:hover {
  color: #1f2937; /* Text darkens on hover */
  padding-left: 1.7rem; /* Subtle shift on hover */
}

.about-impact-list li strong {
  color: var(--text-dark);
  font-weight: 600; /* Keep keywords bold */
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
  .about-heading {
    font-size: 1.8rem;
  }
  
  .about-subheading {
    font-size: 1.4rem;
    margin-top: 1.5rem;
  }
  
  .about-intro {
    font-size: 1.05rem;
  }
  
  .about-impact-list li {
    font-size: 1rem;
    padding-left: 1.25rem; /* Slightly reduced on mobile */
    margin-bottom: 1rem; /* Maintain good spacing */
  }
  
  .about-impact-list li::before {
    font-size: 1.2rem; /* Slightly smaller bullet on mobile */
  }
  
  .about-content {
    max-width: 100%; /* Remove max-width constraint on mobile */
  }
}

/* ========================================
   SKILLS CAROUSEL
======================================== */

.skills-carousel {
  padding: 2rem 0;
  /* Add extra top spacing to center the section */
  padding-top: 4rem;
}

.skills-swiper {
  padding-bottom: 2rem;
}

.skill-card {
  position: relative;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.skill-card:hover img {
  transform: scale(1.05);
}

.skill-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Changed from black background to transparent */
  background: transparent;
  backdrop-filter: none;
  /* Changed text color to black for contrast */
  color: #000;
  padding: 1.5rem;
  /* Make title always visible */
  transform: translateY(0);
  transition: all 0.2s ease;
  /* Fixed height to prevent layout shift */
  min-height: 80px;
}

.skill-meta h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  /* Keep title always visible with white text for better contrast */
  color: #FFFFFF;
  opacity: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.skill-meta p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  /* Black text for description */
  color: #000;
  /* Hide description by default */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

/* Show description on hover - keep transparent but show text */
.skill-card:hover .skill-meta {
  /* Add subtle white background on hover for better readability */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.skill-card:hover .skill-meta h3 {
  color: #000;
}

.skill-card:hover .skill-meta p {
  opacity: 1;
  max-height: 100px;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--text-dark);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(31, 41, 55, 0.9);
  color: white;
  transform: scale(1.05);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

/* ========================================
   PORTFOLIO / WORK SAMPLES
======================================== */

/* Add extra spacing below Work Samples title */
#portfolio .section-title {
  margin-bottom: 2.5rem;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio-filters li {
  list-style: none;
  padding: 8px 20px;
  background: transparent;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text-light);
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: white;
}

.portfolio-item {
  margin-bottom: 2rem;
}

.portfolio-item .thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.portfolio-item:hover .thumb {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-info {
  padding: 1.5rem 0;
  text-align: center;
}

.portfolio-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.portfolio-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(31, 41, 55, 0.9);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}

.details-link:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: rgba(17, 24, 39, 1);
  color: white;
}

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

.contact .btn {
  font-family: var(--body-font);
  font-weight: 500;
  border-radius: 30px;
  padding: 14px 32px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact .btn-dark {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(31, 41, 55, 0.95);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact .btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background: rgba(17, 24, 39, 1);
  border-color: rgba(17, 24, 39, 1);
  color: white;
}

.contact .btn-outline-dark {
  border: 2px solid rgba(31, 41, 55, 0.9);
  color: var(--text-dark);
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact .btn-outline-dark:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(31, 41, 55, 0.95);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* ========================================
   FOOTER
======================================== */

.footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin: 0 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white;
}

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

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .container {
    margin-top: 120px; /* Proportional increase on mobile (was 96px, now 120px for the additional 0.5 inch) */
  }
  
  .hero .lead .typed {
    font-size: clamp(1.5rem, 4vw, 1.9rem); /* Adjust typed text for mobile */
  }
  
  .skill-card {
    height: 240px;
  }
  
  .portfolio-item .thumb {
    height: 200px;
  }
  
  .contact .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .portfolio-filters {
    gap: 0.5rem;
  }
  
  .portfolio-filters li {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   UTILITIES
======================================== */

.section-title h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-title p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.accent-background {
  background: var(--text-dark) !important;
}

/* Preloader styling */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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