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

:root {
    /* Old Money Color Palette */
    --primary-burgundy: #722F37;
    --deep-burgundy: #4A1C1F;
    --rich-gold: #D4AF37;
    --antique-gold: #B8860B;
    --cream: #FAF7F0;
    --off-white: #F8F5F0;
    --charcoal: #2C2C2C;
    --warm-gray: #6B6B6B;
    --ivory: #FFFFF0;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Crimson Text', serif;
    
    /* Shadows */
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --box-shadow: 0 8px 32px rgba(114, 47, 55, 0.15);
    --inset-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
    color: var(--charcoal);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(114, 47, 55, 0.03) 0%, transparent 60%),
        radial-gradient(circle at center, rgba(212, 175, 55, 0.01) 0%, transparent 40%),
        linear-gradient(135deg, transparent 25%, rgba(212, 175, 55, 0.008) 50%, transparent 75%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(212, 175, 55, 0.005) 40px,
            rgba(212, 175, 55, 0.005) 42px
        );
    pointer-events: none;
    z-index: -1;
    animation: subtleShimmer 20s ease-in-out infinite alternate;
}

@keyframes subtleShimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    padding: 2rem 0;
    text-align: center;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nav-line {
    height: 1px;
    width: 4rem;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
}

.nav-ornament {
    color: var(--rich-gold);
    font-size: 1.2rem;
    text-shadow: var(--text-shadow);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
}

/* Hero Section */
.hero-section {
    max-width: 800px;
    width: 100%;
}

.coat-of-arms-container {
    margin-bottom: 3rem;
    position: relative;
}

.coat-of-arms {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(114, 47, 55, 0.2));
    transition: transform 0.3s ease;
}

.coat-of-arms:hover {
    transform: scale(1.02);
}

.coat-of-arms-container::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: calc(100% + 4rem);
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Title Section */
.title-section {
    margin-bottom: 3rem;
}

.house-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-burgundy);
    text-shadow: var(--text-shadow);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.title-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.ornament-line {
    height: 2px;
    width: 3rem;
    background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
}

.ornament-symbol {
    color: var(--antique-gold);
    font-size: 1.1rem;
    text-shadow: var(--text-shadow);
}

/* Motto Section */
.motto-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.latin-motto {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic;
    color: var(--deep-burgundy);
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    quotes: """ """;
}

.latin-motto::before,
.latin-motto::after {
    content: open-quote;
    font-size: 1.5em;
    color: var(--rich-gold);
    position: absolute;
}

.latin-motto::before {
    top: -0.3em;
    left: -0.5em;
}

.latin-motto::after {
    content: close-quote;
    bottom: -0.8em;
    right: -0.3em;
}

.english-translation {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--warm-gray);
    font-style: italic;
    font-weight: 400;
    margin-top: 1rem;
    letter-spacing: 0.01em;
}

/* Heritage Section */
.heritage-section {
    margin-top: 2rem;
    padding: 2rem 0;
}

.heritage-ornament {
    margin-bottom: 1.5rem;
}

.ornament-flourish {
    font-size: 2rem;
    color: var(--rich-gold);
    text-shadow: var(--text-shadow);
}

.heritage-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--warm-gray);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 2rem;
}

.footer-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-line {
    height: 1px;
    width: 3rem;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
}

.footer-symbol {
    color: var(--rich-gold);
    font-size: 1rem;
    text-shadow: var(--text-shadow);
}

.footer-text {
    color: var(--warm-gray);
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .coat-of-arms {
        max-width: 220px;
    }
    
    .motto-section {
        padding: 1.5rem;
        margin: 0 -0.5rem 3rem -0.5rem;
    }
    
    .nav-line,
    .ornament-line,
    .footer-line {
        width: 2rem;
    }
    
    .heritage-text {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .coat-of-arms {
        max-width: 180px;
    }
    
    .motto-section {
        padding: 1rem;
        border-radius: 6px;
    }
    
    .title-section {
        margin-bottom: 2rem;
    }
    
    .heritage-section {
        margin-top: 1rem;
    }
}

/* Subtle Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.coat-of-arms-container {
    animation-delay: 0.2s;
}

.title-section {
    animation-delay: 0.4s;
}

.motto-section {
    animation-delay: 0.6s;
}

.heritage-section {
    animation-delay: 0.8s;
}

/* Hover Effects */
.motto-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(114, 47, 55, 0.2);
    transition: all 0.3s ease;
}

/* Navigation Links Styles */
.nav-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 
        0 8px 32px rgba(114, 47, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links:hover::before {
    left: 100%;
}

.nav-link {
    font-family: var(--font-display);
    color: var(--primary-burgundy);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.15));
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--deep-burgundy);
    text-shadow: 0 2px 8px rgba(114, 47, 55, 0.3);
    transform: translateY(-1px);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 
        inset 0 2px 4px rgba(114, 47, 55, 0.1),
        0 4px 12px rgba(212, 175, 55, 0.2);
}

.nav-divider {
    color: var(--antique-gold);
    font-size: 1rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Portfolio Page Styles */
.portfolio-main {
    padding: 2rem 0 3rem 0;
    position: relative;
}

.portfolio-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(114, 47, 55, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.portfolio-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 
        0 20px 60px rgba(114, 47, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), var(--antique-gold), var(--rich-gold), transparent);
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-burgundy);
    text-shadow: 
        0 2px 4px rgba(114, 47, 55, 0.3),
        0 4px 8px rgba(114, 47, 55, 0.1);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    position: relative;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
    border-radius: 1px;
}

.portfolio-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--warm-gray);
    font-style: italic;
    font-weight: 400;
    margin-top: 2rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portfolio-category {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 80px rgba(114, 47, 55, 0.12),
        0 10px 30px rgba(114, 47, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.portfolio-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--rich-gold), 
        var(--antique-gold), 
        var(--rich-gold), 
        transparent
    );
}

.portfolio-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.portfolio-category > * {
    position: relative;
    z-index: 1;
}

.portfolio-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 100px rgba(114, 47, 55, 0.18),
        0 15px 50px rgba(114, 47, 55, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(212, 175, 55, 0.35);
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
    border-radius: 1px;
}

.category-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(114, 47, 55, 0.1);
    position: relative;
}

.category-ornament {
    font-size: 1.8rem;
    color: var(--rich-gold);
    text-shadow: 
        0 2px 4px rgba(212, 175, 55, 0.3),
        0 0 10px rgba(212, 175, 55, 0.2);
    margin-top: 0.5rem;
}

.category-description {
    color: var(--charcoal);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.01em;
}

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

.portfolio-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(114, 47, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.05), 
        transparent
    );
    transition: left 0.6s ease;
}

.portfolio-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(114, 47, 55, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.portfolio-item:hover::before {
    left: 100%;
}

.item-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-burgundy);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(114, 47, 55, 0.1);
    position: relative;
}

.item-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--rich-gold);
    border-radius: 1px;
    opacity: 0.6;
}

.item-description {
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.item-link {
    color: var(--primary-burgundy);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
}

.item-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rich-gold);
    transition: width 0.3s ease;
}

.item-link:hover {
    color: var(--deep-burgundy);
    text-shadow: 0 2px 4px rgba(114, 47, 55, 0.2);
    transform: translateX(3px);
}

.item-link:hover::after {
    width: 100%;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.server-info {
    color: var(--warm-gray);
    font-size: 0.85rem;
    font-style: italic;
}

.connect-button {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--deep-burgundy) 100%);
    color: var(--ivory);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 8px 25px rgba(114, 47, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.connect-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.connect-button:hover {
    background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--primary-burgundy) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(114, 47, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.connect-button:hover::before {
    left: 100%;
}

.addon-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.08));
    color: var(--deep-burgundy);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.15));
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.coming-soon {
    color: var(--warm-gray);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

/* Portfolio Responsive Design */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .portfolio-hero {
        padding: 2.5rem 1.5rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .portfolio-category {
        padding: 2rem;
        border-radius: 15px;
    }
    
    .portfolio-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .item-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .connect-button {
        align-self: stretch;
        text-align: center;
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .nav-divider {
        display: none;
    }
    
    .portfolio-hero {
        padding: 2rem 1rem;
        margin-bottom: 2.5rem;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        margin-bottom: 2rem;
        padding: 1.5rem 0.75rem;
        border-radius: 12px;
    }
    
    .portfolio-category {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .portfolio-item {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .addon-features {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .nav-links {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Contact Page Styles */
.contact-main {
    padding: 2rem 0 3rem 0;
    position: relative;
}

.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 
        0 20px 60px rgba(114, 47, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), var(--antique-gold), var(--rich-gold), transparent);
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-burgundy);
    text-shadow: 
        0 2px 4px rgba(114, 47, 55, 0.3),
        0 4px 8px rgba(114, 47, 55, 0.1);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
    border-radius: 1px;
}

.contact-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--warm-gray);
    font-style: italic;
    font-weight: 400;
    margin-top: 2rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 80px rgba(114, 47, 55, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), var(--antique-gold), var(--rich-gold), transparent);
}

.info-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.info-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.info-ornament {
    font-size: 1.8rem;
    color: var(--rich-gold);
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
}

.info-description {
    color: var(--charcoal);
    font-style: italic;
    line-height: 1.7;
    font-size: 1.05rem;
}

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

.contact-item {
    padding: 1rem 0;
}

.contact-item-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-burgundy);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.contact-item-info {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 3.5rem;
    box-shadow: 
        0 30px 100px rgba(114, 47, 55, 0.15),
        0 15px 50px rgba(114, 47, 55, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--rich-gold) 20%, 
        var(--antique-gold) 50%, 
        var(--rich-gold) 80%, 
        transparent
    );
}

.contact-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent) bottom/100% 2px no-repeat;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
    border-radius: 2px;
}

.form-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(114, 47, 55, 0.1);
}

.form-ornament {
    font-size: 1.8rem;
    color: var(--rich-gold);
    text-shadow: 
        0 2px 4px rgba(212, 175, 55, 0.4),
        0 0 15px rgba(212, 175, 55, 0.2);
    margin-top: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-burgundy);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.form-label::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 20px;
    height: 1px;
    background: var(--rich-gold);
    opacity: 0.6;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(15px);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 8px 25px rgba(114, 47, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(114, 47, 55, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(212, 175, 55, 0.2);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--rich-gold);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    box-shadow: 
        0 15px 40px rgba(114, 47, 55, 0.15),
        0 0 0 4px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--warm-gray);
    font-style: italic;
    opacity: 0.8;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
                      url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23722F37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: right 1rem center;
    background-size: auto, 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
    font-family: var(--font-body);
}

/* Custom styling for select options */
.form-select option {
    background: var(--cream);
    color: var(--charcoal);
    padding: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.form-submit,
.form-reset {
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 35px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    backdrop-filter: blur(10px);
}

.form-submit::before,
.form-reset::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.form-submit {
    background: linear-gradient(135deg, 
        var(--primary-burgundy) 0%, 
        var(--deep-burgundy) 50%, 
        var(--primary-burgundy) 100%
    );
    color: var(--ivory);
    box-shadow: 
        0 12px 40px rgba(114, 47, 55, 0.25),
        0 6px 20px rgba(114, 47, 55, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.form-submit:hover {
    background: linear-gradient(135deg, 
        var(--deep-burgundy) 0%, 
        var(--primary-burgundy) 50%, 
        var(--deep-burgundy) 100%
    );
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(114, 47, 55, 0.35),
        0 10px 30px rgba(114, 47, 55, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    border-color: var(--rich-gold);
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

.form-reset {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 255, 255, 0.6)
    );
    color: var(--primary-burgundy);
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 8px 25px rgba(114, 47, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-reset:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(255, 255, 255, 0.85)
    );
    border-color: var(--rich-gold);
    color: var(--deep-burgundy);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-reset:hover::before {
    left: 100%;
}

.form-reset:active {
    transform: translateY(-1px) scale(1);
    transition: all 0.1s ease;
}

.form-note {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    position: relative;
    backdrop-filter: blur(5px);
}

.form-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rich-gold), transparent);
    border-radius: 1px;
}

.form-note p {
    color: var(--warm-gray);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0;
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

/* Enhanced focus states for accessibility */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.4);
    outline-offset: 2px;
}

/* Loading state for submit button */
.form-submit:disabled {
    background: linear-gradient(135deg, 
        rgba(114, 47, 55, 0.6), 
        rgba(74, 28, 31, 0.6)
    );
    cursor: not-allowed;
    transform: none;
    box-shadow: 
        0 4px 15px rgba(114, 47, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Custom validation styling */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc3545;
    box-shadow: 
        0 8px 25px rgba(220, 53, 69, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(255, 245, 245, 0.9), rgba(255, 235, 235, 0.7));
}

.form-input.valid,
.form-select.valid,
.form-textarea.valid {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(250, 250, 240, 0.9), rgba(245, 245, 235, 0.7));
}

/* Enhanced focus states */
.form-group.focused .form-label {
    color: var(--rich-gold);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-group.focused .form-label::after {
    width: 40px;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Contact Page Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-hero {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
        border-radius: 15px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 2.5rem;
        border-radius: 18px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .form-submit,
    .form-reset {
        padding: 1.125rem 2rem;
        min-width: auto;
        width: 100%;
    }
    
    .form-header {
        margin-bottom: 2.5rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 1.5rem 0.75rem;
        margin-bottom: 2rem;
        border-radius: 12px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 2rem;
        border-radius: 15px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-submit,
    .form-reset {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .form-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .form-note {
        padding: 1.25rem 1.5rem;
        margin-top: 2rem;
    }
    
    .form-note p {
        font-size: 0.85rem;
    }
}

/* Portfolio Animations */
.portfolio-category {
    animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-category:nth-child(1) { animation-delay: 0.1s; }
.portfolio-category:nth-child(2) { animation-delay: 0.2s; }
.portfolio-category:nth-child(3) { animation-delay: 0.3s; }
.portfolio-category:nth-child(4) { animation-delay: 0.4s; }

/* Contact Animations */
.contact-info,
.contact-form-container {
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-form-container {
    animation-delay: 0.2s;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .coat-of-arms {
        max-width: 200px;
    }
    
    .motto-section {
        background: none;
        box-shadow: none;
        border: 2px solid var(--primary-burgundy);
    }
    
    .portfolio-category {
        background: none;
        box-shadow: none;
        border: 2px solid var(--primary-burgundy);
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .connect-button {
        background: var(--primary-burgundy) !important;
    }
}