
:root {
    /* Theme colors */
    --color-primary: #05550c;            /* primary brand */
    --color-primary-dark: #051e55;       /* primary hover */
    --color-surface: #f7fafc;            /* app background */
    --color-foreground: #05550c;         /* base text */
    --color-muted: #6b7280;              /* muted text */
    --color-muted-second: #05550c;              /* muted text */
    --color-card: #ffffff;               /* card/background elements */
    --color-border: #e5e7eb;             /* borders */
    --color-hero-overlay: rgba(0,0,0,0.4);
    --color-footer-bg: #111827;          /* footer background */
    --color-footer-fg: #ffffff;          /* footer text */
    
    /* Typography sizes */
    --hero-subtitle-size: 1.2rem;        /* hero subtitle font size */
    --hero-subtitle-style: normal;          /* hero title font-style (normal | italic) */
    --hero-subtitle-weight: 800;            /* hero title font-weight (e.g., 400, 600, 700) */
    --hero-title-size: 3.5rem;           /* hero title font size (editable) */
    --hero-title-weight: 100;            /* hero title font-weight (e.g., 400, 600, 700) */
    --hero-title-style: italic;          /* hero title font-style (normal | italic) */

    /* Topbar sizing (editable) */
    --topbar-padding-y: 0.5rem;         /* vertical padding for header */
    --topbar-link-size: 1.05rem;         /* desktop nav link font size */
    --topbar-logo-height: 4rem;       /* logo image height */
    --topbar-icon-size: 1.75rem;         /* hamburger icon size */
    --topbar-mobile-link-size: 1.0625rem;/* mobile nav link font size */
}

@import url('https://fonts.googleapis.com/css2?family=Delicious&display=swap');

.portfolio-overlay-text {
    font-family: 'Delicious', sans-serif;  /* same as hero subtitle */
    font-weight: 700;                       /* bold */
    font-size: 1.7rem;                     /* roughly equivalent to text-xl */
    color: #ffffff;                         /* white text */
    text-align: center;                      /* center inside overlay */
    padding: 0 1rem;                        /* horizontal padding */
}

.portfolio-sector-label {
    position: absolute;
    top: 0.75rem;       /* distance from top of card */
    left: 50%;           /* center horizontally */
    transform: translateX(-50%); /* perfectly center */
    background-color: rgba(5, 85, 12, 0.9); /* semi-transparent green (brand color) */
    color: #ffffff;
    font-family: 'Delicious', sans-serif;  /* can change if you want it to match body */
    font-weight: 600;
    font-size: 0.875rem;  /* small text */
    padding: 0.25rem 0.75rem; /* small padding */
    border-radius: 9999px; /* pill shape */
    z-index: 50;
    text-align: center;
}

.portfolio-sector-hover {
    position: absolute;
    top: 0.75rem;             /* distance from top */
    left: 50%;                /* center horizontally */
    transform: translateX(-50%);
    font-family: 'Declicious', sans-serif;  /* matches body */
    font-weight: 700;             /* semi-bold */
    font-size: 1rem;          /* small text */
    color: var(--color-primary);   /* green text */
    background-color: #ffffff;     /* white background */
    padding: 0.25rem 0.75rem;     /* small padding */
    border-radius: 9999px;        /* pill shape */
    opacity: 0;                    /* hidden by default */
    z-index: 50;
    text-align: center;
    transition: opacity 0.3s ease;
}

.group:hover .portfolio-sector-hover {
    opacity: 1;                   /* visible on hover */
}


body {
    font-family: 'Cambria', 'Cambria Math', serif;
    background-color: var(--color-surface);
    color: var(--color-foreground);
    margin: 0;
}

.section-padding {
    padding: 80px 20px;
    scroll-margin-top: 4rem;
}
        /* Custom style for the hero section background image */
/*.hero-bg {
    background-image: url("images/Future.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible !important; /* allow subtitle bar to full-bleed outside } */

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-card); /* ensures corners are white */
    border-top-left-radius: 10%;
    border-top-right-radius: 10%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* make sure videos are above the white bg */
}


.hero-video.active {
  opacity: 1;
}

.hero-video.inactive {
  opacity: 0;
}


.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /*width: 100%;*/
    height: 100%;
    background-color: var(--color-hero-overlay);
    border-radius: 0;
    z-index: 1;
}
.hero-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 40%, var(--color-card) 100%);
    border-radius: 0;
    z-index: 2;
}


/* foreground text content (subtitle + button) */
.hero-subtitle-bar,
.hero-content {
  position: relative;
  z-index: 3;
  margin-top: 4.5rem; /* moved lower */

}

/* Hero subtitle bar */
.hero-subtitle-bar {
  position: sticky;
  top: 4rem; /* topbar height */
  width: 100%;
  text-align: center;
  padding: 0.5rem 0;
  background-color: rgba(5,85,12,0.9);
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


#hero-subtitle-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative; /* remains in normal flow until sticky */
  z-index: 40;
}


.hero-content {
  z-index: 20;
}

/* Sticky behavior under the topbar */
.hero-subtitle-bar.is-sticky {
  position: fixed;
  top: 4rem; /* below topbar */
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  z-index: 60;
}


.hero-subtitle-bar .hero-subtitle {
    color: #ffffff;
    margin: 0;
    padding: 0.75rem 0;
}


/* Theme utility classes */
.text-primary { color: var(--color-primary); }
.text-foreground { color: var(--color-foreground); }
.text-muted { color: var(--color-muted); }
.text-muted-second { color: var(--color-muted-second); }

.bg-primary { background-color: var(--color-primary); }
.bg-card { background-color: var(--color-card); }
.bg-surface { background-color: var(--color-surface); }
.bg-footer { background-color: var(--color-footer-bg); }
.text-footer { color: var(--color-footer-fg); }

.border-default { border-color: var(--color-border); }

/* Hover helpers matching utility naming */
.hover\:bg-primary-dark:hover { background-color: var(--color-primary-dark); }
.hover\:text-foreground:hover { color: var(--color-foreground); }

/* Focus ring helper */
.focus\:ring-primary:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 40%, transparent); outline: none; }

/* Remove shadow from hero image */
.shadow-sm { box-shadow: none !important; }

/* Hero subtitle styling */
.hero-subtitle {
    font-family: "Delicious", sans-serif;
    font-size: var(--hero-subtitle-size);
    line-height: 1.6;
    font-weight: var(--hero-subtitle-weight) !important;
    font-style: var(--hero-subtitle-style) !important;

}

/* Hero title uses editable CSS variables */
.hero-title {
    font-size: var(--hero-title-size) !important;
    font-weight: var(--hero-title-weight) !important;
    font-style: var(--hero-title-style) !important;
}

/* Topbar sizing rules */
.topbar .container { padding-top: var(--topbar-padding-y) !important; padding-bottom: var(--topbar-padding-y) !important; }
.topbar .logo { height: var(--topbar-logo-height) !important; }
.topbar nav a { font-size: var(--topbar-link-size); }
.topbar #mobile-menu-button svg { width: var(--topbar-icon-size); height: var(--topbar-icon-size); }
#mobile-menu nav a { font-size: var(--topbar-mobile-link-size); }

/* Custom list styling with slash bullets */
.custom-slash-list {
    list-style: none;
    padding-left: 0;
}

.custom-slash-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.custom-slash-list li::before {
    content: "/";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Crossfade for hero videos: 0.5s */
.hero-video {
  opacity: 0;
  transition: opacity 2s ease-in-out; /* must match JS crossfade timing */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video.active {
  opacity: 1;
  z-index: 0;
}

/* Hero wrapper + elliptical horizon radius */
.hero-wrapper {
  background-color: var(--color-card);
  overflow: hidden;
}

/* Create an elliptical "horizon" curve on the top corners for videos and overlay.
   First value is the horizontal radius, second is the vertical radius. Tweak as needed. */
.hero-wrapper .hero-video,
.hero-wrapper .hero-overlay {
clip-path: ellipse(100% 50% at center);
}

.hero-wrapper .hero-video {
  /* ensure the video respects its border radius */
  display: block;
}

/* Match placeholder font to body text */
::placeholder {
  font-family: 'Cambria', 'Cambria Math', serif;
  color: var(--color-muted);
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 1; /* prevents browser from lowering opacity */
}

/* Safari / older browsers */
::-webkit-input-placeholder {
  font-family: 'Cambria', 'Cambria Math', serif;
  color: var(--color-muted);
}

:-ms-input-placeholder {
  font-family: 'Cambria', 'Cambria Math', serif;
  color: var(--color-muted);
}
