/* General Styles */
html {
  scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
	background: #181b21;
	    color: #eaeaea;
    text-align: center;
    overflow-x: hidden;
}

/* Intro Section */
.intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(24,27,34,0.81) 72%, rgba(36,44,60,0.92) 100%),
    url('../imgs/SQBackG.jpg') center/cover no-repeat;
	background-blend-mode: soft-light;
}

.intro::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(
    to bottom,
    rgba(24,27,34,0) 0%,
    #191a1e 100%
  );
  pointer-events: none;
  z-index: 2;
}

.intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.19em;
  margin-top: 0;
  color: #faf9f6;  /* Or your preferred off-white */
  /* Cinematic shadow stack: */
  text-shadow:
    0 2px 6px rgba(40, 44, 54, 0.21),
    0 8px 24px rgba(30, 32, 40, 0.18),
    0 1px 0 #bfc2cd,
    0 -1px 2px rgba(170,170,180,0.08);
  opacity: 0;
  animation: fadeOnlyIn 1.1s cubic-bezier(.61,.03,.29,.97) 0.1s forwards;
}

@keyframes fadeOnlyIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.intro p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #b5c3e2;
  margin-bottom: 2.6rem;
  letter-spacing: 0.03em;
}

.hero-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0.3rem 0 0 0;
  border: 2px solid #31353c;
  background: #181a21;
  /* Add a soft multi-layer shadow for cinematic “pop” */
  box-shadow:
    0 4px 32px 0 rgba(36, 44, 60, 0.24),  /* Wide soft shadow */
    0 1.5px 6px 0 rgba(0,0,0,0.11);      /* Subtle inner glow */
  transition: box-shadow 0.3s;
}
.hero-photo:hover {
  box-shadow:
    0 6px 40px 0 rgba(36,44,60,0.36),
    0 3px 12px 0 rgba(30,40,60,0.12);
}
@media (max-width: 700px) {
  .hero-photo { width: 90px; height: 90px; }
}

/* Contact Section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)); /* Subtle blending gradient */
    text-align: center;
    border-top: 5px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.contact h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #eaeaea;
    animation: fadeIn 1s ease-in-out;
}

/* Form Styling */
form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Center-aligns all form elements */
}

form input, form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9); /* Bright semi-transparent form background */
    color: #333; /* Dark text for readability */
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #1e90ff; /* Light blue focus effect */
    outline: none;
}

form button {
    padding: 0.8rem;
    width: 50%; /* Adjust width for better centering */
    background: linear-gradient(90deg, #1e90ff, #00bfff); /* Blue gradient */
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center; /* Centers text within the button */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form button:hover {
    background: linear-gradient(90deg, #00bfff, #1e90ff); /* Reversed hover gradient */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 191, 255, 0.5); /* Glow effect */
}

/* Contact Section Hidden by Default */
.hidden {
    display: none;
}

/* Success and Error Messages */
.success {
    background: rgba(0, 255, 0, 0.1);
    padding: 10px;
    border: 1px solid green;
    border-radius: 5px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border: 1px solid red;
    border-radius: 5px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}


/* Projects Grid Section */
.projects {
  position: relative;
  /* ...your existing background... */
  background: linear-gradient(135deg, #191a1e 0%, #23232a 60%, #1c1d20 100%);
  overflow: hidden;
}

.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(18,18,22,0) 60%, rgba(0,0,0,0.22) 100%);
}
.projects > * { position: relative; z-index: 2; }

.projects h2 {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f5f7;
  margin-bottom: 0.25em;
  margin-top: 2.5rem;
  text-shadow:
    0 2px 7px rgba(30, 32, 40, 0.18),
    0 1.5px 0 #bfc2cd;
  opacity: 1;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.project-card {
	position: relative;
  background: rgba(30, 34, 40, 0.99);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.16);
  width: 220px;
  padding: 1.1rem 0.8rem 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 44px rgba(0,191,255,0.15);
}
.project-card img {
  width: 90%;
  aspect-ratio: 1/1.2; /* Squared, or adjust for portrait */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.17);
  background: #222; /* fallback for loading */
}
.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #f2f2f2;
  margin: 0.6rem 0 0.4rem 0;
  text-transform: uppercase;
  font-weight: 600;
}
.project-card p {
  color: #c8d5e7;
  font-size: 0.85rem;
  margin: 0 0 0.85rem 0;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: justify;
	hyphens: auto;
  -webkit-hyphens: auto;   /* For Safari/older WebKit */
  -ms-hyphens: auto;       /* For older IE */
  word-break: break-word;  /* Fallback for very long words */
}
.more-link {
  color: #1e90ff;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 0.2rem;
  transition: color 0.2s;
}
.more-link:hover {
  color: #00bfff;
}

.project-tags-vert {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4em;  /* Space between tags */
}

.project-tag {
  background: linear-gradient(90deg, #1e90ff 0%, #00bfff 100%);
  color: #fff;
  font-size: 0.8rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  padding: 0.21em 0.9em;
  border-radius: 1.1em;
  letter-spacing: 0.09em;
  box-shadow: 0 2px 8px rgba(30,144,255,0.07);
  z-index: 2;
  opacity: 0.93;
  pointer-events: none;
  user-select: none;
}

.project-tag.wip {
  background: #d6a700;
  color: #222;
  font-weight: 700;
  letter-spacing: 0.07em;
  border-radius: 0.85em;
}

nav {
  position: sticky;
  top: 0;
  background: rgba(20, 22, 28, 0.95);
  display: flex;
  justify-content: flex-end;
  gap: 1.1rem;
  z-index: 100;
  padding: 0.5rem 3vw 0.5rem 0;
  border-bottom: 1px solid rgba(60,80,130,0.13);
}
nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.8rem;
  color: #c7d1e1;
  text-decoration: none;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  transition: color 0.18s;
}
nav a:hover,
nav a.active {
  color: #1e90ff;
  background: none;
  border-bottom: 1.5px solid #1e90ff;
}

.floating-nav {
  position: absolute;   /* Not sticky or fixed */
  top: 2.2rem;
  right: 4vw;
  display: flex;
  gap: 1.3rem;
  z-index: 101;
  /* NO background, NO border, NO box-shadow */
  background: none;
  border: none;
  box-shadow: none;
  pointer-events: auto;
}
.floating-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.75rem;
  color: #d3d8e7;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  opacity: 0.77;
  padding-bottom: 2px;
  border-bottom: 1.2px solid transparent;
  transition: opacity 0.16s, color 0.18s, border-bottom 0.18s;
}
.floating-nav a:hover,
.floating-nav a.active {
  color: #1e90ff;
  opacity: 1;
  border-bottom: 1.2px solid #1e90ff;
}

.social-links {
  margin: 0.2rem 0 1.7rem 0;
  display: flex;
  justify-content: center;
  gap: 1.3rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  opacity: 0.82;
  transition: opacity 0.15s, transform 0.15s;
  filter: grayscale(35%);
}
.social-links a:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: none;
}
.social-links img {
  width: 29px;
  height: 29px;
  display: block;
}

.floating-nav .nav-toggle { display: none; }

.mobile-menu {
  display: none;
}

@media (max-width: 700px) {
  .floating-nav a { display: none; }
  .floating-nav .nav-toggle { display: block; background: none; border: none; color: #c7d1e1; font-size: 2rem; cursor: pointer; margin-left: 0.8rem; }
  .mobile-menu {
    display: none;
    position: absolute;
    top: 3.2rem;
    right: 2vw;
    background: rgba(22,24,32,0.97);
    border-radius: 9px;
    padding: 1.1rem 1.7rem;
    box-shadow: 0 6px 28px rgba(0,0,0,0.22);
    flex-direction: column;
    gap: 1.3rem;
    z-index: 102;
    text-align: right;
  }
	
  .mobile-menu a {
    display: block;
    color: #d3d8e7;
    font-size: 0.75rem;
    text-decoration: none;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.85;
    border-bottom: 1.1px solid transparent;
    transition: color 0.18s;
  }
  .mobile-menu a:last-child { margin-bottom: 0; }
  .mobile-menu a:hover { color: #1e90ff; border-bottom: 1.1px solid #1e90ff; }
}

.about {
  text-align: center;
  padding: 0 2vw;
  margin: 1.5rem 0 4.5rem 0;
  position: relative;
	background: rgba(30,34,48,0.08); 
	border-radius: 16px;
}

.about-bio {
  max-width: 660px;
  margin: 0 auto;
  color: #c5cadd;
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-align: justify;
}

.about-headshot {
  text-align: center;
  margin-bottom: 1.3rem;
}

.about-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #354157 0%, #99b2f7 80%, #354157 100%);
  opacity: 0.35;
  margin: 0 auto 2.2em auto;
  border-radius: 2px;
  transition: opacity 0.2s;
}

@media (max-width: 850px) {
  .about-bio {
    padding-left: 1.3em;
    padding-right: 1.3em;
    box-sizing: border-box;
  }
  .about-bio p {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.toast-success, .toast-error {
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 240px;
  max-width: 92vw;
  padding: 1em 2.3em;
  border-radius: 1.4em;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 7px 40px rgba(20,60,20,0.16);
  opacity: 0.95;
  transition: opacity 0.5s;
  pointer-events: none;
  text-align: center;
}

.toast-success {
  background: #263327;
  color: #b8ffc7;
  border-bottom: 2.5px solid #49d97c;
}
.toast-error {
  background: #3d2525;
  color: #ffc8c8;
  border-bottom: 2.5px solid #ff3a4a;
}