* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Itim', sans-serif; } body { background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)), url('/assests/imge/alsthomthaitrain.jpg') no-repeat center center fixed; background-size: cover; color: #fff; min-height: 100vh; overflow-x: hidden; } .welcome-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #111; display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeOut 1s ease forwards 3s; } .welcome-text { font-size: 2rem; opacity: 0; animation: welcomeAnim 2s ease forwards; text-align: center; } @keyframes welcomeAnim { 0% { opacity: 0; transform: scale(0.8); } 10% { opacity: 1; transform: scale(1); } 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2); } } @keyframes fadeOut { to { opacity: 0; visibility: hidden; } } .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 1000; cursor: pointer; } .lightbox.active { display: flex; } .lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; } .close-lightbox { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: #4a90e2; border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 50%; transition: background 0.3s ease; } .close-lightbox:hover { background: #357abd; } .container { max-width: 1200px; margin: 0 auto; padding: 2rem; } .profile-img { width: 200px; height: 200px; border-radius: 50%; border: 3px solid #4a90e2; animation: float 3s ease-in-out infinite; box-shadow: 0 0 20px rgba(74, 144, 226, 0.3); } .name { font-size: 3rem; margin-top: 2rem; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards 3.5s; } .title { font-size: 1.5rem; color: #4a90e2; margin-top: 1rem; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards 3.7s; } .about-section { padding: 4rem 0; min-height: 100vh; } .about-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; opacity: 0; transform: translateY(50px); transition: all 1s ease; } .about-title.visible { opacity: 1; transform: translateY(0); } .content-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; } .content-item { background-color: rgba(255, 255, 255, 0.1); color: #fff; padding: 15px; border-radius: 8px; text-align: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin-bottom: 10px; line-height: 1.5; } @media (max-width: 768px) { .name { font-size: 2rem; } .title { font-size: 1.2rem; } .profile-img { width: 150px; height: 150px; } .content-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; } body { background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)), url('/assests/imge/alsthomthaitrain.jpg') no-repeat center center fixed; background-size: cover; color: #fff; min-height: 100vh; overflow-x: hidden; } .welcome-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #111; display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeOut 1s ease forwards 3s; } .welcome-text { font-size: 2rem; opacity: 0; animation: welcomeAnim 2s ease forwards; } @keyframes welcomeAnim { 0% { opacity: 0; transform: scale(0.8); } 10% { opacity: 1; transform: scale(1); } 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2); } } @keyframes fadeOut { to { opacity: 0; visibility: hidden; } } .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 1000; cursor: pointer; } .lightbox.active { display: flex; } .lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; } .close-lightbox { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: #4a90e2; border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 50%; transition: background 0.3s ease; } .close-lightbox:hover { background: #357abd; } /* Main Content */ .container { max-width: 1200px; margin: 0 auto; padding: 2rem; } .header { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; } .about-section { min-height: 100vh; padding: 4rem 0; } .about-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; opacity: 0; transform: translateY(50px); transition: all 1s ease; } .about-title.visible { opacity: 1; transform: translateY(0); } .tab-container { margin-top: 2rem; } .tab-buttons { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; } .tab-button { padding: 1rem 2rem; background: transparent; border: 2px solid #4a90e2; color: #fff; cursor: pointer; transition: all 0.3s ease; } .tab-button.active { background: #4a90e2; } .tab-content { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; display: none; } .tab-content.visible { opacity: 1; transform: translateY(0); display: block; } .content-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; } .content-text { padding: 2rem; background: rgba(74, 144, 226, 0.1); border-radius: 10px; margin-bottom: 2rem; } .content-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; padding: 1rem; } .content-image-wrapper { position: relative; padding-bottom: 100%; overflow: hidden; border-radius: 10px; cursor: pointer; } .content-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; opacity: 0; transform: translateY(20px); } .content-image.visible { opacity: 1; transform: translateY(0); } .content-image-wrapper:hover .content-image { transform: scale(1.05); } /* Profile Section */ .profile-img { width: 200px; height: 200px; border-radius: 50%; border: 3px solid #4a90e2; animation: float 3s ease-in-out infinite; box-shadow: 0 0 20px rgba(74, 144, 226, 0.3); } .name { font-size: 3rem; margin-top: 2rem; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards 3.5s; } .title { font-size: 1.5rem; color: #4a90e2; margin-top: 1rem; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards 3.7s; } .social-links { margin-top: 2rem; display: flex; gap: 1rem; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards 3.9s; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } } @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { .name { font-size: 2rem; } .title { font-size: 1.2rem; } .profile-img { width: 150px; height: 150px; } .content-images { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } } body { font-family: 'Itim', sans-serif; background-color: #111; color: #fff; } .about-section { padding: 20px; } .about-title { text-align: center; margin-bottom: 20px; } .content-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; } .content-item { background-color: rgba(255, 255, 255, 0.1); color: #fff; padding: 15px; border-radius: 8px; text-align: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin-bottom: 10px; line-height: 1.5; }