:root {
    --bg-color: #da0037;
    /* Vivid Red */
    --text-color: #ffffff;
    --gap: 20px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

header.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Keep below gallery */
}

.hero-title {
    font-size: 13vw;
    /* Massive responsive size */
    line-height: 0.85;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 18vw;
        /* Larger on mobile */
        line-height: 0.9;
    }
}


.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.2s;
    /* Outline effect for the first line */
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.4s;
    /* Solid filled for the second line */
    color: #fff;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out 1.2s forwards;
    text-transform: uppercase;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
    gap: var(--gap);
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    /* Ensure it stacks on top */
    z-index: 2;
    background-color: transparent;
    /* Or var(--bg-color) if solid needed */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    /* Slight rounded corners for modern feel */
}

/* Grid Spans */
.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 600px) {

    .gallery-item.wide,
    .gallery-item.big {
        grid-column: span 1;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--bg-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Content Sections (About & Contact) */
.content-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-section {
    text-align: left;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
}

.about-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    display: inline-block;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    margin-bottom: 10px;
    font-size: 1rem;
    opacity: 0.8;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.about-image img:hover {
    filter: grayscale(0%);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: -1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding-bottom: 10px;
}

.bio {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.contact-link {
    display: block;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    margin: 20px 0;
    font-weight: 700;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.7;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.8;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
    background-color: #ffffff;
    color: #000;
}