@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap');

/* Glassy Button Styles (Integrated) */
:root {
  --button-text: #002726;
  --button-surface: #39CB7C;
  --bright-green: #39CB7C;
  --green: #003837;
  --dark-green: #002726;
  --trans-green: rgba(0, 39, 38, 0.3);
  --faded-green: #87C1BF;
  --white: #F0E8D6;
  --faded-white: #E0D8C6;
  --trans-white: rgba(224, 216, 198, 0.9);
  --dark-teal: #001A19; /* Added for work section background */
}

/* General Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-green); /* Main dark background */
  color: var(--white); /* Text on dark background */
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Loading Page Styles */
#loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dark-green);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Above all other content */
  transition: opacity 0.5s ease;
}

#loading-page.fade-out {
  opacity: 0;
}

.loader {
  text-align: center;
}

.loader-text {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--primary); /* Assumed green, e.g., #33c375 */
  animation: pulse1 1.5s infinite ease-in-out;
}

.loader-text div {
  margin-top:20px;
}

@keyframes pulse1 {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.loader video {
  width: 250px;
}

@media (orientation: portrait) {
  
  .loader video {
    width: 150px;
  }
  .loader-text {
  font-size: 1.5rem;
  }
}

/* Heading Styles with Josefin Sans */
h2 {
  font-family: 'Lexend Deca', serif;
  font-weight: 600 !important; /* Bold for emphasis */
  line-height: 1.2; /* Improved readability */
}
h1, h3 {
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 600 ; /* Bold for emphasis */
  line-height: 1.2; /* Improved readability */
}

.green-txt {
    color: var(--bright-green);
    opacity: 0; /* Start with opacity 0 */
    animation: online 2s ease-in-out 0.5s infinite; /* Loop indefinitely */
    display: inline-block;
}

@keyframes online {
    0% { opacity: 0; } /* Start invisible */
    50% { opacity: 1; } /* Fade in to full opacity */
    100% { opacity: 0; } /* Fade back out */
}

/* Go to Top Button */
.go-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000; /* Above other elements */
  opacity: 0; /* Hidden initially */
  transform: translateY(100px); /* Start off-screen below */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.go-to-top.visible {
  opacity: 1; /* Visible when past hero */
  transform: translateY(0); /* Move into position */
}

.balloon {
  width: 80px; /* Adjust size as needed */
  height: auto;
  cursor: pointer;
  animation: float 3s ease-in-out infinite; /* Up-and-down movement */
  transition: width 0.4s;
}

.balloon:hover {
  width: 100px; /* Adjust size as needed */
}

@media (orientation: portrait) {
  .balloon {
    width: 70px; /* Adjust size as needed */
    margin-right:-15px;
  }

  .balloon:hover {
    width: 90px; /* Adjust size as needed */
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Slight up-and-down movement */
  }
}


/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 39, 38, .85);
  z-index: 10;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* Desktop Navigation */
nav.webview {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobile Navigation */
nav.mobview {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: 'Lexend Deca', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
}

.nav-links a:hover {
  color: var(--bright-green);
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 11;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

/* Hamburger Menu Animation (when active) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Nav Links */
.nav-links-mobile {
  flex-direction: column;
  position: absolute;
  top: calc(100%);
  right: 5px;
  width: 150px;
  background-color: rgba(0, 39, 38, 0.95);
  padding: 20px;
  z-index: 10;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border-radius: 0 0 10px 10px;
  opacity: 0; /* Start hidden */
  transform: translateY(-10px); /* Start slightly above */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
  display: none; /* Initially hidden */
}

.nav-links-mobile.active {
  display: flex; /* Ensure it's displayed */
  opacity: 1; /* Fade in */
  transform: translateY(0); /* Slide down to normal position */
}

.nav-links-mobile a {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  padding: 10px 0;
  text-align: left; /* Align text to the right */
}

.nav-links-mobile a:hover {
  color: var(--bright-green);
}

/* Ensure .webview and .mobview toggle correctly */
nav.webview {
  display: flex;
}

nav.mobview {
  display: none;
}

@media (orientation: landscape) {
  nav.webview {
    display: flex !important;
  }

  nav.mobview {
    display: none !important;
  }
}

@media (orientation: portrait) {
  nav.webview {
    display: none !important;
  }

  nav.mobview {
    display: flex !important;
  }
}

/* Container */
.container {
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 20px;
  box-sizing: border-box;
  position: relative; /* For positioning paper plane */
  overflow: hidden; /* Prevent plane from overflowing */
}

/* Cloud layer using ::before pseudo-element */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4800px; /* Increased to 4800px (2x image width) for seamless tiling */
  height: 100%;
  background: url("images/cloud-bg.png") repeat-x bottom;
  background-size: 2400px; /* Match the intrinsic width of the image */
  z-index: 1; /* Below hero content but above any other background */
  animation: scrollClouds 60s linear infinite; /* Smooth scrolling animation */
  will-change: transform; /* Performance optimization */
}

/* Background scrolling animation for clouds using transform */
@keyframes scrollClouds {
  0% {
    transform: translateX(0); /* Start position */
  }
  100% {
    transform: translateX(-2400px); /* Move left by the image width */
  }
}

/* Hero Content */
.hero-content {
  text-align: center;
  max-width: 800px;
  width: 100%;
  z-index: 2; /* Ensure content stays above plane */
  margin-top: -20px;
}

.hero-text {
  font-size: 56px;
  font-weight: 700;
  color: var(--white); /* Text on dark background */
  margin-bottom: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 100px;
}

.hero-subtext {
  position: relative;
  top: -70px;
  font-size: 20px;
  color: var(--white); /* Text on dark background */
  margin: 0 auto 32px;
  max-width: 640px;
  animation: slideUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

.hero-button {
  animation: slideUp 1s ease-out .8s forwards;
  opacity: 0;
}

/* Paper Plane Animation */
.paper-plane {
  position: absolute;
  width: 130px;
  height: auto;
  margin-top: -48px;
  z-index: 3; /* Behind hero content */
  border: none; /* Remove any default border */
  display: block; /* Prevent inline spacing */
  object-fit: contain; /* Ensure image scales correctly */
  object-position: center; /* Center the image within the img */
  top: 35%; /* Start at 30% from the top */
  left: -100px; /* Start off-screen left */
}

@media (orientation: landscape) {
  .paper-plane {
    animation: flyPlane 12s linear infinite; /* Linear timing */
  }
}

@media (orientation: portrait) {
  .paper-plane {
    animation: flyPlane2 5s linear infinite; /* Linear timing */
  }
}

/* Parabolic curved animation for the single plane */
@keyframes flyPlane {
  0% {
    top: 35%;
    left: 0%;
    transform: rotate(10deg);
  }
  5% {
    top: 36.875%;
    left: 5%;
    transform: rotate(9deg);
  }
  10% {
    top: 38.75%;
    left: 10%;
    transform: rotate(8deg);
  }
  15% {
    top: 40.625%;
    left: 15%;
    transform: rotate(7deg);
  }
  20% {
    top: 42.5%;
    left: 20%;
    transform: rotate(6deg);
  }
  25% {
    top: 44.375%;
    left: 25%;
    transform: rotate(5deg);
  }
  30% {
    top: 46.25%;
    left: 30%;
    transform: rotate(4deg);
  }
  35% {
    top: 48.125%;
    left: 35%;
    transform: rotate(3deg);
  }
  40% {
    top: 49.0625%;
    left: 40%;
    transform: rotate(2deg);
  }
  45% {
    top: 50%;
    left: 45%;
    transform: rotate(1deg);
  }
  50% {
    top: 50%;
    left: 50%;
    transform: rotate(0deg);
  }
  55% {
    top: 50%;
    left: 55%;
    transform: rotate(-1deg);
  }
  60% {
    top: 49.0625%;
    left: 60%;
    transform: rotate(-2deg);
  }
  65% {
    top: 48.125%;
    left: 65%;
    transform: rotate(-3deg);
  }
  70% {
    top: 46.25%;
    left: 70%;
    transform: rotate(-4deg);
  }
  75% {
    top: 44.375%;
    left: 75%;
    transform: rotate(-5deg);
  }
  80% {
    top: 42.5%;
    left: 80%;
    transform: rotate(-6deg);
  }
  85% {
    top: 40.625%;
    left: 85%;
    transform: rotate(-7deg);
  }
  90% {
    top: 38.75%;
    left: 90%;
    transform: rotate(-8deg);
  }
  95% {
    top: 36.875%;
    left: 95%;
    transform: rotate(-9deg);
  }
  100% {
    top: 35%;
    left: 100%;
    transform: rotate(-10deg);
  }
}

/* For Mob */
@keyframes flyPlane2 {
  0% {
    top: 43%;
    left: -40%;
    transform: rotate(-10deg);
  }
  100% {
    top: 38%;
    left: 100%;
    transform: rotate(-10deg);
  }
}

/* Hero Animations */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Tools Section */
.tools-section {
  padding: 80px 0;
  background-color: var(--white); /* Light background */
}

.tools-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-green); /* Dark text for contrast on light background */
  text-align: center;
  margin-bottom: 48px;
  margin-top: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  width: 100%;
  margin-bottom: 40px;
}

.tool-item {
  position: relative;
  background-color: #E0D8C6; /* Slightly darker shade for contrast */
  color: #002726;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0px;
  transition: background-color 0.3s ease;
  transition: margin-top 0.3s ease;
}

.tool-item:hover {
  background-color: #D0C8B6; /* Hover effect */
  margin-top: -10px;
}

.tool-item object {
  width: 60px;
  color: red;
  display: block;
  margin: 0 auto; /* Center the object horizontally */
  margin-bottom: 10px; /* Add space between the object and the text below */
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tools-section h2 {
    font-size: 28px;
  }

  .tool-item {
    font-size: 14px;
    padding: 10px;
  }
}

/* Work Section */
.work-section {
  padding: 80px 0;
  background-color: #001A19; /* Updated dark teal */
}

.work-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #F0E8D6; /* Text on dark background */
  text-align: center;
  margin-bottom: 48px;
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 100%;
}

@media (min-width: 768px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background-color: #002726; /* Keep your original color */
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--green);
  transition: border-color 0.2s ease;
  max-width: 450px; /* Match Emilantz width on larger screens */
  margin: 0 auto; /* Center the card within the grid cell */
  position: relative; /* Positioning context for the button */
  padding-bottom: 90px; /* Add space for the absolutely positioned button */
}

.project-card a {
  position: absolute;
  bottom: 30px; /* Align to the bottom, accounting for padding */
}

@media (max-width: 768px) {
  .project-card {
    max-width: 100%; /* Full width on smaller screens */
  }
}

.project-card:hover {
  border-color: var(--bright-green);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.project-card p {
  font-size: 16px;
  color: #87C1BF; /* Text on dark background */
  margin-bottom: 16px;
}

.project-card img, .project-card video {
  width:100%;
  border-radius:10px;
}

.project-card .tag {
  display: inline-block; /* Ensures tags display inline with proper spacing */
  border: 1px solid #39CB7C;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  margin: 0 2px 5px 0; /* Adds spacing between tags to prevent overlap */
  color: #F0E8D6;
}

.project-tags {
  margin-bottom:20px;
}

.project-card .glassy-button {
  margin-top: 30px;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: #003837;
}

.about-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #F0E8D6;
  text-align: center;
  margin-bottom: 48px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: flex-start;
}

/* Top Container: Text and Image */
.top-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

@media (min-width: 768px) {
  .top-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 400px; /* Ensure a minimum height for the container */
  }
}

/* Bottom Container: Skills and Experience */
.bottom-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

@media (min-width: 768px) {
  .bottom-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.about-text {
  flex: 1;
  max-width: 100%;
}

@media (min-width: 768px) {
  .about-text {
    max-width: 50%;
  }
}

.about-text p {
  font-size: 18px;
  color: #F0E8D6;
  font-size: 16px;
}

.about-text p + p {
  margin-top: 16px;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .about-image {
    max-width: 50%;
    margin-top: 0;
    height: 100%; /* Take full height of the container */
  }
}

.about-image img {
  width: 80%;
  border-radius: 20px;
  object-fit: cover;
  object-position: top; /* Crop from bottom */
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}

@media (min-width: 768px) {
  .about-image img {
    width: 100%; /* Fill full width of container */
    height: 100%; /* Fill available height */
  }
}

/* Skills and Experience Sections */
@media (min-width: 768px) {
  .skills, .experience {
    flex: 1;
    max-width: 50%;
  }
}

/* Skill Bars */
.skills {
  margin-top: 0;
}

.skills h3 {
  font-size: 24px;
  font-weight: 600;
  color: #F0E8D6;
  margin-bottom: 24px;
}

.skill {
  margin-bottom: 16px;
}

.skill-name {
  display: block;
  font-size: 16px;
  color: #F0E8D6;
  margin-bottom: 8px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: #002726;
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background-color: #39CB7C;
  width: 0;
  border-radius: 4px;
  transition: width 1.5s ease-in-out 0.1s;
}

.about-section.load .skill-fill {
  width: var(--skill-width);
}

/* Experience Section */
.experience {
  position: relative;
}

.experience h3 {
  font-size: 24px;
  font-weight: 600;
  color: #F0E8D6;
  margin-bottom: 24px;
}

.experience-item {
  margin-bottom: 5px;
  background: rgba(0, 39, 38, 0.3);
  border-radius: 15px;
  padding: 10px 25px 10px 25px;
}

.experience-item h4 {
  font-size: 16px;
  font-weight: 400;
  color: #F0E8D6;
  margin-bottom: 4px;
  margin-top: 4px;
}

.experience-item .date {
  display: block;
  font-size: 14px;
  color: var(--bright-green);
  margin-bottom: 8px;
}

.experience-item .glassy-button {
  margin-top: 8px;
  margin-bottom: 8px;
  height: 38px;
  padding-bottom:4px;
}

.experience-item .glassy-button:hover {
  height: 38px !important;
}

.experience-item p {
  font-size: 14px;
  color: #87C1BF;
}

.experience-item .description {
  display: none; /* Hidden by default */
}

.experience-item.expanded .description {
  display: block; /* Visible when expanded */
}

.experience-item h4 {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.experience-item .arrow {
  display: flex;
  align-items: center;
  margin-top: 2px;
  transition: transform 0.3s ease;
}

.experience-item .arrow svg {
  width: 16px;
  height: 16px;
}

.experience-item.expanded .arrow {
  transform: rotate(180deg); /* Rotate arrow when expanded */
}

/* Responsive Adjustments for Experience Section */
@media (max-width: 768px) {
  .experience h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .experience-item {
    margin-bottom: 16px;
  }

  .experience-item h4 {
    font-size: 16px;
  }

  .experience-item span {
    font-size: 12px;
  }

  .experience-item p {
    font-size: 14px;
  }
}

/* Image Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contact Section */

.contact-section {
  padding: 80px 0;
  background-color: var(--white); /* Light background as per your site */
}

.contact-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-green);
  text-align: center;
  margin-bottom: 48px;
}

.contact-subtext {
  font-size: 20px;
  color: var(--dark-green); /* Text on dark background */
  margin: -20px auto 50px;
  max-width: 640px;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}

.contact-form-column {
  flex: 1;
  max-width: 100%;
  background:var(--green); /*rgb(224, 216, 198);*/
  padding: 25px 30px 10px 30px;
  border-radius: 20px;
  color:var(--white);
}

@media (min-width: 768px) {
  .contact-form-column {
    max-width: 50%;
  }
}

.contact-details-column {
  flex: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-details-column {
    max-width: 50%;
  }
}

.needs-label {
  font-size: 32px;
  font-weight: 300;
  margin-top:0px;
  margin-bottom:30px;
  line-height: 1.2;
}

.needs-subtext {
  font-size: 14px;
  margin-bottom: 15px;
  color: var(--faded-green);
}

.chip-grid {
  display: grid;
  gap: 12px;
  margin-bottom:30px;
  grid-template-columns: repeat(2, 1fr);
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--dark-green);
  border-radius: 9999px;
  background-color: var(--dark-green);
  color: var(--white);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.chip:hover {
  border-color: var(--bright-green);
}

.chip.selected {
  color: var(--bright-green);
  border-color: var(--bright-green);
}

.contact-form {
  width: 100%;
  text-align: center;
  padding-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-green);
  color: var(--white);
  box-sizing: border-box;
  transition: border-bottom 0.3s ease;
  margin-bottom:10px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--bright-green);
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  position: relative;
  display: block;
  margin: 0 auto;
  width: fit-content;
  background: none; /* Reset default button background */
  border: none; /* Reset default button border */
  padding: 0; /* Reset default button padding */
}

.submit-btn.glassy-button {
  margin-top: 25px;
}

.form-message {
  font-size: 16px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.form-message.success {
  background-color: var(--bright-green);
  color: var(--dark-green);
}

.form-message.error {
  background-color: #ba0000;
  color: var(--white);
}

.contact-image {
  position: relative;
  width: 100%;
  text-align: center;
}

.contact-image img {
  width: 50%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  padding-right: 5%;
  margin-top: -20px;
}

.contact-alternative {
  display: flex;
  flex-direction: column;
  gap: 16px;
  
  background-color: var(--faded-white);
  padding: 25px;
  padding-top: 100px;
  border-radius: 20px;
  margin-top:-100px;
}

.contact-alternative p {
  font-size: 16px;
  color: #002726;
  line-height: 1.5;
}

.email-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.email-copy #email-address {
  font-size: 16px;
  color: var(--dark-green);
}

.email-copy .copy-email {
  font-size: 14px;
  text-decoration: none;
  color: var(--dark-green);
  min-height: 20px; /* Prevent vertical shift */
  line-height: 20px; /* Consistent vertical alignment */
  display: inline-flex; /* Use inline-flex for better control */
  align-items: center; /* Center text vertically within the link */
  justify-content: flex-start; /* Align text to the left */
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease; /* Only transition the color */
}

.email-copy .copy-email:hover {
  color: var(--dark-green);
  background: var(--white);
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-method i {
  font-size: 16px;
  color: #39CB7C;
  margin-right: 12px;
}

.contact-method a {
  font-size: 16px;
  color: #002726;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: #39CB7C;
}

.contact-method.social-links {
  display: flex;
  gap: 20px;
}

.contact-method img {
  width: 20px;
  margin-right:10px;
  margin-top:1px;
  border-radius: 4px;
}

.other-contact {
  display: flex;
  width:100%;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  border-top: 2px solid var(--white);
  padding-top:30px;
}

.contact-method-box {
  background:var(--white);
  color:var(--dark-green);
  text-decoration: none;
  display: flex; /* Use Flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  width:50px;
  height:50px;
  border-radius: 10px;
  text-align: center;
  margin-right:15px;
  transition: scale 0.2s;
}

.contact-method-box img {
  width:30px;
  vertical-align: middle;
}

.contact-method-box:hover {
  scale: 1.2;
}

.social-link {
  display: flex;
  align-items: center;
}

.social-link i {
  font-size: 16px;
  color: #39CB7C;
  margin-right: 8px;
}

.social-link a {
  font-size: 16px;
  color: #002726;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link a:hover {
  color: #39CB7C;
}

/* Footer */
footer {
  background-color: #002726; /* Main dark background */
  color: #F0E8D6; /* Text on dark background */
  text-align: center;
}

footer p {
  font-size: 16px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-text {
    font-size: 40px;
  }

  .hero-subtext {
    font-size: 18px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .work-section h2,
  .about-section h2,
  .contact-section h2 {
    font-size: 28px;
  }

  .project-card h3 {
    font-size: 20px;
  }

  .project-card p {
    font-size: 14px;
  }

  .about-text p {
    font-size: 16px;
  }

  .about-image img {
    width: 200px;
    height: 200px;
  }
}

/* Hero Magic Text */
#magic {
  position: relative;
  width: 100%;
  height: 50vh;
  display: block;
  top: 0;
  left: 0;
  z-index: -9999;
  margin-bottom:-50px;
}

/* Project Page Styles */
.project-hero {
  padding: 100px 0 80px;
  background-color: var(--dark-teal); /* Match work section background */
  position: relative;
  overflow: hidden;
}

.project-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.project-description {
  font-size: 16px;
  color: var(--faded-green);
  max-width: 800px;
  margin-bottom: 30px;
}

.project-hero .project-tags {
  margin-bottom: 40px;
}

.project-tags .tag {
  display: inline-block; /* Ensures tags display inline with proper spacing */
  border: 1px solid var(--bright-green);
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  margin: 0 2px 5px 0; /* Adds spacing between tags to prevent overlap */
  color: var(--white);
}

.project-hero-image {
  width: 100%;
  max-width: 1200px;
  margin-top: 0px;
}

.project-hero-image img, .project-hero-image video {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}

/* Project Navigation Menu (Horizontal) */
.project-nav {
  position: sticky;
  top: 60px !important; /* Adjust based on header height */
  background-color: var(--trans-white); /* Match hero background */
  z-index: 9; /* Below header (z-index: 10) but above content */
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  padding: 10px 0;
}

.project-nav .container {
  display: flex;
  justify-content: center;
}

.project-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2px;
}

.project-nav li {
  margin: 0;
}

.project-nav a {
  position: relative;
  font-size: 16px;
  color: var(--dark-green);
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  transition: background 0.1s ease, color 0.1s ease;
  padding: 13px 25px;
}

.project-nav a:hover {
  background: var(--dark-green);
  color: var(--bright-green);
}

@media (orientation: portrait) {
  .project-nav ul {
    gap: 0px;
    justify-content: center;
  }

  .project-nav a {
    font-size: 12px;
    padding: 14px 10px 14px 10px;
  }

  .project-nav .container {
    padding-left:0px;
    padding-right:0px;
  }
}

/* Project Content */
.project-content {
  padding: 80px 0;
  background-color: var(--green); /* Match about section background */
  display: flex;
  gap: 40px;
}

.project-content .container {
  flex: 1;
  max-width: 100%;

}

@media (min-width: 1024px) {
  .project-content {
    flex-direction: row;
  }

  .project-content .container {
    max-width: calc(100% - 240px); /* Account for sidebar width + gap */
  }
}

.project-section {
  margin-bottom: 50px;
  background: var(--dark-green);
  padding: 20px 50px 30px 50px;
  border-radius: 20px;
}

.project-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.project-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.project-section p {
  font-size: 16px;
  color: var(--faded-green);
  margin-bottom: 24px;
  max-width: 600px;
}

.project-section .sub {
  border-left: 5px solid var(--bright-green);
  margin-left: 15px;
  padding-left: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.overview-details {
  display: flex;
  flex-wrap: nowrap; /* Keep items side by side */
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.overview-item {
  background: var(--green);
  padding: 5px 25px;
  border-radius: 20px;
  flex: 1; /* Distribute available space equally */
  min-width: 0; /* Prevent overflow issues */
  text-align: left; /* Center text for better alignment */
  margin-top:20px;
}

.overview-item p br {
  content: "";
  margin: 10px;
  display: block;
}

/* Stack items vertically in portrait mode */
@media (orientation: portrait) {
  .overview-details {
    flex-wrap: wrap; /* Allow wrapping in portrait */
    gap: 0px;
  }

  .overview-item {
    flex: 0 0 100%; /* Full width in portrait */
    text-align: left; /* Reset text alignment for readability */
    padding: 5px 20px;
    max-width: 87%;
  }

  .project-section {
    margin-bottom: 20px;
    background: var(--dark-green);
    padding: 1px 30px 10px 30px;
    border-radius: 20px;
  }

  .project-section .sub {
    margin-left: 0px;
    padding-left: 30px;
  }
}

.overview-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--bright-green);
  margin-bottom: 8px;
}

.overview-item p {
  font-size: 16px;
  color: var(--white);
}

.project-section .two-col{
  display: flex;
  gap: 20px;
  justify-content: center;
}

.project-image,
.project-video {
  width: 100%;
  border-radius: 15px;
  margin: 24px auto;
  display: block;
}

.project-image-cont {
  border-radius: 15px;
  margin: 24px 0;
  overflow: hidden;
}
.project-image-cont img, .project-image-cont video {
  width: 100%;
  margin: 0 auto;
  display: block;
}

.onlyimg {
  width:85%;
  margin: 0 auto;
}

/* Container for Thank You Video */
.thankyou-video-cont {
  margin: 80px 0;
  text-align: center; /* Center the video */
}

.thankyou-video-cont h2 {
  font-family: 'Afacad Flux', sans-serif;
  font-weight: 600;
}

/* Thank You Video Styles */
.thankyou-video-cont video {
  width: 200px;
  height: auto;
}

.two-col .project-image, .two-col .project-video {
  flex: 1;
  width: 0;
}

/* Expandable Image Styles */
.expandable-image {
  cursor: pointer; /* Default cursor */
  transition: all 0.3s ease; /* Smooth hover effect */
}

.expandable-image:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNzAiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTMgMTNMO S45NjYgOS45NjZNOS45NjYgOS45NjZDMTAuODExIDkuMTIxIDExLjMzMyA3LjkzMyAxMS4zMzMgNi42NjdDMTEuMzMzIDQuMDg5IDkuMjQ0IDIgNi42NjcgMkM0LjA4OSAyIDIgNC4wODkgMiA2LjY2N0MyIDkuMjQ0IDQuMDg5IDExLjMzMyA2LjY2NyAxMS4zMzNDNy45MzMgMTEuMzMzIDkuMTIxIDEwLjgxMSA5Ljk2NiA5Ljk2Nk00LjY2NyA2LjY2N0g4LjY2N002LjY2NyA0LjY2N1Y4LjY2NyIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9Ii43NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHlsZT0iLXdlYmtpdC1maWx0ZXI6IGRyb3Atc2hhZG93KDBweCAwcHggMC44cHggcmdiYSgwLCAwLCAwLCAuNSkpOyBmaWx0ZXI6IGRyb3Atc2hhZG93KDBweCAwcHggMC44cHggcmdiYSgwLCAwLCAwLCAuNSkpOyIvPjwvc3ZnPg=='), pointer; /* Custom SVG cursor with fallback */
}

/* Overlay for Expanded View */
.image-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  z-index: 1000; /* Above other elements */
  justify-content: center;
  align-items: center;
}

/* Expanded Image */
.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* Preserve aspect ratio */
  border-radius: 15px; /* Match existing image styles */
}

/* Close Button */
.image-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-overlay .close-btn::before,
.image-overlay .close-btn::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--white); /* White cross to match your theme */
  border-radius: 2px;
}

.image-overlay .close-btn::before {
  transform: rotate(45deg);
}

.image-overlay .close-btn::after {
  transform: rotate(-45deg);
}

/* Responsive Adjustments */
@media (orientation: portrait) {
  .image-overlay img {
    max-width: 95%;
    max-height: 80%;
  }

  .image-overlay .close-btn {
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
  }

  .image-overlay .close-btn::before,
  .image-overlay .close-btn::after {
    width: 20px;
    height: 2px;
  }
}

/* Wrapper for Expandable Image and SVG */
.expandable-image-wrapper {
  position: relative; /* Create positioning context for the SVG */
  display: inline-block; /* Ensure wrapper fits the image */
  width: 100%; /* Ensure wrapper takes full width of the image */
}

/* SVG Icon for Expanding Image */
.expand-icon {
  position: absolute;
  top: 32px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%; /* Circular background */
  padding: 4px; /* Space around the SVG */
  cursor: pointer; /* Indicate clickability */
  transition: background 0.3s ease; /* Smooth hover effect */
  z-index: 2; /* Ensure SVG is above the image */
}

/* Ensure the image remains visible */
.expandable-image-wrapper .expandable-image {
  display: block; /* Ensure image is visible */
  width: 100%; /* Maintain full width */
  z-index: 1; /* Below the SVG but above other elements */
}

.expandable-image:hover svg path {
  stroke: var(--bright-green);
}

/* Responsive Adjustments */
@media (orientation: portrait) {
  .expand-icon {
    width: 20px;
    height: 20px;
    top: 26px;
    right: 2px;
    padding: 3px;
  }
}

/* Scrollable Image */

/* Scrollable Image Wrapper */
.scrollable-image-wrapper {
  width: 100%; /* Full width of the container */
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: hidden; /* Disable vertical scrolling */
  white-space: nowrap; /* Prevent wrapping */
  border-radius: 15px; /* Match the rounded corners of project-image-cont */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
 }

/* Force scrollbar to be always visible on Webkit browsers */
.scrollable-image-wrapper::-webkit-scrollbar {
  height: 8px; /* Height of the horizontal scrollbar */
  -webkit-appearance: none; /* Prevent default appearance */
  display: block; /* Force visibility */
}

/* Ensure the track is visible */
.scrollable-image-wrapper::-webkit-scrollbar-track {
  background: var(--light-gray); /* Track color */
  border-radius: 8px;
  visibility: visible; /* Ensure track visibility */
}

/* Ensure the thumb is visible */
.scrollable-image-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary); /* Scrollbar thumb color */
  border-radius: 8px;
  visibility: visible; /* Ensure thumb visibility */
}

/* Thumb hover state */
.scrollable-image-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gray); /* Darker color on hover */
  visibility: visible;
}

/* Ensure the image inside the scrollable wrapper triggers overflow */
.scrollable-image-wrapper .project-image {
  width: auto; /* Allow the image to take its natural width */
  min-width: 1600px; /* Force the image to be at least 1600px wide to ensure overflow */
  height: auto; /* Maintain aspect ratio */
  max-height: 450px; /* Limit the height to prevent oversized images */
  display: inline-block; /* Allow horizontal scrolling */
}

/* Responsive Adjustments for Mobile */
@media (orientation: portrait) {
  .scrollable-image-wrapper .project-image {
    max-height: 300px; /* Smaller height for mobile */
    min-width: 1000px; /* Adjust minimum width for mobile to ensure overflow */
  }

  .scrollable-image-wrapper::-webkit-scrollbar {
    height: 6px; /* Thinner scrollbar on mobile */
  }
}

/* International Button style */
.international_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.international {
  font-size: 16px;
  font-weight: 500;
  background-color: #002726; /* Matches your dark background */
  padding: 18px 18px 18px 24px; /* Adjusted padding for better fit */
  display: flex;
  align-items: center;
  border-radius: 99px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  text-decoration: none;
  border: 1px solid #005C59;
}

.international .text {
  color: #F0E8D6; /* Matches your text color */
  line-height: 1;
  position: relative;
  z-index: 5;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 24px;
  transition: color 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.international svg {
  display: inline-block;
  position: relative;
  margin-right: -2px;
  z-index: 5;
  transform: rotate(0deg) translateX(0);
  transform-origin: left;
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.international::before {
  content: '';
  background-color: #39CB7C; /* Matches your highlight color */
  width: 24px; /* Adjusted for smaller button size */
  height: 24px;
  display: block;
  position: absolute;
  z-index: 1;
  border-radius: 99px;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.international svg path {
  stroke: #002726; /* Dark stroke for SVG arrow */
}

.international:hover svg {
  transform: rotate(45deg) translateX(-8px);
}

.international:hover .text {
  color:#002726;
}

.international:hover::before {
  content: '';
  width: 100%;
  height: 100%;
  right: 0;
}

@media (orientation: portrait) {

  .international {
    font-size: 14px;
    font-weight: 500;
    padding: 15px 0px 15px 15px;
  }

  .international svg {
    margin-right: 15px;
  }
  
  .international .text {
    margin-right: 10px;
  }
  
}

/* Glassy Button Styles (Integrated) */
.glassy-button {
  --_padding: .6rem 2rem;
  --_transition-speed: 200ms;
  --_hover-opacity: 0.4;
  --_pressed-opacity: 0.15;
  --_hover-blurriness: 5px;
  --_pressed-blurriness: 10px;
  --_frostiness: 0.3;
  --_hover-offset: 0.5rem;
  --_pressed-offset: 0.25rem;
  --_motion-factor: 0.1; /* 0 -> 1 */

  outline: 0;
  cursor: pointer;
  font: inherit;
  color: var(--button-text);
  font-weight: 500;
  border: 0;
  border-radius: 1rem;
  background-color: transparent;
  position: relative;
}

.glassy-button span {
  display: block;
  position: relative;
  padding: var(--_padding);
  border-radius: inherit;
  background-color: transparent;
  font-weight: 600;
  color: var(--dark-green); /* Force the color to ensure visibility */
  z-index: 2; /* Ensure span text is above both ::after and span::before */
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  transition: background-color var(--_transition-speed),
    translate var(--_transition-speed),
    -webkit-backdrop-filter var(--_transition-speed);
}

.glassy-button span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml, %3C!-- svg: first layer --%3E%3Csvg viewBox='0 0 171 171' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.74' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity var(--_transition-speed);
}

.glassy-button::after {
  content: "";
  position: absolute;
  z-index: 0; /* Below span and span::before */
  inset: 0;
  border-radius: inherit;
  background-color: var(--button-surface);
  transition: scale var(--_transition-speed),
    translate var(--_transition-speed),
    box-shadow var(--_transition-speed);
}

.glassy-button:hover span,
.glassy-button:focus-visible span {
  outline: 1px solid hsl(0 0% 100% / 0.7);
  background-color: hsl(0 0% 100% / var(--_hover-opacity));
  -webkit-backdrop-filter: blur(var(--_hover-blurriness));
          backdrop-filter: blur(var(--_hover-blurriness));
  translate: 0 calc(var(--_hover-offset) * -1);
}

.glassy-button:hover::after,
.glassy-button:focus-visible::after {
  scale: 0.9; /* Shrink the green background */
  translate: 0 0.25rem; /* Lift the button */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 3D shadow effect */
}

.glassy-button:hover::after,
.glassy-button:focus-visible::after {
  scale: 0.95;
  translate: 0 0.125rem;
  -webkit-animation: enter forwards var(--_transition-speed);
          animation: enter forwards var(--_transition-speed);
}

.glassy-button:active span {
  -webkit-backdrop-filter: blur(var(--_pressed-blurriness));
          backdrop-filter: blur(var(--_pressed-blurriness));
  background-color: hsl(0 0% 100% / var(--_pressed-opacity));
  translate: 0 calc(var(--_pressed-offset) * -1);
}

.glassy-button:active::after {
  scale: 0.875;
  translate: 0 0.25rem;
}

@-webkit-keyframes enter {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(
      calc(var(--_x-motion) * var(--_motion-factor) * -1),
      calc(var(--_y-motion) * var(--_motion-factor) * -1)
    );
  }
}

@keyframes enter {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(
      calc(var(--_x-motion) * var(--_motion-factor) * -1),
      calc(var(--_y-motion) * var(--_motion-factor) * -1)
    );
  }
}

@-webkit-keyframes exit {
  from {
    transform: translate(
      calc(var(--_x-motion) * var(--_motion-factor) * -1),
      calc(var(--_y-motion) * var(--_motion-factor) * -1)
    );
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes exit {
  from {
    transform: translate(
      calc(var(--_x-motion) * var(--_motion-factor) * -1),
      calc(var(--_y-motion) * var(--_motion-factor) * -1)
    );
  }
  to {
    transform: translate(0, 0);
  }
}

/* Buttons */
.hire-btn {
  color: #002726;
  font-size: 16px;
  display: inline-block;
  text-decoration: none;
}

/* Check device */
.webview {
  display: none !important; /* Hidden by default */
}

.mobview {
  display: block !important; /* Visible by default (portrait) */
}

/* Landscape orientation */
@media (orientation: landscape) {
  .webview {
    display: block !important; /* Visible in landscape */
  }

  .mobview {
    display: none !important; /* Hidden in landscape */
  }

  .container {
    max-width: 1200px;
    width: 70%;
  }
}

/* Portrait orientation */
@media (orientation: portrait) {
  .webview {
    display: none !important; /* Hidden in portrait */
  }

  .mobview {
    display: block !important; /* Visible in portrait */
  }

  .container {
    width: 90% !important;
    max-width: 90%;
  }
}