/*
Theme Name: Riad Black Portfolio
Theme URI: https://riadblack.com
Author: Riad Black
Author URI: https://riadblack.com
Description: Modern, minimalist, black and white AI Art Director portfolio theme.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riadblack
*/

/* --- CSS Variables --- */
:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --muted-color: #888888;
    --border-color: #333333;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    /* Fallback */
    cursor: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom one */
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--muted-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    padding: 120px 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
}

p {
    font-size: 1.125rem;
    color: var(--muted-color);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

b,
strong {
    color: var(--text-color);
    font-weight: 400;
}

/* --- Navigation --- */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 5px;
}

.hover-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.hover-link:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 9rem);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.block {
    display: block;
}

.accent-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
    transition: var(--transition-smooth);
}

.hero-title:hover .accent-text,
.huge-text:hover .accent-text {
    color: var(--text-color);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-color);
    max-width: 700px;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background-color: var(--muted-color);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.portrait-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    border: 1px solid var(--border-color);
    transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-visual {
    overflow: hidden;
    /* Contains the zoom effect */
}

.portrait-img:hover {
    filter: grayscale(30%) contrast(1.1);
    /* Not fully color, keeps some desaturation for mood */
    transform: scale(1.02);
    /* Extremely subtle zoom */
}

/* --- Vision Section --- */
.vision-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.vision-desc {
    margin-bottom: 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-item h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #050505;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.slider-container .showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-container .showcase-img.active {
    opacity: 1;
}

.showcase-item:hover .image-wrapper {
    border-color: var(--muted-color);
}

.showcase-item:hover .showcase-img.active {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1);
}

/* --- Footer Section --- */
.footer-section {
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-color);
}

.huge-text {
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.9;
    margin-bottom: 4rem;
}

.contact-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.email-link {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-color);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-color);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--muted-color);
    text-decoration: none;
}

/* --- Animations & Utilities --- */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    body {
        cursor: auto;
    }

    /* Disable custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .portrait-img {
        aspect-ratio: auto;
    }

    .nav-links {
        display: none;
        /* simple hidden nav for mobile in this version */
    }
}