diff --git a/src/components/header/header.css b/src/components/header/header.css index b7ab8d5..cf3eb9d 100644 --- a/src/components/header/header.css +++ b/src/components/header/header.css @@ -1,20 +1,105 @@ -.chh__header--body { +[data-theme='light'] .chh__header--body { display: flex; justify-content: center; align-items: center; transform-style: preserve-3d; overflow: hidden; padding: 3rem auto; - background-color: var(--ifm-background-color); + + /* Animated pastel gradient */ + background: linear-gradient( + 135deg, + #fceff9, + #e9f6ff, + #fdf6e3, + #f5ecff, + #fff0f5 + ); + background-size: 400% 400%; + animation: pastelShift 18s ease infinite; + + border: 1px solid rgba(200, 200, 200, 0.5); + border-radius: 18px; + + box-shadow: + 0 25px 50px rgba(0, 0, 0, 0.1), + 0 0 0 1px rgba(0, 0, 0, 0.05), + inset 0 1px 0 rgba(255, 255, 255, 0.8); + color: #000; - transition: background 0.4s ease, color 0.4s ease; + transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, border 0.5s ease; +} +@keyframes pastelShift { + 0% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0% 50%; + } } -html.theme-dark .chh__header--body { - background: linear-gradient(to right, #121212, #1e1e1e); - color: #fff; +/* Gradient animation */ +@keyframes smoothGradient { + 0% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } + 100% { background-position: 0% 50%; } } + +[data-theme='dark'] .chh__header--body { + display: flex; + justify-content: center; + align-items: center; + transform-style: preserve-3d; + overflow: hidden; + padding: 3rem auto; + + /* Dark gradient background */ + background: linear-gradient( + 135deg, + rgba(18, 18, 24, 1) 0%, + rgba(28, 28, 38, 0.95) 25%, + rgba(36, 32, 48, 0.9) 50%, + rgba(22, 22, 30, 0.95) 75%, + rgba(10, 10, 15, 1) 100% + ); + background-size: 400% 400%; + animation: smoothDarkGradient 18s ease infinite; + + /* Depth */ + border: 1px solid rgba(60, 60, 80, 0.6); + border-radius: 18px; + + box-shadow: + 0 25px 60px rgba(0, 0, 0, 0.6), + 0 0 0 1px rgba(255, 255, 255, 0.05), + inset 0 1px 0 rgba(255, 255, 255, 0.08); + + color: #f5f5f5; + transition: background 0.5s ease, color 0.5s ease, border 0.4s ease, box-shadow 0.4s ease; +} + +/* Smooth background animation */ +@keyframes smoothDarkGradient { + 0% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } + 100% { background-position: 0% 50%; } +} + +/* Neon glow on hover */ +[data-theme='dark'] .chh__header--body:hover { + border: 1px solid rgba(140, 100, 255, 0.9); + box-shadow: + 0 0 15px rgba(140, 100, 255, 0.6), + 0 0 30px rgba(140, 100, 255, 0.4), + 0 0 50px rgba(140, 100, 255, 0.2), + inset 0 1px 0 rgba(255, 255, 255, 0.12); +} + + .chh__header { display: flex; flex-direction: row; @@ -32,31 +117,74 @@ html.theme-dark .chh__header--body { } .chh__header-content h1 { - font-weight: 700; - font-size: 62px; - line-height: 75px; - letter-spacing: -0.04em; + font-weight: 800; + font-size: 64px; + line-height: 76px; + letter-spacing: -0.03em; + + /* Darker premium gradient */ background: linear-gradient( - 30deg, - rgba(206, 86, 174, 0.972) 0%, - rgb(253 29 29 / 100%) 50%, - rgb(252 176 69 / 100%) 100% + 45deg, + #d63384, /* rich pink */ + #b5179e, /* purple */ + #7209b7, /* deep violet */ + #4361ee, /* royal blue */ + #3a0ca3 /* premium indigo */ ); background-clip: text; + -webkit-background-clip: text; -webkit-text-fill-color: transparent; - transition: background 0.3s ease-in-out; + + text-shadow: 0px 3px 8px rgba(0,0,0,0.2); + padding-left: 2rem; + padding-top: 2rem; } -html.theme-dark .chh__header-content h1 { - background: linear-gradient( - 45deg, - rgba(255, 255, 255, 0.9), - rgba(180, 180, 255, 0.9) - ); + +[data-theme='dark'] .chh__header-content h1{ + color: #ffffff; /* base white for readability */ + font-weight: 700; + letter-spacing: 0.5px; + + /* Gradient text effect */ + background: linear-gradient(90deg, #b8aaff, #88d4ff, #b8aaff); + background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; + + animation: headingGradient 10s linear infinite; + + /* Soft glow */ + text-shadow: 0 0 4px rgba(150, 120, 255, 0.3), + 0 0 8px rgba(110, 200, 255, 0.15); + transition: text-shadow 0.5s ease; } +@keyframes headingGradient { + 0% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } + 100% { background-position: 0% 50%; } +} +[data-theme='dark'] .chh__header-conetent h1::after { + content: ""; + position: absolute; + bottom: -6px; + left: 0; + width: 0; + height: 2px; + background: linear-gradient(90deg, #a78bfa, #60a5fa, #a78bfa); + border-radius: 2px; + transition: width 0.4s ease; +} +[data-theme='dark'] .chh__header-content h1:hover::after { + width: 100%; +} +[data-theme='dark'] .chh__header-content h1 { + text-shadow: 0 0 6px rgba(150, 120, 255, 0.4), + 0 0 12px rgba(110, 200, 255, 0.25); +} + + .chh__header-content p { font-family: var(--font-family); font-weight: 400; @@ -64,8 +192,9 @@ html.theme-dark .chh__header-content h1 { text-align: justify; line-height: 30px; margin-top: 1.5rem; - color: #000; /* Light mode text */ + color: #444; transition: color 0.3s ease-in-out; + padding-left: 2rem; } /* Override paragraph color in dark mode */ @@ -83,6 +212,8 @@ html.theme-dark .chh__header-content p { margin: 2rem 0 1rem; display: flex; flex-direction: row; + gap: 1rem; + padding: 2rem; } .chh__header-content__input--link { @@ -90,42 +221,161 @@ html.theme-dark .chh__header-content p { font-size: 20px; line-height: 28px; font-weight: 600; + color: #fff; } .chh__header-content__input--link:hover { text-decoration: none; -} + color:#fff; -.chh__header-content__input button { - flex: 0.6; - width: 100%; - min-height: 50px; - font-weight: 400; - font-size: 20px; - line-height: 28px; - border: 2px solid #ff4820; - padding: 0 0.8rem; + +} +/*Primary Button*/ +.chh__header-content__input button:first-child { + background: linear-gradient(120deg, #6a5cff, #c850c0, #ff6ec7); + background-size: 300% 300%; + animation: gradientFlow 6s ease infinite; + + border: none; + border-radius: 9999px; + padding: 0.95rem 2.4rem; + margin-right: 1rem; + font-size: 18px; + font-weight: 700; + color: #fff; cursor: pointer; - outline: none; - border-radius: 5px; - margin: 0 1rem 0 0; - background: linear-gradient(90deg, #07ab8a5f 0%, transparent 100%); + transition: all 0.35s ease; + box-shadow: 0 6px 20px rgba(150, 60, 220, 0.35); + letter-spacing: 0.5px; } -html.theme-dark .chh__header-content__input button { - background: rgba(255, 255, 255, 0.05); - border-color: #4fe3c5; +.chh__header-content__input button:first-child:hover { + transform: translateY(-3px) scale(1.05); + box-shadow: 0 12px 28px rgba(150, 60, 220, 0.55); + filter: brightness(1.08); +} + + +/* Dark Theme Buttons */ +[data-theme='dark'] .chh__header-content__input button:first-child{ + background: linear-gradient(135deg, #8c64ff, #b57aff); color: #fff; + border: none; + border-radius: 12px; + padding: 0.75rem 1.5rem; + font-weight: 600; + cursor: pointer; + transition: all 0.35s ease; + box-shadow: + 0 4px 12px rgba(140, 100, 255, 0.4), + inset 0 1px 0 rgba(255, 255, 255, 0.1); +} + +[data-theme='dark'].chh__header-content__input button:first-child:hover { + box-shadow: + 0 6px 20px rgba(140, 100, 255, 0.6), + 0 0 25px rgba(180, 120, 255, 0.4), + inset 0 1px 0 rgba(255, 255, 255, 0.15); + transform: translateY(-2px); } + + .chh__header-content__input button:last-child { + position: relative; + overflow: hidden; + border: 2px solid transparent; + border-radius: 9999px; + padding: 0.9rem 2.4rem; + font-size: 17px; + font-weight: 600; background: transparent; + cursor: pointer; + + background: + linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)) padding-box, + linear-gradient(135deg, #ff6ec7, #c850c0, #6a5cff, #c850c0) border-box; + background-size: 400% 400%; + background-clip: padding-box, border-box; + animation: gradientBorder 8s linear infinite; + + color: #fff; + transition: all 0.35s ease; + + backdrop-filter: blur(10px) saturate(150%); + -webkit-backdrop-filter: blur(10px) saturate(150%); } -.chh__header-content__input button:hover { - background: linear-gradient(90deg, #f0a90fd0 0%, transparent 100%); +.chh__header-content__input button:last-child:hover { + transform: translateY(-3px) scale(1.05); + box-shadow: 0 10px 28px rgba(200, 100, 255, 0.35), + 0 0 14px rgba(255, 110, 199, 0.4), + inset 0 0 25px rgba(255, 255, 255, 0.08); + background: + linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) padding-box, + linear-gradient(135deg, #ff6ec7, #c850c0, #6a5cff, #c850c0) border-box; } +.chh__header-content__input button:last-child::after { + content: ""; + position: absolute; + top: 0; + left: -80%; + width: 50%; + height: 100%; + background: linear-gradient( + 120deg, + transparent, + rgba(255, 255, 255, 0.6), + transparent + ); + transform: skewX(-25deg); + transition: 0.7s; +} + +.chh__header-content__input button:last-child:hover::after { + left: 130%; +} + +/* Secondary Button (transparent with glow border) */ +[data-theme='dark'] .chh__header-content__input button:last-child { + background: transparent; + color: #e5e5e5; + border: 1.5px solid rgba(180, 120, 255, 0.7); + border-radius: 12px; + padding: 0.75rem 1.5rem; + font-weight: 500; + cursor: pointer; + transition: all 0.35s ease; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); +} + +[data-theme='dark'] .chh__header-content__input button:last-child:hover { + background: rgba(50, 40, 70, 0.4); + border-color: rgba(200, 150, 255, 0.9); + box-shadow: + 0 0 12px rgba(200, 150, 255, 0.5), + 0 0 24px rgba(200, 150, 255, 0.3), + inset 0 1px 0 rgba(255, 255, 255, 0.1); + transform: translateY(-2px); +} + + + +@keyframes gradientFlow { + 0% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } + 100% { background-position: 0% 50%; } +} + +@keyframes gradientBorder { + 0% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } + 100% { background-position: 0% 50%; } +} + + + .chh__header-image { width: auto; height: auto;