/**
 * CORE CONFIG
 * Powers utility classes, breakpoints, and pre-built components.
 */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: sans-serif;
}

/* Remove default margin */
body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0; /* changed from 10 (invalid) */
}

/* Remove list styles */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

/* Core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  letter-spacing: -0.01em;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color-light);
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif; /* strong geometric headings */
}

/* Default link styles for elements without class */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

li {
  list-style: none;
  text-align: center;
  margin: 20px;
}

/* Make images easier to work with */
img, picture {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Inherit fonts for inputs/buttons */
input, button, textarea, select {
  font: inherit;
}

/* Focus outline */
:focus {
  outline: 2px dashed #00ff19;
  outline-offset: 0.25rem;
}
main:focus {
  outline: none;
}

/* Typography steps */
:root {
  --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
  --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
  --step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
  --step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
  --step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
  --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
  --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);

  --space-3xs: clamp(0.3125rem, 0.3125rem + 0vw, 0.3125rem);
  --space-2xs: clamp(0.5625rem, 0.5408rem + 0.1087vw, 0.625rem);
  --space-xs: clamp(0.875rem, 0.8533rem + 0.1087vw, 0.9375rem);
  --space-s: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
  --space-m: clamp(1.6875rem, 1.6223rem + 0.3261vw, 1.875rem);
  --space-l: clamp(2.25rem, 2.163rem + 0.4348vw, 2.5rem);
  --space-xl: clamp(3.375rem, 3.2446rem + 0.6522vw, 3.75rem);
  --space-2xl: clamp(4.5rem, 4.3261rem + 0.8696vw, 5rem);
  --space-3xl: clamp(6.75rem, 6.4891rem + 1.3043vw, 7.5rem);

  /* 🎨 Color Palette Refinements */
  --primary-color: #1a1a40;      /* Deep Indigo/Navy for Headers/Footer */
  --secondary-color: #f5f5f5;    /* Light Gray for contrasting text */
  --accent-color: rgba(26,26,64,0.9);       /* Bright Teal/Aqua Pop */
  --background-color-light: #ffffff; /* General section background */
  --background-color-dark: #f8f8f8; /* Alternating section background (subtle change) */
  --text-color: #333;           /* Dark Gray for body text */
  --heading-color: var(--primary-color);
  --link-color: var(--accent-color);
  --link-hover-color:rgba(26,26,64,0.9);  /* Slightly darker teal */

}

/* Heading sizes */
h1, .h1 { font-size: var(--step-5); }
h2, .h2 { font-size: var(--step-4); }
h3, .h3 { font-size: var(--step-3); }
h4, .h4 { font-size: var(--step-2); }
h5, .h5 { font-size: var(--step-1); }

/* Flex utility classes */
.flex { display: flex; align-items: center; gap: var(--space-s); }
.flex_center { justify-content: center; }
.flex_around { justify-content: space-around; }
.flex_between { justify-content: space-between; }

/* Text alignment utility classes */
.text_center { 
  text-align: center; 
  margin-top: 0rem;
}
.text_right { text-align: right; }

/* Section spacing utility */
.section_spacing {
  margin: var(--space-xl) 0; /* Add consistent spacing between sections */
}

@media (max-width: 468px) {
  .flex { flex-wrap: wrap; flex-direction: column; }
  .flex_around, .flex_between { justify-content: center; }
}

/* Spacing */
.padding-top-3xs { padding: var(--space-3xs); }

/* Wrappers */
.wrapper { width: 100%; max-width: 1240px; margin: 0 auto; }
.wrapper_inner { width: 100%; max-width: 800px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), #8a2be2);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Header */
.site_header {
  padding: var(--space-s) 0;
  background: linear-gradient(rgba(26,26,64,0.9), rgba(26,26,64,0.9));
  position: static;
  top: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: #fff;
}
.site_header_nav ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600; /* Use 600 instead of bold for Montserrat/Inter combo */
  transition: color 0.3s ease;
  letter-spacing: 0.05em; /* Increase letter spacing for all caps nav */
}
.site_header_nav ul li a:hover {
  color: var(--accent-color); /* Highlight on hover */
}



/* Hero section */
section#hero {
  background: linear-gradient(rgba(26,26,64,0.8), rgba(26,26,64,0.8)),
              url("/assets/background_image.jpg") no-repeat center top;
  background-size: cover;
  background-attachment: fixed; /* Optional: adds a nice parallax effect */
  min-height: 100vh; /* Set this in CSS */
  display: flex; /* Set this in CSS */
  align-items: center; /* Set this in CSS */
  justify-content: center; /* Set this in CSS */
  color: white;
  padding: var(--space-xl) 0;
}

.hero_content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  text-align: left;
  animation: fadeIn 1s ease-in-out;
}

.hero_container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row;
}

.hero_social_container {
  border-radius: 10px; /* Soften the corners */
  padding: var(--space-m);
  margin: var(--space-m) 0; /* Add margin above/below */
  max-width: none; /* Let it grow naturally */
  box-shadow: none; 
}

.hero_social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero_social_item {
  background-color: rgb(28, 53, 98); /* Solid background color */
  color: #fff; /* White text for contrast */
  padding: 1rem 2rem; /* Increase padding for larger size */
  display: flex; /* Flex container for centering */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
  font-size: 1.2rem; /* Slightly larger font size for better readability */
  transition: transform 0.3s ease, background-color 0.3s ease;
  min-width: 180px; /* Increase width for consistency */
  margin-top: 0; /* Reset margin to avoid pushing items further */
  border-radius: 50px; /* Keep the rounded pill shape */
  white-space: nowrap; /* Prevent text from wrapping */
}
.hero_image img {
  width: auto; /* Set a fixed width */
  height: auto;
  border: 5px solid var(--accent-color); /* Add a bright border */
  border-radius: 50%; /* Keep the circular shape */
  box-shadow: 0 0 30px rgba(0, 201, 167, 0.4); /* Add a glow/shadow */
}

.hero_social_item:hover {
  background-color: rgb(45, 70, 120); /* Slightly lighter background on hover */
  transform: scale(1.05); /* Subtle scaling effect */
}
.hero_social_item a img {
  transition: transform 0.3s ease;
}
.hero_social_item a img:hover {
  transform: scale(1.2);
}
.hero_social_text {
  text-align: center; 
  /* If needed, make it a block element to respect text-align property */
  width: 100%;
}

/* About section */
section#about {
  background-color: #ffffff; /* White background for a clean look */
  color: #333; /* Dark gray text for readability */
  padding: 4rem 2rem; /* Add padding for breathing room */
}

.about_content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem; /* increase from 3rem to 5rem */
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .about_content {
    flex-direction: column;
    text-align: center;
  }
  .about_text_container {
    text-align: center;
    max-width: 100%;
  }
}


.reverse_layout {
  flex-direction: row-reverse; /* Switch the order of the text and image */
}

.about_text {
  flex: 1; /* Allow the text to take up equal space */
  max-width: 700px; /* Limit the width of the text */
}

.about_text .h5 {
  font-size: 1.5rem; /* Slightly larger for headings */
  font-weight: 500; /* Ensure headings remain distinct */
  margin-bottom: 0.5rem; /* Add spacing below headings */
  text-align: center;
}

.about_text p {
  margin-bottom: 0rem; /* Add spacing below paragraphs */
  font-size: 0.9rem; /* Decrease the font size */
  line-height: 1.4; /* Adjust line height for readability */
}

.about_list_container {
  flex: 0 0 auto; /* Allow the list container to take up only as much space as needed */
  max-width: 100%; /* Allow the list container to expand fully */
  margin-top: 0rem; /* Add slight spacing above the list */
  text-align: center; /* Align text to the left */
}

.about_list_container p {
  font-size: 2rem; /* Larger font size for the list heading */
  margin-bottom: 1rem; /* Add spacing below the heading */
  font-weight: bold; /* Emphasize the list heading */
  color: #333; /* Dark gray for consistency */
}

.about_list {
  list-style-type: disc;   /* keeps normal bullet points */
  margin: 0;               /* remove browser default margin */
  padding-left: 1.25rem;   /* adds a small indent for bullets */
  text-align: left;        /* keeps list aligned with text */
}

.about_list li {
  font-size: 1.2rem; /* Decrease the font size */
  line-height: 1.4; /* Adjust line height for readability */
  margin-top: 0; /* Remove extra spacing above list items */
}

.about_content img {
  transition: transform 0.3s ease; /* Smooth hover effect */
}

.about_content img:hover {
  transform: scale(1.2); /* Slightly enlarge the image on hover */
}

.about_figure {
  display: flex;
  flex-direction: column; /* stack image and caption */
  align-items: center;    /* center everything horizontally */
  max-width: fit-content; /* make figure width match the image */
  margin: 0 1rem;         /* optional spacing between figures */
  text-align: center;     /* ensure captions are centered */
}

.about_images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex: 1;
  min-width: 00px;
}

.about_img {
  max-width: 100%; /* Ensure the image is responsive */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px; /* Add rounded corners */
}

.about_caption {
  margin-top: 0.5rem; /* small spacing from image */
  font-size: 0.9rem;
  color: #555;
  text-align: center;   /* double ensure center */
}

.about_text_container {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 10rem;
  text-align: center;
  margin-top: 5rem;
}

#about h2 {
  font-size: 2rem; /* Larger font size for the section heading */
  margin-bottom: 1rem; /* Add spacing below the heading */
}

.about_text_container .about_list {
  margin-top: -8rem; /* reduces the space between second <p> and the list */
}


/* Hero section */
section#hero {
  background: linear-gradient(rgba(26,26,64,0.8), rgba(26,26,64,0.8)),
              url("/assets/background_image.jpg") no-repeat center top;
  background-size: cover;
  background-attachment: scroll;
  color: #fafafa;
  padding-bottom: 4px;
  --color-accent: #8a2be2;
}

.hero_content {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  flex: 1;
  text-align: left;
  animation: fadeIn 1s ease-in-out;
}

.hero_container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}


.hero_social_container {
  border-radius: 10px; /* Soften the corners */
  padding: var(--space-m);
  margin: var(--space-m) 0; /* Add margin above/below */
  max-width: none; /* Let it grow naturally */
  box-shadow: none;
  position: relative; /* Enable positioning for child elements */
  top: 8rem; 
}

.hero_social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero_social_item {
  background-color: rgb(28, 53, 98); /* Solid background color */
  color: #fff; /* White text for contrast */
  padding: 0.75rem 1.5rem; /* Increase padding for larger size */
  display: flex; /* Flex container for centering */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
  font-size: 1.1rem; /* Increase font size for better readability */
  transition: transform 0.3s ease, background-color 0.3s ease;
  min-width: 150px; /* Optional: Ensure consistent width */
  margin-top: 0; /* Reset margin to avoid pushing items further */
  border-radius: 50px; /* Keep the rounded pill shape */
  white-space: nowrap;
}
.hero_social_item:hover {
  background-color: var(--accent-color); /* Fill on hover */
  transform: scale(1.1);
}
.hero_social_item a img {
  filter: brightness(0) invert(1);
}
.hero_social_item a img:hover {
  filter: none;
}
.hero_social_text {
  font-size: 1rem;
  font-weight: bold;
}

/* Work section */
section#work {
  background-color: #87ceeb;
  color: #0c0c0c;
  --color-accent: #2e8b57;
  padding: var(--space-xl) 0; /* Add vertical padding to the top and bottom of the section */
}
.work_logos {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-m);
  
}
.work_logos img {
  max-height: 500px;
  width: auto;
  margin: 0 15px;
  transition: transform 0.3s ease;
}
.work_logos img:hover {
  transform: scale(1.05);
}

.caption_container {
  margin-top: 10px;
  text-align: center;
}

.logo_caption {
  margin: 5px 0;
  font-family: Arial, sans-serif;
}

.logo_caption.title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.logo_caption.subtitle {
  font-size: 1em;
  color: #667;
}

.journey_text {
  font-family: 'Arial', sans-serif; /* Use a clean, modern font */
  font-size: 1.2em; /* Slightly larger font size for emphasis */
  font-weight: 500; /* Medium weight for better readability */
  color: #333; /* Dark gray for a professional look */
  margin-bottom: 15px; /* Add spacing below the text */
  line-height: 1.5; /* Improve readability with line spacing */
}

/* Interests section */
section#interests {
  background-color: #dff5e1; /* Light blue background for a fresh look */
  color: #0c0c0c;
  padding: var(--space-xl) 0; /* Add vertical padding to the top and bottom of the section */
}

#interests .work_logos {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-m);
}

#interests .work_logos img {
  max-height: 150px; /* Adjust height for smaller icons */
  width: auto;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

#interests .work_logos img:hover {
  transform: scale(1.05);
}

#interests .caption_container {
  margin-top: 10px;
  text-align: center;
}

#interests .logo_caption {
  margin: 5px 0;
  font-family: Arial, sans-serif;
}

#interests .logo_caption.title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

/* Contact section */
.contact_form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f9f9f9;
  padding: var(--space-l);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.contact_form input:focus,
.contact_form textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 5px rgba(138,43,226,0.5);
}
.form_group {
  display: flex;
  flex-direction: column;
}
label {
  margin-bottom: 5px;
  font-weight: bold;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 10px;
}
textarea {
  resize: vertical;
  height: 150px;
}
button[type="submit"] {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}
button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Footer section */
section#footer {
  padding: var(--space-l);
}
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: var(--space-m) 0;
}
footer a {
  color: var(--secondary-color);
}
footer a:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero_container {
    flex-direction: column;
    text-align: center;
  }
  .hero_image {
    margin-right: 0;
    margin-bottom: var(--space-m);
  }
  .hero_content {
    text-align: center;
  }
}
