* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fffef0 50%, #e3f4ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    line-height: 1.6;
    color: #2c3e50;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

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

.polaroid {
    background: white;
    padding: 1rem;
    padding-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: rotate(-2deg);
    margin-bottom: 2.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.polaroid {
    display: inline-block;
    width: 100%;
    max-width: 320px;
}

.polaroid:hover {
    transform: none;
}

.polaroid img {
    width: 100%;
    max-width: 320px;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.flip-card {
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 280px; /* same as image height */
    max-width: 320px;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-inner img {
    position: absolute;
    width: 100%;
    height: 280px;
    max-width: 320px;
    object-fit: cover;
    backface-visibility: hidden;
    border-radius: 2px;
}

/* front remains as-is */
.flip-inner .front {
    transform: rotateY(0deg);
}

/* back image flipped to hide until rotated */
.flip-inner .back {
    transform: rotateY(180deg);
}


h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: #1a2332;
}

.tagline {
    font-size: 1.25rem;
    color: #5a7a94;
    margin-bottom: 3rem;
    font-weight: 300;
}

.subheading {
    font-size: 2rem;
    color: #7b9bb0;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #3d5468;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.services {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.service {
    font-size: 0.95rem;
    color: #5a7a94;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.service::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: rgba(135, 206, 235, 0.7);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.service:hover::after {
    width: 100%;
}

.contact {
    margin-top: 2.5rem;
    text-align: center;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.contact-email {
    font-size: 1.1rem;
    color: #2c3e50;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.contact-email::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: rgba(135, 206, 235, 0.7);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.contact-email:hover::after {
    width: 100%;
}


.footer {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #7a9ab5;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .intro {
        font-size: 1rem;
    }

    .services {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}