/* ===========================
   IAN B. Photography Portfolio
   Design System & Styles
   =========================== */

/* --- Base Typography --- */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #f7f7f0;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Crimson Pro', serif;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    color: #6b7280;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #1754cf;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

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

.nav-link.active {
    color: #1754cf;
}

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

.nav-link-mobile {
    color: #6b7280;
    transition: color 0.3s ease;
}

.nav-link-mobile.active {
    color: #1754cf;
}

.nav-link-mobile:hover {
    color: #1a1a1a;
}

/* --- Page Transitions --- */
.page-transition {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* --- Photo Collage (Home) --- */
.collage-item {
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-item img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: grayscale(10%) contrast(1.05);
}

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

/* --- Album Cards (Albums page) --- */
.album-card .album-image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card:hover .album-image {
    transform: scale(1.02);
}

.album-card .view-link svg {
    transition: transform 0.3s ease;
}

.album-card:hover .view-link svg {
    transform: translateX(4px);
}

.album-card:hover .view-link {
    color: #1754cf;
}

/* --- Album Detail Gallery --- */
.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* --- Contact Form --- */
.form-input {
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    background: transparent;
    font-weight: 300;
    width: 100%;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #d1d5db;
}

.form-input:focus {
    border-color: #1754cf;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Social Link Hover Line --- */
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link .line {
    height: 1px;
    width: 0;
    background-color: #1754cf;
    transition: width 0.3s ease;
}

.social-link:hover .line {
    width: 2rem;
}

.social-link:hover span:first-child {
    color: #1754cf;
}

/* --- Scroll reveal animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Button --- */
.btn-primary {
    background-color: #1754cf;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(23, 84, 207, 0.2);
    font-family: 'Manrope', sans-serif;
}

.btn-primary:hover {
    background-color: #1a1a1a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Back to top of page on navigation --- */
#app {
    min-height: 60vh;
    padding-top: 80px;
}