:root {
    --bg-color: #0a0a0a;
    --text-color: #ebebeb;
    --accent-main: #ffffff;
    --accent-sub: #888888;
    --border-lite: rgba(255, 255, 255, 0.1);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'></path></svg>") 0 24, auto !important;
}

a,
button,
.close-img,
.close,
.filter-btn,
.slider-nav,
input,
textarea {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'></path></svg>") 0 24, pointer !important;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-content {
    text-align: center;
    overflow: hidden;
}

.loader-text {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: loaderTextAnim 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    text-transform: uppercase;
}

.loader-line {
    width: 0%;
    height: 1px;
    background: #fff;
    margin: 20px auto 0;
    animation: loaderLineAnim 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}

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

@keyframes loaderLineAnim {
    to {
        width: 100%;
    }
}

.loader-hide {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-20px);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-main);
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-sub);
    padding-bottom: 10px;
}

/* Navigation */
.minimal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 1000;
    transition: transform 0.4s ease, background 0.4s ease;
}

.minimal-nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.nav-hidden {
    transform: translateY(-100%);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--accent-sub);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-main);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.admin-link {
    color: #555 !important;
}

/* Main Layout */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    min-height: auto;
    padding-top: 5vh;
    padding-bottom: 50px;
}

/* Hero Section */
#home {
    position: relative;
    min-height: 85dvh;
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0;
    display: flex;
    perspective: 1200px;
    top: 0;
}

/* Spotlight Effect */
.spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at center, #c6f4ff00 0%, rgba(225, 255, 255, 0.02) 20%, rgba(0, 0, 0, 0) 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hero-socials {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-socials a {
    color: var(--accent-sub);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: var(--accent-main);
    transform: translateY(-3px);
}

#geometric-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    opacity: 0.3;
    pointer-events: none;
}

.hero-text {
    z-index: 2;
    text-align: left;
    padding-top: 55vh;
    /* Pushes the massive left text block significantly further down the layout */
}

.hero-name-anim {
    opacity: 0;
    animation: slideUpReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpReveal {
    0% {
        transform: translateY(30px);
        opacity: 0;
        filter: blur(8px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

.hero-title-anim,
.hero-tagline-anim,
.cta-buttons,
.hero-socials {
    opacity: 0;
    animation: fadeIn 3 forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-title-anim {
    animation-delay: 3.0s;
}

.hero-tagline-anim {
    animation-delay: 3.2s;
}

.cta-buttons {
    animation-delay: 3.4s;
}

.hero-socials {
    animation-delay: 3.6s;
}

.hero-text h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-sub);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -2px;
    white-space: nowrap;
}

.tagline {
    font-size: 1.25rem;
    color: #999;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: top;
    height: 70%;
    transform-style: preserve-3d;
}

.hero-img-inner {
    position: relative;
    height: 95%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform: translateY(-40vh);
    /* Lifts the image physically up globally */
}

.hero-img {
    height: 100%;
    object-fit: contain;
    filter: grayscale(20%) contrast(1.1);
    transform-origin: bottom center;
}

.hero-bottom-mask {
    position: absolute;
    bottom: -10px;
    left: -10%;
    width: 120%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color) 20%, transparent 100%);
    z-index: 4;
    pointer-events: none;
}

.floating-icons {
    position: absolute;
    width: 80%;
    height: 80%;
    top: -20%;
    right: 10%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 80px;
    opacity: 1;
    animation: drift 8s ease-in-out infinite alternate;
    object-fit: contain;
    z-index: 1;
}

.icon-ps {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    width: 85px;
}

.icon-ai {
    top: 40%;
    left: 8%;
    animation-delay: 1s;
    width: 75px;
}

.icon-pr {
    top: 25%;
    left: 5%;
    animation-delay: 2s;
    width: 85px;
}

.icon-id {
    top: 8%;
    left: 40%;
    animation-delay: 2.2s;
    width: 65px;
}

/* Between PS and AE */
.icon-lr {
    top: 25%;
    left: 65%;
    animation-delay: 1.8s;
    width: 80px;
}

/* Scaled up and between ID and BL */

.icon-ae {
    top: 18%;
    right: -2%;
    animation-delay: 0.5s;
    width: 80px;
}

/* Pushed out */
.icon-dv {
    top: 31%;
    right: -3%;
    animation-delay: 1.5s;
    width: 85px;
}

/* Centered perfectly between AE and BL, pushed right */
.icon-bl {
    top: 45%;
    right: 2%;
    animation-delay: 2.5s;
    width: 70px;
}

/* Pushed down slightly */
.icon-au {
    top: 10%;
    right: 26%;
    animation-delay: 1s;
    width: 70px;
}

/* Raised up and strictly centered between ID and AE */

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, -20px) rotate(10deg);
    }
}


/* Buttons */
.btn {
    padding: 12px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: #ccc;
    border-color: #ccc;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: #fff;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.video-card {
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    filter: grayscale(60%);
    transition: 0.4s;
}

.video-card:hover .video-thumb {
    filter: grayscale(0%);
}

.video-info h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-info p {
    font-size: 0.9rem;
    color: #777;
}

/* Reviews auto-scrolling */
.reviews-slider {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 2rem;
    animation: scroll-marquee 30s linear infinite;
    width: max-content;
}

.reviews-slider:hover .reviews-track {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.review-card {
    background: rgba(17, 17, 17, 0.5);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s;
    min-width: 350px;
    max-width: 400px;
    white-space: normal;
}

.review-card:hover {
    border-color: #444;
    transform: scale(1.03) translateY(-5px);
    z-index: 10;
}

.review-card p {
    font-style: italic;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.7;
}

.review-author {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.review-company {
    font-size: 0.85rem;
    color: #777;
}

/* Masonry for Artworks */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #777;
    font-size: 0.9rem;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    color: #fff;
    border-color: #fff;
}

.grid-5 {
    column-count: 5;
    column-gap: 1.2rem;
    width: 100%;
}

.artwork-item, .video-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.2rem;
    break-inside: avoid;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.artwork-item {
    aspect-ratio: 3 / 4;
}

.video-card.tiktok {
    aspect-ratio: 9 / 16;
}

.video-card.youtube {
    aspect-ratio: 16 / 9;
}

.artwork-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.artwork-slides img,
.artwork-item > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 1s ease-in-out;
    filter: grayscale(30%);
}

.artwork-slides img {
    opacity: 0;
    z-index: 1;
}

.artwork-slides img.active {
    opacity: 1;
    z-index: 2;
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: 0.3s ease;
}

.artwork-item:hover .artwork-overlay {
    opacity: 1;
}

.artwork-item:hover img,
.artwork-item:hover .artwork-slides img.active {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Slider Controls in Modal */
.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slider-nav {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: 0.3s;
}

.slider-nav:hover {
    opacity: 1;
}

#slider-prev {
    left: -10px;
}

#slider-next {
    right: -10px;
}

#modal-image {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
}

/* About Section & Skills Grid */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

#prof-bio {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.8;
}

.skills-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 2rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.skill-circular {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.skill-ring-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
}

.skill-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 4;
}

.ring-progress {
    fill: transparent;
    stroke: #00e5ff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 226.19;
    /* 2 * PI * r (36) */
    stroke-dashoffset: 226.19;
    /* Hidden by default */
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.skill-name {
    font-size: 0.85rem;
    color: var(--accent-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neon-skill {
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.6));
}

.neon-text,
#prof-quals {
    color: #fff !important;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.6), 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Timeline */
.timeline {
    border-left: 1px solid #333;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0a0a0a;
}

.timeline-year {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Contact form */
.contact-wrapper {
    max-width: 600px;
}

.minimal-form .input-group {
    margin-bottom: 1.5rem;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    outline: none;
    font-family: var(--font-body);
    transition: 0.3s;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    border-bottom-color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 3rem;
}

.social-links a {
    color: #fff;
    font-size: 1.1rem;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-links a:hover {
    color: #000;
    background: #fff;
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.close,
.close-img {
    color: #555;
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 30px;
    background: none;
    border: none;
    padding: 10px;
}

.close:hover,
.close-img:hover {
    color: #fff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    transition: padding-bottom 0.4s ease;
}

.video-container.vertical {
    padding-bottom: 177.78%; /* 9:16 */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.fade-in-section {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(60px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform, filter;
}

.fade-in-section.is-visible {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    padding-bottom: 20px;
}

.page-btn {
    background: transparent;
    border: 1px solid #333;
    color: #777;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 0.9rem;
}

.page-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.page-btn:hover:not(.active) {
    border-color: #fff;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .grid-5 {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .grid-5 {
        column-count: 2;
    }
    
    .minimal-nav {
        padding: 1.5rem 5%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
        z-index: 20;
    }

    .hero-img-inner {
        height: 60vh;
    }

    #home {
        height: auto;
        min-height: 100dvh;
        padding-top: 15vh !important;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0a;
        padding: 20px;
        border-bottom: 1px solid #222;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .masonry {
        column-count: 2;
    }

    .spotlight {
        width: 100vw;
        height: 100vw;
    }
}

@media (max-width: 600px) {
    .grid-5 {
        column-count: 1;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}