/*
Theme Name: Paulina Aler Portfolio
Theme URI: https://paulinaaler.com
Author: Paulina Aler
Author URI: https://paulinaaler.com
Description: A modern, interactive portfolio theme featuring custom cursor effects, smooth animations, and a clean editorial aesthetic. Built for graphic designers and creative professionals.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paulina-portfolio
Tags: portfolio, creative, design, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
    --cream: #FFF8F6;
    --brown: #A06C5C;
    --black: #000000;
    --light-brown: #D4C4B8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--cream);
    color: var(--black);
    overflow-x: hidden;
    cursor: none;
}

/* Custom cursor */
.cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--brown);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(1.8);
    border-color: var(--cream);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--brown);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease;
}

/* Texture overlay with blend mode */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(160, 108, 92, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(160, 108, 92, 0.05) 0%, transparent 50%),
        url('https://texturelabs.org/wp-content/uploads/Texturelabs_Paper_237S.jpg');
    background-blend-mode: overlay, overlay, multiply;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1000;
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Gallery */
.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

/* Minimal header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, backdrop-filter 0.3s;
}

header.scrolled {
    background: rgba(255, 248, 246, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    font-weight: bolder;
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav ul {
    display: flex;
    gap: 2.5rem; /* spacing between items */
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--black);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    font-family: 'Instrument Serif', serif;
}

nav a:hover {
    color: var(--brown);
}

/* Hero with scroll snap */
.hero {
    min-height: 80vh;
  	margin-top: 91px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
	padding: clamp(4rem, 10vw, 10rem) 2rem;
}

/* Paper card wrapper */
.hero-paper {
    position: relative;
    max-width: min(1300px, 90vw);
    width: 100%;
    margin: 0 auto;
}

/* Paperclip logo placeholder — overlaps top-left corner of paper */
.hero-logo-clip {
    position: absolute;
    top: -28px;
    left: 48px;
    width: clamp(80px, 10vw, 160px);
    z-index: 20;
    /* Drop in your <img> tag inside this div */
    display: flex;
    align-items: flex-end;
}

.hero-logo-clip img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

/* The paper itself */
.hero-content {
    position: relative;
    text-align: left;
    background: #FFFEF9;
    border-radius: 2px;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
    transform: rotate(-0.4deg);

    /* Layered shadows for depth */
    box-shadow:
        0 2px 1px rgba(0,0,0,0.04),
        0 6px 16px rgba(0,0,0,0.08),
        0 20px 60px rgba(0,0,0,0.10),
        inset 0 0 0 1px rgba(0,0,0,0.04);

    /*Lined paper via repeating gradient 
    background-image:
        red margin line
        linear-gradient(to right, transparent 54px, rgba(210,120,100,0.18) 54px, rgba(210,120,100,0.18) 56px, transparent 56px),
        blue ruled lines
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 31px,
            rgba(160,180,210,0.22) 31px,
            rgba(160,180,210,0.22) 32px
        ); */
    background-color: #FFFEF9;

    /* Slight top-left corner fold effect via pseudo */
    z-index: 10;
}


/* Second stacked paper sheet behind for depth */
.hero-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #FDF8F0;
    transform: rotate(1.1deg) translateY(4px);
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    z-index: 5;
}
.hero-paper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #FAF5EC;
    transform: rotate(-0.8deg) translateY(8px) translateX(-2px);
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    z-index: 4;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

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

.hero-title {
    font-family: 'syne', sans-serif;
	font-size: clamp(3rem, 8vw, 5rem);
	margin-bottom: 1.5rem;
    font-weight: 700;
  	line-height: 1;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-title .word {
    display: inline-block;
    transition: transform 0.3s;
}

.hero-title .word:hover {
    transform: translateY(-10px);
    color: var(--brown);
}

.hero-description {
    font-size: 1.2rem;
    font-family: 'Instrument serif', serif;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    max-width: 700px;
	margin: 0 0 2rem 0;
    font-weight: 400;
    letter-spacing: 0.05rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.cta-link {
    color: var(--brown);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    font-weight: 200;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brown);
    transition: all 0.3s;
    font-family: 'syne', serif;
}

.cta-link:hover {
    padding-bottom: 1rem;
    color: var(--black);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brown);
    animation: bounce 2s infinite;
}

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

/* Work section with reveal on scroll */
.work-section {
    min-height: 100vh;
	padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-container {
    max-width: 1600px;
    width: 100%;
}

.section-intro {
    max-width: 800px;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-title {
    font-family: 'syne', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

/* Dynamic grid that reveals on scroll */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.work-card {
    position: relative;
    cursor: pointer;
    overflow: visible;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.work-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card:nth-child(1) { transition-delay: 0.1s; }
.work-card:nth-child(2) { transition-delay: 0.2s; }
.work-card:nth-child(3) { transition-delay: 0.3s; }
.work-card:nth-child(4) { transition-delay: 0.4s; }
.work-card:nth-child(5) { transition-delay: 0.3s; }
.work-card:nth-child(6) { transition-delay: 0.4s; }

.work-image-container {
    position: relative;
    overflow: visible;
    aspect-ratio: 5/4;
}

.work-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.work-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(160, 108, 92, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

/* Award medallion — breaks out of top-right corner */
.award-medallion {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 85px;
    height: 85px;
    z-index: 10;
    pointer-events: none;
}

.award-medallion {
    background: radial-gradient(circle at 40% 35%, #F2C96A, #C08830);
    border-radius: 50%;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 240, 180, 0.5),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
    border: 1.5px solid rgba(255, 220, 100, 0.35);
}

.award-medallion-text {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* thin engraved ring inside */
    box-shadow: inset 0 0 0 5px rgba(180, 120, 20, 0.25);
    padding: 2px;
}

.award-medallion-text .award-label {
    font-family: 'Instrument Serif', serif;
    font-size: 7px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A2E00;
    text-align: center;
    line-height: 1.3;
    opacity: 0.9;
}

.work-card:hover .work-image-container::before {
    opacity: 1;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-image {
    transform: scale(1.1);
}

.work-info {
    padding: 2rem 0;
}

.work-category {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.work-title {
    font-family: 'syne', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    transition: color 0.3s;
}

.work-card:hover .work-title {
    color: var(--brown);
}

.work-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

.view-all-container {
    text-align: center;
    margin-top: 4rem;
}

.view-all-link {
    display: inline-block;
    color: var(--brown);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brown);
    transition: all 0.3s;
}

.view-all-link:hover {
    padding-bottom: 1rem;
    color: var(--black);
}

/* Services with hover interaction */
.services-section {
    min-height: 80vh;
    padding: 8rem 4rem;
    background: var(--black);
    color: var(--cream);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://texturelabs.org/wp-content/uploads/Texturelabs_Paper_374S.jpg');
    opacity: 0.05;
    mix-blend-mode: screen;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-header {
    margin-bottom: 5rem;
}

.services-header h2 {
    font-family: 'syne', sans-serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.services-header p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 248, 246, 0.7);
    max-width: 700px;
    font-weight: 300;
}

.services-list {
    display: grid;
    gap: 0;
}

.service-item {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 248, 246, 0.2);
    display: grid;
    grid-template-columns: 100px 1fr 2fr;
    gap: 3rem;
    align-items: center;
    transition: all 0.5s;
    cursor: pointer;
}

.service-item:hover {
    padding-left: 2rem;
    background: rgba(160, 108, 92, 0.1);
}

.service-number {
    font-size: 2.5rem;
    color: var(--brown);
    font-weight: 300;
}

.service-item h3 {
    font-family: 'syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 248, 246, 0.7);
    font-weight: 300;
}

/* CTA Section */
.cta-section {
    padding: 8rem 4rem;
    text-align: center;
    background: var(--cream);
}

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

.cta-container h2 {
    font-family: 'syne', sans-serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.cta-container p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    background: var(--brown);
    color: var(--cream);
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.4s;
    box-shadow: 0 4px 20px rgba(160, 108, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(160, 108, 92, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--brown);
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    border: 2px solid var(--brown);
    border-radius: 50px;
    transition: all 0.4s;
}

.btn-secondary:hover {
    background: var(--brown);
    color: var(--cream);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 6rem 4rem 3rem;
    background: var(--cream);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-family: 'syne', sans-serif;
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

.footer-links h4 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

.footer-links a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2.2;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brown);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1225px) {
	.hero-title {
      font-size: 3rem;
  }
}

@media (max-width: 968px) {
    body {
        cursor: auto;
    }
    
    .cursor, .cursor-dot {
        display: none;
    }
    
    header {
    	padding: 1.25rem 1.5rem;
    }
    
    nav a {
        font-size: 1rem;
    }
    nav ul {
        gap: 1.5rem;
    }

    .hero-logo-clip {
        top: -22px;
        left: 28px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-header h2 {
        font-size: 2.5rem;
    }
    
    .service-item h3 {
        font-size: 1.8rem;
    }
    
    .cta-container h2 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
  
  	.hero {
    	padding-top: 0px;
  	}
  
    header {
      padding: 1rem 1.25rem;
    }
    nav a {
      font-size: 0.9rem;
    }

    nav ul {
      gap: 1rem;
    }
  
    .hero-content {
        transform: rotate(0deg); /* no tilt on tiny screens */
        padding: 2rem 1.5rem 2.5rem;
    }

    .hero-logo-clip {
        top: -18px;
        left: 16px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}