/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%); /* Midnight gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #f8fafc; /* Primary light text */
}

/* Main Container (the white card) */
.container {
    background-color: transparent;
    border-radius: 20px;
    box-shadow: none;
    padding: 40px 60px; /* Adjust padding as needed */
    max-width: 1200px; /* Max width for the card */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between header and hero */
    animation: containerReveal 0.5s ease-out forwards;
    animation-delay: 1.5s;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px; /* Space below header */
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    opacity: 0;
    animation: floatIn 0.5s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes containerReveal {
    to {
        background-color: #0f172a;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px; /* Space between text and illustration */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    flex: 1;
    min-width: 300px; /* Ensure content doesn't get too small */
}

.hero-content h3,
.hero-content .tagline,
.hero-content .description {
    opacity: 0;
    animation: floatIn 0.5s ease-out forwards;
    animation-delay: 1.6s; /* Starts after H1 splash finishes */
}
.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.1;
    position: relative;
    opacity: 0; /* Invisible spacer to prevent whiplash */
    animation: h1Settle 0.5s ease-out forwards;
    animation-delay: 1.5s;
}

/* The Splash Ghost */
.hero-content h1::before {
    content: 'Terry Watson';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vw;
    transform: translate(-50%, -50%) scale(1.5);
    text-align: center;
    opacity: 0;
    z-index: 999;
    pointer-events: none;
    animation: h1Splash 1.6s ease-in-out forwards;
}

@keyframes h1Splash {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
    20%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes h1Settle {
    0% { opacity: 0; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #c084fc; /* Purple accent to match hair highlights */
    margin-bottom: 20px;
}

.hero-content .tagline {
    font-size: 1.8rem;
    font-weight: 400;
    color: #e2e8f0; /* Slate 200 */
    margin-bottom: 25px;
}

.hero-content .description {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px; /* Limit width for readability */
}

.social-links {
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: floatIn 0.5s ease-out forwards;
    animation-delay: 2.2s; /* Last to appear */
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 10px; /* Slightly rounded corners */
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon.linkedin {
    background-color: #0077b5; /* LinkedIn blue */
}

.social-icon.twitch {
    background-color: #9146ff; /* Twitch purple */
}

.social-icon.x-twitter {
    background-color: #000000;
    border: 1px solid #334155; /* Subtle border for visibility */
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-illustration {
    flex: 0 0 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: floatIn 0.5s ease-out forwards;
    animation-delay: 1.9s; /* Appears after text group */
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 24px; /* Rounded corners for the profile shot */
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.15); /* Soft purple glow */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle rim highlight */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .container { padding: 30px 40px; }
    .hero-section { flex-direction: column; text-align: center; gap: 40px; }
    .hero-content { min-width: unset; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content .tagline { font-size: 1.5rem; }
    .hero-content .description { max-width: 100%; }
    .social-links { justify-content: center; }
    .hero-illustration { flex: 0 1 auto; width: 100%; max-width: 450px; }
}

@media (max-width: 768px) {
    .header { flex-direction: column; gap: 20px; }
    .container { padding: 20px 30px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .tagline { font-size: 1.3rem; }
    .hero-illustration { max-width: 450px; }
}

@media (max-width: 480px) {
    .container { padding: 15px 20px; border-radius: 15px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content .tagline { font-size: 1.1rem; }
    .hero-content .description { font-size: 0.95rem; }
    .social-icon { width: 45px; height: 45px; font-size: 1.2rem; }
}