/* ------------------------------------------------------------------
   FONTS & IMPORTS
   ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500&family=Syncopate:wght@400;700&display=swap');

/* ------------------------------------------------------------------
   VARIABLES
   ------------------------------------------------------------------ */
:root {
    --bg-color: #f8f9fa;
    /* Architectural White */
    --text-primary: #1a1a1a;
    --text-secondary: #6e6e73;
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.65);
}

/* ------------------------------------------------------------------
   GLOBAL RESETS
   ------------------------------------------------------------------ */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    margin: 0;
    overflow-x: hidden;
    cursor: none;
    /* Hides default cursor for custom one */
}

.font-display {
    font-family: 'Syncopate', sans-serif;
}

/* ------------------------------------------------------------------
   3D BACKGROUND (WEBGL)
   ------------------------------------------------------------------ */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 50;
    /* High Z-Index to be in front of bg image but behind UI */
    pointer-events: none;
    /* Allows clicking through */
    opacity: 0;
    transition: opacity 1.5s ease;
    mix-blend-mode: multiply;
    /* Blends nicely with white background */
}

/* ------------------------------------------------------------------
   CUSTOM CURSOR
   ------------------------------------------------------------------ */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: black;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-ring.active {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    border-color: transparent;
    mix-blend-mode: difference;
}

/* ------------------------------------------------------------------
   UI COMPONENTS (Glassmorphism)
   ------------------------------------------------------------------ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* ------------------------------------------------------------------
   3D TILT CARDS
   ------------------------------------------------------------------ */
nav .glass-panel {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 1);
    color: black;
    backdrop-filter: blur(5px);
    /* remove blur to keep it clean contrast */
}

.tilt-card-wrap {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-shadow {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: black;
    filter: blur(40px);
    opacity: 0.15;
    transform: translateZ(-50px);
    z-index: -1;
}

/* ------------------------------------------------------------------
   ANIMATIONS & UTILITIES
   ------------------------------------------------------------------ */
.line-mask {
    overflow: hidden;
    display: block;
}

.line-reveal {
    display: block;
    opacity: 0;
    will-change: opacity;
}

.reveal-left {
    display: block;
    opacity: 0;
    transform: translateX(-30px);
    will-change: opacity, transform;
}

.fade-element {
    opacity: 0;
    will-change: opacity;
}

.quote-word {
    opacity: 0;
    will-change: opacity;
}

.quote-element {
    opacity: 0;
    will-change: opacity;
}

.text-justify-last {
    text-align: justify;
    text-align-last: justify;
    display: block;
    width: 100%;
}

.section-curve {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.section-curve svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* ------------------------------------------------------------------
   ABOUT MODAL
   ------------------------------------------------------------------ */
#about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dimmed background */
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#about-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-align: center;
}

#about-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-title {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ------------------------------------------------------------------
   PHOTOGRAPHY GRID
   ------------------------------------------------------------------ */
.photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Square images */
    overflow: hidden;
    border-radius: 4px;
    cursor: none;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.photo-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    color: white;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 2px;
}
