/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1a1a1a;
}

/* Main Container */
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligns content to the left */
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* Name Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    /* Regular weight for that elegant look */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: #000;
}

.image-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    /* Subtle noise */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Particle Stars */
.particle {
    position: absolute;
    background-color: #b8befd;
    /* Star shape using clip-path */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(184, 190, 253, 0.6));
}

@keyframes float-star {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y))) scale(1.5) rotate(90deg);
        opacity: 0;
    }
}

/* Old TV Expansion Animation */
.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1.5px solid #b8befd;

    /* Initial state for TV animation */
    transform: scaleY(0.005);
    opacity: 0;
    animation: tv-expand 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes tv-expand {
    0% {
        transform: scaleY(0.005) scaleX(0);
        opacity: 0;
    }

    50% {
        transform: scaleY(0.005) scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
    }
}

/* Subtitle Styling */
.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1a1a1a;

    /* Initial state for fade-in */
    opacity: 0;
    animation: text-fade-in 0.8s ease-out forwards;
    animation-delay: 1.3s;
    /* TV ends at 0.5 + 0.8 = 1.3s */
}

/* The colored text highlight */
.highlight {
    color: #7b85f6;
    /* Soft Periwinkle Blue */
    font-weight: 400;
}

/* Contact Link Styling */
.contact-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    padding: 4px 0;

    /* Initial state for fade-in */
    opacity: 0;
    animation: text-fade-in 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

.contact-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #7b85f6;
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

@keyframes text-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SVG Icon styling */
.icon {
    width: 16px;
    height: 16px;
    fill: #7b85f6;
    margin-right: 8px;
}
