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

:root {
    --primary-dark: #1a1a1a;
    --accent-gold: #c9a961;
    --text-light: #666;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    background-image: url('images/rilee-portfolio.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    background-color: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7.5rem;
    font-weight: 300;
    letter-spacing: 14px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    line-height: 1.2;
}

.hero-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    background: var(--accent-gold);
    margin: 2.5rem auto 0;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 200;
    letter-spacing: 5px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease-out 0.3s both;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Gallery Section */
.gallery-section {
    padding: 9rem 2rem;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-white) 50%, var(--bg-cream) 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--accent-gold), transparent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    position: relative;
}

.gallery-heading::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-gold);
    margin: 2rem auto 0;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.4);
}

.gallery-subheading {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 5.5rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.8rem;
    animation: fadeIn 1.5s ease-out;
    padding: 0 1rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    aspect-ratio: 3/4;
    background: var(--bg-white);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    transition: border-color 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover::before {
    border-color: var(--accent-gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.05);
}

.gallery-overlay {
    display: none;
}

/* Contact Section */
.contact-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d2d2d 100%);
    text-align: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--accent-gold), transparent);
}

.contact-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--bg-cream);
    position: relative;
}

.contact-heading::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-gold);
    margin: 2rem auto 0;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.4);
}

.contact-subheading {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 3.5rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(250, 248, 245, 0.7);
}

.contact-info {
    margin-top: 3rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--bg-cream);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    padding: 1.5rem 3rem;
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    background: rgba(201, 169, 97, 0.1);
    margin-bottom: 2rem;
}

.contact-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.contact-link i {
    font-size: 2rem;
    transition: transform 0.4s ease;
}

.contact-link:hover i {
    transform: rotate(15deg);
}

.contact-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.contact-location {
    color: rgba(250, 248, 245, 0.6);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.contact-location i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.business-address {
    margin: 2.5rem 0;
    padding: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}

.business-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.business-name i {
    font-size: 1.5rem;
}

.address-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: rgba(250, 248, 245, 0.8);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.address-link:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.address-link i {
    font-size: 1.3rem;
    margin-top: 0.2rem;
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--bg-cream);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    padding: 1rem 2rem;
    border: 2px solid rgba(201, 169, 97, 0.5);
    border-radius: 50px;
    background: rgba(201, 169, 97, 0.05);
}

.social-link:hover {
    background: rgba(201, 169, 97, 0.2);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.2);
}

.social-link i {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.gallery-expand-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.gallery-item:hover .gallery-expand-hint {
    transform: translateY(0);
}

.gallery-expand-hint span {
    display: block;
    text-align: center;
    color: var(--bg-cream);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-expand-hint span::before {
    content: '⊕';
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d2d2d 100%);
    color: var(--bg-cream);
    text-align: center;
    padding: 3.5rem;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    font-weight: 300;
    border-top: 2px solid var(--accent-gold);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.built-by {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(250, 248, 245, 0.6);
    letter-spacing: 2px;
}

.built-by a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.built-by a:hover {
    color: var(--bg-cream);
    text-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    cursor: pointer;
}

.modal.active {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--accent-gold);
    cursor: default;
}

.modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--bg-cream);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-close {
    opacity: 1;
    transform: rotate(90deg) scale(1);
}

.modal-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg) scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 450px;
        background-position: center center;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .gallery-heading {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-section {
        padding: 4rem 1.5rem;
    }

    .gallery-expand-hint {
        transform: translateY(0);
    }

    .contact-section {
        padding: 5rem 1.5rem;
    }

    .contact-heading {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .contact-link {
        font-size: 1.8rem;
        padding: 1.2rem 2rem;
        gap: 1rem;
    }

    .contact-link i {
        font-size: 1.5rem;
    }

    .social-link {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .social-link i {
        font-size: 1.3rem;
    }

    .business-name {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .address-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
        background-position: center center;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-title::after {
        width: 80px;
        margin-top: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-heading {
        font-size: 2rem;
    }

    .gallery-expand-hint {
        transform: translateY(0);
    }

    .gallery-expand-hint span {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .contact-heading {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .contact-link {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
        gap: 0.8rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-link i {
        font-size: 1.3rem;
    }

    .contact-location {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }

    .social-link i {
        font-size: 1.2rem;
    }

    .business-address {
        padding: 1.5rem 1rem;
    }

    .business-name {
        font-size: 1.4rem;
        letter-spacing: 2px;
        flex-direction: column;
        gap: 0.5rem;
    }

    .business-name i {
        font-size: 1.3rem;
    }

    .address-link {
        font-size: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
}
