:root {

       /* Base Grid Unit */
    --base-grid-unit-mobile: 4pt;
    --base-grid-unit-tablet: 8pt;
    --base-grid-unit-desktop: 12pt;

    /* Container Padding */
    --container-padding-mobile: 16pt;
    --container-padding-desktop: 24pt;

    /* Card & Section Spacing */
    --card-section-spacing-mobile: 8pt;
    --card-section-spacing-desktop: 16pt;

    /* Button Spacing */
    --button-height: 48pt;
    --button-min-tappable-area: 44pt;
    --button-spacing: 8pt;
    --button-padding-horizontal: 16pt;
    --button-padding-vertical: 12pt;

    /* Typography - Mobile */
    --font-size-title-mobile: 24px;
    --font-size-subheading-mobile: 18px;
    --font-size-subtitle2-mobile: 20px;
    --font-size-subtitle4-mobile: 32px;
    --font-size-normal: 16px; /* Universal normal text size */
    --font-size-small-mobile: 8px;
    --font-size-cta-mobile: 14px;

    /* Typography - Desktop */
    --font-size-title-desktop: 36px;
    --font-size-subheading-desktop: 24px;
    --font-size-subtitle4-desktop: 58px;
    --font-size-subtitle2-desktop: 20px;
    --font-size-small-desktop: 10px;
    --font-size-cta-desktop: 14px;


    /* Color Palette - Dark mode*/
    --color-primary: #E9E9FF; 
    --color-secondary: #0f3460;  
    --color-accent-1: #6C3BAA;   
    --color-accent-2: #A379D9;  
    --color-text-light: #E9E9FF;
    --color-text-dark: #5411AB;
    --color-bg-1: #2F0A61;
    --bg-card: hsla(219, 59%, 13%, 0);
    --card-border: #E9E9FF;
    --mark-text: #E9E9FF;
    --mark-bg: #2F0A61;
    --card-border: #F7EFFF;

    /* Typography - Fluid font sizes using clamp() */
    --font-family-primary: 'Karla';
    --font-family-secondary: 'karla';
    --font-size-base: clamp(1rem, 1.5vw, 1.25rem);
    --font-size-h1: clamp(2.5rem, 6vw, 5rem);
    --font-size-h2: clamp(2rem, 4.5vw, 3.5rem);
    --line-height-base: 1.6;

    /* Spacing & Layout */
    --padding-section: 4vw;
    --border-radius-card: 12px;
    --transition-speed-base: 0.8s;
    --cubic-bezier: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Ease-in-out */
}
.light-mode {
   --color-primary: #2F0A61; /* Deep purple/blue */
    --color-secondary: #2F0A61;  
    --color-accent-1: #6C3BAA;   
    --color-accent-2: #A379D9;  
    --color-text-light: #2F0A61;
     --color-text-dark: #5411AB;
    --color-bg-1: #F7EFFF;
    --card-border: #2F0A61;
    --mark-text: #2F0A61;
    --mark-bg: #F7EFFF; 
    --bg-card: hsla(219, 87%, 85%, 0); 
 }


/* Basic CSS Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Smooth scroll behavior is handled by JavaScript for a custom animation */
    scroll-behavior: auto;
    font-size: 16px;
}

body {
    font-family: var(--font-family-primary);
    line-height: var(--line-height-base);
    color: var(--color-text-light);
    overflow: hidden; /* Prevent native scrolling. JS handles it. */
}

/* General Hyperlink Styling */
a { color: var(--color-text-light); text-decoration: none; transition: color 0.3s ease, text-decoration 0.3s ease; }
a:hover { color: var(--link-hover-color); text-decoration: underline; font-weight: bold;}

/*
-------------------------------------------------
2. Page Sections & Layout
-------------------------------------------------
*/
.page-sections {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.full-screen-section {
    height: calc(100vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--padding-section);
    scroll-snap-align: start;
    position: relative;
    /* This ensures a smooth transition between section background changes */
    transition: background-color 1s var(--cubic-bezier),
                background-image 1s var(--cubic-bezier);
}

/* Backgrounds for each section */
.hero-section {
    background: var(--color-bg-1), url('https://picsum.photos/1920/1080?random=1') no-repeat center center / cover;
}

.founders-section {
    background-color: var(--color-bg-1);
}

.closing-section {
    background: var(--color-bg-1);
 }

/* Section content wrappers */
.content-wrapper {
    max-width: auto;
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, p {
    font-family: karla;
    padding-top: 20px;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: 2vh;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 2vh;
}

p {
    font-size: var(--font-size-base);
    max-width: 60ch;
    font-weight: 400;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1024px;
   
}


/* Navigation Bar */
.navbar {
    background-color: var(--color-bg-1);
    padding: 4px;
    text-align: center; 
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
 }

.navbar ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.navbar li { margin: 0 var(--button-spacing); }
.navbar a {
    color: var(--color-text-light); text-decoration: none; font-size: var(--font-size-normal);
    padding: var(--button-padding-vertical) var(--button-padding-horizontal); display: block;
    border-radius: 24px; transition: background-color 0.3s ease, color 0.3s ease;
    
    height: calc(var(--button-height) - (2 * var(--button-padding-vertical)));
    display: flex; align-items: center; justify-content: center;
}
.navbar a:hover, .navbar a.active { background-color: #0D1A33; }
.light-mode .navbar a:hover, .light-mode .navbar a.active { background-color: #fefefe; }
 
/* Theme Toggle */
.theme-toggle-container { margin-left: auto; align-self: center; }
.theme-toggle { cursor: pointer; width: 44px; height: 22px; background-color: #F7EFFF; border-radius: 22px; position: relative; transition: background-color 0.3s; }
.theme-toggle:before { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background-color: #2F0A61; border-radius: 50%; transition: transform 0.3s; }
.light-mode .theme-toggle { background-color: #2F0A61; }
.light-mode .theme-toggle:before { transform: translateX(22px); background-color: #F7EFFF; }

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .navbar ul { display: none; }
    .hamburger-icon { display: block; }
}

 
.hero-bg-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place it behind the text content */
    overflow: hidden;
}
 
/* Ensure the SVG itself fills its container */
.hero-bg-svg-container svg {
    width: 100%;
    height: 100%;
}

/*
This is the main wrapper for the hero content.
We use a separate wrapper so the content stays centered and on top.
*/
.hero-content-wrapper {
    position: relative;
    z-index: 2; /* Ensure content is on top of the SVG */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}


/*
Hero Section - Visual Background
This container is now positioned to fill the entire section,
and is placed behind the text using z-index.
*/
.hero-visual-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Flexbox for the horizontal/vertical layout */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5vw; /* Responsive gap between images */
    z-index: 1; /* Puts this layer behind the text */
    overflow: hidden;
}

/*
Style the images within the hero background.
They should scale but not become too large.
*/
.hero-visual-background img {
    height: 100%;
    width: auto;
    max-height: 50vh; /* Prevents images from getting too big vertically */
    max-width: 500px;
    object-fit: contain;
}

/*
Hero Section - Content Wrapper
This container holds the text and must be on top of the images.
*/
.hero-content-wrapper {
    position: relative;
    z-index: 2; /* Ensures the text is on top */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: var(--padding-section);
}

/*
Media Query to stack images on smaller screens
This is what makes them go from horizontal to vertical.
*/
@media (max-width: 768px) {
    .hero-visual-background {
        flex-direction: column;
        gap: 2rem;
    }
    .hero-visual-background img {
        max-height: 40vh;
    }
}

/*
Update the main hero section rule to only have the overlay.
*/
.hero-section {
    position: relative;
    background: var(--color-bg-1);
    overflow: hidden;
}


/* Visuals */
.visual-placeholder {
    width: 100%;
    height: auto;
    margin-top: clamp(1rem, 2vw, 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-placeholder .svg-visual {
    width: 100%;
    height: auto;
    opacity: 0.5;
}

.visual-placeholder .device-mockups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 1.5rem;
     justify-items: center; 
}

.visual-placeholder .device-mockups img {
   width: clamp(200px, 30vw, 300px);
    height: auto;
    border-radius: var(--border-radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Content Card Grid */
.closing-section .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 0;
    max-width: 85%;
    width: 100vw; 
    padding-bottom: 4rem;
}

.closing-section h2 {
    padding: 1rem;
}

.closing-section .card {
    position: relative; 
    background-color: var(--bg-card); 
    overflow: hidden; 
   backdrop-filter: blur(10px);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    text-align: left;
    color: var(--color-text-light); /* Changed to light text for visibility on dark background */
    transition: transform 0.3s var(--cubic-bezier);
}

.closing-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.closing-section .card h3 {
    font-family: var(--font-family-primary);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.closing-section .card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0px;
}

.closing-section .card a {
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 2px;
}

.closing-section .card a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-1);
    transition: width 0.3s ease-out;
}

.closing-section .card a:hover::after {
    width: 100%;
}


/*
-------------------------------------------------
New Two-Column Section
-------------------------------------------------
*/

.two-column-section {
background-color: var(--color-bg-1);
    justify-content: flex-start;
    overflow-y: auto; /* ✅ Enables vertical scrolling */
    min-height: 100vh;
}

.two-column-section .content-wrapper {
    margin-top: 0px; /* Compensate for the navbar height */
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    justify-items: center;
    width: 85%;
    height: 100%;
 }

@media (min-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        align-items: center; 
    }

    .two-column-layout .visual-column {
        order: 1;
    }

    .two-column-layout .card-column {
        order: 2;
        text-align: left;
    }
}

.visual-column img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-card);
 }

.card-column .card {
    width: 100%;
    max-width: 100%; 
}

.gradient-border-card {
    position: relative;
    background-color: var(--bg-card);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    text-align: left;
    color: var(--color-text-light);
    transition: transform 0.3s var(--cubic-bezier);
}


.card-column h3 {
    font-family: var(--font-family-primary);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.card-column h1,
.card-column h2,
.card-column h3,
.card-column h4,
.card-column h5,
.card-column h6,
.card-column small {
    padding: 0;
    margin: 0;
}

.card-column p {
    padding-bottom: 1rem;
}
.gradient-border-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Link styling for the new card */
.gradient-border-card a {
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
     padding-top: 12px;
    padding-bottom: 2px;
 }

.gradient-border-card a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-1);
    transition: width 0.3s ease-out;
}

.gradient-border-card a:hover::after {
    width: 100%;
}

/* Pseudo-elements for the gradient border */
.gradient-border-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    background: conic-gradient(from var(--angle), var(--color-accent-1), var(--color-primary), var(--color-accent-2), var(--color-accent-1));
    padding: 3px;
    animation: animate 2s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.gradient-border-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -2;
    background: inherit;
    filter: blur(20px);
}
 
/* Chevron button */
.scroll-down {
  display: inline-block;
  font-size: 2rem;
  background-color: var(--button-bg);
  color: var(--button-text-color);
   text-decoration: none;
  animation: bounce 2s infinite;
  padding: 8px 20px;
  border-radius: 50%;
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/*
This pseudo-element creates the primary gradient border.
It is positioned to cover the entire card and then stretched slightly
with a negative margin or padding to create the border effect.
*/
.closing-section .card::before {
    content: "";
    position: absolute;
    inset: 0; /* A modern shorthand for top, right, bottom, left */
    border-radius: inherit;
    z-index: -1;
    
    /* Using a conic gradient with your brand colors. */
    background: conic-gradient(from var(--angle), var(--color-accent-1), var(--color-primary), var(--color-accent-2), var(--color-accent-1));
    
    /* The padding creates the visible "border" effect. */
    padding: 3px; 
    
    /* The animation rule */
    animation: animate 2s linear infinite;
    
    /* This makes the gradient visible around the card's content */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/*
This pseudo-element creates the blurred, glowing effect behind the border.
*/
.closing-section .card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -2;
    background: inherit;
    filter: blur(20px);
}

/*
=================================================
GLOBAL GRADIENT BORDER PROPERTIES
=================================================
*/
@property --angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0deg;
}

@keyframes animate {
    to {
        --angle: 360deg;
    }
}




.image01 { 
    width: 50%;
  height: 50%;
  display: block;
  border-radius: 8px;
  align-items: center;
}
/*
-------------------------------------------------
3. Scroll Arrow Button
-------------------------------------------------
*/
.scroll-down-button {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: clamp(1.5rem, 3vw, 2rem);
    cursor: pointer;
    transition: transform 0.3s var(--cubic-bezier);
    z-index: 10;
    opacity: 0.8;
}

.scroll-down-button:hover,
.scroll-down-button:focus {
    transform: translateX(-50%) translateY(5px);
    opacity: 1;
}

/* Subtle bounce animation for the arrow */
.animate-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/*
-------------------------------------------------
4. Cinematic Entrance Animations
-------------------------------------------------
These classes define the initial and final states for
the fade/slide-in animations, triggered by JavaScript.
*/

/* Initial state: hidden and slightly offset */
.animate-text {
    max-width: 100%;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 12px;
    transform: translateY(20px);
     transition: opacity 1s var(--cubic-bezier), transform 1s var(--cubic-bezier);
     align-items: center;
} 

mark {
  background-color: var(--mark-bg);
  color: var(--mark-text);
}

.animate-text-hero {
    opacity: 4;
    transform: translateY(20px);
    transition: opacity 1s var(--cubic-bezier), transform 1s var(--cubic-bezier);
}

.animate-visual {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s var(--cubic-bezier), transform 1s var(--cubic-bezier);
}

/* Active state: visible and in final position */
.is-visible .animate-text {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .animate-visual {
    opacity: 1;
    transform: scale(1);
}

.full-screen-section .content-wrapper {
    overflow-y: auto;
     margin-top: 20px;
    margin-bottom: 20px;
    /* This allows the user to scroll within the frame without breaking
       the main page's scroll-snapping behavior. */
    height: auto;
    /* Use a padding on the sides for smaller screens */
 }


 .Space {
    padding-top: 0%;
 }


 .icon-caret {
  display: inline-block;
  width: 24px;
  height: 24px;

  background-color: currentColor; /* Icon adopts the text color */
  mask: url('icons/caret-circle-down.svg') no-repeat center / contain;
  -webkit-mask: url('icons/caret-circle-down.svg') no-repeat center / contain;

  flex-shrink: 0;

  align-items: center;
  margin: 0px auto;
}


.hl-people-blog-1 {
  background-color: var(--color-accent-1);
  margin: 4px auto;
 }


 .special
 {
     padding-top: 0%;
      background-color: var(--color-accent-1);

      margin: 4px auto;
      padding: 4px auto;
 }
.special h4 {
      background-color: var(--color-accent-1);
    margin: 4px auto;
}

hr.styled-line-mid {
    border: 0; 
    height: 0; 
    border-top: 1px solid var(--card-border); 
    margin: 8pt auto;
    width: 50%;
    display: block; 

}