/*
* --- Color Variables ---
* Define color palettes for both light and dark themes using CSS variables.
* The `:root` selector sets the default (light) theme colors.
* The `[data-theme="dark"]` selector overrides these variables for dark mode.
*/
:root {
--bg-color: #fefefe;
--text-color: #333;
--secondary-text-color: #666;
--accent-color: #4d6447;
--subtle-text-color: #999;
--border-color: #eee;
--hero-bg-color: #D4E7C5;
--project-image-bg: #f5f5f5;
}

[data-theme="dark"] {
--bg-color: #1a1a1a;
--text-color: #f0f0f0;
--secondary-text-color: #e0e0e0;
--accent-color: #a8c1a2;
--subtle-text-color: #777;
--border-color: #333;
--hero-bg-color: #2b392e;
--project-image-bg: #222;
}

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

.source-serif-4-<uniquifier> {
  font-family: "Source Serif 4", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
overflow-x: hidden;
transition: background-color 0.3s ease, color 0.3s ease;
}


/* Use Georgia for headings and titles to create a mix of fonts */
.logo, h1, h2, h3, h4, .footer-title {
font-family: 'Source Serif 4', serif;
}

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

/* Header */
header {
padding: 40px 0;
border-bottom: 1px solid var(--border-color);
background-color: var(--bg-color);
}

/* New flexbox container for header content */
header .container {
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
font-size: 18px;
font-weight: 400;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--text-color);
}

nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 40px;
}

nav a {
text-decoration: none;
color: var(--secondary-text-color);
font-size: 14px;
letter-spacing: 1px;
text-transform: uppercase;
transition: color 0.3s ease;
position: relative; /* Needed for the pseudo-element */
}

/* Pseudo-element for the bottom border */
nav a::after {
content: '';
position: absolute;
width: 100%;
height: 1px; /* The thickness of the border */
background-color: var(--text-color); /* The color of the border */
bottom: -5px; /* Position it below the text */
left: 0;
transform: scaleX(0); /* Start with 0 width */
transform-origin: bottom left; /* Scale from left */
transition: transform 0.3s ease-out; /* Smooth transition for the scaling effect */
}

nav a:hover {
color: var(--text-color);
}

/* On hover, scale the pseudo-element to 100% width */
nav a:hover::after {
transform: scaleX(1);
}

.header-actions {
display: flex;
align-items: center;
gap: 20px;
}

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

.social-icons a, .theme-toggle-btn {
color: var(--secondary-text-color);
transition: color 0.3s ease;
}

.social-icons a:hover, .theme-toggle-btn:hover {
color: var(--text-color);
}

.social-icons svg, .theme-toggle-btn svg {
width: 20px;
height: 20px;
}

.theme-toggle-btn {
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}
.hero-e{
    font-weight: 600;
    text-decoration: underline;
}

.hero-content {
margin: 0 auto;
text-align: left;
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  border-radius: 50%; /* This makes them perfect circles */
  filter: blur(80px); /* Adjust the blur amount */
  z-index: 0; /* Place them behind the text */
}

/* First circle (using ::before) */
.hero-content::before {
  top: 10%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: linear-gradient(to right, #ff00c8, #00c6ff);
  animation: moveCircle1 12s infinite alternate ease-in-out;
}

/* Second circle (using ::after) */
.hero-content::after {
  bottom: 10%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: linear-gradient(to left, #ffc800, #ff004c);
  animation: moveCircle2 10s infinite alternate ease-in-out;
}

/* Keyframe animations for each circle */
@keyframes moveCircle1 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30vw, 20vh);
  }
}

@keyframes moveCircle2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-25vw, -15vh);
  }
}

.hero h1 {
font-size: 52px;
font-weight: normal;
line-height: 1.2;
/*margin-bottom: 40px;*/
text-align: left;
}

.hero-subtitle {
font-size: 18px;
font-weight: 300;
margin: 0 auto 60px auto;
max-width: 600px;
text-align: center;
}

.hero-description {
font-size: 16px;
color: var(--accent-color);
line-height: 1.8;
max-width: 500px;
margin: 0 auto;
text-align: center;
}

.mission-content {
  display: flex; 
  align-items: left;
  gap: 40px;
}

.mission-image {
  flex-shrink: 0;
  width: 20%;
}

.mission-image img {
    width: 200px;
  height: auto;
  display: block;
}

.mission-header {
  /* This allows the text column to take up the remaining space */
  flex-grow: 1;
  /* Controls the width of the right column */
  width: 50%;
}

/* Optional: Add a responsive breakpoint for smaller screens */
@media (max-width: 768px) {
  .mission-content {
    /* Stack items vertically on smaller screens */
    flex-direction: column;
  }
  .mission-image,
  .mission-header {
    /* Make both columns full-width */
    width: 100%;
  }
}

/* Projects Section */
.projects {
padding: 100px 0;
border-top: 1px solid var(--border-color);
background-color: var(--bg-color);
}

.projects-header {
text-align: center;
margin-bottom: 80px;
}

.projects-title {
font-size: 36px;
font-weight: normal;
margin-bottom: 20px;
color: var(--text-color);
}

.project-item {
border-bottom: 1px solid var(--border-color);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
margin-bottom: 80px;
padding: 40px 0;
justify-items: center;
}

.project-item:last-child {
margin-bottom: 0;
}

/* Image link styling */
.project-item a {
text-decoration: none;
color: inherit;
}

.project-image-wrapper {
width: 560px;
height: 360px;
overflow: hidden;
border-radius: 20px; /* Softer border-radius */
display: flex;
align-items: center;
justify-content: center;
background-color: var(--project-image-bg);
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image-wrapper-about {
/*width: 560px;*/
/*height: 360px;*/
overflow: hidden;
border-radius: 20px; /* Softer border-radius */
display: flex;
align-items: center;
justify-content: center;
background-color: var(--project-image-bg);
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image-wrapper:hover {
transform: scale(1.03);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}


.project-content {
padding-left: 20px;
}

.project-content h2 {
font-size: 42px;
}

.project-content h3 {
font-size: 24px;
font-weight: normal;
margin-bottom: 20px;
color: var(--text-color);
}

.project-meta {
font-size: 14px;
color: var(--subtle-text-color);
text-transform: uppercase;
letter-spacing: 1px;
text-decoration: none;
display: block;
margin-bottom: 10px;
}

.project-content p {
font-size: 16px;
color: var(--secondary-text-color);
line-height: 1.7;
margin-bottom: 20px;
}

.project-link {
display: inline-block;
margin-top: 15px;
padding: 10px 20px;
border: 1px solid var(--text-color);
border-radius: 50px;
color: var(--text-color);
text-decoration: none;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
position: relative;
}

.project-link:hover {
background-color: var(--text-color);
color: var(--bg-color);
}

.project-link::after {
content: " →";
transition: transform 0.3s ease;
display: inline-block;
margin-left: 5px; /* Add some space between text and arrow */
}

.project-link:hover::after {
transform: translateX(5px);
}


/* iOS segmented control style */
.project-tabs {
    display: flex;
    background: #f1f1f1;
    border-radius: 30px;
    width: fit-content;
    justify-content: center; /* Centers the tabs horizontally within .project-tabs */
    align-items: center; /* Centers the tabs vertically within .project-tabs if needed */
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
flex: 1;
padding: 0.75rem 1.5rem;
border: none;
background: transparent;
color: #333;
font-weight: 600;
border-radius: 30px;
cursor: pointer;
transition: all 0.3s ease;
}

.tab-button.active {
background: #333;
color: #fff;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


.tab-button:hover:not(.active) {
background: rgba(0,0,0,0.05);
}


/* Content fade/slide animation */
.tab-content {
display: none;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease, transform 0.5s ease;
}


.tab-content.active {
display: block;
opacity: 1;
transform: translateY(0);
}
/* Tabs */


/* Mission Section */
.mission {
padding: 100px 0;
background-color: var(--bg-color);
}

.mission-header {
text-align: left;
margin-bottom: 60px;
}

.mission-label-s {
font-size: 18px;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--subtle-text-color);
margin-bottom: 20px;
}

.mission-label {
font-size: 12px;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--subtle-text-color);
margin-bottom: 20px;
}

.mission-title {
font-size: 32px;
font-weight: normal;
color: var(--text-color);
max-width: 700px;
/*margin: 0 auto;*/
line-height: 1.3;
}

/* Carousel Section */
.carousel-section {
padding: 100px 0;
background-color: var(--bg-color);
}

.carousel-container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
overflow: hidden;
position: relative;
cursor: grab;
}

.carousel-track {
display: flex;
transition: transform 0.6s ease-out; /* Softer animation */
}

.carousel-item {
flex-shrink: 0;
width: 360px;
margin-right: 20px;
text-align: center;
border-radius: 8px; /* Softer border-radius */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Softer shadow */
}

.carousel-image-wrapper {
width: 100%;
/*height: 200px;*/
overflow: hidden;
border-radius: 8px; /* Softer border-radius */
margin-bottom: 20px;
}

.carousel-image-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.carousel-item h4 {
font-size: 18px;
font-weight: normal;
color: var(--text-color);
margin-bottom: 5px;
}

.carousel-item p {
font-size: 14px;
color: var(--subtle-text-color);
text-transform: uppercase;
letter-spacing: 1px;
}

/* Carousel Navigation Buttons */
.carousel-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: var(--bg-color);
border: 1px solid var(--border-color);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 10;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, transform 0.3s ease;
color: var(--text-color);
}

.carousel-button:hover {
background-color: var(--text-color);
color: var(--bg-color);
transform: translateY(-50%) scale(1.1);
}

#prev-btn {
left: 10px;
}

#next-btn {
right: 10px;
}

.carousel-button svg {
width: 20px;
height: 20px;
fill: currentColor; /* Use currentColor to inherit color from parent */
transition: fill 0.3s ease;
}


/* Scrolling Text */
.scrolling-text {
padding: 40px 40px;
/*overflow: hidden;*/
white-space: nowrap;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
background-color: var(--bg-color);
}

.scroll-content {
display: inline-block;
/*animation: scroll 30s linear infinite;*/
font-size: 20px;
letter-spacing: 1px;
color: var(--secondary-text-color);
}

.scroll-content span {
margin: 0 40px;
}

@keyframes scroll {
0% {
    transform: translateX(100%);
}
100% {
    transform: translateX(-100%);
}
}

/* Articles Section */
.articles {
padding: 100px 0;
text-align: center;
background-color: var(--bg-color);
}

.articles-title {
font-size: 14px;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--text-color);
margin-bottom: 60px;
}

.articles-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
}

.article-item {
text-align: left;
padding: 20px;
transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-date {
font-size: 12px;
color: var(--subtle-text-color);
letter-spacing: 1px;
text-transform: uppercase;
margin-bottom: 10px;
}

.article-title {
font-size: 20px;
font-weight: normal;
margin-bottom: 15px;
color: var(--text-color);
}

.article-excerpt {
font-size: 14px;
color: var(--secondary-text-color);
line-height: 1.6;
}

/* Footer */
footer {
padding: 80px 0 40px;
border-top: 1px solid var(--border-color);
text-align: center;
background-color: var(--bg-color);
}

.footer-content {
margin-bottom: 40px;
}

.footer-title {
font-size: 32px;
font-weight: bold;
margin-bottom: 20px;
color: var(--text-color);
}

.footer-text {
font-size: 18px;
color: var(--secondary-text-color);
max-width: 600px;
margin: 0 auto 30px;
line-height: 1.6;
}

.contact-info {
font-size: 14px;
color: var(--secondary-text-color);
margin-bottom: 40px;
}

.contact-info a {
color: var(--text-color);
text-decoration: none;
}

.copyright {
font-size: 12px;
color: var(--subtle-text-color);
border-top: 1px solid var(--border-color);
padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
.container {
    padding: 0 20px;
}

.hero h1 {
    font-size: 36px;
}

.hero {
    padding: 80px 0;
}

.projects {
    padding: 60px 0;
}

.mission {
    padding: 60px 0;
}

/* Adjust header for mobile */
header .container {
    flex-direction: column;
    gap: 20px;
}

nav ul {
    gap: 20px;
}

.social-icons {
    gap: 15px;
}

.project-item {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.project-content {
    padding-left: 0;
}

.project-item:nth-child(even) {
    direction: ltr;
}

.project-image-wrapper {
    width: 100%;
    height: auto;
}

/* Carousel responsiveness */
.carousel-container {
    width: 100%;
    padding: 0 10px;
}

.carousel-item {
    width: 100%;
    margin-right: 0;
}

.carousel-track {
    transform: none !important;
}
}
