/* ============================================
   BENTOLIO PORTFOLIO - CLEAN CSS
   ============================================ */

/* ============================================
   FONT IMPORTS
   ============================================ */
/* Gilroy - Main Font Family */

/* Thin */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url(../fonts/Gilroy-Thin.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 100;
    font-display: swap;
    src: url(../fonts/Gilroy-ThinItalic.ttf) format('truetype');
}

/* Ultra Light */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url(../fonts/Gilroy-UltraLight.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 200;
    font-display: swap;
    src: url(../fonts/Gilroy-UltraLightItalic.ttf) format('truetype');
}

/* Light */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(../fonts/Gilroy-Light.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url(../fonts/Gilroy-LightItalic.ttf) format('truetype');
}

/* Regular */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Gilroy-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Gilroy-RegularItalic.ttf) format('truetype');
}

/* Medium */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/Gilroy-Medium.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/Gilroy-MediumItalic.ttf) format('truetype');
}

/* Semi Bold */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/Gilroy-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/Gilroy-SemiBoldItalic.ttf) format('truetype');
}

/* Bold */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/Gilroy-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/Gilroy-BoldItalic.ttf) format('truetype');
}

/* Extra Bold */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/Gilroy-ExtraBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/Gilroy-ExtraBoldItalic.ttf) format('truetype');
}

/* Black */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(../fonts/Gilroy-Black.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url(../fonts/Gilroy-BlackItalic.ttf) format('truetype');
}

/* Heavy */
@font-face {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 950;
    font-display: swap;
    src: url(../fonts/Gilroy-Heavy.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 950;
    font-display: swap;
    src: url(../fonts/Gilroy-HeavyItalic.ttf) format('truetype');
}

/* ============================================
   CSS VARIABLES - COLOR SYSTEM
   ============================================
   
   CUSTOMIZATION GUIDE:
   
   1. Base Colors:
      - color-primary: Main color for regular boxes (intro, about, work, social)
      - color-secondary: Color for special boxes (contact, portrait/image)
      - color-background: Page background color
      - color-text: All text throughout the site
      - color-accent: Accent color for progress bar, borders, etc.
   
   2. Hover States:
      - color-hover-regular: Hover color for text elements (social links, contact links)
      - color-hover-accent: Hover color for accent elements (CTA button, etc.)
   
   Example: To change hover effects to blue instead of yellow,
   set --color-hover-regular: #4888C8;
   
   ============================================ */
:root {
    /* Base Colors */
    --color-primary: #4888C8;          /* Light blue - regular boxes */
    --color-secondary: #173679;        /* Dark blue - contact/image boxes */
    --color-background: #0D1B2A;       /* Deep navy - page background */
    --color-text: #F9FBCB;             /* Cream - all text */
    --color-accent: #F9C74F;           /* Yellow - accent elements */
    
    /* Hover States */
    --color-hover-regular: #F9C74F;    /* Hover color for regular elements (links, social, etc) */
    --color-hover-accent: #FDD870;     /* Hover color for accented elements (brighter yellow) */
    
    /* Fonts */
    --font-heading: 'Gilroy', sans-serif;
    --font-body: 'Gilroy', sans-serif;
    
    /* Other */
    --border-radius: 16px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 1vw;
    scroll-behavior: smooth;
    height: 100%;
    overflow: hidden;
}

@media (max-width: 1024px) {
    html { font-size: 1.5vw; }
}

@media (max-width: 768px) {
    html { font-size: 2vw; }
}

@media (max-width: 640px) {
    html { font-size: 3.5vw; }
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--color-background);
    color: var(--color-secondary);
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

html.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

::selection {
    background-color: rgba(86, 84, 73, 0.3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(20, minmax(0, 1fr));
    gap: 1rem;
    height: 100%;
    max-height: 75rem;
    min-height: 50rem;
}

@media (max-width: 1024px) {
    .grid-container {
        height: auto;
        max-height: none;
        grid-template-rows: none;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Left section wrapper - contains intro, portrait, about, contact */
.left-section-wrapper {
    grid-column: span 8;
    grid-row: span 17;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
}

@media (max-width: 1024px) {
    .left-section-wrapper {
        grid-column: 1 / -1;
        grid-template-rows: none;
        gap: 1rem;
    }
}

/* Right section wrapper - contains work section */
.right-section-wrapper {
    grid-column: span 4;
    grid-row: span 17;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
}

@media (max-width: 1024px) {
    .right-section-wrapper {
        grid-column: 1 / -1;
        grid-template-rows: none;
        gap: 1rem;
    }
}

/* ============================================
   BOX COMPONENT
   ============================================ */
.box {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-text);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-container {
    grid-column: 1 / -1;
    grid-row: span 2;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 1rem;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        justify-content: center;
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    overflow: hidden;
}

.name-first {
    font-weight: 400;
    font-style: italic;
}


.name-last {
    font-weight: 500;
    font-style: normal;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1rem;
    padding-top: 0.875rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--color-primary);
    background-color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-hover-accent);
    color: var(--color-background);
    border-color: var(--color-hover-accent);
    transform: translateY(-2px);
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-container {
    grid-column: span 5;
    grid-row: span 10;
}

@media (max-width: 1024px) {
    .intro-container {
        grid-column: span 10;
    }
}

@media (max-width: 768px) {
    .intro-container {
        grid-column: 1 / -1;
    }
}

.intro-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.intro-icon {
    width: 8rem;
    height: 8rem;
    margin-left: auto;
}

.intro-heading {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 100%;
    max-width: 35rem;
    padding-bottom: 2rem;
}

/* Experience Section (within intro-container) */
.experience-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 100%;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.experience-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.experience-list::-webkit-scrollbar {
    display: none;
}

.experience-item {
    position: relative;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-secondary);
    border-bottom: 1px solid var(--color-secondary);
    margin-bottom: -1px; /* Collapse adjacent borders */
}

.experience-item:last-child {
    margin-bottom: 0;
}

summary.experience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
}

.experience-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.experience-logo {
    width: 3.2rem;
    height: 3.2rem;
    min-width: 3.2rem;
    min-height: 3.2rem;
    object-fit: contain;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.experience-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.experience-company {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    /* color: var(--color-secondary); */
    color: var(--color-text);
}

.experience-role {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.2;
}

.experience-date {
    font-size: 0.95rem;
    opacity: 0.85;
    text-align: right;
    white-space: nowrap;
}

.experience-border {
    display: none;
}

/* Experience Accordion Styles */
details.experience-item {
    cursor: pointer;
}

details.experience-item summary {
    list-style: none;
}

details.experience-item summary::-webkit-details-marker {
    display: none;
}

details.experience-item summary::marker {
    display: none;
}

.experience-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-chevron {
    font-size: 0.6rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

details.experience-item[open] .experience-chevron {
    transform: rotate(180deg);
}

/* Smooth accordion animation using CSS grid */
.experience-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    opacity: 0;
}

details.experience-item[open] .experience-content {
    grid-template-rows: 1fr;
    opacity: 1;
}

.experience-content-inner {
    overflow: hidden;
    padding-left: calc(3.2rem + 0.75rem); /* Align with text after logo */
    font-size: 0.85rem;
    line-height: 1.5;
}

.experience-content-inner p {
    padding-top: 0.75rem;
    margin: 0 0 0.5rem 0;
}

.experience-content ul {
    margin: 0;
    padding-left: 1rem;
}

.experience-content ul li {
    margin-bottom: 0.25rem;
}

.experience-content-inner:last-child {
    padding-bottom: 0.25rem;
}

/* ============================================
   PORTRAIT SECTION
   ============================================ */
.portrait-container {
    grid-column: span 3;
    grid-row: span 10;
    position: relative;
}

@media (max-width: 1024px) {
    .portrait-container {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .portrait-container {
        grid-column: 1 / -1;
    }
}

/* Portrait boxes - override default box padding */
.portrait-loader,
.portrait-postloader {
    padding: 0;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    margin: 0;
    padding: 0;
}

/* Portrait loader - starts at center, animates to grid position */
.portrait-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    aspect-ratio: 400 / 450;
    width: 30vw;
    height: auto;
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    opacity: 0;
}

@media (max-width: 768px) {
    .portrait-loader {
        width: 50vw;
    }
}

.portrait-postloader {
    opacity: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-container {
    grid-column: span 4;
    grid-row: span 6;
}

@media (max-width: 1024px) {
    .about-container {
        grid-column: span 6;
        min-height: 20rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-column: 1 / -1;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.about-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.about-text {
    font-size: 1.125rem;
    line-height: 135%;
    max-width: 25rem;
    padding-bottom: 0.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-container {
    grid-column: span 4;
    grid-row: span 6;
}

.contact-container .box {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

@media (max-width: 1024px) {
    .contact-container {
        grid-column: span 6;
        min-height: 20rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        display: none;
    }
}

.contact-container-mobile {
    display: none;
    grid-column: 1 / -1;
    min-height: 20rem;
}

.contact-container-mobile .box {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .contact-container-mobile {
        display: block;
    }
}

.contact-box {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.contact-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-hover-regular);
}

.contact-link:hover .contact-arrow {
    filter: brightness(0) saturate(100%) invert(78%) sepia(55%) saturate(397%) hue-rotate(353deg) brightness(102%) contrast(96%);
}

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

.contact-label {
    font-size: 1rem;
    line-height: 120%;
    max-width: 10ch;
}

.contact-arrow {
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.5rem;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 100%;
    padding-bottom: 0.5rem;
}

/* ============================================
   WORK SECTION
   ============================================ */
.work-container {
    grid-column: span 4;
    grid-row: span 14;
}

@media (max-width: 1024px) {
    .work-container {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

.work-box {
    padding-top: 0;
    padding-bottom: 0;
}

.work-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
}

.work-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.work-list::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1024px) {
    .work-list {
        overflow-y: visible;
    }
}

.work-item {
    position: relative;
    padding-top: 1.8rem;
    padding-bottom: calc(1.8rem - 2px);
    cursor: pointer;
}

.work-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.work-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 100%;
    overflow: hidden;
}

.work-title-text {
    display: block;
    padding-bottom: 2px;
}

.work-arrow-link {
    display: inline-block;
    padding: 0 0.5rem;
}

.work-arrow {
    width: 0.9rem;
    height: 0.9rem;
    transition: opacity 0.3s ease;
}

.work-thumbnail-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--color-secondary);
    overflow: hidden;
    transform-origin: top;
    transition: height 0.5s var(--transition-smooth);
}

.work-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.work-thumbnail:hover {
    transform: scale(1.05);
}

.work-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-secondary);
    transform-origin: left;
}

.work-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(72, 136, 200, 0.5));
    pointer-events: none;
    z-index: 10;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-container {
    grid-column: span 4;
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .social-container {
        grid-column: 1 / -1;
        min-height: 5rem;
    }
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

.social-link-wrapper {
    display: flex;
    overflow: hidden;
}

.social-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    color: var(--color-hover-regular);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-in {
    animation: fadeIn 0.8s var(--transition-smooth) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--scale, 1));
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 100;
}

/* Initial hidden states */
.box.initial-hidden {
    opacity: 0;
}

.box.initial-translate-y {
    transform: translateY(100%);
}

.box.initial-translate-x {
    transform: translateX(100%);
}

.box.initial-translate-x-neg {
    transform: translateX(-100%);
}

.box.initial-translate-y-neg {
    transform: translateY(-100%);
}

.box.initial-scale {
    transform: scale(0);
}


