/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


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

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

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

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


/* Bethany Elingston Font Declaration */
@font-face {
    font-family: 'Bethany Elingston';
    src: url('fonts/BethanyElingston/Bethany Elingston.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --font-serif: 'DenimINK', ui-serif, Georgia, "Times New Roman", serif;
    --font-sans: 'DenimINK', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'DenimINK', ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
    --font-denim: 'DenimINK', ui-serif, Georgia, "Times New Roman", serif;
    --font-bethany: 'Bethany Elingston', ui-serif, Georgia, "Times New Roman", serif;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* Custom text selection colors */
::selection {
    background-color: #000;
    color: #fff;
}

::-moz-selection {
    background-color: #000;
    color: #fff;
}

/* Base HTML and Body */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-denim);
    line-height: 1.5;
    color: var(--gray-700);
    background-color: #ffffff;
}

/* Utility Classes */

/* Display */
.flex { display: flex; }
.grid { display: grid; }
.inline-block { display: inline-block; }

/* Flexbox */
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }

/* Spacing */
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-\[120px\] { padding-top: 120px; }
.pr-\[240px\] { padding-right: 240px; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Sizing */
.h-full { height: 100%; }
.w-full { width: 100%; }
.max-w-\[1600px\] { max-width: 1300px; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Colors */
.text-gray-100 { color: #f3f4f6; }
.text-gray-400 { color: #9ca3af; }
.text-gray-700 { color: #374151; }
.bg-black { background-color: #000000; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-opacity-30 { background-color: rgb(0 0 0 / 0.3); }

/* Borders and Radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-\[4px\] { border-radius: 4px; }
.divide-y { border-top-width: 1px; }
.divide-gray-900 { border-color: #111827; }
.divide-gray-700 { border-color: #374151; }
.divide-gray-400 { border-color: #9ca3af; }
.divide-gray-100 { border-color: #f3f4f6; }

/* Effects */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Aspect Ratios */
.aspect-\[2\] { aspect-ratio: 2 / 1; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Transitions */
.transition-opacity { transition-property: opacity; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Opacity */
.opacity-0 { opacity: 0; }

/* Hover Effects */
.hover\:underline:hover { text-decoration: underline; }
.hover\:no-underline:hover { text-decoration: none; }
.group:hover .group-hover\:brightness-\[0\.8\] { filter: brightness(0.8); }
.group:hover .group-hover\:animate-hover-shadow { animation: hover-shadow 0.3s ease-in-out; }

/* Links */
.underline { text-decoration: underline; }

/* Responsive Design */
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
    .md\:px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1.1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:mt-4 { margin-top: 1rem; }
    .md\:mt-3 { margin-top: 0.75rem; }
    .md\:mb-8 { margin-bottom: 2rem; }
    .lg\:pr-\[2px\] { padding-right: 2px; }
}

@media (min-width: 1280px) {
    .xl\:pt-\[220px\] { padding-top: 220px; }
}

/* Custom Animations */
@keyframes hover-shadow {
    0% { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
    100% { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
}

@keyframes hoverText {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-hoverText {
    animation: hoverText 0.2s ease-out forwards;
}

.animate-hover-shadow {
    animation: hover-shadow 0.3s ease-in-out;
}

/* Group Hover Effects */
.group {
    position: relative;
}

.group .group-hover\:animate-hoverText,
.group .group-active\:animate-hoverText,
.group .group-focus\:animate-hoverText,
.group .group-tap\:animate-hoverText {
    opacity: 0;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.group:hover .group-hover\:animate-hoverText,
.group:active .group-active\:animate-hoverText,
.group:focus .group-focus\:animate-hoverText,
.group.group-tap .group-tap\:animate-hoverText {
    opacity: 1;
    animation: hoverText 0.2s ease-out forwards;
}

.group:hover .project-tag {
    opacity: 1;
    animation: hoverText 0.2s ease-out forwards;
}


/* Scale Effects */
.hover-scale-110 {
    transition: transform 0.3s ease;
}

.hover-scale-110:hover {
    transform: scale(1.1);
}

/* Project Tag Component */
.project-tag {
    position: absolute;
    bottom: 0.25rem;
    font-family: var(--font-denim);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    opacity: 0;
    text-transform: uppercase;
    font-weight: 400;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.project-tag.left {
    left: 10px;
}

.project-tag.right {
    right: 10px;
}

/* Bottom positioning for overlays */
.bottom-1 { bottom: 0.25rem; }
.left-\[10px\] { left: 10px; }
.right-\[10px\] { right: 10px; }

/* Project Detail Image Notes */
.project-detail-note {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-family: var(--font-denim);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
    opacity: 0;
    text-align: left;
    font-weight: 400;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.group:hover .project-detail-note {
    opacity: 1;
    animation: hoverText 0.2s ease-out forwards;
}

/* Projects Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    margin-top: 4px;
}

.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.1s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-content a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-content a:hover {
    background-color: var(--gray-50);
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Additional utility classes for layout */
hr {
    border: none;
    border-top: 1px solid var(--gray-900);
    margin: 0;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Height utilities */
.height-full { height: 100%; }

/* Font weight utilities */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Denim Ink font utility */
.font-denim { font-family: var(--font-denim); }


/* Bethany Elingston font utility */
.font-bethany { font-family: var(--font-bethany); }

/* Gap utilities for grid */
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* Additional spacing utilities */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* Text utilities */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }

/* Border utilities */
.border-t { border-top-width: 1px; }
.border-gray-900 { border-color: #111827; }

/* Additional flexbox utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-start { align-items: flex-start; }
.gap-6 { gap: 1.5rem; }

/* Margin utilities */
.mt-16 { margin-top: 4rem; }

/* Media query additions */
@media (min-width: 768px) {
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:gap-16 { gap: 4rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
}
