/* Reset and Base Styles */

:root {

    --base-white: #fff;
    --base-black: #000;
    --base-100: #eaeaea;
    --base-200: #eeeeee;

    --glass-100: rgba(249, 249, 249, 0.15);
    --glass-200: rgba(169, 169, 169, 0.07);
    --glass-300: rgba(0, 0, 0, 0.264);
    --glass-border: rgba(254, 254, 254, 0.411);


    --primary-100: #7601BE;
    --secondary-100: #018536;
    --secondar-200: #0ad05930;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    background-color: var(--base-200);
    color: #222222;
    line-height: 1.5;
}


.dots{
    position: fixed;
    z-index: -1;
    inset: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(to right, #80808012 1px, transparent 1px),
    linear-gradient(to bottom, #80808012 1px, transparent 1px);
    background-size: 24px 24px;
    animation: dotsFadeIn 1s ease-out 0.3s both, dotsScale 1.2s ease-out 0.5s both;
}

h2{
    font-size: 1rem;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    animation: slideInFromTop 1s ease-out 0.2s both;
}

/* Header Section */
.header {
    padding-top: 40px;
    margin-bottom: 60px;
}

.header-content {
    max-width: 800px;
}

.title {
    font-size: 3.5em;
    font-weight: 500;
    color: var(--base-black);
    margin-bottom: 8px;
    line-height: 1.1;
    animation: slideInFromLeft 1s ease-out 0.4s both;
}

.subtitle {
    font-size: 1.25em;
    color: #666666;
    margin-bottom: 20px;
    font-weight: 400;
    animation: slideInFromLeft 1s ease-out 0.6s both;
}

.lower-section{
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideInFromLeft 1s ease-out 0.8s both;
}

.availability {
    display: flex;
    flex-direction: row;
    gap: 6px;
    z-index: 1001;
    background-color: #0ad05930;
    color: #018536;
    align-items: center;
    align-content: center;
    border-radius: 40px;
    font-size: 0.8em;
    font-weight: 500;
    width: fit-content;
    padding: 4px 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: slideInFromRight 1s ease-out 1s both;
}

.availability-dot {
    width: 10px;
    height: 10px;
    background-color: #0AD059;
    border-radius: 50%;
    display: inline-block;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: nowrap;
    gap: 8px;
}

.primary-btn {
    display: flex;
    gap: 0;
    background-color: #7601BE;
    border: 1px solid var(--glass-border);
    color: white;
    border: none;
    box-shadow: 0 0 4px 3px rgba(255, 255, 255, 0.40) inset, 0 2px 8px 0 rgba(0, 0, 0, 0.24);
    padding: 12px 24px;
    border-radius: 8px;
    min-width: 140px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: border-radius 0.3s ease, gap 0.3s ease, padding 0.3s ease;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.primary-btn i {
    position: absolute;
    right: 24px;
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.primary-btn:hover {
    border-radius: 40px;
    box-shadow: 0px 0px 6px 4px rgba(255, 255, 255, 0.256) inset, 0px 8px 24px 2px rgba(0, 0, 0, 0.20);
    gap: 8px;
    padding-right: 48px;
}

.primary-btn:hover i {
    transform: translateX(0);
    opacity: 1;
}

.secondary-btn{
    display: flex;
    gap: 0;
    background-color: #272727;
    border: 1px solid var(--glass-border);
    color: white;
    border: none;
    box-shadow: 0 0 4px 3px rgba(255, 255, 255, 0.40) inset, 0 2px 8px 0 rgba(0, 0, 0, 0.24);
    padding: 12px 24px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: border-radius 0.3s ease, gap 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.secondary-btn i {
    position: absolute;
    right: 24px;
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.secondary-btn:hover{
    border-radius: 40px;
    box-shadow: 0px 0px 6px 4px rgba(255, 255, 255, 0.256) inset, 0px 8px 24px 2px rgba(0, 0, 0, 0.20);
    gap: 8px;
    padding-right: 48px;
}

.secondary-btn:hover i {
    transform: translateX(0);
    opacity: 1;
}


.social-links {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 40px;
    height: 40px;
    z-index: 2;
    background-color: #00000012;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(200px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #222222;
    transition: border-radius 0.3s ease, backdrop-filter 0.3s ease;
}

.social-btn:hover {
    border-radius: 40px;
}



/* Main Content Grid */
.main-content {
    margin-bottom: 80px;
}

.project-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    animation: slideInFromBottom 1s ease-out 1.2s both;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.project-card:hover .expand-icon {
    opacity: 1;
    transform: translateY(0);
}

.expand-icon:hover {
    border-radius: 40px;
}

.project-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

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

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: end;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    transition: transform 0.3s ease;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    transition: transform 0.3s ease;
}



.expand-icon {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    color: var(--base-white);
    background-color: var(--glass-200);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, transform 0.2s ease, border-radius 0.3s ease, backdrop-filter 0.3s ease;
}

.card-overlay {
    position: absolute;
    display: flex;
    justify-content: flex-end; 
    align-items: flex-start; 
    /* flex-flow: column nowrap; */ 
    flex-direction: column; 
    flex-wrap: nowrap; 
    align-content: flex-end;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background-position: center;
    object-fit: cover;
    background: #00000060;
    background-size: cover;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-title {
    font-size: 0.8em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.project-category {
    color: var(--base-white);
    background-color: var(--glass-200);
    backdrop-filter: blur(8px);
    width: fit-content;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.6em;
    font-weight: 500;
}


.modal-wrapper{
    display: flex;
    flex-direction: row;
}

/* Footer */
.footer {
    padding-bottom: 40px;
    animation: slideInFromBottom 1s ease-out 1.4s both;
}

.copyright {
    font-size: 0.9em;
    color: #666666;
    font-weight: 400;
}

/* Responsive Design - Consolidated Media Queries */
@media (max-width: 768px) {
    /* Project Grid */

    .card-overlay{
        padding: 16px;
    }

    
    /* Typography */
    .title {
        font-size: 2.5em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .availability {
        font-size: 0.9em;
    }
    
    /* Layout */
    .container {
        padding: 24px 24px;
    }
    
    .header {
        padding-top: 60px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    /* Action Buttons */
    .action-buttons {
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }
    
    .primary-btn, .secondary-btn {
        flex: 1;
        min-width: unset;
        font-size: 1.1em;
        padding: 16px 24px;
    }
    
    /* Modal */
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 1.2em;
    }
    
    .modal-gallery {
        padding: 8px
    }
    
    .modal-details {
        padding: 20px 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .image-thumbnails {
        flex-direction: column;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    

}

@media (max-width: 480px) {
    /* Project Grid */
  

    .card-overlay{
        padding: 16px;
    }

    
    /* Typography */
    .title {
        font-size: 2.2em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .availability {
        font-size: 1em;
    }
    
    /* Layout */
    .container {
        padding: 20px 20px;
    }
    
    .header {
        padding-top: 40px;
    }
    
    .main-content {
        margin-bottom: 60px;
    }
    
    .footer {
        padding-bottom: 30px;
    }

    .lower-section{
        align-items: center;
        gap: 16px;
    }
    
    /* Action Buttons */
    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        font-size: 1.2em;
        padding: 18px 24px;
    }
    
    /* Modal */
    .modal-header {
        text-align: left;
        padding: 16px;
    }
    
    .modal-title {
        font-size: 1.4em;
    }
    
    .modal-gallery {
        flex-direction: column;
        padding: 16px;
    }

    .image-thumbnails{
        flex-direction: row;
        justify-content: inherit;
    }
    
    .modal-details {
        padding: 15px 15px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    /* Body Alignment */
    body {
        align-items: center;
        text-align: center;
    }
}

/* Desktop Modal Layout */
@media (min-width: 768px) {

    .modal-header{
        padding: 16px 40px;
    }

    .modal-details{
        padding: 30px 40px;
    }


    .modal-gallery{
        flex-direction: row;
    }

    .image-thumbnails{
        flex-direction: column;
    }

    .card-overlay{
        padding: 16px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
    backdrop-filter: blur(12px);
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    background-color: var(--base-100);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: border-radius 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    border-radius: 40px;
}

.modal-header {
    position: sticky;
    top: 0;
    width: auto;
    background-color: var(--base-white);
    border-bottom: 1px solid #eee;
    z-index: 1;
}

.modal-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.modal-category {
    background-color: var(--base-100);
    color: #555;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.modal-gallery {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: start;
}

.main-image { /* centers the image inside */      
    margin-bottom: 20px;
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;        /* makes sure it fills the container */
    object-position: center;
    display: block;
}

.modal-main-video {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: var(--glass-300);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-radius 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-icon:hover {
    border-radius: 40px;
}

.zoom-icon i {
    color: var(--base-100);
    font-size: 16px;
    z-index: 0;
}

/* Eva Icons styling */
.eva {
    font-size: inherit;
    line-height: 1;
}

.modal-close .eva,
.full-size-close .eva {
    font-size: 20px;
}

.expand-icon .eva {
    font-size: 14px;
}

.image-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-radius 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    border-radius: 40px;
}

.thumbnail.active {
    border-color: #6933d5;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}



.project-info h3 {
    font-size: 1.5em;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.project-info h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px 0;
}

.project-info p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

.project-info ul {
    list-style: none;
    padding: 0;
}

.project-info li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.project-info li::before {
    content: "•";
    color: #9370DB;
    font-weight: bold;
    position: absolute;
    left: 0;
}


.project-meta {
    background-color: #f8f8f8;
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

.meta-value {
    color: #222;
    font-weight: 500;
    font-size: 0.9em;
}

/* Full-Size Image Overlay */
.full-size-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.full-size-overlay.active {
    opacity: 1;
}

.full-size-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-size-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--base-100);
    background-color: var(--glass-300);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border: none;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: border-radius 0.3s ease;
    z-index: 2001;
}

.full-size-close:hover {
    border-radius: 40px;
}

.full-size-image,
.full-size-video {
    max-width: 80vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* Enhanced Slide-in Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dotsScale {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}