/* Home Page - Asymmetric 6-Column Grid */
.home-page {
    width: 100%;
}

.home-intro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-intro h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.home-intro p {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.7;
}

/* Asymmetric Grid Layout */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: calc(100vw / 6);
    gap: 2px;
    width: 100%;
    margin-bottom: 80px;
    border: 1px solid var(--border-color);
    min-height: 80vh;
}

.grid-block {
    position: relative;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.grid-block:hover {
    background: var(--image-placeholder);
}

/* Grid Block Sizes */
.grid-block.size-1 {
    grid-column: span 1;
    grid-row: span 1;
}

.grid-block.size-2 {
    grid-column: span 2;
    grid-row: span 1;
}

.grid-block.size-3 {
    grid-column: span 3;
    grid-row: span 1;
}

.grid-block.size-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-block.size-3x2 {
    grid-column: span 3;
    grid-row: span 2;
}

.grid-block.size-tall {
    grid-column: span 1;
    grid-row: span 2;
}

/* Block Content */
.block-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Slideshow Blocks */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow-track {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-placeholder {
    width: 100%;
    height: 100%;
    background: var(--image-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Project Info Overlay */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.grid-block:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 500;
}

.project-overlay p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Company Text Block */
.company-text-block {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: var(--bg-color);
}

.company-text-block p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
    max-width: 200px;
}

/* Adjust for size-1 blocks */
.grid-block.size-1 .company-text-block {
    padding: 15px;
}

.grid-block.size-1 .company-text-block p {
    font-size: 0.7rem;
    line-height: 1.3;
    max-width: 150px;
}

/* Video Block */
.video-block {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-block:hover {
    background: var(--bg-color);
    transform: scale(1.02);
}

.video-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.video-block:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.video-block:hover .play-button {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.play-button svg {
    width: 24px;
    height: 24px;
    color: white;
    margin-left: 2px; /* Slight offset for visual centering */
}

.video-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

/* Typography Blocks */
.typography-block {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
}

.typography-block .large-number {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.typography-block .large-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.typography-block .small-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 8px;
}

/* Capabilities Section */
.capabilities-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    border: 1px solid var(--border-color);
}

.capability-item {
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 30px;
    transition: background-color 0.3s ease;
}

.capability-item:hover {
    background: var(--image-placeholder);
}

.capability-number {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 12px;
}

.capability-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.capability-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

/* Design Process Section */
.process-section {
    margin-bottom: 80px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2px;
    border: 1px solid var(--border-color);
}

.process-step {
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 25px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.process-step:hover {
    background: var(--image-placeholder);
}

.process-step-number {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 0.9rem;
    font-weight: 500;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.process-step p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

/* Project Detail Page */
.project-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
}

.project-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.project-meta-item {
    text-align: center;
}

.project-meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 4px;
}

.project-meta-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.project-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.project-nav-link:hover {
    background: var(--image-placeholder);
}

.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-description-full {
    font-size: 1.1rem;
    line-height: 1.7;
}

.project-details-list {
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.project-details-list h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

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

.project-details-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-details-list li:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    opacity: 0.6;
    font-size: 0.9rem;
}

.detail-value {
    opacity: 0.8;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
    margin-left: 20px;
}

/* Project Gallery */
.project-gallery {
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--image-placeholder);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column; /* Stack image and caption vertically */
    overflow: visible; /* Allow caption space */
}

.gallery-item.full-width {
    grid-column: 1 / -1;
}

/* Image container with aspect ratio */
.gallery-item .lazy-image-container {
    aspect-ratio: 16/10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item.full-width .lazy-image-container {
    aspect-ratio: 21/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-caption {
    margin: 12px 0 0 0;
    padding: 0 12px 12px 12px;
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.4;
    background: var(--bg-color);
}


/* Capabilities Page */
.capabilities-page .grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    width: 100%;
}

.capabilities-page .page-header {
    grid-column: 1 / -1;
}

.services-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background: var(--image-placeholder);
}

.service-number {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Portfolio Page */
.portfolio-page .grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    width: 100%;
}

.portfolio-page .page-header {
    grid-column: 1 / -1;
}

.portfolio-filters {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    background: var(--image-placeholder);
}

.portfolio-item .project-image {
    height: 200px;
    background: var(--image-placeholder);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Information Page */
.information-page .grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    width: 100%;
}

.information-page .page-header {
    grid-column: 1 / -1;
}

.about-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.text-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-image {
    background: var(--image-placeholder);
    min-height: 400px;
    border: 1px solid var(--border-color);
}

/* Contact Page */
.contact-page .grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    width: 100%;
}

.contact-page .page-header {
    grid-column: 1 / -1;
}

.contact-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item p {
    margin: 0;
    opacity: 0.8;
    line-height: 1.6;
}

/* Placeholder styles */
.image-placeholder {
    background-color: var(--image-placeholder);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.5;
    position: relative;
}

.image-placeholder::after {
    content: "Image placeholder";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    opacity: 0.4;
    font-size: 0.8rem;
}
/* Video slide styling */
.slide-video {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-video video,
.slide-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-video video {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* YouTube video overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.youtube-video:hover .video-play-overlay {
    opacity: 1;
}

.play-button-large {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-video:hover .play-button-large {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

/* Video state management */
.slide:not(.active) video {
    opacity: 0.7;
}

.slide.active video {
    opacity: 1;
}

/* Hover effects for MP4 videos */
.mp4-video:hover video {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Mobile video adjustments */
@media (max-width: 768px) {
    .play-button-large {
        width: 50px;
        height: 50px;
    }
    
    .play-button-large svg {
        width: 24px;
        height: 24px;
    }
    
    /* Ensure videos don't auto-transform on mobile to prevent touch issues */
    .mp4-video:hover video {
        transform: none;
    }
}


