/* ─── FEATURES SECTION ─── */
.features {
    border-top: 1px solid var(--line);
    position: relative;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.feature-card {
    padding: 60px 40px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background 0.3s;
}



.feature-card:hover { background: var(--light-grey); }
.feature-card:nth-child(3n) { border-right: none; }
.feature-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    position: relative;
}
.feature-icon::before {
    content: '';
    position: absolute;
    width: 48px; height: 48px;
    border: 1px solid var(--line);
    transform: rotate(45deg);
}
.feature-icon svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 12px;
}
.feature-card p { color: var(--grey); font-size: 15px; }

/* ─── BUILDINGS SECTION ─── */
.buildings {
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}
.buildings::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 1px;
    height: 100%;
    background: var(--line);
}
.section-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 40px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey);
    margin-bottom: 16px;
}
.section-tag .dot { width: 8px; height: 8px; display: inline-block; }
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
}

.building-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
}
.building-row.reverse .building-image { order: 2; }
.building-row.reverse .building-info { order: 1; }

.building-image {
    position: relative;
    overflow: hidden;
    /* height: 100vh; */
    min-height: 100vh;
}
.building-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.building-image img.active { opacity: 1; }
.building-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-size: 18px;
    color: var(--dark);
    user-select: none;
}
.building-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.building-nav.prev { left: 20px; }
.building-nav.next { right: 20px; }
.building-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}
.building-image .img-overlay {
    position: absolute;
    bottom: 0; left: 0;
    padding: 24px 32px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    width: 100%;
    color: #fff;
}
.building-image .img-overlay span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.building-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    position: relative;
}
.building-info::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 50px; height: 30px;
    background-image: url('../old-website/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.building-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 8px;
}
.building-address {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.building-info p {
    font-size: 16px;
    color: var(--grey);
    margin-bottom: 16px;
    line-height: 1.7;
}
.building-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}
.building-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.building-feat .check {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: var(--blue);
    flex-shrink: 0;
}

/* ─── GALLERY SECTION ─── */
.gallery-section {
    padding: 100px 0;
    background: var(--light-grey);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 16px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}
.gallery-item:hover::after { background: rgba(0,0,0,0.15); }

/* ─── GALLERY MOCKUP B STYLE ─── */
.gallery-b {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
    /* border-top: 1px solid var(--line); */
    overflow: hidden;
}
.gallery-b-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 16px;
}
.gallery-b-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--line);
}
.gallery-b-item.span-2 { grid-column: span 2; }
.gallery-b-item.stretch-2 { grid-row: span 2; }
.gallery-b-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1), filter 0.5s;
    filter: brightness(0.85) saturate(0.95);
}
.gallery-b-item:hover img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1);
}
.gallery-b-item .g-label, .hero-image-top .g-label, .hero-image-bottom .g-label {
    position: absolute;
    bottom: 16px; left: 16px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.gallery-b-item:hover .g-label, .hero-image-top:hover .g-label, .hero-image-bottom:hover .g-label { opacity: 1; transform: translateY(0); }

/* ─── TESTIMONIALS ─── */
.testimonials-sliding {
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    border-top: 1px solid var(--line);
}
.testimonials-sliding::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 59px, var(--line) 59px, var(--line) 60px),
        repeating-linear-gradient(90deg, transparent, transparent 59px, var(--line) 59px, var(--line) 60px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    background-attachment: fixed
}
.testimonials-sliding > * { position: relative; z-index: 1; }
.testimonials-sliding-inner {
    max-width: 800px;
    margin: 0 auto;
}
.t-slider-container {
    position: relative;
    overflow: visible;
    margin-top: 48px;
    min-height: 350px;
}
.t-card-slide {
    background: #f1f1f1;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s;
    overflow: visible;
}
.t-card-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}
.t-card-slide.exit-left {
    transform: translateX(-100%);
    opacity: 0;
}
.t-card-slide.exit-right {
    transform: translateX(100%);
    opacity: 0;
}
.t-card-slide .t-yellow {
    position: absolute;
    overflow: visible;
    top: -12px; left: 40px;
    width: 60px; height: 60px;
    background: var(--blue);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #fff;
    line-height: 1;
    padding-top: 4px;
}
.t-card-slide .t-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    margin-top: 24px;
}
.t-card-slide .t-author { font-weight: 700; font-size: 15px; }
.t-card-slide .t-role { font-size: 13px; color: var(--grey); }
.t-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}
.t-controls button {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.t-controls button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.t-all-link {
    text-align: center;
    margin-top: 20px;
}
.t-all-link a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.t-all-link a:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* ─── 3D FLOATING OBJECTS SECTION ─── */
.floating-objects-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    perspective: 1000px;
}
.floating-objects-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 59px, var(--line) 59px, var(--line) 60px),
        repeating-linear-gradient(90deg, transparent, transparent 59px, var(--line) 59px, var(--line) 60px);
    opacity: 0.2;
    pointer-events: none;
    background-attachment: fixed;
}
.floating-objects-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-object {
    position: absolute;
    will-change: transform;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}
.floating-object.idle {
    animation: floatIdle 8s ease-in-out infinite;
}
.floating-object.idle.obj-mortarboard {
    animation: floatIdle 8s ease-in-out infinite, scaleIdle 6s ease-in-out infinite;
}
.floating-object.idle.obj-pencil {
    animation: floatIdle 7s ease-in-out infinite;
    animation-delay: -1s;
}
.floating-object.idle.obj-ruler {
    animation: floatIdle 9s ease-in-out infinite;
    animation-delay: -2s;
}
.floating-object.idle.obj-notepad {
    animation: floatIdle 7.5s ease-in-out infinite;
    animation-delay: -3s;
}
.floating-object.idle.obj-binder {
    animation: floatIdle 8.5s ease-in-out infinite;
    animation-delay: -4s;
}
.floating-object.scrolling {
    animation: none !important;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}
@keyframes floatIdle {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) translateY(0px) translateX(0px); }
    25% { transform: translate(-50%, -50%) rotate(calc(var(--base-rotation, 0deg) + 3deg)) translateY(-4px) translateX(5px); }
    50% { transform: translate(-50%, -50%) rotate(calc(var(--base-rotation, 0deg) - 2deg)) translateY(2px) translateX(-3px); }
    75% { transform: translate(-50%, -50%) rotate(calc(var(--base-rotation, 0deg) + 2deg)) translateY(4px) translateX(4px); }
}
@keyframes scaleIdle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}
.floating-object img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.obj-mortarboard {
    width: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.obj-pencil {
    width: 120px;
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 3;
    --base-rotation: -15deg;
}
.obj-ruler {
    width: 140px;
    top: 60%;
    left: 70%;
    transform: translate(-50%, -50%) rotate(25deg);
    z-index: 2;
    --base-rotation: 25deg;
}
.obj-notepad {
    width: 130px;
    top: 70%;
    left: 25%;
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 4;
    --base-rotation: -10deg;
}
.obj-binder {
    width: 150px;
    top: 25%;
    left: 75%;
    transform: translate(-50%, -50%) rotate(20deg);
    z-index: 1;
    --base-rotation: 20deg;
}
.floating-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}
.floating-text h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(255,255,255,0.8);
}
.floating-text p {
    font-size: 18px;
    color: var(--grey);
    text-shadow: 0 1px 10px rgba(255,255,255,0.8);
}

/* ─── CONTACT SECTION ─── */
.contact {
    padding: 100px 0;
    background: #191919;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255, 255, 255, 0.02) 79px, rgba(255,255,255,0.02) 80px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px);
    pointer-events: none;
}
.contact-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
}
.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 24px;
}
.contact p { color: rgba(255,255,255,0.6); font-size: 16px; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail {
    display: flex; align-items: center; gap: 16px;
    font-size: 16px;
}
.contact-detail .icon {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--blue);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #ddd;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.btn-send {
    padding: 14px 32px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}
.btn-send:hover { background: #2563EB; }

/* ─── FOOTER ─── */
footer {
    padding: 20px;
    text-align: center;
    background: #111111;
}

footer p {
    font-size: 13px;
    color: var(--grey);
}

.white-link {
    text-decoration: 0;
    color: #fff;
}

/* ─── FLOATING GEOMETRIC ELEMENTS ─── */
.geo-float {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.geo-square {
    width: 80px; height: 80px;
    border: 1px solid var(--line);
}
.geo-filled { background: var(--blue); opacity: 0.6; }

/* ─── LIGHTBOX ─── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 48px; height: 48px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.lightbox-close:hover { border-color: #fff; }

/* ─── GALLERY TOGGLE ─── */
.toggle-gallery {
    display: none;
}
.toggle-gallery-label {
    display: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr; }
    .building-row { grid-template-columns: 1fr; }
    .building-row.reverse .building-image { order: 1; }
    .building-row.reverse .building-info { order: 2; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-b-grid { grid-template-columns: 1fr 1fr; }
    .gallery-b-item.span-2 { grid-column: span 1; }
    .gallery-b-item.stretch-2 { grid-row: span 1; }
    .contact-inner { grid-template-columns: 1fr; }
    .building-image { min-height: 550px; }
}
@media (max-width: 768px) {
    .building-info { padding: 40px 24px; }
    .gallery-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .gallery-item.tall, .gallery-item.wide { grid-row: span 1; grid-column: span 1; }
    .gallery-b-grid { 
        grid-template-columns: 1fr; 
        grid-auto-rows: auto;
    }
    .gallery-b-item {
        height: 250px;
    }
    .contact-inner { padding: 0 20px; gap: 40px; }
    .feature-card { padding: 36px 24px; }
    .building-image { min-height: 400px; }
    
    /* Gallery toggle on mobile */
    .gallery-extra {
        display: none;
    }
    .toggle-gallery-label {
        display: block;
        grid-column: 1 / -1;
        align-self: start;
        min-height: auto;
        height: fit-content;
        text-align: center;
        padding: 16px 24px;
        margin: 20px auto 0;
        background: var(--dark);
        color: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.2s;
        max-width: 200px;
        width: fit-content;
    }
    .toggle-gallery-label:hover {
        background: var(--blue);
    }
    .toggle-gallery-label .show-less {
        display: none;
    }
    .toggle-gallery:checked ~ .gallery-extra {
        display: block;
    }
    .toggle-gallery:checked ~ .toggle-gallery-label .show-more {
        display: none;
    }
    .toggle-gallery:checked ~ .toggle-gallery-label .show-less {
        display: block;
    }
}
