/* Nordsonne Technologies - Main Stylesheet
 * Copyright 2025 Nordsonne Technologies Ltd. All rights reserved.
 */

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

:root {
    --primary: #4d9fff;
    --primary-dim: #3d7fcc;
    --primary-light: #7ab8ff;
    --secondary: #a8d4ff;
    --accent: #ff6b35;
    --dark: #0a1628;
    --darker: #050d18;
    --card-bg: rgba(10, 22, 40, 0.85);
    --text: #e8f4f8;
    --text-dim: #8ba3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hexagonal Grid Canvas */
#hex-grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 13, 24, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    transform: translateY(-100%);
    opacity: 0;
    box-shadow: 0 2px 30px rgba(77, 159, 255, 0.1);
}

nav.nav-visible {
    transform: translateY(0);
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text-img {
    height: 22px;
    width: auto;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 10;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-logomark {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

.hero-logotype {
    max-width: 500px;
    width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Secondary color adjustments */
.contact-item a:hover {
    color: var(--primary-light);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections */
section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.section-header p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.service-card {
    cursor: pointer;
}

.card-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.card-gallery-item {
    flex: 1;
    aspect-ratio: 16/10;
    background: rgba(77, 159, 255, 0.08);
    border: 1px solid rgba(77, 159, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.service-card:hover .card-gallery-item {
    background: rgba(77, 159, 255, 0.15);
    border-color: rgba(77, 159, 255, 0.3);
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.resource-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.resource-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.resource-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.15);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.resource-card p {
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

/* ==========================================
   VIEW TOGGLE
   ========================================== */

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(77, 159, 255, 0.3);
    border-radius: 25px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    border-color: var(--primary);
    color: var(--dark);
}

.toggle-btn.active svg {
    stroke: var(--dark);
}

/* ==========================================
   3D EXPLORER CONTAINER
   ========================================== */

.explorer-container {
    position: relative;
    width: 100%;
    height: 700px;
    background: radial-gradient(ellipse at center, #0a1628 0%, #050d18 100%);
    border-radius: 20px;
    border: 1px solid rgba(77, 159, 255, 0.15);
    overflow: hidden;
    margin-top: 2rem;
}

#explorer-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#explorer-canvas:active {
    cursor: grabbing;
}

/* Explorer UI Overlay */
.explorer-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem;
    z-index: 10;
}

.explorer-hint {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.explorer-back {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid rgba(77, 159, 255, 0.4);
    border-radius: 25px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    pointer-events: all;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 20;
    position: relative;
}

.explorer-back.visible {
    opacity: 1;
    transform: translateY(0);
}

.explorer-back:hover {
    background: rgba(77, 159, 255, 0.2);
    border-color: var(--primary);
}

/* Content Panel (slides in from right) */
.content-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(5, 13, 24, 0.98) 100%);
    border-left: 1px solid rgba(77, 159, 255, 0.2);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.content-panel.visible {
    transform: translateX(0);
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(77, 159, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
}

.panel-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.panel-close:hover {
    background: rgba(77, 159, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

.panel-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.panel-body .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.panel-body .gallery-item {
    aspect-ratio: 16/10;
    background: rgba(77, 159, 255, 0.05);
    border: 1px solid rgba(77, 159, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-body .gallery-item:hover {
    border-color: var(--primary);
    background: rgba(77, 159, 255, 0.1);
}

.panel-body p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.panel-body h4 {
    color: var(--text);
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
}

.panel-body ul {
    color: var(--text-dim);
    padding-left: 1.25rem;
    margin: 0;
}

.panel-body li {
    margin: 0.4rem 0;
    line-height: 1.6;
}

/* ==========================================
   FULL CONTENT VIEW (replaces tetrahedron)
   ========================================== */

.content-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 5;
    background: radial-gradient(ellipse at center, rgba(10, 22, 40, 0.95) 0%, rgba(5, 13, 24, 0.98) 100%);
}

.content-view.visible {
    opacity: 1;
    visibility: visible;
}

.content-view-inner {
    max-width: 800px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    text-align: center;
    animation: contentFadeIn 0.6s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.content-view h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.content-view h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.content-body {
    text-align: left;
}

.content-body .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-body .gallery-item {
    aspect-ratio: 16/10;
    background: rgba(77, 159, 255, 0.08);
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-body .gallery-item:hover {
    border-color: var(--primary);
    background: rgba(77, 159, 255, 0.15);
    transform: translateY(-3px);
}

.content-body p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.content-body h4 {
    color: var(--text);
    font-size: 1.15rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(77, 159, 255, 0.2);
}

.content-body ul {
    color: var(--text-dim);
    padding-left: 1.5rem;
    margin: 0;
}

.content-body li {
    margin: 0.6rem 0;
    line-height: 1.7;
}

.content-body li::marker {
    color: var(--primary);
}

/* ==========================================
   CARD DETAIL OVERLAY (for card view)
   ========================================== */

.card-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 13, 24, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.card-detail-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.card-detail-content {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(5, 13, 24, 0.98) 100%);
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    animation: cardDetailIn 0.4s ease-out;
}

@keyframes cardDetailIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card-detail-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(77, 159, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-detail-close:hover {
    background: rgba(77, 159, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

.card-detail-overlay h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-right: 3rem;
}

.card-detail-body {
    text-align: left;
}

.card-detail-body .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-detail-body .gallery-item {
    aspect-ratio: 16/10;
    background: rgba(77, 159, 255, 0.08);
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-detail-body .gallery-item:hover {
    border-color: var(--primary);
    background: rgba(77, 159, 255, 0.15);
}

.card-detail-body p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.card-detail-body h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(77, 159, 255, 0.15);
}

.card-detail-body ul {
    color: var(--text-dim);
    padding-left: 1.5rem;
    margin: 0;
}

.card-detail-body li {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.card-detail-body li::marker {
    color: var(--primary);
}

/* ==========================================
   ABOUT SECTION (simplified)
   ========================================== */

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

.about-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 10;
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Node hover tooltip */
.node-tooltip {
    position: fixed;
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid rgba(77, 159, 255, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.node-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.node-tooltip::after {
    content: 'Click to explore';
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 900px) {
    .explorer-container {
        height: 550px;
    }

    .content-view {
        padding: 2rem 1.5rem;
    }

    .content-view h2 {
        font-size: 1.5rem;
    }

    .content-body .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5, 13, 24, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .hero-logomark {
        width: 80px;
        height: 80px;
    }

    .hero-logotype {
        max-width: 300px;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .view-toggle {
        margin-top: 1.5rem;
    }

    .toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .explorer-container {
        height: 500px;
        border-radius: 12px;
    }

    .explorer-ui {
        padding: 1rem;
    }

    .explorer-hint {
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resource-card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .panel-body .gallery-grid {
        grid-template-columns: 1fr;
    }

    .content-view {
        padding: 1.5rem 1rem;
    }

    .content-view h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .content-view-inner {
        padding-bottom: 4rem;
    }

    .content-body p {
        font-size: 0.95rem;
    }

    .content-body h4 {
        font-size: 1rem;
        margin: 1.5rem 0 0.75rem;
    }

    .content-body .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .card-detail-overlay {
        padding: 1rem;
    }

    .card-detail-content {
        padding: 1.5rem;
        max-height: 85vh;
    }

    .card-detail-overlay h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .card-detail-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }

    .card-detail-body .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .logo-text-img {
        height: 18px;
    }

    .hero-logomark {
        width: 70px;
        height: 70px;
    }

    .hero-logotype {
        max-width: 250px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }
}
