/* --- CSS CUSTOM PROPERTIES (DESIGN SYSTEM) --- */
:root {
    --bg-dark: #0a0f0d;
    --bg-card: rgba(20, 30, 25, 0.6);
    --bg-card-hover: rgba(28, 43, 36, 0.75);
    
    --color-primary: #10b981; /* Emerald */
    --color-primary-glow: rgba(16, 185, 129, 0.2);
    --color-accent: #fbbf24; /* Warm Gold */
    --color-text-main: #f3f4f6; /* White-ish */
    --color-text-muted: #9ca3af; /* Gray */
    --color-border: rgba(16, 185, 129, 0.15);
    --color-border-hover: rgba(16, 185, 129, 0.35);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px var(--color-primary-glow);
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- AMBIENT GLOW EFFECTS --- */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #047857 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
}

/* --- CONTAINER LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* --- HERO SECTION --- */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    animation: fadeInDown 0.8s ease-out;
}

.portal-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.portal-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- PRIMARY NAVIGATION CARDS --- */
.links-section {
    width: 100%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portal-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.portal-card:hover:not(.disabled-card) {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.portal-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
}

.card-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    flex-grow: 1;
}

.card-action {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.portal-card:hover .card-action:not(.badge) {
    transform: translateX(6px);
}

/* Disabled/Coming Soon Card States */
.disabled-card {
    opacity: 0.7;
    cursor: default;
    border-color: rgba(255, 255, 255, 0.05);
}

.badge {
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    align-self: flex-start;
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- SEARCH NOTICE --- */
.search-notice {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
    animation: fadeIn 1s ease-out;
}

.notice-badge {
    background: var(--color-accent);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.search-notice p {
    font-size: 0.95rem;
    color: #e5e7eb;
}

/* --- HENTELEFF PARK SECTION --- */
.park-section {
    background: linear-gradient(180deg, rgba(20, 35, 25, 0.5) 0%, rgba(10, 15, 13, 0) 100%);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-premium);
}

.park-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.park-lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.park-body {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.park-cta-wrapper {
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 2.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Park Gallery Grid */
.park-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
}

.gallery-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.gallery-caption {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.gallery-card:hover {
    transform: scale(1.03);
    border-color: rgba(16, 185, 129, 0.25);
}

.gallery-card:hover .gallery-img {
    filter: brightness(1.1);
}

/* --- PROJECTS MINI SHOWCASE --- */
.projects-showcase-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.75rem;
    transition: var(--transition-smooth);
}

.project-mini-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-mini-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.project-mini-card:hover {
    border-color: var(--color-border-hover);
    background: rgba(16, 185, 129, 0.03);
}

/* --- PORTAL FOOTER --- */
.portal-footer {
    text-align: center;
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 968px) {
    .park-content-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .portal-title {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 2rem 1rem;
        gap: 2.5rem;
    }
    .park-section {
        padding: 1.75rem;
    }
    .park-gallery {
        grid-template-columns: 1fr;
    }
    .search-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
