@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital@0;1&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #f2f2f2;
    --text-secondary: #a0a0a0;
    --accent-color: rgb(167, 0, 74);
    --accent-glow: rgba(167, 0, 74, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    font-size: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h4 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text span.greeting {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.hero-text h1 {
    margin-bottom: 2rem;
}

.typewriter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    min-height: 4.5rem;
    display: flex;
    align-items: center;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent-color);
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.hero-image:hover img {
    filter: grayscale(0%);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

/* Card Style */
.card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* About Me */
.feature-item {
    text-align: center;
}

.feature-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    filter: grayscale(80%);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-img {
    filter: grayscale(0%);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-active {
    opacity: 1;
}

/* Resume Section */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.resume-item {
    border-left: 2px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.resume-date {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Projects */
.project-card h3 {
    color: var(--text-primary);
}

.project-card a {
    color: var(--accent-color);
    font-weight: 600;
}

.project-card a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: var(--glass-border);
    text-align: center;
    margin-top: 4rem;
}

.contact-box {
    margin-bottom: 2rem;
}

.contact-box h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.social-links img {
    width: 40px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu later if needed */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 6rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .typewriter {
        justify-content: center;
    }
}

/* Gallery Styles */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(20%);
    display: block;
    /* fix spacing */
}

.masonry-item:hover {
    transform: scale(1.02);
    filter: grayscale(0%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* Quote Style */
.quote-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.blade-quote {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.blade-quote span {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    animation: fade-in 0.8s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

.quote-author {
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fade-in 1s 2s forwards;
}

@keyframes fade-in {
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    border-radius: 4px;
    user-select: none;
}

.lightbox-nav:hover {
    background: var(--accent-color);
    color: #fff;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.masonry-item {
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .close-lightbox {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}