File manager - Edit - /home/webapp69.cm.in.th/u69319090030/Portfolio/style.css
Back
:root { /* Colors (Dark mode by default) */ --bg-dark: #070708; --bg-card: rgba(22, 18, 18, 0.75); --bg-nav: rgba(7, 7, 8, 0.88); --bg-nav-mobile: rgba(11, 15, 25, 0.98); --bg-badge: rgba(17, 24, 39, 0.8); --bg-toast: rgba(17, 24, 39, 0.95); --primary-gradient: linear-gradient(135deg, #ff3333 0%, #990000 100%); --primary: #ff3333; --primary-light: #ff6666; --secondary: #990000; --text-main: #f5f5f7; --text-muted: #a0a0a5; --text-white: #ffffff; --border-color: rgba(255, 255, 255, 0.06); --border-hover: rgba(255, 51, 51, 0.4); /* Font */ --font-heading: 'Prompt', 'Outfit', 'Plus Jakarta Sans', 'Kanit', sans-serif; --font-body: 'Prompt', 'Plus Jakarta Sans', 'Sarabun', sans-serif; /* Shadow & Effects */ --glow-shadow: 0 0 25px rgba(255, 51, 51, 0.2); --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); --glass-blur: blur(12px); /* Transitions */ --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1); --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1); } /* Light Mode Overrides */ body.light-mode { --bg-dark: #f5f5f7; --bg-card: rgba(255, 255, 255, 0.8); --bg-nav: rgba(245, 245, 247, 0.88); --bg-nav-mobile: rgba(245, 245, 247, 0.98); --bg-badge: rgba(255, 255, 255, 0.85); --bg-toast: rgba(255, 255, 255, 0.95); --text-main: #1d1d1f; --text-muted: #6e6e73; --text-white: #1d1d1f; --border-color: rgba(0, 0, 0, 0.08); --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1); --glow-shadow: 0 0 25px rgba(255, 51, 51, 0.1); } /* ==================== CUTSCENE / INTRO OVERLAY ==================== */ /* ---- Custom Cursor (Cutscene only) ---- */ .cutscene-overlay { cursor: none; } .cs-cursor-dot { position: fixed; width: 10px; height: 10px; background: #00e5ff; border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); box-shadow: 0 0 6px 2px rgba(0, 229, 255, 0.9), 0 0 14px 4px rgba(0, 229, 255, 0.5), 0 0 28px 6px rgba(0, 229, 255, 0.25); transition: width 0.15s ease, height 0.15s ease, background 0.15s ease; will-change: left, top; } .cs-cursor-dot.clicking { width: 6px; height: 6px; background: #fff; } .cs-cursor-ring { position: fixed; width: 38px; height: 38px; border: 1.5px solid rgba(0, 229, 255, 0.6); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; will-change: left, top; } .cs-cursor-ring.hovering { width: 54px; height: 54px; border-color: rgba(0, 229, 255, 1); box-shadow: 0 0 18px rgba(0, 229, 255, 0.45); } .cs-cursor-ring.clicking { width: 28px; height: 28px; border-color: #fff; } /* Ripple on click */ @keyframes csRipple { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; } 100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; } } .cs-cursor-ripple { position: fixed; width: 38px; height: 38px; border: 1px solid rgba(0, 229, 255, 0.8); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); animation: csRipple 0.5s ease forwards; } .cutscene-overlay { position: fixed; inset: 0; z-index: 9999; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity 1s ease; } .cutscene-overlay.cutscene-exit { opacity: 0; pointer-events: none; } .cutscene-overlay.cutscene-hidden { display: none; } /* Video background */ .cutscene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; } .cutscene-video.video-ready { opacity: 1; } /* Dark vignette overlay */ .cutscene-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%), linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.6) 100%); pointer-events: none; } /* Particle stars layer */ .cutscene-stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; } .cs-star { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.8); animation: starTwinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s); } @keyframes starTwinkle { 0%, 100% { opacity: 0.1; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.4); } } /* Center content */ .cutscene-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; text-align: center; padding: 2rem; animation: fadeSlideUp 1s ease 0.2s both; } @keyframes fadeSlideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } } /* Text block */ .cutscene-text-block { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; } /* "✦ PORTFOLIO ✦" label */ .cutscene-label { font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.45em; color: #ff3333; text-transform: uppercase; opacity: 0.85; animation: fadeSlideUp 0.8s ease 0.5s both; } /* Big name */ .cutscene-name { font-family: 'Outfit', 'Sarabun', sans-serif; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; line-height: 1.05; background: linear-gradient(135deg, #1a0000 0%, #cc0000 50%, #ff3333 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 18px rgba(200,0,0,0.45)); animation: fadeSlideUp 0.9s ease 0.7s both; } /* Typewriter subtitle */ .cutscene-subtitle { font-family: 'Outfit', 'Sarabun', sans-serif; font-size: clamp(0.95rem, 2vw, 1.2rem); font-weight: 400; color: rgba(255,255,255,0.82); letter-spacing: 0.04em; min-height: 1.6em; animation: fadeSlideUp 0.8s ease 0.9s both; } /* Blinking cursor */ .cs-cursor { display: inline-block; color: #ff3333; animation: cursorBlink 0.9s step-end infinite; margin-left: 1px; font-weight: 300; } @keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* ENTER button */ .cutscene-enter-btn { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.25em; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,0.55); padding: 0.7rem 2.8rem; border-radius: 50px; cursor: pointer; position: relative; overflow: hidden; transition: border-color 0.3s, color 0.3s, box-shadow 0.3s; animation: fadeSlideUp 0.8s ease 1.1s both; } .cutscene-enter-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(33,150,243,0.15)); opacity: 0; transition: opacity 0.3s; } .cutscene-enter-btn:hover { border-color: #00e5ff; color: #00e5ff; box-shadow: 0 0 20px rgba(0,229,255,0.25), inset 0 0 20px rgba(0,229,255,0.05); } .cutscene-enter-btn:hover::before { opacity: 1; } /* Hint text */ .cutscene-hint { font-family: 'Sarabun', sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.45); animation: fadeSlideUp 0.8s ease 1.3s both; margin-top: -0.5rem; } .cutscene-hint kbd { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; padding: 0 6px; font-family: 'Outfit', monospace; font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,0.7); } /* ---- Music Player ---- */ .cutscene-music-player { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: rgba(10,10,20,0.65); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 8px 18px 8px 8px; z-index: 5; white-space: nowrap; animation: fadeSlideUp 0.8s ease 1.6s both; box-shadow: 0 4px 30px rgba(0,0,0,0.4); } .music-album-art { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #00e5ff, #7b2ff7); display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: albumSpin 8s linear infinite; } @keyframes albumSpin { to { transform: rotate(360deg); } } .music-album-inner { width: 14px; height: 14px; border-radius: 50%; background: rgba(10,10,20,0.8); } .music-info { display: flex; flex-direction: column; gap: 1px; } .music-title { font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 600; color: #fff; } .music-artist { font-family: 'Outfit', sans-serif; font-size: 0.68rem; color: rgba(255,255,255,0.5); } /* Waveform bars */ .music-waveform { display: flex; align-items: center; gap: 3px; height: 24px; padding: 0 6px; } .music-waveform span { display: block; width: 3px; border-radius: 2px; background: linear-gradient(to top, #00e5ff, #2196f3); animation: waveBar 0.8s ease-in-out infinite alternate; } .music-waveform span:nth-child(1) { height: 10px; animation-delay: 0.0s; } .music-waveform span:nth-child(2) { height: 18px; animation-delay: 0.1s; } .music-waveform span:nth-child(3) { height: 14px; animation-delay: 0.2s; } .music-waveform span:nth-child(4) { height: 20px; animation-delay: 0.3s; } .music-waveform span:nth-child(5) { height: 8px; animation-delay: 0.4s; } .music-waveform span:nth-child(6) { height: 16px; animation-delay: 0.05s; } .music-waveform span:nth-child(7) { height: 22px; animation-delay: 0.15s; } .music-waveform span:nth-child(8) { height: 12px; animation-delay: 0.25s; } .music-waveform span:nth-child(9) { height: 18px; animation-delay: 0.35s; } .music-waveform span:nth-child(10) { height: 6px; animation-delay: 0.45s; } @keyframes waveBar { from { transform: scaleY(0.4); opacity: 0.6; } to { transform: scaleY(1); opacity: 1; } } .music-waveform.paused span { animation-play-state: paused; opacity: 0.4; } .music-pause-btn { background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.75rem; cursor: pointer; transition: border-color 0.2s, color 0.2s; flex-shrink: 0; } .music-pause-btn:hover { border-color: #00e5ff; color: #00e5ff; } /* ==================== GLOBAL STYLES ==================== */ * { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; } body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; } ul { list-style: none; } a { text-decoration: none; color: inherit; transition: var(--transition-fast); } img { max-width: 100%; height: auto; display: block; } input, textarea, button { font-family: inherit; } /* Common Layout Utilities */ .container { width: 90%; max-width: 1200px; margin: 0 auto; } .section { padding: 6.5rem 0 3.5rem; position: relative; } .section-title { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.5px; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .section-subtitle { display: block; font-family: 'Sarabun', 'Prompt', sans-serif; font-size: 1.05rem; font-weight: 400; color: rgba(235, 235, 245, 0.92); text-align: center; margin-bottom: 3.5rem; line-height: 1.8; letter-spacing: 0.01em; } /* Buttons */ .btn { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.75rem; border-radius: 50px; font-weight: 500; cursor: pointer; transition: var(--transition-smooth); } .btn-primary { background: var(--primary-gradient); color: var(--text-white); box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4); border: none; } .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 51, 51, 0.6); } .btn-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-main); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary-light); transform: translateY(-3px); } /* Gradient text utility */ .text-gradient { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* ==================== HEADER & NAVBAR ==================== */ .header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; border-bottom: 1px solid var(--border-color); background-color: var(--bg-nav); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); transition: var(--transition-smooth); } .nav-container { display: flex; justify-content: space-between; align-items: center; height: 4.5rem; width: 90%; max-width: 1200px; margin: 0 auto; } .logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; } .logo span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .nav-list { display: flex; gap: 2.5rem; } .nav-link { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; position: relative; padding: 0.5rem 0; } .nav-link:hover, .nav-link.active-link { color: var(--text-white); } .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-gradient); transition: var(--transition-fast); } .nav-link:hover::after, .nav-link.active-link::after { width: 100%; } .nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; } .hamburger-bar { width: 25px; height: 2px; background-color: var(--text-main); transition: var(--transition-fast); } /* ==================== HERO SECTION ==================== */ .hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 6rem; } .hero-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; } .hero-subtitle { display: block; color: var(--primary-light); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 1rem; } .hero-title { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.5rem; letter-spacing: -1px; } .hero-title span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .hero-profession { font-family: var(--font-heading); font-size: 1.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 1.5rem; } .hero-description { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 550px; } .hero-buttons { display: flex; gap: 1.25rem; } /* Hero Image & Decorative Blob */ .hero-img-wrapper { position: relative; justify-self: center; } .hero-blob { width: 320px; height: 320px; background: var(--primary-gradient); border-radius: 50%; display: flex; justify-content: center; align-items: center; overflow: hidden; position: relative; box-shadow: var(--glow-shadow); animation: morphing 8s ease-in-out infinite alternate; } .hero-img { width: 90%; height: 90%; object-fit: cover; border-radius: 50%; z-index: 2; } /* Badge floating elements */ .hero-badge { position: absolute; background: var(--bg-badge); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border-color); padding: 0.75rem 1.25rem; border-radius: 16px; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--card-shadow); animation: floating 4s ease-in-out infinite; } .hero-badge i { font-size: 1.5rem; } .hero-badge h4 { font-size: 0.9rem; font-weight: 600; } .hero-badge p { font-size: 0.75rem; color: var(--text-muted); } .badge-1 { top: 15%; left: -20%; } .badge-2 { bottom: 15%; right: -15%; animation-delay: 2s; } /* Decorative Orbs */ .glow-orb { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.2; } .orb-1 { top: 20%; left: -100px; background-color: var(--primary); } .orb-2 { bottom: 10%; right: -100px; background-color: var(--secondary); } /* ==================== ABOUT ME SECTION ==================== */ .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } .about-heading { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; } .about-heading i { color: var(--primary-light); } .about-text { color: var(--text-muted); margin-bottom: 1.25rem; } /* Timeline */ .education-timeline { position: relative; border-left: 2px solid var(--border-color); padding-left: 1.5rem; margin-top: 1.5rem; } .timeline-item { position: relative; margin-bottom: 2rem; } .timeline-item:last-child { margin-bottom: 0; } .timeline-dot { position: absolute; left: calc(-1.5rem - 6px); top: 6px; width: 10px; height: 10px; background: var(--primary-gradient); border-radius: 50%; } .timeline-date { font-size: 0.85rem; font-weight: 600; color: var(--primary-light); display: block; margin-bottom: 0.25rem; } .timeline-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; } .timeline-desc { font-size: 0.9rem; color: var(--text-muted); } /* Skills Badges Grid */ .skills-box { background: var(--bg-card); border: 1px solid var(--border-color); padding: 2.25rem; border-radius: 24px; box-shadow: var(--card-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); } .skills-list { display: flex; flex-wrap: wrap; gap: 0.75rem; } .skill-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); font-size: 0.9rem; font-weight: 500; transition: var(--transition-fast); } .skill-badge:hover { background: rgba(99, 102, 241, 0.08); border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(99, 102, 241, 0.08); } /* Skill Icon Colors */ .text-orange { color: #f06529; } .text-blue { color: #2965f1; } .text-yellow { color: #f7df1e; } .text-cyan { color: #61dafb; } .text-purple { color: #7952b3; } .text-green { color: #3c873a; } .text-indigo { color: #4f5d95; } .text-pink { color: #f24e1e; } .text-gray { color: #8c8c8c; } /* ==================== PROJECTS SECTION ==================== */ .projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; } .project-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; box-shadow: var(--card-shadow); transition: var(--transition-smooth); display: flex; flex-direction: column; height: 100%; } .project-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.25); } .project-img-container { position: relative; height: 200px; overflow: hidden; } .project-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); } .project-card:hover .project-img { transform: scale(1.05); } /* Custom Grad Fallbacks */ .project-img-fallback { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; font-size: 3.5rem; color: var(--text-white); } .grad-orange { background: linear-gradient(135deg, #ff4444 0%, #3a0000 100%); } .grad-blue { background: linear-gradient(135deg, #2a0808 0%, #110202 100%); } .project-tag { position: absolute; top: 1rem; left: 1rem; background: rgba(11, 15, 25, 0.85); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border-color); padding: 0.35rem 0.85rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; color: var(--primary-light); } .project-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; } .project-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; } .project-description { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; flex-grow: 1; } .project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; } .project-tech span { font-size: 0.75rem; background: rgba(255, 255, 255, 0.05); padding: 0.25rem 0.6rem; border-radius: 6px; color: var(--text-muted); border: 1px solid var(--border-color); } .project-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--primary-light); align-self: flex-start; } .project-link:hover { color: var(--text-white); gap: 0.75rem; } /* ==================== CONTACT SECTION ==================== */ .contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; } .contact-cards { display: flex; flex-direction: column; gap: 1.25rem; } .contact-info-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1.25rem 1.5rem; border-radius: 16px; display: flex; align-items: center; gap: 1.25rem; box-shadow: var(--card-shadow); transition: var(--transition-fast); } .contact-info-card:hover { border-color: var(--border-hover); transform: translateX(5px); } .font-large { font-size: 1.75rem; } .contact-info-card h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); } .contact-info-card a { font-size: 1.05rem; font-weight: 600; word-break: break-all; } .contact-info-card a:hover { color: var(--primary-light); } /* Contact Form */ .contact-form-box { background: var(--bg-card); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 24px; box-shadow: var(--card-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); } .contact-form { display: flex; flex-direction: column; gap: 1.75rem; } .input-group { position: relative; width: 100%; } .input-group input, .input-group textarea { width: 100%; padding: 0.75rem 0.25rem; background: transparent; border: none; border-bottom: 2px solid var(--border-color); color: var(--text-white); font-size: 1rem; outline: none; transition: var(--transition-fast); } .input-group textarea { resize: none; } .input-group label { position: absolute; left: 0.25rem; top: 0.75rem; color: var(--text-muted); pointer-events: none; transition: var(--transition-fast); } .input-line { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-gradient); transition: var(--transition-fast); } /* Floating Label Animation */ .input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label, .input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label { top: -1.25rem; font-size: 0.8rem; color: var(--primary-light); } .input-group input:focus ~ .input-line, .input-group textarea:focus ~ .input-line { width: 100%; } .submit-btn { align-self: flex-start; border: none; } /* ==================== FOOTER ==================== */ .footer { border-top: 1px solid var(--border-color); padding: 2rem 0; margin-top: 4rem; } .footer-container { display: flex; justify-content: space-between; align-items: center; } .footer-copy { color: var(--text-muted); font-size: 0.9rem; } .footer-socials { display: flex; gap: 1.5rem; } .footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; color: var(--text-muted); } .footer-socials a:hover { color: var(--text-white); background: var(--primary-gradient); border-color: transparent; transform: translateY(-3px); } /* ==================== TOAST NOTIFICATION ==================== */ .toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 10000; display: flex; flex-direction: column; gap: 0.75rem; } .toast { background: var(--bg-toast); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border-hover); padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 0.75rem; color: var(--text-white); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .toast.show { transform: translateX(0); } .toast-success i { color: #10b981; } /* ==================== STICKY BOTTOM NAVIGATION ==================== */ .bottom-nav { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background-color: var(--bg-nav); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border-color); padding: 0.75rem 1.5rem; border-radius: 40px; box-shadow: var(--card-shadow); z-index: 999; width: 90%; max-width: 480px; transition: var(--transition-smooth); display: none; /* Hidden on desktop */ } .bottom-nav-list { display: flex; justify-content: space-between; align-items: center; width: 100%; } .bottom-nav-item { display: flex; justify-content: center; align-items: center; } .bottom-nav-link { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 0.75rem; font-weight: 500; transition: var(--transition-fast); } .bottom-nav-link i { font-size: 1.25rem; transition: transform 0.3s ease; } .bottom-nav-link:hover, .bottom-nav-link.active-link { color: var(--primary-light); } .bottom-nav-link:hover i, .bottom-nav-link.active-link i { transform: translateY(-2px); } /* Theme Toggle Button in Bottom Nav */ .theme-toggle-btn { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: var(--transition-fast); } .theme-toggle-btn:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--primary-light); } body.light-mode .theme-toggle-btn:hover { background-color: rgba(0, 0, 0, 0.05); } .header-actions { display: flex; align-items: center; gap: 1rem; } .header-theme-toggle { margin-left: 0.5rem; } /* ==================== ANIMATIONS ==================== */ @keyframes morphing { 0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } } @keyframes floating { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } } /* ==================== MEDIA QUERIES (RESPONSIVENESS) ==================== */ /* Laptop & Large Screens (Breakpoints: 1024px) */ @media screen and (max-width: 1024px) { .hero-container { gap: 2rem; } .hero-title { font-size: 3rem; } .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } } /* Tablets (Breakpoints: 768px) */ @media screen and (max-width: 768px) { body { padding-bottom: 6rem; /* Prevent content from being hidden behind sticky bottom nav */ } .section { padding: 5rem 0 2.5rem; } .section-title { font-size: 2rem; } .section-subtitle { margin-bottom: 2.5rem; } /* Show Hamburger & Header Theme Toggle on Mobile */ .nav-toggle { display: flex; } .header-theme-toggle { display: block; } .bottom-nav { display: block; } .nav-menu { position: fixed; top: -100vh; left: 0; width: 100%; background-color: var(--bg-nav-mobile); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--border-color); padding: 4rem 2rem 3rem; transition: top 0.4s ease, visibility 0.4s; z-index: -1; visibility: hidden; pointer-events: none; } .nav-menu.show-menu { top: 0; visibility: visible; pointer-events: auto; } .nav-list { flex-direction: column; align-items: center; gap: 2rem; } .nav-link { font-size: 1.15rem; } /* Hamburger Active Transform */ .nav-toggle.toggle-active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); } .nav-toggle.toggle-active .hamburger-bar:nth-child(2) { opacity: 0; } .nav-toggle.toggle-active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } /* Hero layout stack */ .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; } .hero-data { order: 2; } .hero-img-wrapper { order: 1; } .hero-description { margin-left: auto; margin-right: auto; } .hero-buttons { justify-content: center; } /* About layout stack */ .about-grid { grid-template-columns: 1fr; gap: 3rem; } /* Contact layout stack */ .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } } /* Mobile Devices (Breakpoints: 640px) */ @media screen and (max-width: 640px) { .hero-title { font-size: 2.25rem; } .hero-profession { font-size: 1.4rem; } .hero-blob { width: 250px; height: 250px; } .badge-1 { left: -10%; } .badge-2 { right: -10%; } .projects-grid { grid-template-columns: 1fr; } .contact-form-box { padding: 1.75rem; } .footer-container { flex-direction: column; gap: 1rem; text-align: center; } .submit-btn { width: 100%; justify-content: center; } } /* Extra Small Devices */ @media screen and (max-width: 375px) { .hero-buttons { flex-direction: column; } .hero-badge { display: none; /* Hide badge overlays for cleaner view on extremely small screens */ } } /* ==================== TYPEWRITER & MOVING TEXT ANIMATIONS ==================== */ .moving-title-container { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; vertical-align: middle; } .type-cursor { display: inline-block; width: 3px; height: 1.1em; background: var(--primary); margin-left: 3px; vertical-align: middle; box-shadow: 0 0 8px var(--primary); animation: cursorBlink 0.75s step-end infinite; } @keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* Floating moving letter animation ("ตัวหนังสือขยับได้ - ขยับนิดเดียวแบบนุ่มนวล") */ .floating-char { display: inline-block; animation: floatLetter 3.2s ease-in-out infinite alternate; will-change: transform; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease, text-shadow 0.3s ease; } .floating-char:hover { transform: translateY(-3px) scale(1.06) !important; text-shadow: 0 0 8px rgba(255, 51, 51, 0.5) !important; } /* Gradient preserving for title chars */ .section-title .floating-char, .logo-brand-moving .floating-char { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .logo-ext-moving .floating-char-ext { color: var(--text-main); display: inline-block; animation: floatLetter 3.2s ease-in-out infinite alternate; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease; } .logo-ext-moving .floating-char-ext:hover { color: var(--primary-light); transform: translateY(-2px) scale(1.04) !important; } @keyframes floatLetter { 0% { transform: translateY(0px); } 50% { transform: translateY(-2.5px); } 100% { transform: translateY(1px); } } /* Glowing wave effect when typing completes */ .section-title.typed-done { animation: titleGlowPulse 3s ease-in-out infinite alternate; } @keyframes titleGlowPulse { 0% { filter: drop-shadow(0 0 2px rgba(255, 51, 51, 0.2)); } 100% { filter: drop-shadow(0 0 12px rgba(255, 51, 51, 0.6)); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.29 |
proxy
|
phpinfo
|
Settings