/* ============================
   DEMO 10: DRAMATIC STORYTELLER (Arjun Kamath Inspired)
   ============================ */

   :root {
    --bg-color: #ffffff;
    --text-dark: #111111;
    --text-light: #f5f5f5;
    --accent: #8c8c8c;
    
    --font-serif: 'Alegreya', serif;
    --font-sans: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .f-logo, .drop-cap, .btn-text {
    font-family: var(--font-serif);
    font-weight: 400;
}

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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-fluid {
    width: 100%;
    padding: 0 5%;
}

/* ============================
   PRELOADER
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.5s ease, visibility 1.5s;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-style: italic;
    animation: fadePulse 2s infinite alternate;
}

@keyframes fadePulse {
    0% { opacity: 0.2; filter: blur(2px); }
    100% { opacity: 1; filter: blur(0px); }
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.5s ease;
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 5%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.nav-left, .nav-right {
    display: flex;
    gap: 40px;
}

.navbar a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
}
.navbar.scrolled a { color: var(--text-dark); }
.navbar a:hover { opacity: 0.6; }

.nav-center .logo {
    font-size: 2.2rem;
    font-style: italic;
    color: #fff;
    letter-spacing: 1px;
    text-transform: none;
}
.navbar.scrolled .logo { color: var(--text-dark); }

.menu-toggle { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.navbar.scrolled .menu-toggle { color: var(--text-dark); }

.demo-badge {
    position: fixed;
    top: 100px;
    right: 0;
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 15px;
    z-index: 100;
}

/* ============================
   HERO
   ============================ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.hero-content h1 {
    font-size: 5rem;
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #ccc;
}

.fade-in-slow { opacity: 0; animation: fadeInSlow 3s forwards 1s; }

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

/* ============================
   INTRO / BIO
   ============================ */
.intro-section {
    padding: 150px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 3rem;
    font-style: italic;
    margin-bottom: 30px;
}

.divider {
    width: 1px;
    height: 60px;
    background: var(--text-dark);
    margin: 0 auto 40px;
}

.bio-text {
    font-size: 1.1rem;
    color: #444;
    text-align: justify;
    margin-bottom: 50px;
}

.drop-cap {
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
}

.btn-text {
    font-size: 1.2rem;
    font-style: italic;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 5px;
}
.btn-text:hover { color: var(--accent); border-color: var(--accent); }

/* ============================
   PORTFOLIO MASONRY
   ============================ */
.portfolio-section {
    padding-bottom: 120px;
}

.masonry-grid {
    display: column;
    column-count: 2;
    column-gap: 20px;
}

.m-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.m-item img {
    width: 100%;
    display: block;
    transition: transform 1s ease, filter 0.5s ease;
    filter: grayscale(20%);
}

.m-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s ease;
}

.m-item:hover img { transform: scale(1.03); filter: grayscale(0%); }
.m-item:hover .m-overlay { opacity: 1; }

.m-overlay h3 {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: 0.5s ease;
}
.m-overlay span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transform: translateY(20px);
    transition: 0.5s ease 0.1s;
}

.m-item:hover .m-overlay h3,
.m-item:hover .m-overlay span {
    transform: translateY(0);
}

/* ============================
   PRESS LOGOS
   ============================ */
.press-section {
    padding: 80px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.press-section h3 {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
    color: #888;
}

.press-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.press-logos span {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #aaa;
}

/* ============================
   CONTACT
   ============================ */
.contact-section {
    padding: 150px 0;
    background: #0a0a0a;
    color: #fff;
    text-align: center;
}

.contact-box h2 {
    font-size: 3.5rem;
    font-style: italic;
    margin-bottom: 20px;
}

.contact-box p {
    color: #888;
    margin-bottom: 50px;
}

.minimal-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.minimal-form input, .minimal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.minimal-form input:focus, .minimal-form textarea:focus {
    outline: none;
    border-color: #fff;
}

.btn-dark {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}
.btn-dark:hover { background: #ccc; }

.direct-contact {
    margin-top: 60px;
    font-size: 0.85rem;
    color: #666;
}
.direct-contact a { color: #fff; margin: 0 5px; }
.direct-contact a:hover { color: var(--accent); }

/* ============================
   FOOTER
   ============================ */
.footer {
    padding: 60px 0;
    text-align: center;
}

.f-logo {
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 20px;
}

.f-socials {
    margin-bottom: 20px;
}

.f-socials a {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0 15px;
}
.f-socials a:hover { color: var(--accent); }

.copyright {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 1px;
}

.back-to-master {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--text-dark);
    padding: 10px 15px;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 2px;
    z-index: 1000;
    font-family: var(--font-sans);
}
.back-to-master:hover { background: #444; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(50px); transition: 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 4rem; }
    .nav-left, .nav-right { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .intro-section h2 { font-size: 2.5rem; }
    .masonry-grid { column-count: 1; }
    .contact-box h2 { font-size: 2.5rem; }
    .press-logos { flex-direction: column; gap: 20px; }
}
