/* Import Instrument Serif font */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Serif', serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff;
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: 6rem;
    color: white;
}

/* Grid Container */
.grid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 2px;
    padding: 2px;
}

/* Ensure tiles are square */
.grid-container::before {
    content: '';
    width: 0;
    padding-bottom: 100%;
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.grid-container > *:first-child {
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

/* Tile Styles */
.tile {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    animation: moveUpDown 15s ease-in-out infinite;
    background-color: #ffffff;
}

.tile:nth-child(even) {
    animation-name: moveDownUp;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.85;
    filter: brightness(0.9) contrast(0.9) grayscale(0.1) sepia(0.1);
    mix-blend-mode: luminosity;
}

/* Tile hover effect */
.tile:hover img {
    transform: scale(1.1);
    opacity: 0.95;
}

/* Animations */
@keyframes moveUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes moveDownUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.75)
    );
    z-index: 1;
    pointer-events: none;
}

/* Hero Text */
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-text h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: -2rem;
    letter-spacing: 0.2em;
    color: #000000;
}

.hero-text p {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #000000;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Instrument Serif', serif;
    color: #ffffff;
    background-color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #000000;
    animation: fadeInUp 2s ease infinite;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.scroll-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Works Section */
.works-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.works-section h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #ffffff;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 20px;
    text-align: center;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.work-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.work-item:hover .work-overlay h3,
.work-item:hover .work-overlay p {
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Instrument Serif', serif;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .works-section h2,
    .contact-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-content {
        padding: 0 15px;
    }
}

/* Mission Section */
.mission-section {
    padding: 120px 0;
    background-color: #ffffff;
    text-align: center;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission-text {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 400;
    color: #000000;
    font-style: italic;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 40px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.about-text > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: left;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(0.9) grayscale(0.1) sepia(0.1);
    mix-blend-mode: luminosity;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-right: 0;
    }

    .mission-text {
        font-size: 1.8rem;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-text {
        font-size: 1.5rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }
} 