/* ========================================
   TIN.IN.TH - Ultra Minimal Personal Page
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-blue: #0066ff;
    --accent-blue: #3399ff;
    --light-blue: #e6f2ff;
    --lighter-blue: #f0f7ff;
    --navy: #0a1628;

    /* Neutrals */
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Effects */
    --transition-base: 0.3s ease;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Hero Section - Full Page
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
    background: linear-gradient(160deg, var(--white) 0%, var(--lighter-blue) 50%, var(--light-blue) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-40px) translateX(25px);
    }

    50% {
        transform: translateY(-20px) translateX(-20px);
    }

    75% {
        transform: translateY(-35px) translateX(15px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-greeting {
    display: block;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Social Links */
.hero-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    color: var(--gray-600);
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 50px rgba(0, 102, 255, 0.12));
    animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 0;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 280px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }
}