:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    --accent-gradient: linear-gradient(135deg, #111111, #333333);
    --card-bg: #ffffff;
    --card-border: #111111;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --text-muted: #555555;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --glow-opacity: 0.05;
}

:root[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    --accent-gradient: linear-gradient(135deg, #111111, #333333);
    --card-bg: #ffffff;
    --card-border: #111111;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --text-muted: #555555;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --glow-opacity: 0.05;
}

:root[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --accent-gradient: linear-gradient(135deg, #ffffff, #cccccc);
    --card-bg: #111111;
    --card-border: #333333;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --text-muted: #aaaaaa;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-opacity: 0.2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    letter-spacing: -0.2px;
}

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

.theme-toggle {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    background: var(--card-bg);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section {
    min-height: auto;
    padding: 100px 5%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    max-width: 580px;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
}

/* Quick View Slider */
.hero-quickview {
    flex: 0 0 380px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px var(--shadow-color);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}

.quickview-title {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.quickview-slider {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    height: 180px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.slide h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.slide p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.slider-btn {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--card-border);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: var(--accent-color);
    width: 20px;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        gap: 3rem;
        padding-top: 80px;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-quickview {
        width: 100%;
        max-width: 500px;
        flex: none;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4);
}

/* About Section */
.about-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto 5rem auto;
}

.about-avatar {
    flex: 0 0 280px;
}

.about-img-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 6px;
    background: var(--accent-gradient);
    box-shadow: 0 20px 40px var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.4;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.about-bio {
    flex: 1;
}

.about-bio h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

.about-bio p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

/* About Details (Skills & Experience) */
.about-details {
    display: flex;
    gap: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skills-section, .experience-section {
    flex: 1;
}

.skills-section h3, .experience-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 0.75rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-percent {
    color: var(--accent-color);
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--card-border);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    width: 0%; /* Animate this in JS */
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid var(--card-border);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1.5rem - 7px);
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    transition: all 0.3s;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
}

.timeline-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 300;
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-avatar {
        flex: none;
    }
    
    .about-details {
        flex-direction: column;
        gap: 3.5rem;
    }
}

/* Works Section */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.work-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--accent-color);
}

.work-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.work-artwork {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.work-card:hover .work-artwork {
    transform: scale(1.05);
}

.artwork-petcare {
    background: linear-gradient(135deg, #fef08a 0%, #f97316 100%);
    position: relative;
}
.artwork-petcare::after {
    content: '🐾';
    position: absolute;
    font-size: 4.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.artwork-spacecoffee {
    background: radial-gradient(circle at 30% 30%, #312e81 0%, #030712 100%);
    position: relative;
}
.artwork-spacecoffee::after {
    content: '☕';
    position: absolute;
    font-size: 4.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.artwork-antigravity {
    background: linear-gradient(135deg, #818cf8 0%, #312e81 100%);
    position: relative;
}
.artwork-antigravity::after {
    content: '🪐';
    position: absolute;
    font-size: 4.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.artwork-framer {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    position: relative;
}
.artwork-framer::after {
    content: '✨';
    position: absolute;
    font-size: 4.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.view-project {
    color: #fff;
    border: 2px solid #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(10px);
    transition: all 0.3s;
}

.work-card:hover .view-project {
    transform: translateY(0);
}

.work-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.work-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px var(--shadow-color);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 3rem;
}

/* Inside Modal Styling */
.modal-project-header {
    margin-bottom: 2rem;
}

.modal-project-header h2 {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 0.5rem;
}

.modal-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
}

.modal-artwork-banner {
    height: 180px;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-artwork-banner::after {
    font-size: 5rem;
    opacity: 0.8;
}

.modal-artwork-banner.artwork-petcare::after { content: '🐾'; }
.modal-artwork-banner.artwork-spacecoffee::after { content: '☕'; }
.modal-artwork-banner.artwork-antigravity::after { content: '🪐'; }
.modal-artwork-banner.artwork-framer::after { content: '✨'; }

/* Contact Section */
.contact-grid {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    line-height: 1.3;
    color: var(--text-color);
    text-align: left;
}

.contact-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    font-family: 'Noto Sans KR', sans-serif;
}

.contact-details-list {
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
}

.detail-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Outfit', sans-serif;
}

.detail-value:hover {
    color: var(--accent-color);
}

.contact-actions {
    margin-bottom: 2.5rem;
}

.btn-download {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    background: rgba(56, 189, 248, 0.05);
}

.contact-form-container {
    flex: 1.2;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px var(--shadow-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    background: var(--card-bg);
    padding: 0 0.4rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.3);
}

@media (max-width: 992px) {
    .contact-grid {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-info {
        text-align: center;
        align-items: center;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    margin-top: 2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sub-page header styling */
.page-header {
    text-align: center;
    padding: 120px 5% 50px;
    background: var(--hero-overlay);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Home Portal Navigation Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.portal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.portal-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

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

.portal-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portal-card .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.portal-card:hover .btn-link {
    gap: 0.8rem;
}

/* Guestbook Wall Stylings */
.guestbook-section {
    padding: 3rem 0;
}

.guestbook-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.guestbook-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: cardAppear 0.5s ease forwards;
}

.guestbook-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.guestbook-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.guestbook-author {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.05rem;
}

.guestbook-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.guestbook-content {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    white-space: pre-line;
}

.btn-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 4px;
    line-height: 1;
}

.guestbook-card:hover .btn-delete {
    opacity: 0.5;
}

.btn-delete:hover {
    opacity: 1 !important;
}

/* Vaccine Table & Health Check List Stylings */
.info-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.info-table th, .info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background: var(--hero-overlay);
    font-weight: 700;
    color: var(--text-color);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.health-checklist {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.health-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--hero-overlay);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.health-checklist-check {
    color: var(--primary-color);
    font-weight: bold;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
