/* Custom Fonts */
@font-face {
    font-family: 'CustomFont1';
    src: url('./fonts/1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





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

html, body {
    font-family: 'CustomFont1';
    font-weight: normal;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'CustomFont1', sans-serif !important;
    font-weight: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fafafa;
    color: #333;
    padding: 1rem 0;
    top: 0;
    z-index: 1300;
}

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

.header__title {
    font-family: 'CustomFont1' !important;
    font-weight: normal;
    text-align: left;
    margin-bottom: 0;
    color: #333;
}

.header__nav {
    display: none;
}

.header__link {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.2rem 0;
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-align: left;
}

.header__link:hover {
    color: #333;
    transform: none;
    box-shadow: none;
}

/* Main Content */
.main {
    padding: 1rem 0;
    min-height: calc(100vh - 80px);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-item {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
}

.portfolio-item__image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.portfolio-item__play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    backdrop-filter: blur(10px);
}

.portfolio-item__title {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 'normal';
    color: #333;
    text-align: center;
    line-height: 1.3;
}



/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal__content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: 1000px;
    animation: slideIn 0.3s ease;
    overflow: hidden;
    padding: 0;
}

/* Modal Close Button - Updated to match Menu X */
.modal__close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;  /* Same size as menu button */
    height: 40px;
    border: none;
    background: transparent; /* Transparent background (removed dark circle) */
    padding: 0;
    cursor: pointer;
    z-index: 1500; /* High z-index to ensure it sits on top of video */
    display: block;
}

/* Remove the old hover scale/background effect */
.modal__close:hover {
    background: transparent;
    transform: none; 
    opacity: 0.7; /* distinct hover effect */
}

/* Styles for the lines inside the modal button */
.modal__close .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000000; /* Black lines */
    position: absolute;
    left: 0;
    border-radius: 2px;
}

/* Force Top Line to X position immediately */
.modal__close .line-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

/* Force Bottom Line to X position immediately */
.modal__close .line-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.modal__title {
    color: #333;
    font-size: 1.05rem;
    text-align: center;
    margin: 0;
    padding: 0.75rem 1rem 0.15rem 1rem;
}

.modal__name {
    color: #333;
    font-size: 0.95rem;
    text-align: center;
    margin: 0 0 1.5rem 0;
    opacity: 0.8;
}

.modal__video-container {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
}

.modal__video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    display: block;
}

/* Header menu button */
.header__menu-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent; /* Ensures no background covers lines */
    padding: 0;
    cursor: pointer;
    position: relative; 
    display: block;
    z-index: 1301; 
}

/* Common style for both lines */
.header__menu-button .line {
    display: block;
    width: 100%;
    height: 2px; /* Increased thickness to be clearly visible */
    background-color: #000000; /* Pure black */
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- STATE 1: Parallel Lines --- */
.line-top {
    top: 35%; 
}

.line-bottom {
    bottom: 35%;
}

/* --- STATE 2: The "X" (Active) --- */

/* Move top line to center and rotate 45 degrees */
.header__menu-button--open .line-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

/* Move bottom line to center and rotate -45 degrees */
.header__menu-button--open .line-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* Contact menu overlay */
.contact-menu {
    position: fixed;
    inset: 0;
    background: #fafafa;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.contact-menu.active {
    display: flex;
}

.contact-menu__content {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-menu__close {
    position: fixed;
    top: 1rem;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-menu__inner {
    width: 100%;
    padding: 0 3rem;
}

.contact-menu__inner--intro,
.contact-menu__inner--details {
    display: none;
}

.contact-menu--intro .contact-menu__inner--intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.contact-menu--details .contact-menu__inner--details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    gap: 1.5rem;
}

.contact-menu__title {
    font-size: 1.2rem;
    cursor: pointer;
}

.contact-menu__instagram-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #000;
    text-decoration: none;
}

.contact-menu__details-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.contact-menu__details-text a {
    color: inherit;
    text-decoration: none;
}

.contact-menu__details-text a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        background: rgba(255, 255, 255, 0);
    }
    to {
        opacity: 1;
        background: white;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        background: rgba(255, 255, 255, 0);
    }
    to {
        opacity: 1;
        background: white;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header__title {
        font-family: 'CustomFont1' !important;
        font-size: 1.8rem;
    }
    
    .header__nav {
        font-family: 'CustomFont1' !important;
        gap: 0.3rem;
    }
    
    .header__link {
        font-size: 0.9rem;
        padding: 0.2rem 0;
        text-align: left;
        display: block;
        width: auto;
    }
    
    .main {
        padding: 0.5rem 0;
        min-height: calc(100vh - 80px);
    }
    
    .main .container {
        padding: 0 5px;
    }
    
    .portfolio-grid {
        gap: 0.5rem;
        padding: 0;
        max-width: 100%;
    }
    
    .portfolio-item__title {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .portfolio-item__play-button {
        width: 60px;
        height: 60px;
    }
    
    .modal__content {
        width: 98vw;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal__close {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header__title {
        font-family: 'CustomFont1' !important;
        font-size: 1.8rem;
    }
    
    .header__nav {
        font-family: 'CustomFont1' !important;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .header__link {
        text-align: left;
        display: block;
        width: auto;
        padding: 0.2rem 0;
    }
    
    .portfolio-item__play-button {
        width: 50px;
        height: 50px;
    }
    
    .portfolio-item__play-button svg {
        width: 32px;
        height: 32px;
    }
}

/* Loading States */
.portfolio-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.portfolio-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */


.modal__close:focus, 
.header__menu-button:focus,
.portfolio-item:focus-within {
    outline: none;
    box-shadow: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .header__nav,
    .portfolio-item__overlay,
    .modal {
        display: none !important;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 