:root {
    --bg-color: #0a0a0c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent: #662d37;
    --accent-gradient: linear-gradient(90deg, #420087, #662d37);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    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-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    z-index: 100;
    mix-blend-mode: difference;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-socials {
    display: flex;
    gap: 1rem;
}

.top-socials a {
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.top-socials a svg {
    transition: var(--transition);
}

.top-socials a:hover svg {
    stroke: url(#icon-gradient);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.hero h1 i {
    color: var(--accent);
    font-style: italic;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 200;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.hero-scroll a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: var(--transition);
}
.hero-scroll a:hover {
    opacity: 1;
    color: var(--accent);
}
.arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(0.6);
}
.hero-bg .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,12,0.3) 0%, rgba(10,10,12,1) 100%);
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}
.section-header .line {
    width: 60px;
    height: 1px;
    background: var(--accent-gradient);
    margin: 0 auto;
}

/* Work Section (Gallery) */
.work {
    padding: 8rem 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background-color: #1a1a1c;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 12, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-overlay span {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}
.gallery-item:hover .item-overlay span {
    transform: translateY(0);
}
/* Grid Spanning */
.w-1 { grid-column: span 1; }
.w-2 { grid-column: span 2; }
.h-1 { grid-row: span 1; }
.h-2 { grid-row: span 2; }

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; }
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .w-2, .h-2 { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* About Section */
.about {
    padding: 8rem 5%;
    background-color: #121214;
    text-align: center;
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--accent);
}
.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    padding: 6rem 5% 2rem;
    text-align: center;
    background-color: var(--bg-color);
}
.footer h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 3rem;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}
.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}
.social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: var(--transition);
}
.social-links a:hover::after {
    width: 100%;
}
.social-links a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.5s;
}
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.8s;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-close:hover {
    color: var(--accent);
}
