@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Inconsolata:wght@200..900&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #1e40af;     /* Professional blue - passes contrast ✅ */
  --text-color: #1f2937;        /* Dark gray for text - passes contrast ✅ */
  --light-text: #6b7280;        /* Light gray for secondary text ✅ */
  --background: #ffffff;        /* White background */
  --light-background: #f9fafb;  /* Very light gray for sections */
  --card-background: #f8f9fa;
 --card-border: #e9ecef;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 --card-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
 --accent-color: #a35dbb;
 --link-hover: hsl(211, 100%, 50%);
 --heading-color: #552269;
}

/* Apply colors consistently throughout your site */


h1, h2, h3 {
  color: var(--primary-color);
}

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

.secondary-text {
  color: var(--light-text);
}

/* The next lines override the browser's margin and padding */

* {
box-sizing: border-box;
margin: 0;
padding: 0;
    }

    body {
        /* Font stack explanation: 
        - system-ui: Uses the OS default UI fony (Segue UI on Windoes, San Fransisco on Mac)
        - apple-system: fallback for older Safari browsers 
        -san-serif: Universal fallback  */

        font-family: 'cabin', serif;
        line-height: 1.6;
        color: var(--text-color);
        background: var(--background);
        overflow-x: hidden;
    }

nav {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  background: rgb(249, 227, 249);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: #2c3e50;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-color);
  background-color: rgba(163, 93, 187, 0.1);
}

/* Main container for all sections */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive container padding */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Consistent section spacing */
section {
  padding: 3rem 0;
}

/* Section headings */
section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative
}

/* Add some visual interest to section headings */
section h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}


header {

    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    height: 60vh;
    background-image: #f8f8f8;
 /* 
    display: flex;
    flex-direction: row;
    gap: 2rem;
    height: 70vh;
    background-color: aliceblue; */
    }


.header_text {
    background-color: rgb(170, 196, 245);
    /* height:50vh; 
    width: 45%; */
    flex: 1; 
    padding: 2rem;

}

.header_pic {
    flex: 1;
    background-color: #e9ecef;
    min-height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d1979;
}

.header_pic img{
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile: stack header content vertically */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  
  .header_text {
    padding: 1rem;
  }
  
  .nav-container {
    padding: 0.75rem;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-links a {
    width: 100%;
    text-align: left;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .about-text {
    min-width: 0;
  }
  
  main {
    gap: 3rem;
  }
  
  .project-card {
    padding: 1rem;
  }
  
  .skill-card {
    padding: 1rem;
  }
}

/* Tablet breakpoint */
@media (min-width: 480px) and (max-width: 767px) {
  .nav-container {
    flex-direction: row;
    padding: 1rem;
  }
  
  .nav-links {
    flex-direction: row;
    gap: 0.75rem;
    width: auto;
  }
}

main {
     display: grid;
  gap: 6rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  /*max-width: 65ch;
    margin: 0 auto;
    padding: 5%;*/
}

@media (min-width: 768px) {
  main {
    padding: 2rem;
  }
}

.about-section {
display: flex;
flex-wrap: wrap;
gap: 2rem;
padding: 3rem 0;
align-items: center;
}

.about-image {
 justify-self: center; /*flex: 1;
min-width: 250px;
text-align: center; */
}

.about-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 2;
  min-width: 250px;
}

section {
  margin-bottom: 2rem;
}

/* Course Projects Section Styling */
.course-projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .course-projects-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgb(249, 227, 249);
  color: var(--heading-color);
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(85, 34, 105, 0.1);
}

/* Remove individual button color overrides */
.project-button:nth-child(1),
.project-button:nth-child(2),
.project-button:nth-child(3) {
  background: rgb(249, 227, 249);
}

.project-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(85, 34, 105, 0.08) 0%, rgba(163, 93, 187, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-button:hover::before {
  opacity: 1;
}

.project-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.project-button:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.project-button-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.project-button-content {
  flex: 1;
  text-align: left;
}

.project-button-content h3 {
  color: var(--heading-color);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-button-content p {
  color: var(--text-color);
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
}

.project-button-arrow {
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.project-button:hover .project-button-arrow {
  transform: translateX(5px);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .course-projects-container {
    grid-template-columns: 1fr;
  }
  
  .project-button {
    padding: 1.25rem;
  }
  
  .project-button-icon {
    font-size: 2rem;
  }
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 1rem;
  margin-top: 2rem;
/* display: flex;
  flex-wrap: wrap;
  gap: 1rem; */
}

.skill-card {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.skill-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Resume Section */
.resume-section {
  padding: 3rem 0;
}

.resume-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.resume-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.resume-category {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
}

.resume-category h3 {
  color: var(--heading-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.resume-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.resume-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resume-header h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin: 0;
}

.resume-date {
  color: var(--light-text);
  font-weight: 500;
  font-size: 0.9rem;
}

.resume-title {
  font-weight: 600;
  color: #2c3e50;
  margin: 0.25rem 0 0.75rem 0;
  font-style: italic;
}

.resume-details {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-color);
}

.resume-details li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.resume-details li:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .resume-category {
    padding: 1.5rem;
  }
  
  .resume-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .resume-date {
    font-size: 0.85rem;
  }
}

.skills-container {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Small phones (320px and up) */
.skills-container {
  grid-template-columns: 1fr;
}

/* Large phones and small tablets (480px and up) */
@media (min-width: 480px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  @media (min-width: 1024px) {
    .skills-container {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .projects-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  text-align: center;
}

.contact-section h2 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.contact-intro {
  color: var(--light-text);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(163, 93, 187, 0.15);
  border-color: var(--accent-color);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 16px rgba(163, 93, 187, 0.3);
}

.contact-card h3 {
  color: var(--heading-color);
  font-size: 1.5rem;
  margin: 0;
}

.contact-detail {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  word-break: break-word;
}

.contact-description {
  color: var(--light-text);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
}


.end-image {
 justify-self: center; /*flex: 1;
min-width: 250px;
text-align: center; */
}

.end-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
}

.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* On tablets and up, show 2 columns */
@media (min-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr 1fr;
  }
}


.project-card {
  padding: 2rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card {
  padding: 2rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.project-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}
/* Mobile-first responsive adjustments */

.insta-feed {
  height: 300px;
  overflow-x: scroll;
  display: flex;
  gap: 10px;
}

.insta-feed img {
  height: 300px;
  border-radius: 10px;
}




/* Consistent spacing between paragraphs */
p + p {
  margin-top: 1rem;
}
h1, h2, h3 {
    font-family: 'urbanist', sans-serif;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1 {
    color: 
    var(--heading-color);
    font-size: 2.5rem; 
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2; 
    /* background-color:blueviolet; */
    }

h2 {
    color: var(--heading-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    }

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4d1979;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555; /* Slightly lighter for body text */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================
   PHOTO CAROUSEL STYLES
   ========================================== */

.carousel-section {
    padding: 3rem 2rem;
    background: var(--light-background);
    text-align: center;
}

.carousel-section h2 {
    margin-bottom: 2rem;
    color: var(--heading-color);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

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

.carousel-caption p {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

.carousel-indicator:hover {
    background: var(--heading-color);
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev {
        left: 0.5rem;
    }
    
    .carousel-btn.next {
        right: 0.5rem;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 250px;
    }
    
    .carousel-section {
        padding: 2rem 1rem;
    }
}
