:root {
  --bg-yarn: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40">\
<defs>\
  <filter id="fuzz" x="0" y="0" width="100%" height="100%">\
    <feTurbulence type="fractalNoise" baseFrequency="0.6" numOctaves="3" stitchTiles="stitch"/>\
    <feGaussianBlur stdDeviation="1.5"/>\
  </filter>\
</defs>\
<rect width="100%" height="100%" fill="%23ffffff" filter="url(%23fuzz)" opacity="0.06"/>\
</svg>');
}

@font-face {
    font-family: LucidaCalligraphy;
    src: url("Lucida Calligraphy Bold.otf") format("opentype");
    font-weight: bold;
}

@font-face {
    font-family: LucidaCalligraphy;
    src: url("Lucida Calligraphy Regular.otf") format("opentype");
    font-weight: normal;
}

body {
    font-family: sans-serif;
    background-color: #faf7f2;
    color: #1a1a1a;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    padding: 160px 0 140px;
    background: #f4efe8;
}
.hero-title {
    font-family: LucidaCalligraphy;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.1;
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
}
.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    /*max-width: 550px;*/
}

/* Feature Cards */
.feature-card {
    border-radius: 24px;
    background: white;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.08);
}
.feature-card h4 {
    font-size: 1.4rem;
}

/* Portfolio */
.portfolio-img {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform .3s ease;
}
.portfolio-img:hover {
    transform: scale(1.03);
}

.portfolio-item {
    overflow: hidden;
    border-radius: 20px; /* matches your image */
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0,0,0,0.55);  /* translucent */
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    opacity: 1;
    transition: opacity .3s ease;
}

/* Show caption on hover (optional) */
/*.portfolio-item:hover .portfolio-caption {
    opacity: 1;
}*/

/* About */
#about img {
    border-radius: 20px;
}

/* Contact */
#contact textarea,
#contact input {
    border-radius: 12px;
    padding: 14px 16px;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    background: #e7e1d8;
    font-size: 0.95rem;
}

.hero {
    background-color: var(--bg-hero);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.3) 0%, transparent 60%),
        var(--bg-yarn);
    background-size: 40px 40px; /* matches SVG tile size */
    background-repeat: repeat;
    background-blend-mode: overlay;
}

.navbar-brand {
    font-family: LucidaCalligraphy;
}