/* ═══════════════════════════════════════════════════════════════
   TRAVELING TROUBADOUR DESIGN & MEDIA
   Custom landing page styles
   
   Aesthetic: Warm, earthy, sophisticated, artisanal
   Colors: Warm cream, terracotta, deep forest green, charcoal
   Typography: Elegant serif + clean sans-serif
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────────────────────────── */
.tt-media-page {
    --tt-cream: #F5F0E8;
    --tt-cream-dark: #EDE6D9;
    --tt-terracotta: #C17F59;
    --tt-terracotta-dark: #A66B48;
    --tt-forest: #2C4A3E;
    --tt-forest-light: #3D6454;
    --tt-charcoal: #2D2D2D;
    --tt-charcoal-light: #4A4A4A;
    --tt-white: #FFFFFF;
    --tt-black: #1A1A1A;
    
    --tt-font-serif: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --tt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --tt-transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─────────────────────────────────────────────────────────────
   BASE STYLES
───────────────────────────────────────────────────────────── */
.tt-media-page {
    margin: 0;
    padding: 0;
    background: var(--tt-cream);
    color: var(--tt-charcoal);
    font-family: var(--tt-font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

.tt-page {
    min-height: 100vh;
}

.tt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────── */
.tt-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    transition: background 0.4s var(--tt-transition), 
                padding 0.4s var(--tt-transition);
}

.tt-nav.scrolled {
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.tt-nav-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tt-charcoal);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tt-nav-back:hover {
    opacity: 1;
}

.tt-nav-back svg {
    width: 18px;
    height: 18px;
}

.tt-nav-links {
    display: flex;
    gap: 2.5rem;
}

.tt-nav-links a {
    color: var(--tt-charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.tt-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--tt-terracotta);
    transition: width 0.3s var(--tt-transition);
}

.tt-nav-links a:hover::after {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────── */
.tt-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.tt-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(193, 127, 89, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(44, 74, 62, 0.06) 0%, transparent 50%),
        var(--tt-cream);
    z-index: -1;
}

/* Peranakan circles overlay */
.tt-hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background-image: url('https://nicholastamagna.com/wp-content/uploads/2025/12/peranakan-circles.svg');
    background-size: 350px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.4;
    pointer-events: none;
    transform: rotate(45deg);
}

.tt-hero-content {
    text-align: center;
    max-width: 800px;
}

/* ─────────────────────────────────────────────────────────────
   PERANAKAN DIAMOND BORDER
───────────────────────────────────────────────────────────── */
.tt-diamond-border {
    position: relative;
    padding: 60px 80px;
    margin: 0 auto;
}

/* Diamond corners */
.tt-diamond-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--tt-terracotta);
    transform: rotate(45deg);
    background: var(--tt-cream);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tt-diamond-corner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 12px;
    height: 12px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tt-diamond-corner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid var(--tt-terracotta);
    opacity: 0.5;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Diamond corner spin on logo hover */
.tt-diamond-border.tt-corners-spin .tt-diamond-tl {
    transform: rotate(405deg);
}

.tt-diamond-border.tt-corners-spin .tt-diamond-tr {
    transform: rotate(-315deg);
}

.tt-diamond-border.tt-corners-spin .tt-diamond-bl {
    transform: rotate(-315deg);
}

.tt-diamond-border.tt-corners-spin .tt-diamond-br {
    transform: rotate(405deg);
}

.tt-diamond-border.tt-corners-spin .tt-diamond-tl::before {
    transform: translate(-50%, -50%) rotate(-360deg);
}

.tt-diamond-border.tt-corners-spin .tt-diamond-tr::before {
    transform: translate(-50%, -50%) rotate(360deg);
}

.tt-diamond-border.tt-corners-spin .tt-diamond-bl::before {
    transform: translate(-50%, -50%) rotate(360deg);
}

.tt-diamond-border.tt-corners-spin .tt-diamond-br::before {
    transform: translate(-50%, -50%) rotate(-360deg);
}

.tt-diamond-tl {
    top: -20px;
    left: -20px;
}

.tt-diamond-tr {
    top: -20px;
    right: -20px;
}

.tt-diamond-bl {
    bottom: -20px;
    left: -20px;
}

.tt-diamond-br {
    bottom: -20px;
    right: -20px;
}

/* Decorative edges - now handled in animated section below */

/* Inner decorative frame */
.tt-diamond-inner {
    position: relative;
    padding: 20px;
}

.tt-diamond-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(193, 127, 89, 0.3);
    pointer-events: none;
}

/* Small diamond accents on inner frame */
.tt-diamond-inner::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--tt-cream);
    border: 2px solid var(--tt-terracotta);
}

/* Animated marquee edges */
.tt-diamond-edge {
    position: absolute;
    overflow: hidden;
}

.tt-diamond-edge::before {
    content: '';
    position: absolute;
    background: repeating-linear-gradient(
        90deg,
        var(--tt-terracotta) 0px,
        var(--tt-terracotta) 8px,
        transparent 8px,
        transparent 16px,
        var(--tt-forest) 16px,
        var(--tt-forest) 24px,
        transparent 24px,
        transparent 32px
    );
    animation: marqueeForward 30s linear infinite;
}

.tt-diamond-top,
.tt-diamond-bottom {
    left: 40px;
    right: 40px;
    height: 3px;
}

.tt-diamond-top::before,
.tt-diamond-bottom::before {
    width: 200%;
    height: 100%;
    top: 0;
    left: 0;
    animation: marqueeForward 30s linear infinite;
}

.tt-diamond-top {
    top: 0;
}

.tt-diamond-bottom {
    bottom: 0;
}

.tt-diamond-bottom::before {
    animation: marqueeForward 30s linear infinite reverse;
}

.tt-diamond-left,
.tt-diamond-right {
    top: 40px;
    bottom: 40px;
    width: 3px;
}

.tt-diamond-left::before,
.tt-diamond-right::before {
    width: 100%;
    height: 200%;
    top: 0;
    left: 0;
    background: repeating-linear-gradient(
        180deg,
        var(--tt-terracotta) 0px,
        var(--tt-terracotta) 8px,
        transparent 8px,
        transparent 16px,
        var(--tt-forest) 16px,
        var(--tt-forest) 24px,
        transparent 24px,
        transparent 32px
    );
    animation: marqueeDown 30s linear infinite;
}

.tt-diamond-left {
    left: 0;
}

.tt-diamond-right {
    right: 0;
}

.tt-diamond-right::before {
    animation: marqueeDown 30s linear infinite reverse;
}

/* Marquee animations */
@keyframes marqueeForward {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Reverse direction class - toggled by JS on logo hover */
.tt-diamond-border.tt-marquee-reverse .tt-diamond-top::before {
    animation-direction: reverse;
}

.tt-diamond-border.tt-marquee-reverse .tt-diamond-bottom::before {
    animation-direction: normal;
}

.tt-diamond-border.tt-marquee-reverse .tt-diamond-left::before {
    animation-direction: reverse;
}

.tt-diamond-border.tt-marquee-reverse .tt-diamond-right::before {
    animation-direction: normal;
}

/* Responsive adjustments - IMPROVED MOBILE SPACING */
@media (max-width: 768px) {
    .tt-diamond-border {
        padding: 30px 20px;
        margin: 0 25px;
    }
    
    .tt-diamond-corner {
        width: 24px;
        height: 24px;
    }
    
    .tt-diamond-corner::before {
        width: 6px;
        height: 6px;
    }
    
    .tt-diamond-corner::after {
        width: 14px;
        height: 14px;
    }
    
    .tt-diamond-tl {
        top: -12px;
        left: -12px;
    }
    
    .tt-diamond-tr {
        top: -12px;
        right: -12px;
    }
    
    .tt-diamond-bl {
        bottom: -12px;
        left: -12px;
    }
    
    .tt-diamond-br {
        bottom: -12px;
        right: -12px;
    }
    
    .tt-diamond-top,
    .tt-diamond-bottom {
        left: 20px;
        right: 20px;
    }
    
    .tt-diamond-left,
    .tt-diamond-right {
        top: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .tt-diamond-border {
        padding: 25px 15px;
        margin: 0 15px;
    }
    
    .tt-diamond-corner {
        width: 20px;
        height: 20px;
    }
    
    .tt-diamond-tl {
        top: -10px;
        left: -10px;
    }
    
    .tt-diamond-tr {
        top: -10px;
        right: -10px;
    }
    
    .tt-diamond-bl {
        bottom: -10px;
        left: -10px;
    }
    
    .tt-diamond-br {
        bottom: -10px;
        right: -10px;
    }
    
    .tt-diamond-top,
    .tt-diamond-bottom {
        left: 15px;
        right: 15px;
    }
    
    .tt-diamond-left,
    .tt-diamond-right {
        top: 15px;
        bottom: 15px;
    }
}

/* ─────────────────────────────────────────────────────────────
   END DIAMOND BORDER
───────────────────────────────────────────────────────────── */

.tt-logo-container {
    margin-bottom: 3rem;
}

.tt-logo-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    opacity: 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tt-logo-icon:hover {
    transform: scale(1.2);
}

.tt-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Delayed tooltip - only shows after 1 second hover */
.tt-logo-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    font-family: var(--tt-font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--tt-cream);
    background: var(--tt-forest);
    padding: 10px 16px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(44, 74, 62, 0.3);
}

/* Arrow pointing down */
.tt-logo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--tt-forest);
}

/* Show tooltip class - added by JS after 1s delay */
.tt-logo-icon.tt-show-tooltip .tt-logo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Initial load animation: fade in + spin once */
.tt-logo-icon {
    animation: ttLogoRevealSpin 1.5s var(--tt-transition) 0.3s forwards;
}

@keyframes ttLogoRevealSpin {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

/* Hover spin animation */
.tt-logo-icon:hover img {
    animation: ttLogoHoverSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ttLogoHoverSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tt-title {
    font-family: var(--tt-font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    color: var(--tt-charcoal);
}

.tt-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: ttTextReveal 1s var(--tt-transition) forwards;
}

.tt-title-line:nth-child(1) {
    animation-delay: 0.5s;
}

.tt-title-line:nth-child(2) {
    animation-delay: 0.7s;
}

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

.tt-subtitle {
    font-family: var(--tt-font-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--tt-terracotta);
    margin-top: 1rem;
    opacity: 0;
    animation: ttFadeIn 1s var(--tt-transition) 0.9s forwards;
}

.tt-tagline {
    font-family: var(--tt-font-sans);
    font-size: 1.15rem;
    color: var(--tt-charcoal-light);
    margin: 2rem 0 2.5rem;
    opacity: 0;
    animation: ttFadeIn 1s var(--tt-transition) 1.1s forwards;
}

@keyframes ttFadeIn {
    to {
        opacity: 1;
    }
}

.tt-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--tt-forest);
    color: var(--tt-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all 0.4s var(--tt-transition);
    opacity: 0;
    animation: ttFadeIn 1s var(--tt-transition) 1.3s forwards;
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.tt-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.tt-cta-btn:hover::before {
    left: 100%;
}

.tt-cta-btn:hover {
    background: var(--tt-forest-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 74, 62, 0.2);
}

/* Scroll Indicator */
.tt-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: ttFadeIn 1s var(--tt-transition) 1.8s forwards, ttScrollBounce 2s ease-in-out 2.8s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tt-scroll-indicator:hover {
    color: var(--tt-terracotta);
    transform: translateX(-50%) scale(1.1);
}

.tt-scroll-indicator:hover span {
    color: var(--tt-terracotta);
}

.tt-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tt-charcoal-light);
    transition: color 0.3s ease;
}

.tt-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--tt-terracotta), transparent);
}

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

/* ─────────────────────────────────────────────────────────────
   PERANAKAN DECORATIVE ELEMENTS
───────────────────────────────────────────────────────────── */

/* Diamond motif - reusable */
.tt-diamond-motif {
    width: 12px;
    height: 12px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: transform 0.4s var(--tt-transition), background 0.3s ease;
}

.tt-diamond-motif.tt-forest {
    background: var(--tt-forest);
}

/* Corner flourish */
.tt-corner-flourish {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s var(--tt-transition);
}

.tt-corner-flourish::before,
.tt-corner-flourish::after {
    content: '';
    position: absolute;
    background: var(--tt-terracotta);
}

.tt-corner-flourish::before {
    width: 100%;
    height: 2px;
    top: 0;
}

.tt-corner-flourish::after {
    width: 2px;
    height: 100%;
    left: 0;
}

.tt-corner-flourish.tt-corner-tr::before { right: 0; left: auto; }
.tt-corner-flourish.tt-corner-tr::after { right: 0; left: auto; }
.tt-corner-flourish.tt-corner-bl::before { bottom: 0; top: auto; }
.tt-corner-flourish.tt-corner-bl::after { bottom: 0; top: auto; }
.tt-corner-flourish.tt-corner-br::before { right: 0; left: auto; bottom: 0; top: auto; }
.tt-corner-flourish.tt-corner-br::after { right: 0; left: auto; bottom: 0; top: auto; }

/* ─────────────────────────────────────────────────────────────
   SECTION STYLES
───────────────────────────────────────────────────────────── */
.tt-section {
    padding: 8rem 0;
    position: relative;
}

/* Section divider - decorative border between sections */
.tt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(193, 127, 89, 0.3) 20%,
        var(--tt-terracotta) 50%,
        rgba(193, 127, 89, 0.3) 80%,
        transparent 100%
    );
}

.tt-section:first-of-type::before {
    display: none;
}

.tt-section-title {
    font-family: var(--tt-font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    margin: 0 0 4rem;
    color: var(--tt-charcoal);
    position: relative;
    display: inline-block;
    width: 100%;
    animation: ttTitleBreathe 4s ease-in-out infinite;
}

@keyframes ttTitleBreathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Tile-wrapped diamond accent above title */
.tt-title-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    width: 60px;
    height: 60px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s var(--tt-transition);
}

.tt-section-title.tt-visible .tt-title-ornament {
    opacity: 1;
    transform: scale(1);
}

/* Background tile image */
.tt-title-ornament::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://nicholastamagna.com/wp-content/uploads/2025/12/peranakan-tile.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    animation: ttTileBreathe 4s ease-in-out infinite;
}

/* Center diamond */
.tt-title-ornament::after {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: relative;
    z-index: 1;
    animation: ttDiamondBreathe 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Breathing animations */
@keyframes ttTileBreathe {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.25;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.4;
    }
}

@keyframes ttDiamondBreathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Remove old ::before pseudo-element for diamond */
.tt-section-title::before {
    display: none;
}

.tt-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--tt-terracotta);
    margin: 1.5rem auto 0;
    position: relative;
}

/* Triple diamond below title line */
.tt-section-title .tt-title-diamonds {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.tt-section-title .tt-title-diamonds span {
    width: 6px;
    height: 6px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s var(--tt-transition);
}

.tt-section-title.tt-visible .tt-title-diamonds span:nth-child(1) {
    opacity: 0.4;
    transform: scale(1);
    transition-delay: 0.1s;
}

.tt-section-title.tt-visible .tt-title-diamonds span:nth-child(2) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.tt-section-title.tt-visible .tt-title-diamonds span:nth-child(3) {
    opacity: 0.4;
    transform: scale(1);
    transition-delay: 0.3s;
}

/* ─────────────────────────────────────────────────────────────
   SERVICES SECTION
───────────────────────────────────────────────────────────── */
.tt-services {
    background: var(--tt-white);
    position: relative;
    overflow: hidden;
}

/* Subtle corner decorations */
.tt-services::after {
    content: '';
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-right: 2px solid rgba(193, 127, 89, 0.2);
    border-bottom: 2px solid rgba(193, 127, 89, 0.2);
    opacity: 0;
    transform: translate(20px, 20px);
    transition: opacity 0.6s ease, transform 0.6s var(--tt-transition);
}

.tt-services.tt-in-view::after {
    opacity: 1;
    transform: translate(0, 0);
}

.tt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.tt-service-card {
    padding: 2.5rem;
    background: var(--tt-cream);
    border-radius: 4px;
    transition: all 0.4s var(--tt-transition);
    position: relative;
    overflow: hidden;
}

/* Corner diamond accent */
.tt-service-card::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.3;
    transform: rotate(0deg);
    transition: opacity 0.4s ease, transform 0.6s var(--tt-transition);
}

/* Bottom decorative line */
.tt-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tt-terracotta), var(--tt-forest), var(--tt-terracotta), transparent);
    transition: width 0.5s var(--tt-transition);
}

.tt-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.tt-service-card:hover::before {
    opacity: 1;
    transform: rotate(360deg);
}

.tt-service-card:hover::after {
    width: 80%;
}

.tt-service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--tt-terracotta);
    transition: transform 0.4s var(--tt-transition);
}

.tt-service-card:hover .tt-service-icon {
    transform: scale(1.1);
}

.tt-service-icon svg {
    width: 100%;
    height: 100%;
}

.tt-service-card h3 {
    font-family: var(--tt-font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 1rem;
    color: var(--tt-charcoal);
}

.tt-service-card p {
    margin: 0;
    color: var(--tt-charcoal-light);
    font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────
   PORTFOLIO SECTION
───────────────────────────────────────────────────────────── */
.tt-portfolio {
    background: #2D2D2D;
    color: var(--tt-cream);
    position: relative;
}

/* Decorative side diamonds */
.tt-portfolio::before,
.tt-portfolio::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.15;
}

.tt-portfolio::before {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
}

.tt-portfolio::after {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
}

.tt-portfolio .tt-section-title {
    color: var(--tt-cream);
}

.tt-portfolio .tt-section-title::before {
    background: var(--tt-cream);
}

.tt-portfolio .tt-section-title::after {
    background: var(--tt-terracotta);
}

.tt-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tt-portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s var(--tt-transition);
    cursor: pointer;
    position: relative;
}

/* Corner brackets - all four corners */
.tt-portfolio-item .tt-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--tt-terracotta);
    border-style: solid;
    border-width: 0;
    z-index: 3;
    transition: all 0.4s var(--tt-transition);
    pointer-events: none;
}

.tt-portfolio-item .tt-corner-tl {
    top: 12px;
    left: 12px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.tt-portfolio-item .tt-corner-tr {
    top: 12px;
    right: 12px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.tt-portfolio-item .tt-corner-bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.tt-portfolio-item .tt-corner-br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* On hover - corners expand to form full rectangle */
.tt-portfolio-item:hover .tt-corner-tl {
    width: calc(50% - 12px);
    height: calc(50% - 12px);
}

.tt-portfolio-item:hover .tt-corner-tr {
    width: calc(50% - 12px);
    height: calc(50% - 12px);
}

.tt-portfolio-item:hover .tt-corner-bl {
    width: calc(50% - 12px);
    height: calc(50% - 12px);
}

.tt-portfolio-item:hover .tt-corner-br {
    width: calc(50% - 12px);
    height: calc(50% - 12px);
}

/* More Info button overlay */
.tt-portfolio-more {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s var(--tt-transition);
    pointer-events: none;
}

.tt-portfolio-more-btn {
    background: rgba(42, 42, 42, 0.85);
    color: var(--tt-cream);
    padding: 0.75rem 1.5rem;
    font-family: var(--tt-font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--tt-terracotta);
    border-radius: 3px;
    transform: scale(0.9);
    transition: all 0.3s var(--tt-transition);
    position: relative;
    overflow: hidden;
}

/* Shine effect on More Info button */
.tt-portfolio-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.tt-portfolio-item:hover .tt-portfolio-more-btn::before {
    left: 100%;
}

.tt-portfolio-item:hover .tt-portfolio-more {
    opacity: 1;
}

.tt-portfolio-item:hover .tt-portfolio-more-btn {
    transform: scale(1);
}

/* Remove old pseudo-element corners */
.tt-portfolio-item::before,
.tt-portfolio-item::after {
    display: none;
}

.tt-portfolio-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tt-portfolio-image {
    aspect-ratio: 16/9;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tt-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--tt-transition);
}

.tt-portfolio-item:hover .tt-portfolio-image img {
    transform: scale(1.05);
}

.tt-portfolio-placeholder {
    font-family: var(--tt-font-serif);
    font-size: 2rem;
    color: rgba(245, 240, 232, 0.15);
    letter-spacing: 0.1em;
}

.tt-portfolio-info {
    padding: 1.25rem 1.5rem;
}

.tt-portfolio-info h3 {
    font-family: var(--tt-font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0 0 0.25rem;
    color: var(--tt-cream);
}

.tt-portfolio-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.6);
    letter-spacing: 0.03em;
}

/* ─────────────────────────────────────────────────────────────
   PORTFOLIO MODAL
───────────────────────────────────────────────────────────── */
.tt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tt-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tt-modal {
    background: var(--tt-cream);
    border-radius: 6px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.3);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: relative;
}

/* Peranakan corner decorations on modal */
.tt-modal::before,
.tt-modal::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 10;
    pointer-events: none;
}

.tt-modal::before {
    top: 10px;
    left: 10px;
    border-top: 3px solid var(--tt-terracotta);
    border-left: 3px solid var(--tt-terracotta);
}

.tt-modal::after {
    bottom: 10px;
    right: 10px;
    border-bottom: 3px solid var(--tt-terracotta);
    border-right: 3px solid var(--tt-terracotta);
}

.tt-modal-overlay.active .tt-modal {
    transform: scale(1);
    opacity: 1;
}

/* Diamond accent in modal header */
.tt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.tt-modal-header::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--tt-cream);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tt-modal-header h3 {
    font-family: var(--tt-font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    color: var(--tt-charcoal);
}

.tt-modal-header p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--tt-terracotta);
}

.tt-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-charcoal-light);
    transition: color 0.2s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.tt-modal-close:hover {
    color: var(--tt-terracotta);
    transform: rotate(90deg);
}

.tt-modal-close svg {
    width: 24px;
    height: 24px;
}

.tt-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.tt-modal-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tt-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-modal-image .tt-portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 3rem;
}

.tt-modal-description {
    margin-bottom: 2rem;
    color: var(--tt-charcoal-light);
    line-height: 1.7;
}

.tt-modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tt-modal-spec {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.tt-modal-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tt-charcoal-light);
    margin-bottom: 0.35rem;
}

.tt-modal-spec-value {
    font-weight: 500;
    color: var(--tt-charcoal);
}

.tt-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.tt-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.tt-modal-btn-primary {
    background: var(--tt-forest);
    color: var(--tt-white);
}

.tt-modal-btn-primary:hover {
    background: var(--tt-forest-light);
}

.tt-modal-btn-secondary {
    background: transparent;
    color: var(--tt-charcoal-light);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.tt-modal-btn-secondary:hover {
    border-color: var(--tt-charcoal);
    color: var(--tt-charcoal);
}

.tt-modal-btn svg {
    width: 16px;
    height: 16px;
}

/* Modal responsive */
@media (max-width: 768px) {
    .tt-modal-overlay {
        padding: 1rem;
    }
    
    .tt-modal-header,
    .tt-modal-body,
    .tt-modal-footer {
        padding: 1.25rem;
    }
    
    .tt-modal-specs {
        grid-template-columns: 1fr;
    }
    
    .tt-modal-footer {
        flex-direction: column;
    }
    
    .tt-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────────────────────
   SERVICE MODAL SPECIFIC STYLES
───────────────────────────────────────────────────────────── */
.tt-service-modal {
    max-width: 600px;
}

.tt-service-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: var(--tt-terracotta);
    position: relative;
}

.tt-service-modal-icon svg {
    width: 100%;
    height: 100%;
}

/* Decorative ring around icon */
.tt-service-modal-icon::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid rgba(193, 127, 89, 0.2);
    border-radius: 50%;
    animation: ttIconPulse 3s ease-in-out infinite;
}

@keyframes ttIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.tt-service-modal-description {
    text-align: center;
    color: var(--tt-charcoal-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.tt-service-modal-description p {
    margin: 0 0 1rem;
}

.tt-service-modal-description p:last-child {
    margin-bottom: 0;
}

/* Tile accent in service modal */
.tt-service-modal .tt-modal-body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 40px;
    height: 40px;
    background-image: url('https://nicholastamagna.com/wp-content/uploads/2025/12/peranakan-tile.png');
    background-size: contain;
    opacity: 0.1;
    transform: translateY(-50%);
}

.tt-service-modal .tt-modal-body::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 40px;
    height: 40px;
    background-image: url('https://nicholastamagna.com/wp-content/uploads/2025/12/peranakan-tile-t.png');
    background-size: contain;
    opacity: 0.1;
    transform: translateY(-50%);
}

.tt-service-modal .tt-modal-body {
    position: relative;
    text-align: center;
}

.tt-service-cta {
    background: var(--tt-terracotta);
}

.tt-service-cta:hover {
    background: var(--tt-terracotta-dark);
}

/* ─────────────────────────────────────────────────────────────
   TESTIMONIALS SECTION
───────────────────────────────────────────────────────────── */
.tt-testimonials {
    background: var(--tt-cream-dark);
    position: relative;
    overflow: hidden;
}

.tt-testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.tt-testimonials-track {
    position: relative;
    min-height: 100px; /* Fallback minimum */
}

.tt-testimonial-card {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s var(--tt-transition), visibility 0.5s ease;
    pointer-events: none;
}

.tt-testimonial-card.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* Takes up space in flow */
    transform: translateX(0);
    pointer-events: auto;
}

.tt-testimonial-card.prev {
    transform: translateX(-50px);
}

.tt-testimonial-quote {
    background: var(--tt-white);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Peranakan corner accents */
.tt-testimonial-quote::before,
.tt-testimonial-quote::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--tt-terracotta);
    border-style: solid;
    opacity: 0.3;
}

.tt-testimonial-quote::before {
    top: 15px;
    left: 15px;
    border-width: 2px 0 0 2px;
}

.tt-testimonial-quote::after {
    bottom: 15px;
    right: 15px;
    border-width: 0 2px 2px 0;
}

.tt-quote-icon {
    width: 40px;
    height: 40px;
    color: var(--tt-terracotta);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.tt-testimonial-quote p {
    font-family: var(--tt-font-serif);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--tt-charcoal);
    margin: 0;
    font-style: italic;
}

.tt-testimonial-author {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.tt-testimonial-name {
    display: block;
    font-weight: 600;
    color: var(--tt-charcoal);
    font-size: 1.1rem;
}

.tt-testimonial-role {
    display: block;
    color: var(--tt-terracotta);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Navigation */
.tt-testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.tt-testimonial-prev,
.tt-testimonial-next {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 2px solid var(--tt-terracotta);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-terracotta);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tt-testimonial-prev:hover,
.tt-testimonial-next:hover {
    background: var(--tt-terracotta);
    color: var(--tt-white);
}

.tt-testimonial-prev svg,
.tt-testimonial-next svg {
    width: 20px;
    height: 20px;
}

.tt-testimonials-dots {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 80px;
}

.tt-testimonial-dot {
    width: 12px;
    height: 12px;
    border: none;
    background: rgba(193, 127, 89, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.tt-testimonial-dot:hover {
    background: rgba(193, 127, 89, 0.6);
}

.tt-testimonial-dot.active {
    background: var(--tt-terracotta);
    transform: scale(1.2);
}

/* ─────────────────────────────────────────────────────────────
   MEMORY GAME (Easter Egg)
───────────────────────────────────────────────────────────── */
.tt-game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tt-game-modal.active {
    opacity: 1;
    visibility: visible;
}

.tt-game-modal.active .tt-game-container {
    transform: scale(1);
}

/* Peranakan corner decorations */
.tt-game-container::before,
.tt-game-container::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-color: var(--tt-terracotta);
    border-style: solid;
    z-index: 1;
}

.tt-game-container::before {
    top: 10px;
    left: 10px;
    border-width: 3px 0 0 3px;
}

.tt-game-container::after {
    bottom: 10px;
    right: 10px;
    border-width: 0 3px 3px 0;
}

.tt-game-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.tt-game-header h3 {
    font-family: var(--tt-font-serif);
    font-size: 1.8rem;
    color: var(--tt-charcoal);
    margin: 0;
}

.tt-game-subtitle {
    color: var(--tt-terracotta);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.tt-game-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--tt-charcoal-light);
    transition: color 0.2s ease, transform 0.3s ease;
}

.tt-game-close:hover {
    color: var(--tt-terracotta);
    transform: rotate(90deg);
}

.tt-game-close svg {
    width: 24px;
    height: 24px;
}

.tt-game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--tt-charcoal-light);
}

.tt-game-stats strong {
    color: var(--tt-terracotta);
}

.tt-game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    background: rgba(193, 127, 89, 0.1);
    border-radius: 8px;
}

.tt-game-card {
    aspect-ratio: 1;
    background: var(--tt-forest);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tt-game-card.flipped {
    transform: rotateY(180deg);
}

.tt-game-card.matched {
    cursor: default;
}

.tt-game-card-front,
.tt-game-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backface-visibility: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-game-card-front {
    background: var(--tt-forest);
}

/* Diamond pattern on card back */
.tt-game-card-front::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.5;
}

.tt-game-card-back {
    background: var(--tt-white);
    transform: rotateY(180deg);
    padding: 8px;
}

.tt-game-card-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card flip animation */
.tt-game-card.matched .tt-game-card-back {
    animation: ttCardMatch 0.5s ease;
}

@keyframes ttCardMatch {
    0%, 100% {
        transform: rotateY(180deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
    }
}

/* Game container - larger for more cards */
.tt-game-container {
    background: var(--tt-cream);
    border-radius: 12px;
    padding: 2rem;
    max-width: 650px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Timer warning state */
.tt-game-timer.warning {
    color: #d32f2f;
    animation: timerPulse 0.5s ease-in-out infinite;
}

.tt-game-timer.warning strong {
    color: #d32f2f;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Intro Screen */
.tt-game-intro {
    text-align: center;
    padding: 1rem 0;
}

.tt-game-intro-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tt-game-intro h4 {
    font-family: var(--tt-font-serif);
    font-size: 2rem;
    color: var(--tt-terracotta);
    margin: 0 0 1rem;
}

.tt-game-intro-description {
    font-size: 1.05rem;
    color: var(--tt-charcoal);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.tt-game-rules {
    text-align: left;
    background: rgba(193, 127, 89, 0.1);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.tt-game-rules h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tt-terracotta);
    margin: 0 0 0.75rem;
}

.tt-game-rules ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tt-game-rules li {
    font-size: 0.9rem;
    color: var(--tt-charcoal-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tt-game-rules li:last-child {
    margin-bottom: 0;
}

.tt-game-prize-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--tt-charcoal);
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(193, 127, 89, 0.2));
    border-radius: 6px;
}

.tt-prize-badge {
    background: var(--tt-terracotta);
    color: var(--tt-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.tt-game-start,
.tt-game-next-level,
.tt-game-restart,
.tt-game-play-again {
    background: var(--tt-terracotta);
    color: var(--tt-white);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tt-game-start:hover,
.tt-game-next-level:hover,
.tt-game-restart:hover,
.tt-game-play-again:hover {
    background: var(--tt-terracotta-dark);
    transform: translateY(-2px);
}

/* Level Complete Screen */
.tt-game-level-complete,
.tt-game-prize,
.tt-game-over {
    text-align: center;
    padding: 2rem 0;
}

.tt-game-level-complete h4,
.tt-game-prize h4,
.tt-game-over h4 {
    font-family: var(--tt-font-serif);
    font-size: 1.8rem;
    color: var(--tt-terracotta);
    margin: 0 0 0.75rem;
}

.tt-game-level-complete p,
.tt-game-prize p,
.tt-game-over p {
    color: var(--tt-charcoal-light);
    margin: 0 0 0.5rem;
}

.tt-time-remaining {
    margin-bottom: 1.5rem !important;
}

/* Coupon Box */
.tt-coupon-box {
    background: linear-gradient(135deg, var(--tt-forest), #1a3329);
    color: var(--tt-cream);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.tt-coupon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://nicholastamagna.com/wp-content/uploads/2025/12/peranakan-tile.png');
    background-size: 60px;
    opacity: 0.05;
}

.tt-coupon-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.tt-prize-code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--tt-gold);
    text-shadow: 0 2px 10px rgba(212, 165, 116, 0.3);
    margin-bottom: 0.5rem;
}

.tt-coupon-instructions {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0 !important;
}

/* Game Over encouragement */
.tt-game-over-encourage {
    font-style: italic;
    margin-bottom: 1.5rem !important;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────────────────────── */
.tt-about {
    background: var(--tt-cream);
    position: relative;
}

.tt-about-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

/* Decorative quote-style borders */
.tt-about-content::before,
.tt-about-content::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

.tt-about-content::before {
    top: -20px;
    left: -20px;
    border-top: 3px solid var(--tt-terracotta);
    border-left: 3px solid var(--tt-terracotta);
}

.tt-about-content::after {
    bottom: -20px;
    right: -20px;
    border-bottom: 3px solid var(--tt-terracotta);
    border-right: 3px solid var(--tt-terracotta);
}

.tt-about.tt-in-view .tt-about-content::before,
.tt-about.tt-in-view .tt-about-content::after {
    opacity: 0.4;
}

.tt-about-text p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    text-align: center;
    line-height: 1.7;
}

.tt-about-text p:last-child {
    margin-top: 2rem;
    margin-bottom: 0;
    font-style: italic;
    color: var(--tt-terracotta);
    line-height: 1.6;
}

/* Decorative diamond separator between paragraphs on scroll */
.tt-about-text p:not(:last-child)::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    margin: 1.5rem auto 0;
    opacity: 0.4;
}

/* ─────────────────────────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────────────────────────── */
.tt-contact {
    position: relative;
    color: var(--tt-cream);
    text-align: center;
    overflow: hidden;
}

/* Tile background container */
.tt-contact-tiles {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-template-rows: repeat(auto-fill, 80px);
    gap: 0;
    z-index: 0;
    will-change: transform;
}

.tt-contact-tile {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
}

.tt-contact-tile:nth-child(odd) {
    background-image: url('https://nicholastamagna.com/wp-content/uploads/2025/12/peranakan-tile.png');
}

.tt-contact-tile:nth-child(even) {
    background-image: url('https://nicholastamagna.com/wp-content/uploads/2025/12/peranakan-tile-t.png');
}

/* Dark overlay */
.tt-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.85);
    z-index: 1;
}

/* Content above overlay */
.tt-contact .tt-container {
    position: relative;
    z-index: 2;
}

.tt-contact .tt-section-title {
    color: var(--tt-cream);
    animation: ttBreatheText 4s ease-in-out infinite;
}

@keyframes ttBreatheText {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.tt-contact .tt-section-title::before {
    background: var(--tt-cream);
}

.tt-contact .tt-section-title::after {
    background: var(--tt-terracotta);
}

.tt-contact-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Decorative diamond frame around contact */
.tt-contact-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    border: 2px solid var(--tt-terracotta);
    background: transparent;
    opacity: 0.6;
}

.tt-contact-intro {
    font-size: 1.1rem;
    margin: 0 0 2rem;
    color: rgba(245, 240, 232, 0.8);
}

.tt-email-link {
    display: inline-block;
    font-family: var(--tt-font-serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--tt-cream);
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--tt-terracotta);
    transition: all 0.3s ease;
    position: relative;
}

/* Decorative hover diamonds on email */
.tt-email-link::before,
.tt-email-link::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--tt-terracotta);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.tt-email-link::before {
    left: -15px;
}

.tt-email-link::after {
    right: -15px;
}

.tt-email-link:hover::before,
.tt-email-link:hover::after {
    opacity: 1;
}

.tt-email-link:hover::before {
    left: -20px;
}

.tt-email-link:hover::after {
    right: -20px;
}

.tt-email-link:hover {
    color: var(--tt-terracotta);
}

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

.tt-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-cream);
    border: 1px solid rgba(245, 240, 232, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tt-social-link:hover {
    border-color: var(--tt-terracotta);
    color: var(--tt-terracotta);
    transform: translateY(-3px);
}

.tt-social-link svg {
    width: 20px;
    height: 20px;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.tt-footer {
    background: var(--tt-black);
    color: rgba(245, 240, 232, 0.5);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ─────────────────────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────────────────────── */
.tt-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--tt-transition),
                transform 0.8s var(--tt-transition);
}

.tt-fade-in.tt-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tt-nav {
        padding: 1rem;
    }
    
    .tt-nav-back span {
        display: none;
    }
    
    .tt-nav-links {
        gap: 1.5rem;
    }
    
    .tt-nav-links a {
        font-size: 0.8rem;
    }
    
    .tt-section {
        padding: 5rem 0;
    }
    
    .tt-services-grid,
    .tt-portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .tt-hero {
        padding: 1rem;
    }
    
    .tt-scroll-indicator {
        display: none;
    }
    
    /* Testimonials Mobile */
    .tt-testimonial-quote {
        padding: 2rem 1.5rem;
    }
    
    .tt-testimonial-quote p {
        font-size: 1rem;
    }
    
    .tt-testimonials-nav {
        gap: 1rem;
        flex-wrap: nowrap;
        margin-top: 2rem;
    }
    
    .tt-testimonial-prev,
    .tt-testimonial-next {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .tt-testimonial-prev svg,
    .tt-testimonial-next svg {
        width: 16px;
        height: 16px;
    }
    
    .tt-testimonials-dots {
        gap: 0.5rem;
    }
    
    .tt-testimonial-dot {
        width: 10px;
        height: 10px;
    }
    
    .tt-testimonial-author {
        padding-bottom: 0.5rem;
    }
    
    /* Memory Game Mobile */
    .tt-game-container {
        padding: 1.5rem;
    }
    
    .tt-game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tt-logo-icon,
    .tt-title-line,
    .tt-subtitle,
    .tt-tagline,
    .tt-cta-btn,
    .tt-scroll-indicator {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .tt-scroll-line {
        animation: none;
    }
}
