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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.homepage-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/homepage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    color: #1D2C4F;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.logo i {
    color: #0075BC;
    margin-right: 0.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: #0075BC;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: #001A2B;
    transform: translateY(-1px);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #0075BC;
    padding-left: 2rem;
}

.dropdown-content i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

/* Nav Link */
.nav-link {
    color: #1D2C4F;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(0, 117, 188, 0.1);
    font-weight: 500;
}

.nav-link:hover {
    background: #0075BC;
    color: white;
    transform: translateY(-1px);
}

.nav-link i {
    margin-right: 0.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    max-width: 1200px;
    text-align: center;
    color: white;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Catalogs Grid */
.catalogs-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.catalog-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 200px;
    max-width: 220px;
}

.catalog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.catalog-card.special {
    display: none;
    background: linear-gradient(135deg, rgba(0, 117, 188, 0.95), rgba(29, 44, 79, 0.95));
    color: white;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0075BC, #1D2C4F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.img-icon-ancrage {
    width: 40%;
}

.catalog-card.special .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.catalog-card h3 {
    font-size: 1.5rem;
    //margin-bottom: 1rem;
    color: #1D2C4F;
}

.catalog-card.special h3 {
    color: white;
}

.catalog-card p {
    color: #BEC3C5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.catalog-card.special p {
    color: rgba(255, 255, 255, 0.9);
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0075BC;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8 em;
}

.catalog-btn:hover {
    background: #001A2B;
    transform: translateY(-2px);
}

.browse-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.browse-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Special browse card gets different browse button styling */
.catalog-card:not(.special) .browse-btn {
    background: rgba(0, 117, 188, 0.2);
    border: 2px solid rgba(0, 117, 188, 0.3);
    color: #1D2C4F;
}

.catalog-card:not(.special) .browse-btn:hover {
    background: rgba(0, 117, 188, 0.3);
    border-color: rgba(0, 117, 188, 0.5);
    color: #1D2C4F;
}

/* Catalog Actions for multiple buttons */
.catalog-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.catalog-actions .catalog-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
}

.catalog-actions .browse-btn {
    background: rgba(0, 117, 188, 0.2);
    border: 2px solid rgba(0, 117, 188, 0.3);
    color: #1D2C4F;
}

.catalog-actions .browse-btn:hover {
    background: rgba(0, 117, 188, 0.3);
    border-color: rgba(0, 117, 188, 0.5);
    color: #1D2C4F;
}

/* Responsive Design */
/* Responsive for tablets and smaller desktops */
@media (max-width: 1400px) {
    .catalogs-grid {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .catalog-card {
        min-width: 220px;
        max-width: 240px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1000px) {
    .catalogs-grid {
        max-width: 600px;
    }
    
    .catalog-card {
        min-width: 280px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .dropdown-content {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        width: 100%;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .catalogs-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .catalog-card {
        max-width: 400px;
        width: 100%;
    }

    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        background-color: #19293B;
    }
    .main-title {
        font-size: 2rem;
    }
    
    .catalog-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}