/* Custom CSS Variable Design System (User Color Palette) */
:root {
    /* Primary Colors */
    --maroon: #6A1E1E;
    --charcoal: #2B2B2B;
    --warm-tan: #D8C7A1;
    --black: #000000;
    --white: #FFFFFF;
    
    /* Accent Colors */
    --muted-gold: #C2A878;
    --slate-blue: #4A5A7A;
    --rust-orange: #C46A3A;

    /* Semantic Mappings */
    --bg-dark: var(--black);
    --card-bg: rgba(43, 43, 43, 0.55); /* Charcoal with opacity */
    --card-border: rgba(216, 199, 161, 0.12); /* Warm Tan tint */
    --text-primary: var(--white);
    --text-secondary: var(--warm-tan);
    
    --notice-bg: rgba(106, 30, 30, 0.08); /* Maroon tint */
    --notice-border: rgba(106, 30, 30, 0.35);
    --notice-accent: var(--muted-gold);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: radial-gradient(circle at top, rgba(216, 199, 161, 0.8) 0%, rgba(106, 30, 30, 0.99) 35%, var(--black) 85%) no-repeat fixed;
    min-height: 100vh;
}

body {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    padding: 3rem 1rem;
}

/* Container Layout */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
}

/* Header Styling (Horizontal alignment: logo on left, text on right) */
.header {
    display: flex;
    width: 100%;
    justify-content: center;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.logo-wrapper {
    width: 160px; /* Enlarged logo container */
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    /* Removed wrapper border, background, and shadows */
}

.brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    background: linear-gradient(135deg, var(--white) 0%, var(--warm-tan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.brand-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-gold);
}

/* Core Message Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
    transform: scale(0.97);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--white);
    border-bottom: 2px solid var(--maroon);
    padding-bottom: 0.5rem;
}

.section-desc {
    color: var(--warm-tan);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 580px;
    opacity: 0.9;
}

/* Notice Box (Looking for something else) */
.notice-box {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-left: 4px solid var(--maroon);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted-gold);
}

.notice-icon {
    font-size: 1.15rem;
}

.notice-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.notice-desc {
    color: var(--warm-tan);
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.85;
}

.notice-meta {
    font-size: 0.85rem;
    color: var(--warm-tan);
    margin-top: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    align-self: flex-start;
    border: 1px solid rgba(216, 199, 161, 0.1);
}

.notice-meta strong {
    color: var(--white);
    font-weight: 600;
}

/* Action button row */
.action-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--rust-orange) 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(106, 30, 30, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.98rem;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(196, 106, 58, 0.45);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.support-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Portfolio Grid Footer */
.portfolio-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    margin-top: 1rem;
}

.portfolio-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    text-align: left;
    padding-left: 0.25rem;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--muted-gold);
    padding-left: 0.75rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.project-card {
    background: rgba(43, 43, 43, 0.4);
    border: 1px solid rgba(216, 199, 161, 0.05);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    background: rgba(106, 30, 30, 0.15);
    border-color: rgba(194, 168, 120, 0.25);
    transform: translateY(-2px);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 70%;
}

.project-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.25s ease;
}

.project-card:hover .project-name {
    color: var(--muted-gold);
}

.project-tagline {
    font-size: 0.8rem;
    color: var(--warm-tan);
    line-height: 1.3;
    opacity: 0.8;
}

/* Badges for project types based on the color palette */
.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.saas-tag {
    background: rgba(74, 90, 122, 0.15); /* Slate Blue */
    color: #a4b4cf;
    border: 1px solid rgba(74, 90, 122, 0.25);
}

.system-tag {
    background: rgba(194, 168, 120, 0.15); /* Muted Gold */
    color: #e5d3b3;
    border: 1px solid rgba(194, 168, 120, 0.25);
}

.web-tag {
    background: rgba(196, 106, 58, 0.15); /* Rust Orange */
    color: #e29267;
    border: 1px solid rgba(196, 106, 58, 0.25);
}

.ext-tag {
    background: rgba(106, 30, 30, 0.2); /* Maroon */
    color: #cf8a8a;
    border: 1px solid rgba(106, 30, 30, 0.3);
}

.utility-tag {
    background: rgba(216, 199, 161, 0.12); /* Warm Tan */
    color: var(--warm-tan);
    border: 1px solid rgba(216, 199, 161, 0.2);
}

.copyright {
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--warm-tan);
    opacity: 0.5;
}

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

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

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Grid and Cards */
@media (max-width: 600px) {
    .brand-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .brand-text {
        text-align: center;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 2rem 1.5rem;
    }
    .brand-name {
        font-size: 1.85rem;
    }
    .logo-wrapper {
        width: 90px;
        height: 90px;
    }
}
