﻿@charset "UTF-8";
/* CSS Document */

/* ===== CSS VARIABLES ===== */
:root {
--bg-color: #121212;
--text-color: #FDFFFC;
--font-weight: 100;
--text-color-faded: rgba(253, 255, 252, 0.7);
--border-color: rgba(253, 255, 252, 0.7);
--border-color-faded: rgba(253, 255, 252, 0.2);
--transition: 0.3s ease;
--bg-overlay: transparent;
--hover-bg: rgba(253, 255, 252, 0.05);
}
/* ===== LIGHT MODE VARIABLES ===== */
:root.light-mode {
--bg-color: #FDFFFC;
--text-color: #121212;
--text-color-faded: rgba(18, 18, 18, 0.7);
--border-color: rgba(18, 18, 18, 0.7);
--border-color-faded: rgba(18, 18, 18, 0.2);
--bg-overlay: transparent;
--hover-bg: rgba(18, 18, 18, 0.05);
}
:root.light-mode .modal-nav, :root.light-mode .modal-close {
    color: #121212;
}
:root.light-mode .project-modal, :root.light-mode .contact-modal {
    background-color: var(--bg-color);
}
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "argent-pixel-cf", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-weight: 200;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
}
body.loading, body.no-scroll {
    overflow: hidden;
}
/* ===== LAYOUT CONTAINER ===== */
.main-container {
    width: 100%;
    max-width: 1400px;
    padding: 40px;
    margin: 0 auto;
    overflow-x: hidden;
}
/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color-faded);
    padding-bottom: 20px;
    transition: border-color var(--transition);
}
.logo {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--text-color-faded);
}
/* ===== FILTER SECTION ===== */
.filter-container {
    margin-bottom: 40px;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.filter-btn {
    background: transparent;
    color: var(--text-color);
    padding: 8px 15px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
    font-weight: 300;
    border: 0.5px solid var(--border-color-faded);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--hover-bg);
    border-color: var(--text-color);
}
/* ===== ACCORDION ===== */
.accordion-container {
    margin-bottom: 60px;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    cursor: pointer;
    transition: border-color var(--transition);
}
.accordion-header span {
    font-size: 16px;
    font-weight: 500;
}
.accordion-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}
.accordion-toggle.active {
    transform: rotate(45deg);
}
/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-grid.open {
    max-height: 10000px;
}
.portfolio-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    display: none;
}
.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-item.show {
    display: block;
}
/* ===== IMAGE FRAME ===== */
.image-frame {
    width: 100%;
    aspect-ratio: 7/5;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    background-color: #121212;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* ===== CAROUSEL ===== */
.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
.portfolio-item .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    color: #121212;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.carousel-arrow:hover{
	color: var(--text-color);
}
.carousel-arrow-left {
    left: 5px;
}
.carousel-arrow-right {
    right: 5px;
}
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.carousel-dot {
    background-color: var(--text-color-faded);
    width: 6px;
    height: 6px;
    cursor: pointer;
    transition: background-color var(--transition);
}
.carousel-dot.active {
    background-color: var(--text-color);
}
/* ===== PROJECT DETAILS ===== */
.item-details {
    text-align: left;
}
.item-details h2 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}
.item-details p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-color-faded);
}
/* ===== TAGS & EXPAND BUTTON ===== */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}
.tag {
    background: none;
    border: 0.5px solid var(--border-color-faded);
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-color-faded);
}
.expand-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--text-color);
    font-size: 18px;
    transition: all var(--transition);
}
.expand-btn:hover {
    transform: scale(1.1);
}
/* ===== MODAL SIMPLIFIÉ ===== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-modal.active {
    display: flex;
    opacity: 1;
}
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.modal-close:hover {
    opacity: 0.7;
}
.modal-image-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 80px 100px;
}
.modal-image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.modal-nav:hover {
    opacity: 1;
}
.modal-nav.prev {
    left: 20px;
}
.modal-nav.next {
    right: 20px;
}
.modal-info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    z-index: 10000;
}
.modal-info .modal-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}
.modal-info .modal-counter {
    font-size: 13px;
    color: var(--text-color-faded);
}
/* ===== CONTACT MODAL ===== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    opacity: 0;
    background-color: var(--bg-color);
    transition: opacity var(--transition);
}
.modal-content {
    width: 90%;
    max-width: 600px;
    padding: 40px;
    background-color: var(--bg-color);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color-faded);
}
.modal-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-color);
}
.contact-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color-faded);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--text-color);
}
.submit-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color-faded);
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
    display: block;
    width: 100%;
}
.submit-btn:hover {
    background: var(--hover-bg);
    border-color: var(--text-color);
}
/* ===== ABOUT SECTION ===== */
.about-section {
    max-width: 800px;
    margin: 80px auto;
    padding-top: 60px;
    border-top: 1px solid var(--border-color-faded);
}
.about-section h2 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 500;
    color: var(--text-color);
}
.about-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color-faded);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.about-block h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
}
.about-block p, .about-block ul {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color-faded);
}
.about-block ul {
    margin-left: 20px;
    margin-bottom: 15px;
}
.about-block li {
    margin-bottom: 8px;
}
/* ===== FOOTER ===== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color-faded);
    margin-top: 80px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-info {
    max-width: 300px;
}
.footer-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
}
.footer-info p {
    color: var(--text-color-faded);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--text-color-faded);
}
.copyright {
    margin-top: 40px;
    font-size: 12px;
    text-align: center;
    color: var(--text-color-faded);
}
/* ===== LOADER ===== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
.loader {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.shape {
    width: 20px;
    height: 20px;
    background: var(--text-color);
    animation: bounce 1s infinite;
}
.circle {
    border-radius: 50%;
    animation-delay: 0s;
}
.square {
    animation-delay: 0.2s;
}
.triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--text-color);
    animation-delay: 0.4s;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-15px);
}
}

/* ===== RESPONSIVE DESIGN ===== */

/* TABLET */
@media (max-width: 1024px) {
.main-container {
    padding: 30px;
}
header {
    margin-bottom: 40px;
    align-items: flex-start;
}
.nav-links {
    gap: 20px;
}
.portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.about-section {
    margin: 60px 20px;
    padding-top: 50px;
}
footer {
    margin-top: 60px;
}
}

/* MOBILE */
@media (max-width: 768px) {
.main-container {
    padding: 20px;
}
header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}
.logo {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 10px;
}
.nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
}
.filter-container {
    margin-bottom: 30px;
}
.filter-buttons {
    gap: 10px;
}
.filter-btn {
    font-size: 13px;
    padding: 6px 12px;
}
.accordion-header {
    padding: 20px 0;
}
.portfolio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
/* Modal mobile */
.modal-image-viewer {
    padding: 60px 20px 120px;
}
.modal-close {
    top: 15px;
    right: 15px;
    font-size: 28px;
}
.modal-nav {
    font-size: 32px;
    width: 50px;
    height: 50px;
}
.modal-nav.prev {
    left: 10px;
}
.modal-nav.next {
    right: 10px;
}
.modal-info {
    bottom: 20px;
}
.modal-info .modal-title {
    font-size: 14px;
}
.modal-info .modal-counter {
    font-size: 12px;
}
.about-section {
    margin: 40px 0;
    padding-top: 30px;
}
.about-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
}
.about-content {
    font-size: 13px;
    line-height: 1.5;
}
.about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}
.about-block h3 {
    font-size: 15px;
}
.about-block p, .about-block ul {
    font-size: 13px;
}
footer {
    padding: 30px 0;
    margin-top: 40px;
}
.footer-content {
    flex-direction: column;
    gap: 20px;
}
.footer-info {
    max-width: 100%;
}
.footer-info h3 {
    font-size: 15px;
}
.footer-links a {
    font-size: 13px;
}
.copyright {
    margin-top: 30px;
    font-size: 11px;
}
.free {
    display: none;
}
}

/* LANDSCAPE MOBILE */
@media (max-width: 768px) and (orientation: landscape) {
.modal-image-viewer {
    padding: 40px 20px 80px;
}
.modal-info {
    bottom: 15px;
}
}