:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent: #f9a64a;
    --transition-speed: 0.4s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}


.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography elements */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-speed) ease;
}

a:hover {
    opacity: 0.6;
}

/* Layout */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-profile {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background-color: #f0f0f0;
}

.hero-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform var(--transition-speed) ease;
}

.hero-profile:hover img {
    transform: scale(1.05);
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width var(--transition-speed) ease;
}

.contact-link:hover {
    color: var(--accent);
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    opacity: 0.5;
    animation: bounce 2s infinite ease-in-out;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.arrow-down {
    width: 1px;
    height: 30px;
    background-color: var(--text-primary);
    position: relative;
}

.arrow-down::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid var(--text-primary);
    border-right: 1px solid var(--text-primary);
    transform: rotate(45deg);
}

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

/* Projects */
.projects {
    padding: 10vh 0;
    display: flex;
    flex-direction: column;
    gap: 25vh;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* simple way to reverse layout */
}

.project-item:nth-child(even) > * {
    direction: ltr; /* reset content direction */
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-content p {
    margin-bottom: 2rem;
}

.project-link {
    display: inline-block;
    border: 1px solid var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 40px;
    transition: all var(--transition-speed) ease;
    position: relative;
    z-index: 20;
}

.project-link:hover {
    background-color: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
    opacity: 1;
}

.project-visual {
    background-color: #f7f7f7;
    height: 60vh;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.project-item:hover .project-visual {
    transform: scale(1.02);
}

.print-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 3;
    pointer-events: none;
}

.digital-visual {
    background-color: rgba(0, 0, 0, 0.25) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.digital-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 15;
    pointer-events: none;
}

.email-visual {
    background-color: rgba(0, 0, 0, 0.25) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


/* Email Laptop Mockup */
.email-laptop-mockup {
    position: relative;
    width: 97.5%;
    z-index: 10;
}

.email-laptop-mockup-img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.4));
}

.email-laptop-screen-area {
    position: absolute;
    top: 28.68%;
    left: 34.77%;
    right: 29.30%;
    bottom: 26.07%;
    overflow: hidden;
    z-index: 10;
    background: transparent;
}

.email-scroll-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.email-scroll-slide {
    width: 100%;
    flex-shrink: 0;
}

.email-scroll-slide img {
    width: 100%;
    display: block;
}

/* Slideshow styles */
.print-slide {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
    animation: panImage 25s linear infinite alternate;
}

.print-slide.active {
    opacity: 1;
    z-index: 2;
}

.digital-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.css-phone {
    height: 85%;
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    position: relative;
    box-shadow: none;
    overflow: visible;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.css-phone-img {
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

/* Laptop Styles (legacy - kept for compatibility) */

.css-phone-screen {
    position: absolute;
    top: 2%;
    bottom: 2%;
    left: 3%;
    right: 3%;
    background: #fff;
    border-radius: clamp(30px, 4vh, 45px);
    overflow: hidden;
    display: flex;
    z-index: 1;
}


@keyframes panImage {
    0% { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

/* Footer */
.site-footer {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 5vh;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.copyright {
    margin-top: 5rem;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
    .project-item, .project-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .project-visual {
        height: 40vh;
        order: -1;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ==================================
   PRINT PAGE SPECIFIC STYLES
   ================================== */
.print-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 20px;
    row-gap: 0;
    column-gap: 1.5rem;
    grid-auto-flow: dense;
    width: 100%;
}

.print-tile {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: transparent;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    margin-bottom: 1.5rem;
    height: auto;
}

.span-1-col { grid-column: span 1; }
.span-2-cols { grid-column: span 2; }

.print-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.print-tile img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.print-tile:hover img {
    transform: scale(1.05);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--accent);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.modal-tile-prev { left: 2rem; width: 80px; height: 80px; font-size: 2rem; }
.modal-tile-next { right: 2rem; width: 80px; height: 80px; font-size: 2rem; }

.page-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-nav-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.modal-page-prev { left: 1rem; }
.modal-page-next { right: 1rem; }

.modal-content {
    display: flex;
    width: 85%;
    height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    background: var(--bg-color);
}

.modal-left {
    flex: 1.5;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: zoom-in;
    user-select: none;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.zoom-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-controls button:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.modal-right {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
}

.modal-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.modal-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 900px) {
    .print-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 20px;
        column-gap: 1rem;
        row-gap: 0;
    }
    
    .print-tile {
        margin-bottom: 1rem;
    }

    
    .modal-content {
        flex-direction: column;
        width: 95%;
        height: 90vh;
    }
    
    .modal-left {
        flex: 1.2;
    }
    
    .modal-right {
        flex: 0.8;
        padding: 2rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
    
    .modal-tile-prev { left: 1rem; width: 60px; height: 60px; font-size: 1.5rem; }
    .modal-tile-next { right: 1rem; width: 60px; height: 60px; font-size: 1.5rem; }
    .modal-page-prev { left: 0.5rem; width: 35px; height: 35px; font-size: 1.2rem; }
    .modal-page-next { right: 0.5rem; width: 35px; height: 35px; font-size: 1.2rem; }
}

/* ==================================
   EMAIL PAGE SPECIFIC STYLES
   ================================== */
#email-grid .print-tile {
    position: relative;
}

#email-grid .print-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    transition: background-color var(--transition-speed) ease;
    pointer-events: none;
    z-index: 1;
}

#email-grid .print-tile:hover::after {
    background-color: transparent;
}

/* ==================================
   SOCIAL MEDIA PAGE SPECIFIC STYLES
   ================================== */
@media (max-width: 900px) {
    .campaign-modal-content {
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    .instagram-carousel-container {
        flex: none !important;
        height: 50vh !important;
        width: 100% !important;
    }
    .instagram-sidebar {
        flex: none !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #efefef !important;
        height: auto !important;
    }
    .ig-caption-scroll {
        overflow-y: visible !important;
    }
}

/* ==================================
   LAPTOP SPECIFIC STYLES
   ================================== */
