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

:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent-dark: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --accent-gold: #cc0000;
    --accent-red: #8b0000;
    --accent-red-bright: #ff1a1a;
    --accent-purple: #4a148c;
    --border-color: #2a2a2a;
    --border-color-soft: rgba(255, 255, 255, 0.09);
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --shadow-glow: rgba(204, 0, 0, 0.35);
    --radius-full: 999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: 'Cinzel', serif;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 4px;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--text-primary);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-rows: 1fr;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--darker-bg);
    overflow: clip;
    padding: clamp(88px, 12vh, 110px) 0 clamp(56px, 8vh, 80px);
    box-sizing: border-box;
}

.hero-portrait {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    min-height: 0;
    min-width: 0;
    padding: 0 clamp(8px, 1.5vw, 20px);
    pointer-events: none;
}

.hero-portrait-frame {
    position: relative;
    width: min(40vw, 460px);
    height: min(78vh, 680px);
    max-height: calc(100dvh - 180px);
    overflow: hidden;
    background: var(--darker-bg);
    pointer-events: auto;
}

.hero-portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(ellipse 54% 60% at 50% 32%, transparent 24%, rgba(5, 5, 5, 0.28) 54%, #050505 92%),
        linear-gradient(to bottom, #050505 0%, transparent 8%, transparent 92%, #050505 100%),
        linear-gradient(to right, #050505 0%, transparent 5%, transparent 95%, #050505 100%);
}

.hero-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 14%;
    transform: scale(1.2);
    user-select: none;
    -webkit-user-drag: none;
    -webkit-mask-image: radial-gradient(
        ellipse 56% 62% at 50% 32%,
        #000 38%,
        rgba(0, 0, 0, 0.85) 62%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 56% 62% at 50% 32%,
        #000 38%,
        rgba(0, 0, 0, 0.85) 62%,
        transparent 100%
    );
}

.hero-face-dim {
    filter: brightness(0.62) contrast(1.1) saturate(0.9);
}

.hero-face-lit {
    --spot-x: 50%;
    --spot-y: 50%;
    --spot-size: 165px;
    filter: brightness(1.62) contrast(1.16) saturate(1.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-mask-image: radial-gradient(
        circle var(--spot-size) at var(--spot-x) var(--spot-y),
        #000 0%,
        #000 38%,
        transparent 66%
    );
    mask-image: radial-gradient(
        circle var(--spot-size) at var(--spot-x) var(--spot-y),
        #000 0%,
        #000 38%,
        transparent 66%
    );
}

.hero-portrait.is-revealing .hero-face-lit {
    opacity: 1;
}

.hero-portrait.is-mouth-glow .hero-face-lit {
    --spot-size: 250px;
    filter: brightness(1.78) contrast(1.18) saturate(1.12);
}

.hero-face-zone {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: crosshair;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    grid-column: 1 / -1;
    grid-row: 1;
    background: radial-gradient(circle at 18% 50%, rgba(204, 0, 0, 0.08) 0%, transparent 45%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    grid-column: 1 / -1;
    grid-row: 1;
    background:
        linear-gradient(105deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.45) 38%, rgba(5, 5, 5, 0.04) 68%, transparent 90%),
        linear-gradient(to bottom, rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.65)),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%23181818" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
}

.hero-content {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 0 clamp(20px, 3vw, 40px);
    width: 100%;
    max-width: 540px;
    margin-left: clamp(5%, 8vw, 14%);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-self: center;
    justify-self: start;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.65rem, 3.8vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.1;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.highlight {
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--shadow-glow);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    opacity: 0.5;
}

.hero-subtitle {
    font-size: clamp(0.92rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.65;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 1.2vw, 13px) clamp(18px, 2.2vw, 28px);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(0.72rem, 1.1vw, 0.82rem);
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    max-width: 100%;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #990000 100%);
    color: var(--text-primary);
    box-shadow: 0 8px 24px -6px var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px -6px var(--shadow-glow);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color-soft);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    background: rgba(204, 0, 0, 0.08);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: end;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    z-index: 4;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.hero-reveal-hint {
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    bottom: 18%;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    z-index: 4;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-portrait.is-revealing ~ .hero-reveal-hint,
.hero.is-portrait-active .hero-reveal-hint {
    opacity: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

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

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--accent-gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    font-weight: 300;
}

/* Services Section */
.services {
    background: var(--darker-bg);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--accent-dark);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card::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;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.service-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--dark-bg);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* Why Us Section */
.why-us {
    background: var(--dark-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-number {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.why-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio {
    background: var(--darker-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--accent-dark);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(42, 42, 42, 0.1) 10px,
            rgba(42, 42, 42, 0.1) 20px
        );
    opacity: 0.5;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.portfolio-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-label {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-value {
    color: var(--text-primary);
    font-size: 1.1rem;
}

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

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-value { text-decoration: none; }
.contact-value:hover, .contact-value:focus-visible { color: var(--accent-gold); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--accent-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 420px;
        margin-left: clamp(4%, 6vw, 10%);
        gap: 1.25rem;
    }

    .hero-portrait-frame {
        width: min(44vw, 400px);
        height: min(72vh, 580px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--darker-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 96px 0 48px;
        min-height: auto;
        overflow: visible;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: none;
        margin-left: 0;
        text-align: center;
        padding: 0 20px;
        justify-self: center;
        gap: 1rem;
    }

    .hero-portrait {
        grid-column: 1;
        grid-row: 2;
        padding: 1.25rem 20px 0;
    }

    .hero-portrait-frame {
        width: min(88vw, 360px);
        height: min(48vh, 380px);
        max-height: none;
        margin: 0 auto;
    }

    .hero-face {
        object-position: 50% 12%;
        transform: scale(1.1);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-reveal-hint {
        grid-column: 1;
        grid-row: 2;
        right: 50%;
        bottom: 4%;
        transform: translateX(50%);
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

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

    .service-card,
    .why-item {
        padding: 1.5rem;
    }
}

