* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border :1px solid red; */
    scroll-behavior: smooth;
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    cursor: default;
}

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full height */
    margin: 0; /* Remove default margin */
    overflow-x: hidden;
}
h1, h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(32px, 4vh, 4vh);
}

h1 {font-weight: 900;}
h2 {font-weight: 900;
    line-height: 100%;
    margin-bottom: 1vh;}

h3 {
    font-size: clamp(32px, 4vh, 4vh);
    font-weight: 900;
    line-height: 100%;
    margin-bottom: 1vh;
}
h4 {
    color: #8c8c8c;
    font-size: clamp(16px, 2vh, 2vh);
    position: relative;
    font-weight: 500;
    line-height: 120%;
}
.section {
    margin: 40px auto 0 auto;
}
/* Services Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 10%;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateY(3deg);
}

.service-icon {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

#services-prototypes-section {
    font-size: larger;
    padding: 1vh 10vw;
}

.proto-card {
    overflow: visible;
    min-width: initial;
    width: 36vw;
    margin: 4vh 0;
}

.proto-picture {
    height: 36vw;
    width: 36vw;
    background-size: cover; 
    background-position: center;
    border-radius: 15px;
    background-size: 100% auto;
    transition: background-size 1000ms ease;
}

.proto-picture:hover {
    cursor: pointer;
    background-size: 105% auto;
    transition: background-size 300ms ease;
}

.proto-left {
    float: left;
    clear: left;
    transition: transform 0.3s ease;
}

.proto-right {
    order: 2;
    float:right;
    transition: transform 0.3s ease;
    clear:right;
    text-align: right;
}

.proto-text {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
}

.first-right{margin-top:200px;}

.proto-left:hover {
    transition: transform 0.3s ease;
}

.proto-right:hover {
    transition: transform 0.3s ease;
}

#proto-agentic-ai {
    background-image: url("images/Myrial_Agent_01.jpg");
}

#proto-burger {
    background-image: url("images/Process_Automation_4.jpg");
}

#proto-predictions {
    background-image: url("images/Myrial_Prediction_02.jpg");
    cursor: default;
}

#proto-predictions:hover {
    cursor: default;
    background-size: 100% auto;
    transition: none;
}

#proto-your-project {
    background-image: url("images/Myrial_Project_01.jpg");
    cursor: default;
}

#proto-your-project:hover {
    cursor: default;
    background-size: 100% auto;
    transition: none;
}

/* Team Styles */
.team-grid {
  /**
   * User input values.
   */
   --grid-layout-gap: 16px;
   --grid-column-count: 3;
   --grid-item--min-width: 100px;
   padding: 0 10% 5rem 10%;
 
   /**
    * Calculated values.
    */
   --gap-count: calc(var(--grid-column-count) - 1);
   --total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));
   --grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count));
 
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr));
   grid-gap: var(--grid-layout-gap);
}

.team-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 2vw;
}

.team-card:hover {
    transition: transform 0.3s ease;
}

.team-image {
    width: 22vw;
    min-width: 180px;
    height: 18vw;
    min-height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 15px 15px 15px 15px;
}

.team-info {
    padding: 0 0 0 2vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-role {
    color: var(--blue);
    font-size: clamp(16px, 1.5vh, 2vh);
    font-weight: 600;
    margin: 0.5rem 0;
}
.team-bio {
    font-size: clamp(16px, 1.5vh, 2vh);
    line-height: 150%;
}

.expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.expertise-tag {
    background: var(--light-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #1d1d1b;
}

/* Optional: Custom styles for chat */

@-webkit-keyframes anime {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes anime {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


#output-chat {
    flex: 1; /* Allow output area to grow */
    overflow-y: auto; /* Enable scrolling */
    margin-bottom: 15px;
    padding: 10px;
    scrollbar-width: none;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    display: block;
}

.message.user {
    color: rgb(209, 205, 241);
    text-align: right; /* Align user messages to the right */
}

.message.ai {
    color: rgb(177, 240, 195);
    text-align: left; /* Align AI messages to the left */
}

.input-group {
    margin-top: 10px;
    padding: 0 10px 0 10px;
    margin-bottom: 10px;
}

textarea:focus, input:focus{
    outline: none;
}

.form-control:focus {
    box-shadow: none;
}

.hidden {
    display: none;
}

:root {
    --blue: #99c9fa;
    --pink: #edbef3;
    --text-color: #f9f4e8;
    --dark-bg: #1d1d1b;
    --light-bg: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
}

::-webkit-scrollbar {
    display: none;
}
a, a:active, a:focus {
    outline: none;
}

/* header Styles */
.header {
    width: 99vw;
    padding: 4rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(-120%);
    animation: slideDown 1s ease forwards 0.5s;
    left: 0;
    position: absolute;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue);
    transition: transform 0.3s ease;
}

#overlay {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:black;
    z-index:999;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links a {
   font-size: 2vh;
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    text-decoration: none;
    color: var(--text-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.pre-hero {
    justify-content: center;
    align-items: center;
    background: black;
    position: relative;
    text-align: center;
    padding: 90px;
}

#hero-description {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100vw;
}

.symphony-title, .new-class {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    line-height: 2;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100svh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(0px);
    opacity: 1;
}

.hero::before {
    content: '';
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}


.hero-intro {
position: relative;
bottom: 0px;
}

.animate-text {
    height: auto;
    width: 64vw;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    /*max-width: 1350px;*/
}

.btn_video {
    width: 51vw;
    height: 6vh;
    background: url('images/Lets_Jump_In.svg') no-repeat right;
    background-size: contain;
    font-size: 0;
    line-height: 0;
    color: transparent;
    transition: all 0.3s ease;
    cursor: default;
    float:right;
}


#hero-logo {
    width: 60vw;
    height: auto;
    max-width: 800px;
    max-height: 20vh;
    margin-bottom: 2%;
}

.subtitle {
    font-size: 2vh;
    margin: 0;
    margin-top: auto;
    line-height: 1.2;
    font-weight: 900;
    width: 40vw;
    text-align: left;
    margin: 0 auto 4% 128px;
}

.title {
    font-size:50px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-primary {
    background: white;
    color: var(--blue);
}

.cta-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
}

/* Features Section */
.features {
    background-color: var(--dark-bg);
    padding: 5rem 0;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
}

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

.feature-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(153, 201, 250, 0.1);
    color: var(--text-color);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--blue);
    margin-bottom: 1rem;
}

/* Video Section */
.video-section {
    background: var(--dark-bg);
    padding: 6rem 0;
    position: relative;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* Solution Diagram Section */
.solution-diagram {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
}

.solution-diagram img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Team Intro Section */
.team-intro {
    color: var(--text-color);
}

.team-intro-container {
    max-width: 1080px;
    margin: 0 auto;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    text-align: center;
}

.team-intro h2 {
    color: var(--text-color);
    text-align: left;
}

.team-intro p {
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgb(50, 51, 51);
    backdrop-filter: blur(5px);
}

.team-grid {
    background-color: var(--dark-bg);
    margin: 100px auto 0px auto;
}

.team-member-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.team-member-info p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-color);
}


.gains-list-item {
    transition: box-shadow 4s ease;
    font-size: clamp(12px, 2vh, 2vh);
}

.gains-list-item:hover {
    box-shadow: 0 0 8px pink, 0 0 16px #f9f4e8;
    transition: box-shadow 0.2s ease;
}
.gains-section {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.gains-list {
    text-align: center;
    width: 85vw;
    margin:60px auto 60px;
}

ul.gains-list-container li {
    display: inline;
    text-align: center;
    padding: 12px 32px ;
    margin: 0.4vw;
    width: 19%;
    border: 2px solid #f9f4e8;
    border-radius: 30px;
    line-height: 84px;
    white-space:nowrap; 
    }
    
.gain-image {
    height: 28vw;
    width: 62vw;
    background-image: url('images/00179-385420790.jpg');
    background-repeat: repeat-x;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
  }

/* Contact Section */


.contact-container {
    width: 100%;
    background-color: #f4f4f4;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    max-width: 100%;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-form {
    padding: 2vw;
    color: var(--dark-bg);
    width: 80%;
    max-width: 720px;
    margin: 0 auto;
}

.get-in-touch {
 color: var(--dark-bg);
 margin-top: 30px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark-bg);
    font-size: 1rem;
    border-radius: 0px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--dark-bg);
}

.contact-details {
    margin-top: 4rem;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.contact-details p {
    color: #7a7a7a;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#map {
    height: 100%;
}
.leaflet-container {
    background: #1d1d1b;
}
/* Map Section */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 600px;
    filter: grayscale(100%) invert(100%);
    margin: 0;
    padding: 0;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 4rem 10% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--blue);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--pink);
}

/**
 * Footer bottom section styles.
 *
 * This section appears at the very bottom of the page and contains the
 * copyright information and social media links.
 *
 * Styles:
 * - Text is centered.
 * - Padding is added above the section.
 * - A thin border is added above the section.
 * - Font size is reduced.
 * - Opacity is reduced to 0.8.
 */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section Styles */

.contact-method {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--blue);
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    border-bottom: 2px solid #7a7a7a;
    color: var(--dark-bg);
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--blue);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-class {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    line-height: 2;
}

.hometxt {
    float: right;
    max-width: 100%;
}

.gradient-hr {
    height: 1.2%;
    width: 100vw;
    background: linear-gradient(90deg, #99c9fa, #edbef3);
    background-size: 200% 100%;
    animation: gradient-animation 8s linear infinite;
    border: none;
    position: absolute;
    bottom: 0;
}

@keyframes gradient-animation {
    0% { background-position: 0%; }
    50% { background-position: 100%; }
    100% { background-position: 0%; }
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.learn-more {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: clamp(12px, 1.5vh, 1.5vh);
  }

.privacy {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80vw;
    margin: 50px auto 100px auto;
}

.privacy-image {
    width: 40vw;
    min-width: 200px;
    height: 33vw;
    min-height: 150px;
    background-image: url("images/00027-403097472.jpg");
    background-size: cover;
    background-position: center;
    color: var(--pink);
    text-align: right;
    margin: 0;
    display: block;
    border-radius: 10px;
}

.privacy-description {
    text-align: left;
    width: 35vw;
    min-width: 200px;
    margin-left: 2vw;
    font-size: clamp(16px, 2vh, 2vh);
    line-height: 120%;
    display: flex;
    flex-direction: column;
}

/* Image Gallery Styles */
.gallery-container {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    animation: fadeIn 0.8s ease-in-out;
}

.gallery-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}

.gallery-page.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-page-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.gallery-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.close-gallery:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 10px;
    margin-bottom: 20px;
}

.gallery-page .gallery {
    width: 100%;
    max-width: 1200px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    aspect-ratio: 1/1;
    opacity: 0;
    animation: fadeInStaggered 0.5s ease forwards;
}

@keyframes fadeInStaggered {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    display: block;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.gallery-fullscreen.active {
    opacity: 1;
    pointer-events: all;
}

.fullscreen-image {
    display: block;
    width: 100vw;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-fullscreen.active .fullscreen-image {
    opacity: 1;
    transform: scale(1);
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--pink);
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

.gallery-nav-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--blue);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.proto-text-hidden {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(10px);
}

.proto-text-hidden[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.gallery-fullscreen.active .fullscreen-image {
    opacity: 1;
    transform: scale(1);
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--pink);
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

.gallery-nav-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--blue);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.proto-text-hidden {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(10px);
}

.proto-text-hidden[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links a {
        display: none;
    }
    .header {
        animation: none;
        flex-direction: column;
        padding: 1rem;
    }
    .logo-img {
        height: 45px;
        position: absolute;
        left: 5%;
        margin-top: 120px;
    }
    .team-grid {
        --grid-column-count: 1;
        gap: 1rem;
        margin: 50px auto 40px auto;
        padding: 1rem 2%;
    }
    .team-image {
        width: 100%;
        height: 60vw;
        object-fit: cover;
        object-position: top;
    }
    .proto-card {
        min-width: initial;
        width: 80vw;
        margin: 4vh 0;
    }
    .team-bio {
        line-height: 130%;
    }
    .proto-picture {
        height: 76vw;
        width: 76vw;
    }
    .proto-right {
        width: 76vw;
    }
    .privacy-container {
        display: inline;
    }
    #services-prototypes-section {
        font-size: larger;
        padding: 1vh 5vw;
      }
    .animate-text {
        max-width: 390px;
        width: 85vw;
    }
    .gains-list {
        margin: 0px auto 40px;
        width: 90vw;
    }
    ul.gains-list-container li {
        padding: 5px 12px;
        margin: auto;
        border: 2px solid #f9f4e8;
        border-radius: 30px;
        line-height: 12vw;
    }
    .subtitle {
        font-size: 2vh;
        margin: 0;
        margin-top: auto;
        line-height: 1;
        font-weight: 900;
        width: 75vw;
        text-align: right;
        margin: 0% 5% 80px auto;
    }
    .privacy-description {
        text-align: center;
        height: auto;
        margin-top: 50px;
        margin-left: 0vw;
        margin-bottom: 50px;
        width: 90vw;

    }
    .privacy-image {
        width: 90vw;
        height: 75vw;
    }
    .pre-hero {
        padding: 4vw;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .cta-buttons {
        flex-direction: column;
    }
    .team-intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .team-intro h2,
    .team-intro p {
        text-align: center;
    }
    .contact-container {
        gap: 4rem;
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1280px) {
    .nav-links a {
        font-size: 2.5vh;
    }
    .header {
        padding: 2rem 5%;
    }
    .team-grid {
        --grid-column-count: 1;
        gap: 1rem;
    }
}

@media (min-width: 1280px) {
    .nav-links a {
        font-size: 3vh;
    }
    .header {
        padding: 4rem 5%;
    }
    .team-grid {
        --grid-column-count: 3;
        gap: 2rem;
    }
}
@media (min-width: 1920px) {
    .team-image {
        width: 24vw;
        height: 16vw;
    }
    .nav-links a {
        font-size: 2.5vh;
    }
    .header {
        padding: 4rem 5%;
    }
    .team-grid {
        --grid-column-count: 4;
        gap: 2rem;
    }
}

/* Legal Page Specific Styles */
body.legal-page {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark grey text for paragraphs */
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4,
.legal-page h5,
.legal-page h6 {
    color: #333333; /* Dark grey for headings */
}

.legal-page header nav a,
.legal-page header nav a:visited {
    color: #0056b3; /* Standard blue for navigation links */
}

.legal-page header nav a:hover {
    color: #003d80; /* Darker blue on hover for navigation links */
}

.legal-page main a,
.legal-page main a:visited {
    color: #0056b3; /* Standard blue for main content links */
}

.legal-page main a:hover {
    color: #003d80; /* Darker blue on hover for main content links */
}