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

:root {
    --black: #0A0A0A;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #4A4A4A;
    --accent: #E8B339;
    --accent-dark: #B8860B;
    --blue: #2D4DB5;
    --blue-dark: #1E3A8A;
    --red: #C2302C;
    --red-dark: #8B1F1D;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: var(--black);
    color: var(--white);
    padding: 2.5rem 1rem;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 400;
    border: 6px solid var(--white);
    padding: 1.5rem 2rem;
    display: inline-block;
    box-shadow: 10px 10px 0 var(--gray-dark);
    margin: 0;
}

.tagline {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 1;
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--black);
}

/* Logo Section */
.logo-section {
    background-color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: var(--white);
    border: 6px solid var(--black);
    box-shadow: 10px 10px 0 var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.logo-image.loaded,
.logo-image[src] {
    opacity: 1;
}

/* Image loading states */

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 6px solid var(--black);
    animation: fadeIn 0.8s ease-out;
}

.hero h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent);
    box-shadow: 3px 3px 0 var(--black);
}

.hero p {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    font-weight: 400;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Services Section */
.services {
    background-color: var(--white);
    padding: 5rem 2rem;
    border-bottom: 6px solid var(--black);
    animation: fadeIn 0.6s ease-out;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border: 5px solid var(--black);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 8px 0 var(--black);
    animation: fadeInUp 0.6s ease-out backwards;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:hover {
    transform: translate(-4px, -4px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 16px 16px 0 var(--black);
}

.service-icon {
    width: 80px;
    height: 80px;
    min-height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 4rem;
}

.service-card:hover .service-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-height: 5rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Ethos Section */
.ethos {
    background-color: var(--white);
    color: var(--black);
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 6px solid var(--black);
}

.ethos .section-title {
    color: var(--black);
}

.ethos-content {
    max-width: 800px;
    margin: 0 auto;
}

.ethos-content p {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.ethos-content strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.ethos-principle {
    margin-bottom: 2.5rem;
}

.ethos-principle h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ethos-principle p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Service Detail Page */
.service-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.service-detail-header .service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    color: var(--black);
    transition: color 0.3s ease;
}

.service-detail-header .section-title {
    margin-bottom: 0;
}

.service-detail-content {
    text-align: left;
}

.service-intro {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: var(--gray-dark);
}

.service-detail-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 2rem 0 1rem;
    color: var(--black);
}

.service-list {
    list-style: none;
    margin: 1rem 0 2rem;
    padding: 0;
}

.service-list li {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.service-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1rem;
}

.service-detail-content > p {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--white);
    color: var(--black);
    padding: 5rem 2rem;
    text-align: center;
}

.contact .section-title {
    color: var(--black);
}

.contact-info p {
    color: var(--black);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 1.3rem 3.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    border: 5px solid var(--black);
    margin-top: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 3px;
    box-shadow: 8px 8px 0 var(--black);
}

.cta-button:hover {
    background-color: var(--accent-dark);
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 var(--black);
}

/* Portfolio Page */
.portfolio-card {
    text-decoration: none;
    color: var(--black);
    display: block;
    cursor: pointer;
}

.portfolio-card:hover {
    color: var(--black);
}

/* Team Page */
.team-icon {
    width: 140px;
    height: 140px;
    min-height: 140px;
    margin: 0 auto 1.5rem;
    display: block;
    color: var(--black);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.team-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 400;
    min-height: 3rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    min-height: 5rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-bio {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.team-bio li {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.team-bio li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 2.5rem;
    text-align: center;
}

.footer-sitemap {
    margin-bottom: 2rem;
}

.footer-sitemap ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-sitemap a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.footer-sitemap a:hover {
    color: var(--accent);
}

footer p {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    font-weight: 400;
}

/* Navigation */
nav {
    background-color: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.7rem 1.5rem;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    box-shadow: none;
    display: inline-block;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.nav-links a.active {
    background-color: var(--white);
    color: var(--black);
    border: 3px solid var(--white);
    box-shadow: 5px 5px 0 var(--gray-dark);
}

.nav-links a.active::after {
    display: none;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Decorative Elements */
.divider {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 2.5rem;
        letter-spacing: 2px;
        padding: 1rem 1.5rem;
        box-shadow: 6px 6px 0 var(--gray-dark);
    }

    .tagline {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-top: 1rem;
    }

    .logo-circle {
        width: 180px;
        height: 180px;
        padding: 1.5rem;
        box-shadow: 6px 6px 0 var(--black);
    }

    .logo-section {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

    .service-card {
        box-shadow: 5px 5px 0 var(--black);
    }

    .service-card:hover {
        transform: translate(-2px, -2px);
        box-shadow: 7px 7px 0 var(--black);
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        letter-spacing: 1px;
    }

    .nav-links a.active {
        box-shadow: 3px 3px 0 var(--gray-dark);
    }

    .cta-button {
        font-size: 1.4rem;
        padding: 1rem 2.5rem;
        box-shadow: 5px 5px 0 var(--black);
    }

    .cta-button:hover {
        transform: translate(-2px, -2px);
        box-shadow: 7px 7px 0 var(--black);
    }
}
