/* Glavni stilovi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c59d5f, transparent);
    transform-origin: center;
    animation: lineExpand 2s ease-in-out infinite;
}

section {
    padding: 80px 20px;
}

/* Header s 3D transformacijama */
header {
    background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
    color: white;
    padding: 20px;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-container {
    perspective: 1000px;
    margin-bottom: 40px;
}

.logo {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    animation: floating 6s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #c59d5f;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateZ(20px);
}

.logo-pole {
    position: absolute;
    width: 40px;
    height: 150%;
    background: linear-gradient(to bottom, #c59d5f, #e9c989, #c59d5f, #e9c989, #c59d5f);
    left: 40%;
    top: -25%;
    transform: translateX(-50%) translateZ(10px) rotateY(0deg);
    animation: rotatePole 8s linear infinite;
    border-radius: 5px;
}

.main-title {
    font-size: 4rem;
    margin-bottom: 10px;
    position: relative;
    animation: titleSlideIn 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-style: italic;
    color: #c59d5f;
    animation: fadeIn 2s ease-out 0.5s forwards;
    opacity: 0;
}

.scroll-btn {
    background: #c59d5f;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 2s ease-out 1s forwards;
    opacity: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Navigacija s 2D transformacijama */
nav {
    background-color: #1a1a1a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 5px;
    transition: color 0.3s;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c59d5f;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: #c59d5f;
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Usluge s 2D transformacijama */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: calc(25% - 30px);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.5s, box-shadow 0.5s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(197, 157, 95, 0.2), transparent);
    transition: all 0.6s;
}

.service-card:hover::before {
    top: 100%;
    left: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.scissors {
    background-image: url('/api/placeholder/80/80');
}

.beard {
    background-image: url('/api/placeholder/80/80');
}

.razor {
    background-image: url('/api/placeholder/80/80');
}

.combo {
    background-image: url('/api/placeholder/80/80');
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #c59d5f;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

/* Galerija s 3D transformacijama - AŽURIRANO */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.gallery-item {
    width: calc(25% - 20px);
    min-width: 250px;
    height: 300px;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.5s;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
    backface-visibility: hidden;
}

.gallery-item .info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 26, 26, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.8s;
}

.gallery-item:hover img {
    transform: rotateY(180deg);
}

.gallery-item:hover .info {
    opacity: 1;
}

/* O nama sekcija s 3D transformacijama */
.rotating-section {
    background: #f9f9f9;
    perspective: 1000px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-content {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    border: 2px solid #c59d5f;
}

.front {
    transform: translateZ(100px);
    background-image: url('/api/placeholder/200/200');
}

.back {
    transform: rotateY(180deg) translateZ(100px);
    background-image: url('/api/placeholder/200/200');
}

.right {
    transform: rotateY(90deg) translateZ(100px);
    background-image: url('/api/placeholder/200/200');
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
    background-image: url('/api/placeholder/200/200');
}

.top {
    transform: rotateX(90deg) translateZ(100px);
    background-image: url('/api/placeholder/200/200');
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background-image: url('/api/placeholder/200/200');
}

/* Kontakt sekcija s 2D transformacijama */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 20px;
}

.location {
    background-image: url('/api/placeholder/50/50');
}

.phone {
    background-image: url('/api/placeholder/50/50');
}

.email {
    background-image: url('/api/placeholder/50/50');
}

.time {
    background-image: url('/api/placeholder/50/50');
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #666;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer s ikonama - AŽURIRANO */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c59d5f;
}

.footer-info {
    font-size: 0.9rem;
    color: #aaa;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s;
    cursor: pointer;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #c59d5f;
}

/* Footer s ikonama - AŽURIRANO - nastavak */
.facebook {
    background-image: url('/api/placeholder/24/24');
}

.instagram {
    background-image: url('/api/placeholder/24/24');
}

.twitter {
    background-image: url('/api/placeholder/24/24');
}

/* Animacije */
@keyframes floating {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rotatePole {
    0% {
        transform: translateX(-50%) translateZ(10px) rotateY(0deg);
    }
    100% {
        transform: translateX(-50%) translateZ(10px) rotateY(360deg);
    }
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes lineExpand {
    0%, 100% {
        transform: scaleX(0.7);
    }
    50% {
        transform: scaleX(1);
    }
}

@keyframes rotate {
    0% {
        transform: rotateX(0) rotateY(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Responzivni dizajn */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        width: calc(50% - 20px);
    }
    
    .gallery-item {
        width: calc(50% - 20px);
    }
    
    .about-content, .about-image {
        flex: 100%;
        margin-bottom: 40px;
    }
    
    .contact-info, .map-container {
        flex: 100%;
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-card, .gallery-item {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
}