/* === GLOBAL STYLES === */
html { height: 100%; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; min-height: 100%; background-attachment: fixed; background-size: cover; background-repeat: no-repeat; position: relative; color: var(--text); background: var(--background); }
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.section { padding: 2rem 0 1.5rem 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 2rem; text-align: center; padding-bottom: 0.5rem; }

/* === HERO SECTION === */
.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 3rem 1rem; min-height: 50vh; position: relative; z-index: 1; }
.domain-badge { display: inline-block; padding: 0.5rem 1rem; border-radius: 50px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; animation: fadeIn 0.8s ease; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); }
h1.domain-name { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 1rem 0; word-break: break-word; animation: fadeInScale 0.6s ease-out; }
.domain-price { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 0.5rem; animation: slideUp 0.8s ease 0.2s both; }
.price-badge { display: inline-block; padding: 0.3rem 1rem; border-radius: 20px; font-size: 1rem; margin-bottom: 2rem; animation: slideUp 0.8s ease 0.3s both; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: slideUp 0.8s ease 0.4s both; }
.cta-button { display: inline-block; padding: 1rem 2rem; text-decoration: none; border-radius: 50px; font-size: 1.125rem; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); background-color: var(--button); color: var(--button-text); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }
.cta-button-secondary { display: inline-block; padding: 1rem 2rem; text-decoration: none; border-radius: 50px; font-size: 1.125rem; font-weight: 600; transition: all 0.3s ease; background: transparent; border: 2px solid var(--button); color: var(--text); }
.cta-button-secondary:hover { background: var(--button); color: var(--button-text); transform: translateY(-3px); }

/* === CARD & GRID STYLES === */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { padding: 1.5rem; border-radius: 20px; text-align: center; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.contact-card .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 0.25rem; }
.contact-card .value { font-size: 1rem; font-weight: 600; word-break: break-all; }

/* === PAYMENT & FOOTER === */
.payment-methods { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.payment-badge { padding: 0.5rem 1.25rem; border-radius: 25px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); }
.creator-badge { text-align: center; padding: 2rem 1rem; font-size: 0.9rem; opacity: 0.8; }
.creator-badge p { margin: 0; }
.creator-badge a { color: var(--text); font-weight: 600; text-decoration: none; transition: opacity 0.3s ease; border-bottom: 1px solid transparent; }
.creator-badge a:hover { opacity: 0.7; border-bottom-color: var(--text); }

/* === PORTFOLIO INDEX & DETAIL PAGE PORTFOLIO SECTION === */
.portfolio-section { background: rgba(0,0,0,0.2); padding: 3rem 0; overflow: hidden; }
.portfolio-host-page .portfolio-subtitle { font-size: 1.25rem; opacity: 0.9; margin: -0.5rem auto 1.5rem auto; max-width: 600px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.portfolio-index .container, .portfolio-host-page .container { max-width: 1400px; }
.portfolio-header { text-align: center; padding: 4rem 1rem 3rem 1rem; }
.portfolio-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; margin: 0; }
.portfolio-header p { font-size: 1.25rem; opacity: 0.8; margin-top: 0.5rem; }
.portfolio-main-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; padding-bottom: 4rem; }
.domain-card { text-decoration: none; color: var(--text); border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; background: rgba(0, 0, 0, 0.2); box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }
.domain-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.card-header { padding: 2rem 1.5rem; text-align: center; }
.card-header h3 { font-size: 1.75rem; font-weight: 700; margin: 0; color: #ffffff; text-shadow: 0 2px 5px rgba(0,0,0,0.4); }
.card-body { padding: 1.5rem; background: rgba(255, 255, 255, 0.05); }
.card-feature { font-size: 1rem; opacity: 0.8; margin: 0 0 1rem 0; min-height: 2.5em; }
.card-price { font-size: 1.5rem; font-weight: 700; margin: 0; text-align: right; }

/* === HORIZONTAL PORTFOLIO SCROLLER STYLES === */
.portfolio-scroller { display: flex; overflow-x: auto; padding: 1rem 0; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; }
.portfolio-scroller::-webkit-scrollbar { display: none; }
.scroller-item { flex: 0 0 280px; margin-right: 1.5rem; scroll-snap-align: start; }
.scroller-item .card { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; transition: transform 0.3s ease; }
.scroller-item .card:hover { transform: scale(1.05); }
.scroller-item h4 { font-size: 1.25rem; margin: 0 0 0.5rem 0; font-weight: 600; }
.scroller-item span { font-size: 1rem; opacity: 0.7; }

/* === OPTIONAL HERO BACKGROUND IMAGE STYLES === */
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; z-index: -2; background-size: cover; background-position: center center; background-repeat: no-repeat; opacity: 0.3; }
.hero-background::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: -1; }
body:has(.hero-background[style*="background-image"]) .hero h1.domain-name, body:has(.hero-background[style*="background-image"]) .hero .domain-price, body:has(.hero-background[style*="background-image"]) .hero .portfolio-subtitle { color: #ffffff; text-shadow: 0 3px 8px rgba(0,0,0,0.7); }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === MOBILE OPTIMIZATION (ENHANCED) === */
@media (max-width: 768px) {
    .section { padding: 1.5rem 0; }
    .container { padding: 0 1rem; }
    .hero { padding: 2rem 1rem; min-height: auto; }
    h1.domain-name { font-size: 2.2rem; }
    .domain-price { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 350px; margin: 0 auto; }
    .grid, .portfolio-main-grid { grid-template-columns: 1fr; gap: 1rem; }
    .portfolio-header { padding: 2.5rem 1rem 2rem 1rem; }
    .portfolio-header h1 { font-size: 2rem; }
    .portfolio-header p { font-size: 1rem; }
    .portfolio-main-grid { padding-bottom: 2.5rem; }
    .hero-background { height: 60vh; }
    .portfolio-scroller { padding: 1rem; scroll-padding: 1rem; }
    .scroller-item { flex: 0 0 80%; margin-right: 1rem; }
}