@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');

:root {
  --primary-color: #c9d2ef;     /* 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, 79%, 83%);
 --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;
    }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

    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;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    nav {
        background: rgb(249, 227, 249);
        padding: 1rem 2rem;
        border-bottom: 1px solid #e9e9e9
    }

nav {
  background: rgb(249, 227, 249);
  padding: 1rem 2rem;
  border-bottom: 1px solid #e9ecef;
}

nav a {
  color: #495057;
  text-decoration: none;
  margin-right: 2rem;
  font-weight: 500;
}

nav a:hover {
  color: #007bff;
}

nav a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

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

@media (max-width: 767px) {
  .nav-container {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .nav-links a {
    padding: 0.5rem 0;
  }
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-color)}

/* 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(183, 206, 249);
    /* height:50vh; 
    width: 45%; */
    flex: 1; 
    padding: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.header_text h1,
.header_text p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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: 1.5rem;
    width: 100%;
  }
  
  .header_pic {
    min-height: 250px;
    width: 100%;
  }
}

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

@media (max-width: 767px) {
  main {
    padding: 1rem;
    gap: 3rem;
  }
}

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

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

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

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

.about-text {
  flex: 2;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.about-text h2,
.about-text p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .about-section {
    padding: 2rem 0;
  }
  
  .about-text {
    min-width: 100%;
  }
}

section {
  margin-bottom: 2rem;
  width: 100%;
  overflow-x: hidden;
}

section h1, 
section h2, 
section h3,
section p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.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;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.skill-card p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .skill-card {
    padding: 1rem;
  }
}

.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;
  }
}


.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;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.project-card h3,
.project-card p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .project-card {
    padding: 1.5rem;
  }
}

.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 */





/* 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 */
}

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

