@import url('https://fonts.googleapis.com/css2?family=Share+Tech&display=swap');

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

body {
    font-family: 'Share Tech', sans-serif;
    background-color: #FBF5EF;
    color: #272744;
}

#content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
}

header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 20px 40px;
    background-color: #272744;
    font-size: 20px;
}

.logo {
    max-height: 40px;
}

#logo_link {
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
    height: 80px;
    align-items: center;
}

header a {
    color: #FBF5EF;
    text-decoration: none;
    padding: 0 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

header nav a:hover {
    background-color: #494D7E;
    text-decoration: none;
}

.slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 0 auto;
}

.slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%);
    animation: slideshow 12s infinite;
}

.slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}

.slideshow .slide:nth-child(2) {
    animation-delay: 4s;
}

.slideshow .slide:nth-child(3) {
    animation-delay: 8s;
}

@keyframes slideshow {
    0% { 
        opacity: 0; 
        transform: translateX(100%);
    }
    8.33% { 
        opacity: 1; 
        transform: translateX(0);
    }
    33.33% { 
        opacity: 1; 
        transform: translateX(0);
    }
    41.66% { 
        opacity: 0; 
        transform: translateX(-100%);
    }
    100% { 
        opacity: 0; 
        transform: translateX(-100%);
    }
}

.divider-strip1 {
    height: 40px;
    background-color: #272744;
    margin: 0 auto;
}

.divider-strip2 {
    height: 40px;
    background-color: #494D7E;
    margin: 0 auto;
}

.divider-strip3 {
    height: 40px;
    background-color: #F2D3AB;
    margin: 0 auto;
}

main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    min-height: 600px;
    margin: 0 auto;
    width: 100%;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/blurimage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.web-button,
.pro-button,
.art-button {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 220px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.web-button:hover .flip-card-inner,
.pro-button:hover .flip-card-inner,
.art-button:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgb(68, 68, 68);
}

.flip-card-back {
    background-color: #494D7E;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgb(68, 68, 68);
}

.flip-card-back a {
    color: #FBF5EF;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.flip-card-back a:hover {
    transform: scale(1.1);
    text-decoration: underline;
}

footer {
    padding: 70px;
    text-align: left;
    background-color: #272744;
}

footer p {
    font-size: 16px;
    padding-left: 20px;
    color: #FBF5EF;
}