/* ============================================
   ROOT VARIABLES
============================================ */
:root {
    --color-primary: #051a30;
    --color-accent: #e74c3c;
    --color-bg: #f2f1eb;
    --color-text: #051a30;
}

/* ============================================
   BASE
============================================ */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    text-align: left;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    direction: ltr;
    margin: 0;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease, box-shadow 1.5s ease;
}

h1 {
    color: var(--color-text);
    margin-bottom: 16px;
}

h2 {
    color: var(--color-text);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 4px;
}

p {
    color: var(--color-text);
    margin-bottom: 14px;
    font-size: 14px;
}

/* ============================================
   HEADER & NAV
============================================ */
header {
    position: fixed;
    top: 0;
    left: 40px;
    right: 40px;
    background-color: var(--color-primary);
    padding: 14px 40px;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.home-page .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nav-links a {
    color: var(--color-bg);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-bg);
}

.nav-links a:hover::after {
    width: 100%;
}

#navLinks a.active {
    color: #ed6f61;
}

.back-home {
    color: var(--color-bg);
    text-decoration: none;
    padding: 4px 16px;
    background: var(--color-accent);
    border-radius: 30px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.back-home:hover {
    background: #c0392b; 
}


/* ============================================
   DROPDOWN
============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-primary);
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1;
    top: 100%;
    right: 0;
}

.dropdown-content a {
    display: block;
    padding: 8px 16px;
    color: var(--color-bg);
}

.dropdown-content a:hover {
    background-color: var(--color-accent);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ============================================
   HOME HEADER
============================================ */
.home-header {
    position: relative;
}

.home-header h1,
.home-header p {
    margin-right: 200px;
    text-align: left;
}

.home-header h2 {
    display: block;
    text-align: left;
    direction: ltr;
    border-bottom: none;
    margin-right: 200px;
}

/* ============================================
   MAIN & SECTION
============================================ */
main {
    margin: 100px 40px 40px;}

section {
    background-color: var(--color-bg);
    border-radius: 12px;
    margin-bottom: 32px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);}

/* ============================================
   FOOTER
============================================ */
footer {
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: 8px 40px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-content span,
.footer-content .footer-year {
    font-size: 13px;
    color: var(--color-bg); 
}


/* ============================================
   HOME PAGE
============================================ */

/* ====== تنظیمات صفحه اصلی ====== */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.home-page main {
    flex: 1;  /* ← این باعث میشه فوتر به پایین بچسبه */
}

#landing-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    min-height: 60vh;  /* ← ارتفاع مناسب */
}

#landing-hero p {
    font-size: 18px;
    max-width: 700px;
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--color-accent);  
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 2px;
    direction: rtl; 
    animation: blink-caret 0.75s step-end infinite;
}

.typewriter.done {
    border-right: none; 
    animation: none;
}

.demo-reel-box {
    width: 100%;
    margin-top: 40px;
}

.demo-reel-box video {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-accent); }
}


/* ============================================
   CONTACT
============================================ */
.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
    align-items: stretch;
    border-radius: 16px;
}

.contact-info {
    flex: 1;
    background: var(--color-bg);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    display: flex;
    margin: 15px 0;
    font-size: 14px;
}

.contact-info .label {
    width: 170px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.contact-info .value {
    flex: 1;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.submit-btn {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: var(--color-accent);
}

/* ============================================
   AUTH
============================================ */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-box {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* ============================================
   INTRO
============================================ */
#intro {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eye {
    position: relative;
    width: 240px;
    height: 240px;
}

.eyeball {
    position: absolute;
    inset: 0;
    border: 4px solid black;
    border-radius: 50%;
}

.pupil {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-accent);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.18s ease, height 0.18s ease, border-radius 0.18s ease, transform 0.18s ease;
}

.eyeball.focus .pupil {
    width: 12px;
    height: 50px;
    border-radius: 12px;
}

.eyeball {
    transition: transform 0.18s ease;
}

.eyeball.focus {
    transform: scale(0.95);
}

/* ============================================
   CV
============================================ */
.cv-body main {
    margin: 80px 100px 0;
    padding: 40px;
    box-sizing: border-box;
}

.cv-body p,
.cv-item p,
.cv-list li {
    text-align: justify;
    line-height: 1.8;
    word-spacing: 0.5px;
}


/* Title + Download Button */

.cv-title-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 10px;
}

.cv-title-row h1 {
    margin: 0;
}


/* Contact */

.cv-contact {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.cv-contact p {
    margin: 0;
    font-size: 14px;
}


/* Sections */

.cv-section {
    margin-bottom: 30px;
}

.cv-item {
    margin-bottom: 25px;
}

.cv-item h3 {
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 18px;
}

.cv-date,
.cv-honor {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.cv-item p {
    margin: 5px 0;
    color: #666;
    line-height: 1.5;
}


/* Skills */

.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 14px;
}

.skill-title {
    margin: 18px 0 4px;
    color: var(--color-primary);
    font-size: 18px;
}


/* Lists */

.cv-list {
    padding-left: 20px;
    margin: 15px 0 30px;
}

.cv-list li {
    margin: 8px 0;
    line-height: 1.5;
    font-size: 14px;
}


hr {
    margin: 25px 0;
}

.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 14px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cv-download:hover {
    background-color: var(--color-accent);
    color: white;
}


/* ============================================
   ABOUT
============================================ */
.about-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.about-body main {
    flex: 1;
}

.arch-left-about {
    position: fixed;
    left: 40px;
    bottom: 95px;
    width: 400px;
    height: 500px;
    background: var(--color-primary);
    border-radius: 250px 250px 20px 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.about-body .about-text {
    padding-left: 40px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideFadeIn 1.2s ease forwards;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-body main {
    position: relative;
}

.about-social {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 15px;
}

.social-icon {
    text-decoration: none;
    color: var(--color-text);
    padding: 8px 20px;
    border-radius: 40px;
    background: var(--color-bg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.social-icon:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}

/* ============================================
   ANIMATION
============================================ */
.animation-page {
    background-color: var(--color-bg);
}


.page-title {
    text-align: center;
    margin: 40px 0;
}

.animation-project {
    position: relative;
    overflow: hidden;
    max-width: 1300px;
    margin: 40px auto;

    display: flex;
    align-items: stretch;

    background: white;
    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.project-slider {
    display: flex;
    width: 200%;
    flex-shrink: 0;

    transition: transform 0.5s ease;
}


#slider-2,
#slider-3 {
    width: 300%;
}


.project-slide {
    width: 50%;
    flex-shrink: 0;

    display: flex;
    align-items: stretch;

    min-height: 350px;

    opacity: 1 !important;
    transition: none !important;
}

#slider-2 .project-slide,
#slider-3 .project-slide {
    width: 33.333333%;
}


.project-slide .project-poster {
    flex: 1;
    min-width: 0;
    min-height: 350px;

    background: #f0f0f0;
}

.project-slide .project-poster img,
.project-slide .project-poster video {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.project-slide .project-info {
    flex: 1;

    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: white;
    position: relative;
}

.project-slide .project-info h3 {
    font-size: 24px;
    margin: 0 0 10px;

    color: var(--color-primary);
}

.project-slide .project-info p {
    margin: 8px 0;

    color: #666;
    line-height: 1.6;

    text-align: justify;
}


.project-slider .project-slide:not(:first-child) .project-info {
    background: var(--color-primary, #2c3e50);
    color: white;
}

.project-slider .project-slide:not(:first-child) .project-info h3 {
    color: white;
}

.project-slider .project-slide:not(:first-child) .project-info p {
    color: #e0e0e0;
}


.project-status {
    display: inline-block;

    padding: 4px 12px;
    margin-bottom: 20px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 500;

    width: fit-content;
}

.project-status.in-progress {
    background: #fff3e0;
    color: #e67e22;
}

.project-status.concept {
    background: #e0f0ff;
    color: #3498db;
}

.project-logline {
    font-size: 18px;
    font-style: italic;

    color: var(--color-text);

    border-right: 3px solid var(--color-accent);

    padding-right: 15px;
    margin: 0 0 15px;
}


.project-slider .project-slide:not(:first-child) .project-logline {
    color: #e0e0e0;
}


.project-desc {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.slide-controls {
    position: absolute;

    top: 15px;
    right: 15px;

    display: flex;
    flex-direction: row-reverse;
    gap: 8px;

    z-index: 10;
}



.slide-controls button {
    border: none;

    padding: 6px 14px;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 500;

    color: white;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        transform 0.2s ease;

    backdrop-filter: blur(4px);
}


.slide-controls button:hover {
    transform: translateY(-1px);
}


.slide-controls .show-more-btn {
    background: var(--color-accent);
}

.slide-controls .show-more-btn:hover {
    background: #c0392b;
}


.slide-controls .back-btn {
    background: var(--color-accent);
}

.slide-controls .back-btn:hover {
    background: #c0392b;
}


.slide-controls .next-btn {
    background: var(--color-accent);
}

.slide-controls .next-btn:hover {
    background: #c0392b;
}



@media (max-width:768px) {

    .animation-project {
        overflow: hidden;
    }


    .project-slider,
    #slider-2,
    #slider-3 {
        width:100%;
        display:flex;
    }


    .project-slide,
    #slider-2 .project-slide,
    #slider-3 .project-slide {

        width:100%;
        flex-shrink:0;

        flex-direction:column;

        box-sizing:border-box;
    }


    .project-slide .project-poster {

        width:100%;
        height:auto;
        min-height:0;
    }


    .project-slide .project-poster img,
    .project-slide .project-poster video {

        width:100%;
        height:auto;

        object-fit:contain;
        display:block;
    }


    .project-slide .project-info {

        width:100%;

        padding:20px;

        box-sizing:border-box;

        overflow-wrap:anywhere;
    }


    .project-slide .project-info p {

        max-width:100%;

        overflow-wrap:anywhere;
        word-break:break-word;
    }


    .slide-controls {

        position:static;

        margin-top:25px;

        display:flex;

        flex-direction:row-reverse;

        gap:10px;
    }

}


/* ============================================
   ILLUSTRATION
============================================ */
.illustration-body {
    background-color: var(--color-bg);
}

.page-title {
    text-align: left;
    margin: 40px 60px 20px 60px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-accent);
    width: calc(100% - 120px);
}

.project-container {
    max-width: 1300px;
    margin: 60px auto;
    background: var(--color-bg);
    border-radius: 24px 24px 8px 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title-overlay {
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-bg);
    padding: 40px 30px 20px;
}

.project-title-overlay h3 {
    margin: 0;
    font-size: 28px;
}

.project-description {
    padding: 20px 36px 8px 36px;
    background: var(--color-bg);
}

.project-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 12px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 36px 36px 36px;
}

.gallery-item {
    background: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.text-slider-container {
    position: relative;
    padding: 30px 50px;
}

.text-slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.text-slide {
    flex: 0 0 100%;
    padding: 0 10px;
}

.text-content {
    text-align: center;
}

.text-content h4 {
    margin: 0 0 15px;
    font-size: 20px;
    color: var(--color-accent);
}

.text-content p {
    margin: 0;
    line-height: 1.7;
    color: #666;
}

.text-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.text-slider-btn:hover {
    background: var(--color-accent);
}

[class*="prev-"] {
    left: 10px !important;
    right: auto !important;
}

[class*="next-"] {
    right: 10px !important;
    left: auto !important;
}

.text-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: var(--color-accent);
    width: 20px;
    border-radius: 4px;
}

/* ============================================
   DRAWING
============================================ */
.drawing-body {
    margin: 0;
    padding: 0;
}

.drawing-body main {
    padding: 0;
    height: calc(100vh - 160px);
    margin-bottom: 40px;
    position: relative;
}

.fullscreen-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-container-full {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

.slider-container-full:active {
    cursor: grabbing;
}

.slider-track-full {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.slide-full {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--color-bg);
    padding: 40px 20px 20px;
}

.slide-caption h3 {
    margin: 0;
    font-size: 28px;
}

.slide-caption p {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--color-bg);
    opacity: 0.8;
}

.slider-btn-full {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.slider-btn-full:hover {
    background: var(--color-accent);
}

.prev-btn-full {
    left: 20px;
}

.next-btn-full {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: var(--color-accent);
    width: 24px;
    border-radius: 5px;
}

.slider-counter-full {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--color-bg);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

.drawing-body footer {
    position: relative;
    z-index: 5;
}

/* ============================================
   ORIGAMI
============================================ */
.origami-body .slider-container {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: grab;
}

.origami-body .slider-container:active {
    cursor: grabbing;
}

.origami-body .slider-track {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.origami-body .slide {
    position: relative;
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 530px;
    background: transparent;
}

.origami-body .image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 24px;
    flex-shrink: 0;
}

.origami-body .image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.origami-body .slide:hover .image-wrapper img {
    transform: scale(1.05);
}

.origami-body .video-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 24px;
    flex-shrink: 0;
}

.origami-body .video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: var(--color-primary);
}

.origami-body .slide-text {
    width: 100%;
    padding: 14px 4px 0;
    box-sizing: border-box;
}

.origami-body .text-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.origami-body .text-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.origami-body .photo-counter {
    width: 100%;
    margin: 20px 0 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.origami-body .section-title {
    width: 100%;
    text-align: center;
    margin: 0 0 20px;
    font-weight: 600;
}

.origami-body .section-title .photo-counter {
    display: inline;
    margin-left: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

/* ============================================
   3D MODELING
============================================ */
.modeling-body .slider-container {
    padding: 0 40px;
    box-sizing: border-box;}

.modeling-body .slider-container {
    width: 100%;
    overflow: hidden;
    cursor: grab;}

.modeling-body .slider-container:active {
    cursor: grabbing;}

.modeling-body .slider-track {
    margin-top: 20px;
    display: flex;
    transition: transform 0.3s ease;
    gap: 10px;}

.modeling-body .slide {
    position: relative;
    flex-shrink: 0;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 24px;
    background: var(--color-primary);}

.modeling-body .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    pointer-events: none;
    transition: transform 0.35s ease;}

.modeling-body .slider-wrapper {
    margin-bottom: 60px;}

.modeling-body .photo-counter {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
    width: 100%;}

.modeling-body .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: 0.35s ease;
}

.overlay span {
    color: var(--color-bg);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transform: translateY(15px);
    transition: 0.35s ease;}

.slide:hover .overlay {
    opacity: 1;}

.slide:hover .overlay span {
    transform: translateY(0);}

.slide:hover img {
    transform: scale(1.05);}

.project-btn {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--color-bg);
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;}

.project-btn:hover {
    background: rgba(255, 255, 255, 0.18);}

.modal {
    position: fixed;
    inset: 0;
    justify-content: center;
    padding: 40px 200px;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
    z-index: 9999;}

.modal.active {
    opacity: 1;
    visibility: visible;}

.modal-box {
    height: 90%;
    max-height: 100%;
    background: var(--color-primary);
    border-radius: 24px;
    padding: 40px;
    bottom: 40px;
    color: var(--color-bg);
    transform: scale(0.92);
    transition: 0.35s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    position: relative;}

.modal.active .modal-box {
    transform: scale(1);}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-bg);
    font-size: 24px;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;}

.modal-close:hover {
    background: var(--color-accent);
    transform: rotate(90deg);}

.modal-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;}

.modal-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;}

.modal-images img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 16px;
    background: #222;}

.modal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;}

.modal-text h2 {
    font-size: 28px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 8px;}

.modal-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;}

.project-meta div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);}

.project-meta span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;}

.project-meta strong {
    color: #fff;
    font-size: 14px;}

body.modal-open {
    overflow: hidden;}

body.modal-open main {
    transition: 0.35s;
    filter: blur(5px);
    transform: scale(0.985);}

.slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 24px;
    background: var(--color-primary);}

.modeling-body .section-title {
    width: 100%;
    text-align: center;
    margin: 0 0 20px;
    font-weight: 600;}

.modeling-body .section-title .photo-counter {
    display: inline;
    margin-left: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;}

/* ============================================
   PHOTOGRAPHY
============================================ */

.photography-container {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    width: 100%;
}

.photography-arch {
    width: 100%;
    position: relative;
    background: var(--color-primary);
    border-radius: 50px 50px 12px 12px;
    overflow: hidden;
    height: 400px;
    margin: 0;
}

.photography-slideshow {
    width: 100%;
    height: 100%;
}

.photography-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photography-prev,
.photography-next {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-bg);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.photography-prev {
    right: 20px;
}

.photography-next {
    left: 20px;
}

.photography-prev:hover,
.photography-next:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: scale(1.05);
}

.thumbnail-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.thumbnail-item {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: 0.3s;
    aspect-ratio: 16 / 10;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.photography-categories {
    margin-top: 30px;
    width: 100%;
}

.photography-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.photography-body main {
    flex: 1;
    margin-left: 25px !important;
    margin-right: 25px !important;
}

.photo-caption-wrapper {
    overflow: hidden;
    height: 24px;
}

.photo-caption {
    font-size: 14px;
    color: #555;
    font-weight: 400;
    display: block;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}