/* Design System */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #a18cd1 50%, #fbc2eb 75%, #ff8177 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.4);
    animation: pulseBtn 3s infinite;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn:hover {
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 50px rgba(79, 172, 254, 0.8), 0 0 100px rgba(161, 140, 209, 0.6);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.4);
    }

    50% {
        box-shadow: 0 0 50px rgba(79, 172, 254, 0.6);
        border-color: rgba(255, 255, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.4);
    }
}

/* Home Page */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    font-size: clamp(3rem, 8vw, 6rem);
    max-width: 1000px;
    line-height: 1.1;
    margin-bottom: 4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseText 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(79, 172, 254, 0.5));
}

@keyframes pulseText {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Works Page */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 8rem 2rem 4rem;
}

.work-item {
    aspect-ratio: 3/4;
    background: var(--glass-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.work-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-item:hover .work-img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.work-item:hover .work-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 2rem;
    overflow: hidden;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(79, 172, 254, 0.5));
}

.contact-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-align: center;
    opacity: 0.7;
    margin-bottom: clamp(2rem, 4vh, 3rem);
    font-weight: 300;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1200px;
    width: 100%;
}

.contact-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: clamp(2rem, 4vh, 3rem) clamp(1rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.contact-card:first-child {
    border-radius: 20px 0 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:last-child {
    border-radius: 0 20px 20px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.contact-card:hover::before {
    opacity: 0.15;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 20px 60px rgba(79, 172, 254, 0.3);
    z-index: 10;
}

.card-icon {
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.contact-card:hover .card-icon {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: clamp(28px, 5vw, 42px);
    height: clamp(28px, 5vw, 42px);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon svg {
    stroke: #fff;
    transform: scale(1.1);
}

.card-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-card:hover .card-title {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    opacity: 0.7;
    font-weight: 300;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.contact-card:hover .card-text {
    opacity: 1;
}

/* Animation for cards */
@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.contact-card:nth-child(1) {
    animation: cardFloat 3s ease-in-out infinite;
}

.contact-card:nth-child(2) {
    animation: cardFloat 3s ease-in-out infinite 0.5s;
}

.contact-card:nth-child(3) {
    animation: cardFloat 3s ease-in-out infinite 1s;
}

/* Lightbox Gallery */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 100px rgba(79, 172, 254, 0.3);
    transition: transform 0.3s ease;
}

.lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.lightbox-year {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        border-radius: 20px !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-nav.prev {
        left: 1rem;
    }

    .lightbox-nav.next {
        right: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-info {
        bottom: -50px;
        padding: 0.75rem 1.5rem;
    }

    .lightbox-year {
        font-size: 1rem;
    }

    .lightbox-counter {
        top: 1rem;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-height: 700px) {
    .contact-section {
        padding: 6rem 2rem 2rem;
    }

    .contact-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 0.3rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }
}