/* Google Fonts import: Poppins & Lora */
@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&family=Caveat:wght@400..700&family=Familjen+Grotesk:ital,wght@0,400..700;1,400..700&family=IBM+Plex+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

/* CSS Variables for consistent styling */
:root {
    /* Typography */
    --primary-font: "Familjen Grotesk", sans-serif;
    --secondary-font: "Inter", sans-serif;
    --tertiary-font: "Titillium Web", serif;
    --quaternary-font: "IBM Plex Sans Condensed", sans-serif;
    --quinary-font: "Caveat", cursive;
    --senary-font: "Baskervville", serif;

    /* Text colours */
    --primary-color: #ffffff; /* Graphite Black */
    --secondary-color: #d9deea; /* Dark Blue */
    --third-color: #b2b4c8; /* Off White */
    --fourth-color: #cfd3c6; /* Darker Off White */

    /* Background colours */
    --background-color-primary: #001b5c; /* Deep Navy Blue */
    --background-color-secondary: #D6001C; /* Vibrant Red */
    --background-color-tertiary: #F2C800; /* Bright Yellow */
    --background-color-quaternary: #F2314B; /* Lighter Red */
    --background-color-quinary: #990014ff; /* Darker Red */
    --background-color-senary: #031847; /* Light Cream */
}

/* GLOBAL STYLES */
.hidden {
    display: none;
}

body {
    font-family: var(--primary-font);
    /* padding-top: 57.52px; Adjusted for navbar height */
    background-color: var(--background-color-primary);
    cursor: url('../images/cursor.svg') 0 0, auto;
}

h1 {
    font-family: var(--primary-font);
    font-style: italic;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 75px;
}

h2 {
    font-family: var(--secondary-font);
    color: var(--primary-color);
    font-size: 2.5rem;
}

.logo {
    max-height: 51px;
    margin-bottom: 12px;
}

#its-title {
    color: var(--secondary-color);
    /* font-family: var(--quaternary-font); */
    font-size: 4.5rem;
    font-weight: normal;
    margin-right: 5px;
}

#title-gold-left { 
    color: var(--primary-color);
}

#title-gold-right{
    color: var(--background-color-tertiary);
    margin-left: 2px;
}

/* SCRIBBLE UNDERLINE */
/* Target heading wrapper */
.highlight-container {
    position: relative;
    display: inline-block;
}

/* Position the scribble SVG directly beneath the text */
.scribble-underline {
    position: absolute;
    left: 0;
    bottom: -15px; /* Adjust vertical placement */
    width: 100%;
    height: auto;
    overflow: visible;
}

.scribble-path {
    /* Simulates a hand-drawn marker */
    stroke: var(--background-color-secondary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;

    /* Animation Setup */
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawScribble 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Delay to start after text appears */
}

/* Keyframes to progressively reveal the path lines */
@keyframes drawScribble {
    to {
    stroke-dashoffset: 0;
    }
}

/* NAVBAR */
#navbar {
    background-color: var(--background-color-secondary);
}

#navbar .logo {
    width: 30px;
}

/* HERO SECTION / HEADER */
.hero {
    /* hero image and styling */
    padding-top: 50px;
}

#subtitle {
    color: var(--secondary-color);
    background-color: transparent;
    border: none;
    font-family: var(--secondary-font);
    margin-top: 1rem;
    border-radius: 100px;
}

#subtitle h2 {
    font-family: var(--senary-font);
}

#subtitle p {
    font-family: var(--secondary-font);
    color: var(--third-color);
}

.yellow {
    color: var(--background-color-tertiary);
}

.red {
    color: var(--background-color-secondary);
}

#period {
    font-size: 0.5rem;
}

/* WINDMILL */

.windmill {
  --mill-body: #D6001C;   /* house */
  --mill-wing: #F2C800;   /* wings */
  width: 100px;           /* scale to taste; height follows automatically */
  height: auto;
}

.windmill #sails {
  transform-origin: 100px 110px;          /* the hub — don't change */
  animation: windmill-spin 6s linear infinite;
}

@keyframes windmill-spin {
  to { transform: rotate(360deg); }
}

/* BUTTONS */
.btn {
    background-color: var(--background-color-secondary);
    color: var(--primary-color);
    outline-color: var(--background-color-secondary);
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: bold;
}

.btn:hover {
    color: var(--secondary-color);
    background-color: var(--background-color-quaternary);
}

.custom-button-outline {
    border: 3px solid var(--background-color-secondary);
    color: var(--background-color-tertiary);
}

.custom-button-outline:hover {
    background-color: var(--background-color-secondary);
    color: white;
}

/* GLASS CARDS */
.card.glass {
  --bloom: var(--background-color-tertiary); /* your hex */
  --bloom-rgb: 242, 200, 0; /* same colour, R,G,B */
}

.card.glass {
    position: relative; isolation: isolate;
    border: none; border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 10px 10px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.55);
    color: #fff;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}

.card.glass::before { /* gradient border (brightens on hover) */
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.05) 40%, rgba(255, 255, 255, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none; z-index: 1;
    transition: background .4s ease;
}
.card.glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                0 0 10px rgba(var(--bloom-rgb), .55),    /* the bloom glow */
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
    }

.card.glass:hover::before {      /* edge picks up the accent */
    background: linear-gradient(135deg,
            rgba(var(--bloom-rgb), .9),
            rgba(255, 255, 255, 0.05) 45%,
            rgba(var(--bloom-rgb), .5));
}

/* Bootstrap sub-components: let the glass show through */
    .card.glass .card-body { position: relative; z-index: 2; }
    .card.glass .card-header, .card.glass .card-footer {
    background: rgba(0, 2, 57, 0.06); border-color: rgba(255, 255, 255, 0.12); color:#fff;
}

.card.glass .card-text { 
    color: rgba(255,255,255,.82); 
}

.btn-glass {
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.30);
    color:#fff; backdrop-filter: blur(6px); transition: background .25s ease;
}

.btn-glass:hover { background: rgba(255,255,255,.28); color:#fff; }

/* FOOTER */
#footer {
    background-color: var(--background-color-secondary);
    color: var(--third-color);
}

#footer p {
    margin-bottom: 0;
}

#footer .section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.socials i {
    color: var(--third-color);
    font-size: 1.5rem;
}

.socials i:hover {
    color: var(--background-color-quaternary);
}

/* MEDIA QUERIES */

/* Small devices */
@media screen and (max-width: 768px) {
    #footer p {
        margin-bottom: 1rem;
    }
}

/* Medium devices */
@media screen and (max-width: 992px) {
    /* Keep icons of cards at 50% max-width */
    #symptom-check .card-img-top,
    #calming-tools .card-img-top {
        max-width: 50%;
    }
}

/* Large devices */
@media screen and (min-width: 992px) {
    #symptom-check .card-img-top,
    #calming-tools .card-img-top {
        max-width: 40%;
    }
}

/* XL devices */
@media screen and (min-width: 1200px) {
    #symptom-check .card-img-top,
    #calming-tools .card-img-top {
        max-width: 50%;
    }
}
