/* =========================
   ROOT
========================= */
:root{
    --black:#0a0a0a;
    --gray:#666;
    --light:#f5f5f5;
    --white:#ffffff;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
    line-height:1.7;
    color:var(--black);
    background:var(--white);
    -webkit-font-smoothing:antialiased;
}

a{
    color:inherit;
    text-decoration:none;
}

p{
    margin-bottom:16px;
}

h1,h2,h3{
    line-height:1.2;
    letter-spacing:-0.5px;
    font-weight:800;
}

/* =========================
   CONTAINER
========================= */
.container{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
}

/* =========================
   NAVIGATION
========================= */
nav{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,0.9);
    backdrop-filter:blur(10px);
    border-bottom:1px solid #eee;
}

.nav-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    font-weight:800;
    font-size:18px;
}

.nav-links{
    display:flex;
    gap:24px;
    flex-wrap:wrap;
}

.nav-links a{
    font-size:14px;
    font-weight:500;
}

.nav-links a:hover,
.nav-links a.active{
    opacity:0.6;
}

/* =========================
   HERO
========================= */
.hero{
    min-height:65vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
    background-size:cover;
    background-position:center;
}

.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.4);
}

.hero-content{
    position:relative;
    z-index:1;
    color:white;
    max-width:800px;
    padding:20px;
}

.hero h1{
    font-size:clamp(32px,5vw,52px);
    margin-bottom:16px;
}

.hero p{
    font-size:18px;
    opacity:0.9;
}

/* =========================
   BUTTONS
========================= */
.btn{
    display:inline-block;
    padding:14px 28px;
    border-radius:8px;
    font-weight:600;
    font-size:15px;
    transition:0.2s ease;
    margin:6px;
}

.btn-primary{
    background:var(--black);
    color:white;
}

.btn-primary:hover{
    transform:translateY(-2px);
    background:#000;
}

.btn-secondary{
    border:1.5px solid var(--black);
}

.btn-secondary:hover{
    background:var(--black);
    color:white;
}

.btn-block{
    display:block;
    width:100%;
}

/* =========================
   SECTIONS
========================= */
.section{
    padding:80px 0;
}

.page-hero{
    padding:100px 0 40px;
    text-align:center;
}

.page-hero h1{
    font-size:clamp(32px,5vw,52px);
}

.page-hero p{
    color:var(--gray);
    max-width:600px;
    margin:0 auto;
}

/* =========================
   PORTFOLIO (9 GRID)
========================= */
.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.portfolio-item img{
    width:100%;
    aspect-ratio:4/5;
    object-fit:cover;
    border-radius:12px;
    transition:0.3s ease;
}

.portfolio-item img:hover{
    transform:scale(1.03);
}

/* =========================
   BOOK SECTION
========================= */
.book-preview{
    padding:80px 0;
}

.book-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

/* =========================
   ABOUT
========================= */
.about-grid{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:50px;
    align-items:start;
}
.profile-card{
    margin-top:20px;
    padding:20px;
    border:1px solid #eee;
    border-radius:12px;
}
.about-photo img{
    width:100%;
    max-width:420px;
    height:auto;
    object-fit:cover;
    border-radius:18px;
    display:block;
}

/* =========================
   LINKS PAGE
========================= */
.links-wrap{
    max-width:520px;
    margin:0 auto;
    text-align:center;
}

.link-item{
    margin-bottom:14px;
}

/* =========================
   FOOTER
========================= */
footer{
    padding:50px 0;
    border-top:1px solid #eee;
    text-align:center;
    font-size:14px;
    color:var(--gray);
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

    .nav-inner{
        flex-direction:column;
        gap:12px;
    }

    .nav-links{
        justify-content:center;
        gap:12px;
    }

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

    .book-grid{
        grid-template-columns:1fr;
    }

    .about-photo img{
        width:100%;
        max-width:100%;
    }

     .about-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .section{
        padding:60px 0;
    }
}
