/* ============================
   CSS ART WEBSITE — Improved Style
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=Space+Mono&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --accent: #7c4dff;
  --accent2: #b47aff;
  --teal: #00bcd4;
  --text: #e8e6f0;
  --text-muted: #8884a8;
  --text-dim: #4a4860;
  --border: rgba(124,77,255,0.15);
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-mono: 'Space Mono', monospace;
  --ease: cubic-bezier(0.25,0.46,0.45,0.94);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-display); background: var(--bg); color: var(--text); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.wrapper { max-width: 1200px; margin: 0 auto; overflow: hidden; }

/* NAV */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.topnav img.Logo { height: 40px; width: auto; filter: brightness(1.2); }
.topnav-links { display: flex; align-items: center; gap: 2rem; }
.topnav a { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); transition: color 0.2s; font-weight: 400; }
.topnav a:hover { color: var(--accent2); }
.topnav a.active { color: var(--accent); }
.topnav .icon { display: none; cursor: pointer; color: var(--text-muted); font-size: 1.2rem; }

/* HERO */
.hero-wrap {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,77,255,0.15) 0%, transparent 60%);
}
.hero-tag { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.5rem,7vw,5.5rem); font-weight: 600; line-height: 1.05; margin-bottom: 1.5rem; background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-accent { padding: 0.8rem 2rem; background: var(--accent); color: #fff; border-radius: 3px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; transition: background 0.2s, transform 0.2s; }
.btn-accent:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-ghost { padding: 0.8rem 2rem; border: 1px solid var(--border); color: var(--text-muted); border-radius: 3px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.2s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* CSS ART DISPLAY */
.art-showcase { padding: 5rem 2rem; max-width: 900px; margin: 0 auto; text-align: center; }
.art-showcase h2 { font-size: 2rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }
.art-showcase p { color: var(--text-muted); margin-bottom: 3rem; }
.art-frame { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); padding: 2rem; display: inline-block; }

/* ---- THE CSS ART ITSELF ---- */
.art-container { position: relative; width: 300px; height: 300px; margin: 0 auto; }
/* Sky */
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #1a1a6e 0%, #4a4ab8 50%, #ff7b54 80%, #ffb347 100%); border-radius: 8px; overflow: hidden; }
/* Sun */
.sun { position: absolute; top: 40px; right: 60px; width: 60px; height: 60px; background: radial-gradient(circle, #ffeb3b 0%, #ff9800 70%); border-radius: 50%; box-shadow: 0 0 30px #ffeb3b, 0 0 60px #ff980060; }
/* Ground */
.ground { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(180deg, #2d5a27 0%, #1a3d14 100%); }
/* Tree trunk */
.trunk { position: absolute; bottom: 80px; left: 120px; width: 20px; height: 60px; background: #5d4037; border-radius: 2px; }
/* Tree leaves */
.leaves { position: absolute; bottom: 130px; left: 90px; width: 80px; height: 80px; background: #4caf50; border-radius: 50%; box-shadow: -20px 15px 0 #388e3c, 20px 15px 0 #388e3c, 0 -20px 0 #66bb6a; }
/* Stars */
.stars { position: absolute; top: 0; left: 0; right: 0; height: 50%; }
.star { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; opacity: 0.7; animation: twinkle 2s infinite; }
.star:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.star:nth-child(2) { top: 35%; left: 30%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 15%; left: 60%; animation-delay: 1s; }
.star:nth-child(4) { top: 40%; left: 75%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 25%; left: 45%; animation-delay: 0.3s; }
@keyframes twinkle { 0%,100% { opacity: 0.7; } 50% { opacity: 0.1; } }
/* Mountain */
.mountain { position: absolute; bottom: 75px; left: 0; right: 0; height: 100px; }
.mountain::before { content: ''; position: absolute; bottom: 0; left: 10%; border-left: 70px solid transparent; border-right: 70px solid transparent; border-bottom: 100px solid #37474f; }
.mountain::after { content: ''; position: absolute; bottom: 0; right: 15%; border-left: 55px solid transparent; border-right: 55px solid transparent; border-bottom: 80px solid #455a64; }

/* PRODUCTS */
.products-section { padding: 5rem 2rem; }
.products-section h2 { font-size: 2rem; font-weight: 600; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 0.9rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(124,77,255,0.4); }
.product-card img { width: 100%; height: 200px; object-fit: cover; filter: saturate(0.85); transition: filter 0.3s; }
.product-card:hover img { filter: saturate(1.1); }
.product-card-info { padding: 1.25rem; }
.product-card-info h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.35rem; }
.product-card-info p { font-size: 0.82rem; color: var(--text-muted); }
.product-tag { display: inline-block; padding: 0.25rem 0.7rem; background: rgba(124,77,255,0.15); color: var(--accent2); border-radius: 20px; font-size: 0.7rem; letter-spacing: 0.08em; margin-bottom: 0.5rem; }

/* FOOTER */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; text-align: center; }
.footer p { color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1.5rem; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent2); }
.back-to-portfolio { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding: 0.55rem 1.25rem; border: 1px solid var(--border); border-radius: 2px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); transition: all 0.2s; }
.back-to-portfolio:hover { border-color: var(--accent); color: var(--accent); }

/* INNER PAGES */
.page-wrap { padding-top: var(--nav-h); }
.page-banner { padding: 5rem 2rem 3rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(124,77,255,0.12) 0%, transparent 70%); }
.page-banner h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 600; margin-bottom: 0.5rem; }
.page-banner p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ABOUT */
.about-section { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.about-text h2 { font-size: 2rem; font-weight: 600; margin-bottom: 1rem; background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* CONTACT */
.contact-section { max-width: 650px; margin: 0 auto; padding: 4rem 2rem; }
.contact-section h2 { font-size: 2rem; font-weight: 600; margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 0.85rem 1rem; color: var(--text); font-family: var(--ff-display); font-size: 0.9rem; transition: border-color 0.2s; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { align-self: flex-start; padding: 0.75rem 2rem; background: var(--accent); color: #fff; border: none; border-radius: 2px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.contact-form button:hover { background: var(--accent2); }

@media (max-width: 768px) {
  .topnav-links { display: none; }
  .topnav .icon { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
}
