/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #d4af37;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --spacing-xl: 5rem;
    --spacing-lg: 3rem;
    --spacing-md: 2rem;
    --spacing-sm: 1rem;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Spacing Utilities */
.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Gallery Section */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-bg);
}

.gallery-filters {
    margin-bottom: var(--spacing-lg);
    padding: 0 1rem;
}

.typology-filter,
.work-filter {
    margin-bottom: var(--spacing-md);
}

.typology-filter h3,
.work-filter h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 2px;
}

.filter-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-btn:hover:after,
.filter-btn.active:after {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 1;
    transition: all 0.3s ease;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transform: translateY(0);
    opacity: 0.9;
    transition: all 0.3s ease 0.1s;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(20px);
    opacity: 0;
}

/* Projects Section */
.projects-section {
    padding: var(--spacing-xl) 0;
}

.project-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 10%;
}

.project-image img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

/* Philosophy Section */
.philosophy-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.philosophy-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.point {
    margin-bottom: 2rem;
}

.point h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Press Section */
.press-section {
    padding: 5rem 0;
}

.press-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.press-item {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.press-item:hover {
    transform: translateY(-5px);
}

.press-logo {
    margin-bottom: 1rem;
}

.press-date {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.experience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.exp-item {
    text-align: center;
}

.exp-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    background-color: transparent;
}

.form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--accent-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 2rem 0;
}

.social-link {
    color: white;
    margin-left: 1.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-row {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .hero-modern {
        height: 50vh;
        padding: 0 0.25rem;
    }
    
    .hero-resident-card {
        max-width: 500px;
        padding: 1.2rem 1.5rem 1.2rem 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    .gallery-overlay h3 {
        font-size: 0.9rem;
    }

    .gallery-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .project-item {
        aspect-ratio: 3/2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .hero-modern {
        height: 40vh;
        padding: 0 0.15rem;
    }

    .gallery-overlay {
        padding: 0.5rem;
    }

    .gallery-overlay h3 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .gallery-overlay p {
        font-size: 0.7rem;
    }

    .project-row {
        padding: 0 0.5rem;
    }
    
    .hero-resident-card {
        max-width: 100%;
        padding: 1rem 1.2rem 1rem 1rem;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .project-item {
        aspect-ratio: 3/2;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
        
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .gallery-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .gallery-item:hover img,
    .project-item:hover img {
        transform: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lb-data .lb-details {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lb-closeContainer {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.lb-close {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lb-outerContainer {
    border-radius: 1rem;
    background: transparent;
}

.lb-dataContainer {
    border-radius: 0 0 1rem 1rem;
    background: transparent;
}

.lb-data {
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Navigation */
.navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: rgb(22, 22   , 84);
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 1rem;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('./evgeniy-surzhan-lVWozBOVY2M-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content .lead {
    font-size: 1.5rem;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0.5rem auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

.view-project {
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.view-project:hover {
    background-color: white;
    color: var(--primary-color);
}

/* --- Modern Revamp Styles --- */
.main-frame {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
    width: 100vw;
    min-height: 95vh;
    box-sizing: border-box;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.main-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #666;
}

.nav-links li a.active {
    color: #000;
    font-weight: 600;
}

.nav-menu-icon {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-menu-icon div {
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    padding: 2rem;
    z-index: 1001;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .nav-links {
    flex-direction: column;
    gap: 1.5rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-menu-icon {
        display: flex;
    }
}

.hero-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    animation: fadeInUp 1s ease-out;
    padding: 0 0.5rem;
}

.hero-modern + .hero-modern {
    margin-top: 2rem;
    animation-delay: 0.5s;
}

.hero-modern + .hero-modern .hero-resident-card {
    animation-delay: 0.5s;
}

.hero-modern + .hero-modern .resident-title-row {
    animation-delay: 0.8s;
}

.hero-modern + .hero-modern .resident-subtext {
    animation-delay: 1s;
}

.hero-modern + .hero-modern .show-listing-btn {
    animation-delay: 1.2s;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: scaleIn 1.5s ease-out;
}

.hero-resident-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 550px;
    width: 500px;
    position: relative;
    z-index: 1;
    margin: 0;
    animation: float 6s ease-in-out infinite;
}

.resident-title-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.resident-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.resident-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 0.3rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
}

.resident-subtext {
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-left: auto;
    margin-right: 1.5rem;
    text-align: right;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.show-listing-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.8rem;
    padding: 0.7rem 1.7rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.show-listing-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.arrow-right {
    font-size: 1.3em;
    font-weight: 700;
    margin-left: 0.2em;
    transition: transform 0.3s ease;
}

.show-listing-btn:hover .arrow-right {
    transform: translateX(5px);
}

/* Hide all other sections for now */
.hero-section, .gallery-section, .projects-section, .philosophy-section, .about-section, .contact-section, .footer, nav.navbar, .navbar { display: none !important; }

@media (max-width: 900px) {
    .main-frame { max-width: 100vw; border-width: 0; border-radius: 0; }
    .hero-resident-card { 
        flex-direction: column; 
        gap: 1.2rem; 
        padding: 1.2rem; 
        align-items: center; 
    }
    .resident-title { font-size: 2.2rem; }
    .resident-subtext { 
        text-align: center; 
        margin: 0; 
    }
}

.featured-projects {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
}

.project-card {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.project-image-container {
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.project-title-row {
    display: flex;
    align-items: flex-end;
    gap: 1.2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 0.3rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

.project-subtext {
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-left: auto;
    margin-right: 1.5rem;
    text-align: right;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .project-info {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem;
        align-items: center;
    }
    
    .project-subtext {
        text-align: center;
        margin: 0;
    }
    
    .project-image-container {
        height: 40vh;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    margin-top: 64px;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 80vh;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    animation: fadeInUp 1s ease-out;
    padding: 0 0.5rem;
}

.inner-gallery {
    height: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 1;
    transition: all 0.3s ease;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transform: translateY(0);
    opacity: 0.9;
    transition: all 0.3s ease 0.1s;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(20px);
    opacity: 0;
}

@media (max-width: 1200px) {
    .project-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-modern {
        height: 60vh;
    }
    
    .inner-gallery {
        height: auto;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-modern {
        height: 50vh;
    }

    .content-grid {
        margin-top: 56px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }

    .inner-gallery {
        padding: 0.3rem;
    }

    .gallery-item {
        aspect-ratio: 1;
    }
}

/* Custom Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.modal-image-container {
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.modal-caption {
    text-align: center;
    color: white;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.modal-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.close-modal {
    position: absolute;
    top: -2rem;
    right: -2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
    
    .close-modal {
        top: -1.5rem;
        right: -1.5rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Landing Page Styles */
.landing-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.247);
}

.landing-section .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landing-section .hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.landing-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.landing-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.landing-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.features-section {
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
}

.about-preview {
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.learn-more {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.modern-footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .landing-section h1 {
        font-size: 3rem;
    }
    
    .landing-section .lead {
        font-size: 1.2rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        padding: 3rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .landing-section h1 {
        font-size: 2.5rem;
    }
    
    .landing-section .lead {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
    }
    
    .about-preview {
        padding: 3rem 1rem;
    }
}

/* Portfolio Page Styles */
.portfolio-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.05);
}

.flipbook {
    width: 922px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.flipbook .page {
    background: #fff;
    background-size: 100% 100%;
}

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

.flipbook .hard {
    background: #ccc;
    color: #333;
    text-align: center;
    font-weight: bold;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(45deg, #f3f3f3, #e6e6e6);
}

.cover-content, .back-cover-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.cover-content h1, .back-cover-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cover-content p, .back-cover-content p {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.book-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.book-nav-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

#page-num, #page-count {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 992px) {
    .flipbook {
        width: 100%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .flipbook {
        height: 400px;
    }

    .book-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .book-nav-btn {
        width: calc(50% - 0.5rem);
    }

    .cover-content h1, .back-cover-content h2 {
        font-size: 2rem;
    }

    .cover-content p, .back-cover-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .flipbook {
        height: 300px;
    }
}

/* Showcase Section */
.showcase-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222;
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #222;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-link:hover::after {
    transform: scaleX(1);
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: white;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
}

.services-text {
    text-align: center;
}

.services-text h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
}

.services-text > p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    padding: 30px;
    background: #f8f8f8;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    line-height: 1.5;
}

.services-cta {
    display: inline-block;
    padding: 15px 30px;
    background-color: #222;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.services-cta:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .section-header h2,
    .services-text h2 {
        font-size: 2rem;
    }
    
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card,
    .service-item {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Partnership and Agency Projects */
.partnership-projects,
.agency-projects {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.partnership-projects {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.partnership-grid .project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.partnership-grid .project-card:hover {
    transform: translateY(-5px);
}

.partnership-grid .project-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.partnership-grid .project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.partnership-grid .project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.partnership-grid .project-info h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.partnership-grid .project-info p {
    margin: 0.5rem 0;
    color: var(--text-color);
    flex-grow: 1;
}

.agency-projects {
    padding: var(--spacing-xl) 0;
    position: relative;
    background-color: var(--light-bg);
}

.agency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.agency-grid .project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agency-grid .project-card:hover {
    transform: translateY(-5px);
}

.agency-grid .project-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.agency-grid .project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.agency-grid .project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.agency-grid .project-info h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.agency-grid .project-info p {
    margin: 0.5rem 0;
    color: var(--text-color);
    flex-grow: 1;
}

.project-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 12px;
    color: white;
}

.partnership-grid .project-tag {
    background: #1761a0;
}

.agency-grid .project-tag {
    background: #222;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin: 12px 0;
    color: #222;
    font-weight: 600;
}

.project-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #222;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-link:hover::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .partnership-projects,
    .agency-projects {
        padding: 60px 20px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
} 