/* ========================================
   Landing Page Styles
   ======================================== */

:root {
    --bg-dark: #3D3D3D;
    --bg-darker: #2a2a2a;
    --accent: #5DADE2;
    --accent-hover: #3498DB;
    --accent-glow: rgba(93, 173, 226, 0.4);
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ---- Particles Canvas ---- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Floating Tech Icons ---- */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 1.8rem;
    color: rgba(93, 173, 226, 0.08);
    animation: floatIcon 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.15;
    }
}

/* ---- Landing Container ---- */
.landing-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* ---- Hero Section ---- */
.hero {
    text-align: center;
    max-width: 700px;
    width: 100%;
}

/* ---- Avatar ---- */
.hero-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    animation: avatarIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes avatarIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(93, 173, 226, 0.3);
    animation: ringPulse 3s ease-in-out infinite;
}

.avatar-ring.ring-2 {
    inset: -16px;
    border-color: rgba(93, 173, 226, 0.12);
    animation-delay: 1.5s;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.avatar-initials {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #2980B9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-light);
    box-shadow: 0 15px 40px var(--accent-glow);
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.avatar-initials:hover {
    transform: rotate(5deg) scale(1.05);
}

/* ---- Text Elements ---- */
.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 0.7s forwards;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 0.9s forwards;
}

.hero-title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 1.1s forwards;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.5rem;
    background-color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 1.3s forwards;
}

/* ---- Buttons ---- */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 1.5s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #2980B9 100%);
    color: var(--text-light);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(93, 173, 226, 0.55);
    color: var(--text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(93, 173, 226, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 173, 226, 0.2);
    color: var(--text-light);
}

/* Button shine sweep effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover .btn-shine {
    left: 100%;
}

/* ---- Contact Links ---- */
.hero-contact {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 1.7s forwards;
}

.contact-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-link:hover {
    background: rgba(93, 173, 226, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 173, 226, 0.2);
}

/* ---- Shared Animation ---- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .hero-avatar {
        width: 110px;
        height: 110px;
    }

    .avatar-initials {
        width: 110px;
        height: 110px;
        font-size: 2.5rem;
    }

    .float-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
