/* =========================================
   Fonts & Variables
   ========================================= */
@font-face {
    font-family: 'Zoho Puvi Bold';
    src: url('../images/Zoho%20Puvi%20Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --ft-magenta: #e30a7d; /* Matches the vibrant FT Recruitment pink */
    --text-dark: #1a1a1a;
    --app-max-width: 450px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   Base & Responsive Layout
   ========================================= */
body {
    font-family: 'Zoho Puvi Bold', sans-serif;
    background-color: var(--ft-magenta); /* Mobile fallback */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-wrapper {
    width: 100%;
    max-width: var(--app-max-width);
    background-color: var(--ft-magenta);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Desktop Enhanced View */
@media (min-width: 501px) {
    body {
        background-color: #111;
        background-image: url('../images/ft_BACKGROUND.png');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        padding: 40px 0;
    }
    
    .app-wrapper {
        border-radius: 40px;
        min-height: auto;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }
}

/* =========================================
   Header & Curve Structure
   ========================================= */
.header-photo {
    width: 100%;
    height: 220px;
    background-image: url('../images/Layer_3.jpg');
    background-size: cover;
    /* Adjusted from top center to center 30% to center the woman and move her up in the frame */
    background-position: center 30%; 
}

.main-content {
    flex-grow: 1;
    background-color: var(--ft-magenta);
    /* CSS generated curve pulling the container up to overlap the image */
    margin-top: -60px; 
    border-radius: 50% 50% 0 0 / 60px 60px 0 0; 
    position: relative;
    padding: 70px 25px 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* =========================================
   Components
   ========================================= */
.logo-container {
    position: absolute;
    top: -65px; /* Sits directly on the peak of the curve */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.logo-container img {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.brand-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 0.5px;
    animation: fadeIn 0.8s ease forwards 0.2s;
    opacity: 0;
}

/* Link Buttons */
.link-tree {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-btn {
    background-color: #ffffff;
    color: var(--text-dark);
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 50px;
    text-align: center;
    font-size: 1.15rem;
    
    /* Matches the exact grey rim */
    border: 4px solid #eaeaeb; 
    
    /* Smooth, linear transitions for a cleaner feel */
    transition: all 0.25s ease;
    
    /* Entrance animation setup */
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cleaner Hover State */
.link-btn:hover {
    background-color: #ffffff;
    border-color: #d1d1d2; /* Slightly darkens the rim */
    transform: translateY(-3px); /* Subtle lift */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08); /* Very soft, diffuse shadow */
    color: var(--ft-magenta); /* Pulls the brand pink into the text */
}

/* Active State (for a satisfying click/tap on mobile) */
.link-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-color: #eaeaeb;
}

/* Stagger button entry animations */
.link-btn:nth-child(1) { animation-delay: 0.3s; }
.link-btn:nth-child(2) { animation-delay: 0.4s; }
.link-btn:nth-child(3) { animation-delay: 0.5s; }

/* Social Icons */
.social-section {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeIn 0.8s ease forwards 0.7s;
    opacity: 0;
}

.social-section h2 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a img {
    width: 55px;
    height: 55px;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.15) rotate(5deg);
}

/* Footer Slogan */
.footer-slogan {
    margin-bottom: 25px;
    width: 85%;
    max-width: 300px;
    animation: fadeIn 0.8s ease forwards 0.9s;
    opacity: 0;
}

.footer-slogan img {
    width: 100%;
    height: auto;
}

/* Megaphone Man Bottom Graphic */
.bottom-graphic {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
    opacity: 0;
}

.bottom-graphic img {
    width: 125%; /* Scaled slightly over 100% so he breaks the container edges gracefully */
    max-width: 400px;
    height: auto;
    margin-bottom: -15px; /* Sits flush/slightly below bottom boundary */
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, 5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}