/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Quintessential&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

/* HTML and Body */
html {
    font-family: "Open Sans", sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Text */
h1, h2, h3 h4 {
    font-family: "Tinos", serif;
}

#introSnapshots h4 {
    font-weight: bold !important;
}

p { 
    font-family: "Noto Serif", serif;
}

p {
    font-size: 1em;
}
.p-08 {
    font-size: 0.8em;
}

.nav-item-icon { 
    height: 36px;
}

.nav-item:hover a { 
    color: yellow !important;
}

a {
    text-decoration: none !important;
    transition: all 0.2s ease-in;
}

/* Carousels */
#mainCarousel {
    width: 200px !important;
}
#summary .carousel-inner {
    border: 3px solid yellow;
    box-shadow: 0 0 5px 2px gold;
}

#storyWrapper .carousel {
    border: solid 5px gold;
    max-width: 600px;
    margin: auto;
}

/* Tooltips */

/* Primary Tooltip -> Blue */
.tooltip-primary .tooltip-inner {
    background-color: #0015ff;
    color: #fff;
}
/* Arrow for TOP placement */
.tooltip-primary.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #0015ff;
}
/* Arrow for BOTTOM placement (if you ever use it) */
.tooltip-primary.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #0015ff;
}
/* LEFT */
.tooltip-primary.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #0015ff;
}
/* RIGHT */
.tooltip-primary.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #0015ff;
}

/* Tooltip Yellow */
.tooltip-warning .tooltip-inner {
    background-color: #FFD700;
    color: #000;
}
.tooltip-warning .bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #FFD700;
}
.tooltip-warning .bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #FFD700;
}
.tooltip-warning .bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #FFD700;
}
.tooltip-warning .bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #FFD700;
}

/* Tooltip White */
.tooltip-light .tooltip-inner {
    background-color: #FFFFFF;
    color: #000;
}
.tooltip-light .bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #FFFFFF;
}

.tooltip-light .bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #FFFFFF;
}

.tooltip-light .bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #FFFFFF;
}
.tooltip-light .bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #FFFFFF;
}

/* Backgrounds */
.bg-white { 
    background-color: white !important;
}
#dynamicBackground3 { 
    content: '';
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.adobe.com/creativecloud/photography/type/media_18ec078ac12361c5bd437dae615fd5dd92bfbfe51.jpg?width=1200&format=pjpg&optimize=medium");
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0;

    transition: opacity 0.5s ease;
}
#dynamicBackground3.fade-in { 
    opacity: 1;
}

/* Containers & Cards */
.d-flex {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.container-left {
    justify-content: left;
    text-align: left;
}

.story-card-holder {
    align-items: stretch;
}

.story-card {
    transition: all 0.3s ease;
    border-radius: 25px;
    border: solid 0.5px black !important;
    background: white;
    margin: 15px;
    padding: 100px;
    align-self: stretch;
}
.story-card p {
    width: 80%;
    margin: 15px auto;
}

.card svg {
  display: block;
  margin: 0 auto;
  height: 48px;
  width: 48px;
}

.card svg {
  transform: translateY(-12%);
}



/* Text Styles */
.quintessential {
    font-family: Quintessential, serif;
}

.tinos {
    font-family: Tinos, serif;
}

.old-standard { 
    font-family: "Old Standard TT", serif;
}

.noto-serif { 
    font-family: "Noto Serif", serif;
}

/* Animations */
.expand-default, .expand-default-sm {
    transition: transform .1s ease-in;
    cursor: pointer;
}

.expand-and-spin, .fade-out {
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.expand-default-sm:hover {
    transform: scale(1.05);
}

.expand-default:hover {
    transform: scale(1.1);
}


.bright:hover {
    filter: brightness(1.5);
}

.expand-and-spin:hover {
    transform: scale(1.4) rotate(1080deg);
    filter: contrast(1.5);
}

.fade-in { 
    opacity: 1;
}

.active {
    filter: brightness(1.3);
}

.horizontal-collapse {
    width: 0;
    overflow: hidden;
    transition: width 0.4s ease;
    white-space: nowrap;
    /* ensures it expands sideways cleanly */
}

.horizontal-collapse.show {
    width: 100% !important;
}

/* Colors */
.bg-dark-blue {
    background-image: linear-gradient(to right, rgb(2, 2, 82), navy) !important;
}

/* Hover Effects */
.bg-hover-warning {
    transition: all 0.3s ease;
    cursor: pointer;
}
.hover-dark:hover {
    color: black !important;
}

.hover-warning:hover { 
    color: gold! important;
}
.bg-hover-warning:hover {
    background-color: gold;
    color: black;
}
.hover-bright:hover {
    filter: brightness(1.3);
}
.hover-light:hover {
    color: white;
}

/* Responsive Design */
@media screen and (max-width: 800px) {
    .container-left {
        text-align: center;
    }
}


/* ======== PAGE CONTENT ======= */

/* Header */
nav {
    border-bottom: solid 6px gold; 
}
/* Hero */
#main-hero {
    text-align: center;
    position: relative; 
    height: 750px;
    border-bottom: solid 6px rgb(192, 163, 2); 
}

#main-hero .display-4, .btn {
    position: relative;
    z-index: 2;
}

#main-hero .fade-out {
    opacity: 0;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    transition: opacity 3s ease-in-out;
}
.layer-top {
    background-image: url("../images/backgrounds/image-1.jpg");
    opacity: 1;
    z-index: 1;
}

.layer-bottom {
    opacity: 0;
    z-index: 0;
}

.display-4 {
    text-decoration: none;
    padding: 40px 20px;
    border-radius: 20px;
    background-image: radial-gradient(rgba(13, 2, 175, 0.541), rgba(0, 0, 0, 0.062));
    color: rgb(255, 235, 121);
    -webkit-text-stroke: 1px rgb(255, 236, 62);
    box-shadow: 0 0 30px 20px rgba(0, 0, 0, 0.062);
}

/* Summary */
#summary {
    background-color: white;
    border-radius: 50px;
    transition: all 0.5s ease-out;
}
#summary:hover { 
    border: 1px solid black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.438);
    transform: scale(1.03);
}

#summary h1 {
    font-size: 4.5em;
}
#summary h5 {
    font-size: 1.3em;
    color: blue;
    font-weight: bold;
}
#summary p {
    font-size: 0.9em;
}

#introSnapshots { 
    border-radius: 25px;
}

/* Story */
.story-image {
    border: solid 5px gold;
    width: 75%;
}

/* Progress Tracker */
#progressSidebar, #resume-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 5;
    background: linear-gradient(to right, rgb(2, 2, 82), navy) !important;
    border-right: 2px solid #ffc107;
    color: #ffc107;
    padding: 15px;
    height: 100vh;
    transition: width 0.3s ease;
    overflow: hidden;
}

/* Header */
#progressHeader {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

#toggleSidebar, #toggleResumeSidebar {
    background: none;
    border: none;
    color: #ffc107;
    cursor: pointer;
    font-size: 18px;
}

/* Progress Bars */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgb(0, 0, 48);
    margin: 10px 0 20px;
    border-radius: 4px;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
}

/* Resume */
#resume-sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    font-weight: bold;
    padding: 8px 0;
    text-align: left;
    cursor: pointer;
    color: gold;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    margin-left: 10px;
    padding: 5px 0;
}

.dropdown-content label {
    cursor: pointer;
    padding: 3px 0;
}

/* Expanded state class toggled by JS */
.dropdown-item.open .dropdown-content {
    display: flex;
}

/* Radio styling */
input[type="radio"] {
    accent-color: #004aad;
    transition: 0.3s ease;
    accent-color: gold;
    /* or your theme */
    width: 14px;
    height: 14px;
}

/* Make header always keep space */
#resume-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    /* IMPORTANT */
    padding: 5px 10px;
}

/* When collapsed, center the toggle button */
#resume-sidebar.collapsed .sidebar-header {
    justify-content: center;
}

/* Nav links */
#sectionNav {
    margin-left: 10px;
    position: relative;
    top: 8px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

#sectionNav li, #sectionNav-resumeSidebar li {
    margin-bottom: 12px;
}

#sectionNav a {
    color: #ffc107;
    text-decoration: none;
}

#sectionNav a:hover {
    opacity: 0.7;
}

/* --- COLLAPSED STATE --- */
#progressSidebar.collapsed {
    width: 55px;
}
#progressSidebar.collapsed #sectionNav,
#progressSidebar.collapsed .progress-bar-container,
#progressSidebar.collapsed #progressHeader span {
    display: none;
}

#progressSidebar.collapsed #toggleSidebar {
    transform: rotate(180deg);
}

/* COLLAPSED STATE FOR RESUME SIDEBAR */
#resume-sidebar.collapsed .dropdown-item {
    display: none;
}
#resume-sidebar.collapsed .sidebar-header span {
    display: none;
}
/* Optional: shrink the sidebar width */
#resume-sidebar.collapsed {
    width: 60px;
    /* or whatever you want */
}
/* Rotate the toggle icon */
#resume-sidebar.collapsed #toggleResumeSidebar svg {
    transition: transform 0.3s;
}

#contentWrapper {
    transition: margin-left 0.3s ease;
    margin-left: 260px;
}

#contentWrapper.sidebar-collapsed {
    margin-left: 60px;
}

/* Convert to bottom bar under 1350px */
@media (max-width: 1350px) {
    #progressSidebar, #resume-sidebar {
        border-top: 2px solid gold;
        border-right: none;
        width: 100%;
        height: auto;
        bottom: 0;
        top: unset;
        left: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    #sectionNav {
        display: flex;
        align-content: center;
        justify-content: center;
        gap: 15px;
    }

    .dropdown-group {
        width: 100%;
        margin-top: 20px;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;

        grid-auto-rows: auto;
        gap: 50px;
    }

    .dropdown-item {
        position: relative;
    }

    #contentWrapper {
        margin-left: 0 !important;
    }
    .story-image {
        width: 100% !important;
    }

    #storyWrapper { 
        width: 100% !important;
    }
}

/* Story: Sections */
.story-section {
    padding: 50px;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;

    color: white;
    font-weight: bold;
}
.story-content-wrapper { 
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 30px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.25),rgba(0, 0, 0, 0.35),rgba(0, 0, 0, 0.25))
}
.story-subsection {
    padding: 25px 30px;
}
.principles-image {
    max-width: 60%;
    margin: auto;
}
.principles-section {
    display: none !important;
}
.principles-section.active-section {
    display: block !important;
}

/* Story Sections - Visuals */
#dynamicBackground1,
#dynamicBackground2 {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover !important;
    background-position: center !important;
    transition: opacity 1.2s ease-in-out;
    z-index: -1;
    opacity: 1;
}
#dynamicBackground2 {
    opacity: 1;
}

/* This class ACTUALLY fades a layer out */
#dynamicBackground1.fade-out, #dynamicBackground2.fade-out {
    opacity: 0;
}

/* Core Subcomponents - Functionality */
.expandable-card {
    width: 300px;
    transition: width 0.4s ease;
}

.expandable-card.expanded {
    width: 100%;
}

.expand-left {
    width: 300px;
    flex-shrink: 0;
}

.expand-content {
    display: none;
    padding: 15px;
    flex: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left !important;
}

.expandable-card.expanded .expand-content {
    display: block;
    opacity: 1;
}

/* Resume */

/* A4 Container */
.a4-sheet {
    max-width: 210mm;
    min-height: 297mm;
    padding: 16mm;
    margin: auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    font-family: 'Times New Roman', serif;
    font-size: 11.3pt;
    line-height: 1.15;
}

ul {
    margin-top: 1mm;
    margin-bottom: 3mm;
    padding-left: 45px;
}

hr {
    margin-top: 2mm;
}

.a4-sheet strong, .a4-sheet span, .a4-sheet p, .a4-sheet h5 {
    font-family: 'Times New Roman', serif;
}

/* Gallery & Portfolio: */
.search-container {
    background: linear-gradient(to right, rgb(2, 2, 82), navy);
    border-bottom: 6px solid gold;
    padding: 2rem 0;
}

.search-title {
    color: gold;
    font-size: 2em;
    margin: 0;
    white-space: nowrap;
}

.search-input {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    border: 2px solid gold;
    max-width: 600px;
}

.search-input:focus {
    outline: none;
    border-color: gold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.project-card {
    max-width: 400px;
    background: white;
    border-radius: 25px;
    border: 0.5px solid black;
    padding: 1.5rem;
    margin: 15px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-card.hidden {
    display: none;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(2, 2, 82);
    margin-bottom: 0.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-financial {
    background-color: #dcfce7;
    color: #166534;
}

.category-consulting {
    background-color: #dbeafe;
    color: #1e40af;
}

.category-software {
    background-color: #fae8ff;
    color: #86198f;
}

.category-other {
    background-color: #fed7aa;
    color: #9a3412;
}

.project-description {
    color: #495057;
    line-height: 1.6;
}

.section-title {
    font-family: Tinos, serif;
    font-size: 2rem;
    color: rgb(2, 2, 82);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid gold;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.hidden {
    display: none;
}
/* Print Optimization */
@media print {
    /* Hide EVERYTHING */
    body * {
        visibility: hidden !important;
    }
    /* Show ONLY the resume */
    #print-area,
    #print-area * {
        visibility: visible !important;
    }
    /* Keep resume positioned at top-left for printing */
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
        border: none;
        box-shadow: none;
    }
}
@page {
    margin: 0;
}

#print-area {
    padding: 20mm; /* your own page margin */
}

/* CONTACT ME SECTION: */
#contactsSection { 
    background-image: url("../images/backgrounds/image-1.jpg");
    background-size: cover;
    background-position: center;
}

#contactsCard { 
    border: solid 3px gold;
    background-color: white;
}

/* Services Page: */
.services-card {
    min-width: 400px;
    max-width: 700px;

    transition: all 0.3 ease;
}

.services-card.expand {
    max-width: 1600px;
    min-width: 100%;
}

.bi { 
    width: 22px !important;
    height: 22px !important;
}
.socials-icon { 
    transition: all 0.3s ease;
}
.socials-icon:hover {
    transform: rotate(360deg) scale(1.1);
    color: gold !important;
}
footer {
    border-top: gold 5px solid;
    position: relative;
    bottom: 0;
}

