/* =========================================================
   Kannu Monthly — Magazine Portfolio Stylesheet
   Dark editorial theme with cream & pink accents
   ========================================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a1f;
    color: #f5f0e8;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- Typography Utilities ----- */
.font-editorial { font-family: 'Playfair Display', Georgia, serif; }
.font-hand       { font-family: 'Caveat', cursive; }

/* =========================================================
   SECTIONS — Common Header
   ========================================================= */

.section-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    position: relative;
}

.section-header.dark-header {
    background: #1a1a1f;
    color: #f5f0e8;
}

.section-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e8a2b8;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #d4cfc6;
    opacity: 0.8;
}

/* =========================================================
   HERO / MASTHEAD
   ========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #1a1a1f;
    overflow: hidden;
    /* Subtle radial glow behind photo */
    background-image: radial-gradient(ellipse at 70% 50%, rgba(232, 162, 184, 0.08) 0%, transparent 60%);
}

/* Doodles — decorative SVGs scattered around */
.doodle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.doodle-coffee {
    top: 8%;
    left: 5%;
    transform: rotate(-12deg);
}

.doodle-ribbon {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: #f4dcb5;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    white-space: nowrap;
    opacity: 0.9;
}

.doodle-monkey {
    bottom: 12%;
    left: 8%;
    transform: rotate(8deg);
    opacity: 0.5;
}

.doodle-wave {
    top: 55%;
    right: -2%;
    opacity: 0.3;
}

/* Hero Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Hero Text */
.hero-text {
    text-align: center;
    max-width: 600px;
}

.hero-hello {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #e8a2b8;
    margin-bottom: -0.25rem;
    opacity: 0.9;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #f5f0e8;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
}

.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag-pill {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border: 1.5px solid rgba(232, 162, 184, 0.5);
    border-radius: 100px;
    color: #e8a2b8;
    background: rgba(232, 162, 184, 0.06);
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: rgba(232, 162, 184, 0.12);
    border-color: rgba(232, 162, 184, 0.8);
}

.dot-sep {
    color: #f4dcb5;
    font-size: 1.1rem;
    opacity: 0.6;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #d4cfc6;
    line-height: 1.65;
    margin-bottom: 1rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    font-size: clamp(0.82rem, 1.8vw, 0.95rem);
    color: #b8b3aa;
    line-height: 1.6;
    font-style: italic;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Photo */
.hero-photo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-photo-frame {
    width: clamp(220px, 50vw, 360px);
    height: clamp(280px, 62vw, 450px);
    border-radius: 2px 40px 2px 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 80px rgba(232, 162, 184, 0.15);
    border: 3px solid rgba(245, 240, 232, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-photo-frame:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(232, 162, 184, 0.2);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: brightness(0.95) contrast(1.05);
    transition: filter 0.4s ease;
}

.hero-photo-frame:hover .hero-photo {
    filter: brightness(1) contrast(1.05);
}

.photo-caption {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: #d4cfc6;
    margin-top: 0.75rem;
    opacity: 0.7;
    text-align: center;
}

.photo-caption.caption-main {
    font-size: 1.15rem;
    color: #f4dcb5;
    opacity: 0.85;
    transform: rotate(-1.5deg);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #b8b3aa;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

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

/* =========================================================
   FUN FACTS
   ========================================================= */

.fun-facts {
    background: #25252a;
    padding: 0 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.fun-facts::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(232, 162, 184, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.fact-card {
    perspective: 800px;
    transition: transform 0.35s ease;
}

.fact-card:hover {
    transform: translateY(-6px) rotate(0deg) !important;
    z-index: 10;
}

.fact-card-inner {
    background: #2e2e35;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 240, 232, 0.06);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.fact-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8a2b8, #f4dcb5);
    opacity: 0.6;
    border-radius: 16px 16px 0 0;
}

.fact-card:hover .fact-card-inner {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(232, 162, 184, 0.1);
    border-color: rgba(232, 162, 184, 0.2);
}

/* Rotation per card via data attribute */
.fact-card[data-rotation="-3"] .fact-card-inner { transform: rotate(-3deg); }
.fact-card[data-rotation="2"] .fact-card-inner  { transform: rotate(2deg); }
.fact-card[data-rotation="-1"] .fact-card-inner { transform: rotate(-1deg); }
.fact-card[data-rotation="3"] .fact-card-inner  { transform: rotate(3deg); }
.fact-card[data-rotation="-2"] .fact-card-inner { transform: rotate(-2deg); }

.fact-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.fact-emoji {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.fact-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.fact-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #b8b3aa;
    line-height: 1.55;
}

/* =========================================================
   WORK / COVER STORIES
   ========================================================= */

.work {
    background: #1a1a1f;
    padding-bottom: 3rem;
}

.work-grid {
    display: grid;
    gap: 1.75rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.work-card {
    background: #25252a;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(245, 240, 232, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 30px rgba(232, 162, 184, 0.08);
    border-color: rgba(232, 162, 184, 0.15);
}

/* Left accent bar for each card */
.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 14px 0 0 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.work-card:hover::before {
    opacity: 1;
    width: 5px;
}

.card-ss::before       { background: #e8a2b8; }
.card-otter::before    { background: #f4dcb5; }
.card-notarease::before{ background: #9ad0c2; }
.card-exun::before     { background: #b8a2e8; }

.work-card-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.work-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(245, 240, 232, 0.06);
    color: #d4cfc6;
    border: 1px solid rgba(245, 240, 232, 0.08);
}

.work-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #b8b3aa;
    font-style: italic;
}

.work-role {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 700;
    color: #f5f0e8;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.work-org {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #e8a2b8;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.work-desc {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #d4cfc6;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.work-desc strong {
    color: #f5f0e8;
    font-weight: 600;
}

.work-desc em {
    color: #f4dcb5;
    font-style: italic;
}

.work-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: rgba(245, 240, 232, 0.06);
    color: #b8b3aa;
    border: 1px solid rgba(245, 240, 232, 0.08);
    transition: all 0.25s ease;
}

.highlight:hover {
    background: rgba(232, 162, 184, 0.1);
    color: #e8a2b8;
    border-color: rgba(232, 162, 184, 0.2);
}

.highlight.metric {
    background: rgba(232, 162, 184, 0.12);
    color: #e8a2b8;
    border-color: rgba(232, 162, 184, 0.25);
    font-weight: 600;
}

/* ----- Also Exploring ----- */
.also-exploring-wrap {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
}

.also-exploring {
    display: flex;
    background: #1f1f25;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 232, 0.04);
}

.explore-accent {
    width: 5px;
    background: linear-gradient(180deg, #e8a2b8, #f4dcb5);
    opacity: 0.5;
    flex-shrink: 0;
}

.explore-content {
    padding: 1.5rem 1.75rem;
    flex: 1;
}

.explore-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.3rem;
}

.explore-content strong {
    color: #d4cfc6;
    font-size: 0.9rem;
    font-weight: 600;
}

.explore-detail {
    font-size: 0.78rem;
    color: #b8b3aa;
    font-style: italic;
    margin-bottom: 0.4rem;
}

.explore-desc {
    font-size: 0.85rem;
    color: #a09a91;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.explore-note {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: #e8a2b8;
    opacity: 0.8;
}

/* =========================================================
   EDUCATION
   ========================================================= */

.education {
    background: #25252a;
    padding: 0 1.5rem 4rem;
    position: relative;
}

.edu-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.edu-item {
    text-align: center;
}

.edu-school {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.25rem;
}

.edu-detail {
    display: block;
    font-size: 0.85rem;
    color: #b8b3aa;
    font-style: italic;
}

.edu-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8a2b8, transparent);
    opacity: 0.4;
    border-radius: 2px;
}

/* =========================================================
   CONTACT / BACK PAGE
   ========================================================= */

.contact {
    background: #1a1a1f;
    padding-bottom: 2rem;
    position: relative;
    /* Warm glow at bottom */
    background-image: radial-gradient(ellipse at 50% 100%, rgba(232, 162, 184, 0.06) 0%, transparent 55%);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Contact Polaroid */
.contact-photo-wrap {
    display: flex;
    justify-content: center;
}

.contact-polaroid {
    background: #f5f0e8;
    padding: 0.6rem 0.6rem 1.2rem;
    border-radius: 4px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(232, 162, 184, 0.1);
    max-width: clamp(200px, 40vw, 280px);
    transform: rotate(2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-polaroid:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(232, 162, 184, 0.15);
}

.contact-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 2px;
    filter: sepia(15%) contrast(1.05);
    transition: filter 0.3s ease;
}

.contact-polaroid:hover .contact-photo {
    filter: sepia(5%) contrast(1.05);
}

.polaroid-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #1a1a1f;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.polaroid-sub {
    color: #6b6b6b;
    font-size: 0.95rem;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8b3aa;
    opacity: 0.7;
}

.contact-link {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #f5f0e8;
    font-weight: 500;
    transition: color 0.25s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: #e8a2b8;
}

.contact-block.companies {
    margin-top: 0.75rem;
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.company-tag {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: rgba(232, 162, 184, 0.10);
    color: #e8a2b8;
    border: 1px solid rgba(232, 162, 184, 0.2);
    transition: all 0.25s ease;
}

.company-tag:hover {
    background: rgba(232, 162, 184, 0.2);
    color: #f5f0e8;
    border-color: rgba(232, 162, 184, 0.4);
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    margin-top: 1rem;
}

.page-footer p {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: #b8b3aa;
    opacity: 0.6;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: left;
        flex: 1;
    }

    .hero-hello,
    .hero-name,
    .hero-tagline,
    .hero-sub,
    .hero-cta {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-tagline {
        justify-content: flex-start;
    }

    .hero-photo-wrap {
        flex-shrink: 0;
    }

    .hero-photo-frame {
        width: 280px;
        height: 380px;
    }

    .facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
    }

    .contact-details {
        text-align: left;
        align-items: flex-start;
    }

    .company-tags {
        justify-content: flex-start;
    }

    .edu-strip {
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-photo-frame {
        width: 320px;
        height: 430px;
    }

    .facts-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .work-card {
        padding: 2rem 2.25rem;
    }

    .contact-polaroid {
        max-width: 260px;
    }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

/* Fade-up on scroll trigger (simple IntersectionObserver class: .reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Smooth stagger for fun facts */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* =========================================================
   PRINT STYLES (for PDF export)
   ========================================================= */

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html {
        font-size: 10pt;
    }

    body {
        background: #1a1a1f !important;
        color: #f5f0e8 !important;
    }

    .hero,
    .fun-facts,
    .work,
    .education,
    .contact {
        break-inside: avoid;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .work-card,
    .fact-card-inner,
    .contact-polaroid {
        box-shadow: none !important;
        border: 1px solid rgba(245, 240, 232, 0.1) !important;
    }

    .scroll-indicator,
    .doodle {
        display: none !important;
    }

    a::after {
        content: none;
    }

    .company-tags a {
        text-decoration: none;
    }

    .page-footer {
        break-before: avoid;
    }
}
