:root{
  --coffee: #6F4E37;
  --coffee-dark: #593f2b;
  --muted: #6b6b6b;
  --bg: #fffaf6;
  --text: #222;
  --max-width: 1100px;
  --gap: 1.25rem;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  -webkit-text-size-adjust:100%;
}

@import url('https://fonts.googleapis.com/css2?family=Cookie&display=swap');

/* Coffee Button Container */
.coffee-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: --coffee-dark;
  color: #000;
  text-decoration: none;
  font-family: 'Cookie', cursive;
  font-weight: 'bold';
  border-radius: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: visible;
}

/* Hover Effects: Lift up and Shadow */
.coffee-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 221, 0, 0.4);
}

/* The Coffee Mug Icon */
.coffee-icon {
  font-size: 1.2rem;
  margin-right: 10px;
  position: relative;
  z-index: 2;
}

/* Creating the Steam Animation */
.coffee-btn:hover .coffee-icon::before,
.coffee-btn:hover .coffee-icon::after {
  content: "s"; /* Shape for steam */
  position: absolute;
  top: -10px;
  left: 2px;
  width: 6px;
  height: 10px;
  background: transparent;
  color: #000; /* Steam color */
  font-family: sans-serif;
  font-weight: 100;
  font-size: 15px;
  opacity: 0;
  animation: steam 1.5s infinite linear;
}

.coffee-btn:hover .coffee-icon::after {
  left: 10px;
  animation-delay: 0.5s;
}

/* Keyframes for the Steam rising */
@keyframes steam {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-15px) scale(1.5);
    opacity: 0;
  }
}

/* Utility container */
.container{
  width:calc(100% - 2rem);
  max-width:var(--max-width);
  margin:0 auto;
}

/* Header */
.site-header{
  background: linear-gradient(90deg, rgba(111,78,55,0.98), rgba(111,78,55,0.96));
  color: #fff;
  position:sticky;
  top:0;
  z-index:20;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0.8rem 0;
}

/* Logo uses scribble font */
.logo{
  font-family: "Patrick Hand", "PatrickHand", cursive;
  font-size:1.4rem;
  color:#fff;
  text-decoration:none;
  letter-spacing:0.5px;
}

/* Navigation */
.main-nav{
  display:flex;
  gap:1rem;
}
.main-nav a{
  color:rgba(255,255,255,0.95);
  text-decoration:none;
  padding:0.45rem 0.6rem;
  border-radius:6px;
  font-weight:600;
}
.main-nav a:hover{background:rgba(255,255,255,0.07)}
.main-nav a.active{
  background:rgba(0,0,0,0.12);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,0.06);
}

/* hamburger */
.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  width:36px;
  height:28px;
  position:relative;
}
.nav-toggle span{
  display:block;
  height:3px;
  background:#fff;
  margin:5px 0;
  border-radius:3px;
}

/* Hero */
.hero{
  padding:3.5rem 0;
  background:linear-gradient(180deg, rgba(111,78,55,0.06), rgba(111,78,55,0.02));
}
.hero-inner{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:2rem;
  align-items:center;
}
.hero-text h1{
  font-family: "Patrick Hand", cursive;
  font-size:2.4rem;
  margin:0 0 0.5rem 0;
  color:var(--coffee-dark);
}
.hero-text p{margin:0.6rem 0; color:var(--muted)}
.hero-image img{
  width:100%;
  height:auto;
  border-radius:12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* small cards */
.summary{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:var(--gap);
  margin:2.5rem auto;
}
.card{
  padding:1.2rem;
  background:#fff;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

/* Projects grid */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:1rem;
}
.project-card{
  background:#fff;
  border-radius:10px;
  padding:0.8rem;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
}
.project-card img{width:100%;border-radius:8px;}

/* Blog posts */
.blog-list .post{
  background:#fff;
  padding:1rem;
  border-radius:10px;
  margin-bottom:1rem;
  box-shadow:0 6px 18px rgba(0,0,0,0.03);
}
.meta{color:var(--muted);font-size:0.9rem;margin-bottom:0.6rem}

/* About section grid */
.about-grid{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:1.25rem;
  align-items:start;
  margin-top:1rem;
}
.about-photo img{width:100%;border-radius:12px}
.skills{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:0.6rem}
.skills li{background:#fff;padding:0.4rem 0.7rem;border-radius:999px;box-shadow:0 4px 10px rgba(0,0,0,0.03)}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.contact-form label{display:block;margin-bottom:0.8rem}
.contact-form input, .contact-form textarea{
  width:100%;
  padding:0.6rem 0.7rem;
  border:1px solid #e6e0dc;
  border-radius:8px;
  font-size:1rem;
}
.btn{
  display:inline-block;
  background:var(--coffee);
  color:#fff;
  padding:0.6rem 0.9rem;
  border-radius:10px;
  text-decoration:none;
  border:0;
  font-weight:600;
}
.link{color:var(--coffee-dark);text-decoration:none;font-weight:600}

/* Footer */
.site-footer{
  margin-top:2.5rem;
  padding:1.25rem 0;
  background:transparent;
}
.footer-inner{display:flex;justify-content:space-between;align-items:center;padding-bottom:0.6rem}
.socials{display:flex;gap:0.6rem}
.social{display:inline-block;padding:0.35rem 0.6rem;border-radius:6px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,0.04);text-decoration:none;color:var(--coffee-dark);font-weight:700}

/* small screens */
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr; text-align:center}
  .hero-image{order:2}
  .summary{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr; text-align:left}
  .contact-grid{grid-template-columns:1fr}
  .header-inner{gap:1rem}
  .main-nav{position:fixed;top:60px;right:0;background:rgba(255,250,246,0.98);flex-direction:column;padding:0.8rem;border-radius:8px;display:none;box-shadow:0 10px 30px rgba(0,0,0,0.08)}
  .main-nav.open{display:flex}
  .nav-toggle{display:block}
}

/* tiny screens */
@media (max-width:480px){
  .logo{font-size:1.2rem}
  .hero-text h1{font-size:1.8rem}
}
