/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Nova', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(128, 128, 128, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: url('HomePage.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}
.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-link {
    color: white;
    text-decoration: none;
}

.hero-link:hover {
    text-decoration: underline;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-orange {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-orange:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-white {
    background: white;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Steps Section */
.steps-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

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

.steps-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
}

.section-title-link {
    color: #333;
    text-decoration: none;
}

.section-title-link:hover {
    color: #ff6b35;
    text-decoration: underline;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.step-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.prijavi-button {
    background: #ff6b35;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

/* Ustanova Section */
.ustanova-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.ustanova-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ustanova-text h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.ustanova-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ustanova-button {
    margin-top: 2rem;
}

/* Domovi Section */
.domovi-section {
    padding: 5rem 2rem;
    background: url('Dorms.png') center/cover no-repeat;
    position: relative;
    color: white;
}

.domovi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.domovi-section .domovi-content,
.domovi-section .domovi-buttons {
    position: relative;
    z-index: 2;
}

.domovi-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.domovi-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: 300;
}

.domovi-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.domovi-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Studentski domovi Section */
.studentski-domovi-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

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

.studentski-domovi-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
}

.domovi-table {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.domovi-column {
    background: none !important;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
    transform: none !important;
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 300px;
    margin: 0.8rem;
}

.dorm-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0.8rem 0;
}

.domovi-column:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
}

.domovi-column h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: #ff6b35;
}

.domovi-column p {
    line-height: 1.4;
    color: #333;
    font-size: 1.1rem;
}

.domovi-column a {
    color: #ff6b35;
    text-decoration: none;
}

.domovi-column a:hover {
    text-decoration: underline;
}

.studentski-domovi-buttons-container {
    text-align: center;
}

.studentski-domovi-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Kontakt Section */
.kontakt-section {
    padding: 1.5rem 2rem;
    background: #808080;
    color: white;
}

.kontakt-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.kontakt-text h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.kontakt-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.kontakt-text a {
    color: #ffeb3b;
    text-decoration: none;
}

.kontakt-text a:hover {
    text-decoration: underline;
}

/* Section Images */
.section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 2rem auto;
    display: block;
}

.steps-section .section-image {
    margin-top: 3rem;
}

.domovi-section .section-image {
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-container {
        max-width: 100%;
    }
    
    .domovi-table {
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .domovi-column {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .domovi-buttons,
    .studentski-domovi-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
        font-weight: 300;
    }
    
    .ustanova-text h1,
    .domovi-content h1,
    .studentski-domovi-section h2,
    .kontakt-text h1 {
        font-size: 2rem;
        font-weight: 300;
    }
    
    .steps-section h2 {
        font-size: 2rem;
        font-weight: 300;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 0.5rem;
        gap: 1.2rem;
        max-width: 100%;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }
    
    .domovi-table {
        flex-direction: column;
    }
    
    .domovi-column {
        flex: 1 1 100%;
    }
}
