/*
Theme Name: Kenny Dissanayake Portfolio
Theme URI: https://kennydissanayake.com
Author: Antigravity
Description: Cinematic, scroll-driven portfolio theme.
Version: 1.0
text-domain: kenny-theme
*/

:root {
    --color-bg: #050505;
    --color-text: #f0f0f0;
    --color-accent: #333333;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* Reset for Theme Specifics Only */
body.kenny-theme-body {
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

/* Header */
.kenny-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.kenny-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    font-weight: bold;
}

.kenny-nav {
    display: flex;
    gap: 2rem;
}

.kenny-nav a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.kenny-nav a:hover {
    opacity: 1;
}

/* Hero Section */
#kenny-hero-container {
    position: relative;
    width: 100%;
    height: 8000px;
    /* SCROLL_HEIGHT */
    background-color: #000;
}

.kenny-sticky-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.kenny-canvas-constraint {
    width: 100%;
    max-width: 1440px;
    height: 100%;
    position: relative;
    z-index: 1;
}

#kenny-hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.kenny-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: grid;
    place-items: center;
}

.kenny-text-block {
    grid-area: 1 / 1;
    text-align: center;
    color: #fff;
    opacity: 0;
    /* JS handles this */
    transition: opacity 0.1s linear;
    width: 100%;
    padding: 0 20px;
}

.kenny-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1rem;
    width: 100%;
    overflow-wrap: break-word;
}

.kenny-hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.8;
}

.kenny-secondary-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content Sections */
.kenny-content-wrapper {
    position: relative;
    z-index: 5;
    background: var(--color-bg);
}

.kenny-section {
    padding: 6rem 2rem;
    background: var(--color-bg);
    color: var(--color-text);
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kenny-section-content {
    max-width: 800px;
    text-align: center;
}

/* Loading Screen */
#kenny-loading {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

#kenny-loading-text {
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}