/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-btn.active {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

/* Social Links - Top Left */
.social-links-top {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    gap: 1rem;
}

.social-links-top a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.license-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.license-icon {
    color: #0a0a0a;
    font-size: 1.1rem;
    font-weight: 600;
}

.license-button.license-open {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.4);
}

.license-button.license-open .license-icon {
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    .license-button:hover {
        background: #0a0a0a;
        border-color: rgba(255, 255, 255, 0.4);
    }

    .license-button:hover .license-icon {
        color: #ffffff;
    }
}

.license-tooltip {
    position: absolute;
    left: 50%;
    top: 115%;
    bottom: auto;
    min-width: 200px;
    max-width: 260px;
    background: rgba(10, 10, 10, 0.98);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
}

.license-tooltip p {
    font-size: 0.7rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.license-tooltip p:last-child {
    margin-bottom: 0;
}

.license-tooltip a {
    color: #ffffff;
    text-decoration: underline;
    background: none;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    padding: 0;
}

.license-button.license-open .license-tooltip,
.license-button:focus-within .license-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.social-links-top a:hover {
    background: #0a0a0a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Fiverr Icon Hover States */
.fiverr-link .fiverr-icon {
    transition: opacity 0.3s ease;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0 0 0;
}

.header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.header-content .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.section-indicator {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Horizontal Navigation */
.horizontal-nav {
    text-align: center;
    padding-bottom: 1rem;
}

.nav-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    transform: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 1100;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu {
    list-style: none;
    display: inline-flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 1rem 0;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-menu a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.nav-menu a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Main Content */
.main-content {
    margin-top: 180px;
    min-height: 100vh;
}

/* Sections */
.section {
    padding: 4rem 3rem;
    min-height: calc(100vh - 180px);
    display: none;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section.active {
    display: flex;
    animation: sectionFadeIn 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove scroll snapping for tab navigation */
html {
    scroll-behavior: smooth;
}

.main-content {
    overflow: hidden;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 560px));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section.active .project-card {
    animation: cardFadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.section.active .project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.section.active .project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.section.active .project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.section.active .project-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* Removed special positioning override for True Memories */

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.screenplay-links {
    display: flex;
    gap: 1rem;
}

.screenplay-links .project-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-genre {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-weight: 400;
}

.project-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    white-space: pre-line;
}

/* About Section */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6rem;
}

.about-photo {
    flex-shrink: 0;
    flex-basis: 300px;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;

}

.profile-photo:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.section.active .profile-photo {
    animation: profilePhotoFadeIn 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s both;
}

@keyframes profilePhotoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.about-text-container {
    flex: 1;
    min-width: 0;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 800px;
    width: 100%;
}

.about-text:last-child {
    margin-bottom: 0;
}

.section.active .bio {
    animation: bioFadeIn 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s both;
}

@keyframes bioFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-content {
    max-width: 600px;
}

.contact-info p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.contact-info p:last-child {
    margin-bottom: 3rem;
}

.contact-subtitle {
    font-size: 1rem !important;
    color: #aaaaaa !important;
    font-weight: 300;
    margin-top: 0.5rem !important;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    transform: translateX(10px);
}

.contact-link i,
.contact-link svg,
.contact-link img {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-link:hover i,
.contact-link:hover svg,
.contact-link:hover img {
    background: #0a0a0a;
    color: #ffffff;
    transform: scale(1.1);
}

/* Fiverr Contact Icon Hover States */
.fiverr-contact-link .fiverr-contact-icon {
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-header {
        padding: 1.5rem 0 0 0;
    }

    .header-content {
        margin-bottom: 1.5rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        margin-top: 160px;
    }

    .section {
        padding: 3rem 2rem;
        min-height: calc(100vh - 160px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .language-toggle {
        top: 1rem;
        right: 1rem;
    }

    .social-links-top {
        top: 1.25rem;
        left: 1.5rem;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        top: 1.25rem;
        left: 1.25rem;
    }

    .horizontal-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000000;
        padding-top: 120px;
        text-align: left;
        padding-left: 2.5rem;
    }

    body.nav-open .horizontal-nav {
        display: block;
    }

    .main-header {
        padding: 1rem 0 0 0;
        z-index: 1001;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .header-content .subtitle {
        font-size: 0.9rem;
    }

    .section-indicator {
        display: block;
        font-size: 0.8rem;
    }

    .language-toggle {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.3rem;
        top: 1.25rem;
        right: 1.25rem;
    }

    .lang-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.9rem;
        align-items: flex-start;
    }

    .nav-menu a {
        padding: 0.75rem 0;
        text-align: left;
    }

    .main-content {
        margin-top: 140px;
    }

    .section {
        padding: 2rem 1rem;
        min-height: calc(100vh - 140px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .about-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        max-width: 900px;
        padding: 0 1.5rem;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
        align-self: center;
    }

    .about-text {
        font-size: 1.1rem;
        text-align: center;
        max-width: 100%;
        line-height: 1.6;
    }

    .contact-info p {
        font-size: 1.1rem;
    }

    .social-links-top {
        bottom: 1.5rem;
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        gap: 0.5rem;
        justify-content: center;
    }

    .social-links-top a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .license-button {
        width: 35px;
        height: 35px;
    }

    .license-tooltip {
        bottom: 120%;
        top: auto;
        max-width: 230px;
        font-size: 0.7rem;
        transform: translate(-50%, -8px);
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000000;
        z-index: 900;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 140px;
    }
}

/* Contact Animation */
.section.active .contact-content {
    animation: contactFadeIn 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s both;
}

@keyframes contactFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collaboration Cards */
.collab-card .project-studio {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.3rem;
}

.collab-card .project-role {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 0.2rem 0.75rem;
    margin-bottom: 1rem;
}

.collab-links {
    display: flex;
    gap: 0.75rem;
}

.collab-links .project-link {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    gap: 0.4rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
