/* Base Styles */
:root {
    --color-papyrus: #f5f0e1;
    --color-dark-brown: #603813;
    --color-medium-brown: #8B5A2B;
    --color-light-brown: #A67C52;
    --color-highlight: #D4AC6E;
    --color-accent: #BF8969;
    --color-light-accent: #E6CCB2;
    --color-dark-accent: #7D5A50;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-mono/GeistMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.font-geist-mono {
    font-family: 'Geist Mono', monospace;
}

body {
    font-family: 'EB Garamond', serif;
    color: var(--color-dark-brown);
    background-color: var(--color-papyrus);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-papyrus {
    background-color: var(--color-papyrus);
}

.text-dark-brown {
    color: var(--color-dark-brown);
}

.page-container {
    position: relative;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    height: 2px;
    bottom: -8px;
    background-color: var(--color-medium-brown);
    opacity: 0.4;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--color-dark-accent);
    opacity: 0.8;
}

.illuminate-text {
    background: linear-gradient(to right, var(--color-dark-brown), var(--color-medium-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Navigation */
.nav-link {
    position: relative;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--color-medium-brown);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-medium-brown);
    transition: width 0.3s ease;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(166, 124, 82, 0.1);
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--color-medium-brown);
    padding-left: 0.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-medium-brown);
    color: var(--color-papyrus);
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-medium-brown);
}

.btn-primary:hover {
    background-color: var(--color-dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.2);
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.7s ease;
    opacity: 0;
}

.shine-effect:hover::before {
    transform: rotate(30deg) translate(150%, 150%);
    opacity: 1;
}

/* Form Elements */
.input-field {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(166, 124, 82, 0.3);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-medium-brown);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(166, 124, 82, 0.1);
}

/* Client Cards */
.client-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(166, 124, 82, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 124, 82, 0.1);
    border-color: rgba(166, 124, 82, 0.4);
}

.client-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(166, 124, 82, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--color-medium-brown);
}

/* Service Cards */
.service-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(166, 124, 82, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 124, 82, 0.1);
    border-color: rgba(166, 124, 82, 0.4);
}

.service-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(166, 124, 82, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--color-medium-brown);
}

.service-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 1.5rem;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-medium-brown);
    opacity: 0.6;
    border-radius: 50%;
}

.service-illustration {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.service-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(139, 90, 43, 0.1), transparent);
    pointer-events: none;
}

/* Case Studies */
.case-tab {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(166, 124, 82, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--color-dark-accent);
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-tab:hover {
    border-color: var(--color-medium-brown);
    color: var(--color-medium-brown);
}

.case-tab.active {
    background-color: var(--color-medium-brown);
    color: var(--color-papyrus);
    border-color: var(--color-medium-brown);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.case-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(166, 124, 82, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 124, 82, 0.1);
    border-color: rgba(166, 124, 82, 0.3);
}

.case-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.case-content {
    padding: 1.25rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.case-description {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.case-result {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-medium-brown);
    gap: 0.5rem;
}

/* Team Section */
.team-card {
    text-align: center;
    transition: all 0.3s ease;
}

.team-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.2);
}

.team-decoration-frame {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--color-medium-brown);
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.team-card:hover .team-decoration-frame {
    transform: rotate(45deg);
    opacity: 0.5;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--color-medium-brown);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-description {
    font-size: 0.875rem;
    opacity: 0.8;
    max-width: 280px;
    margin: 0 auto;
}

/* Background Effects */
.bg-gradient-radial {
    background: radial-gradient(circle at center, transparent 70%, rgba(139, 90, 43, 0.1) 100%);
}

/* Renaissance Styles */
.renaissance-border {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(139, 90, 43, 0.15);
    pointer-events: none;
    z-index: 999;
}

.renaissance-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.renaissance-corner::before,
.renaissance-corner::after {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    width: 40px;
    height: 40px;
}

/* Top left corner */
.renaissance-corner.top-0.left-0::before {
    top: 10px;
    left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5A2B' stroke-width='1'%3E%3Cpath d='M4 4C8 4 10 8 12 12C14 16 16 20 20 20'/%3E%3Cpath d='M4 8C7 8 9.5 12 12 16S17 24 20 24'/%3E%3C/svg%3E");
}

/* Top right corner */
.renaissance-corner.top-0.right-0::before {
    top: 10px;
    right: 10px;
    transform: scaleX(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5A2B' stroke-width='1'%3E%3Cpath d='M4 4C8 4 10 8 12 12C14 16 16 20 20 20'/%3E%3Cpath d='M4 8C7 8 9.5 12 12 16S17 24 20 24'/%3E%3C/svg%3E");
}

/* Bottom left corner */
.renaissance-corner.bottom-0.left-0::before {
    bottom: 10px;
    left: 10px;
    transform: scaleY(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5A2B' stroke-width='1'%3E%3Cpath d='M4 4C8 4 10 8 12 12C14 16 16 20 20 20'/%3E%3Cpath d='M4 8C7 8 9.5 12 12 16S17 24 20 24'/%3E%3C/svg%3E");
}

/* Bottom right corner */
.renaissance-corner.bottom-0.right-0::before {
    bottom: 10px;
    right: 10px;
    transform: scale(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5A2B' stroke-width='1'%3E%3Cpath d='M4 4C8 4 10 8 12 12C14 16 16 20 20 20'/%3E%3Cpath d='M4 8C7 8 9.5 12 12 16S17 24 20 24'/%3E%3C/svg%3E");
}

/* Illustrations and animations */
.illustration-container {
    position: relative;
}

.illustration-fade-in {
    animation: fadeIn 1.2s ease-out;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .renaissance-border {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .renaissance-corner {
        width: 60px;
        height: 60px;
    }
    
    .renaissance-corner::before,
    .renaissance-corner::after {
        width: 30px;
        height: 30px;
    }
    
    .team-image-container {
        width: 140px;
        height: 140px;
    }
}
