* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #FF2E2E;
    --primary-dark: #D10000;
    --primary-light: #FF6B6B;
    --white: #FFFFFF;
    --black: #000000;
    --gray-dark: #1A1A1A;
    --gray-light: #2A2A2A;
}

body {
    font-family: 'Poppins', sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--white);
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Main container */
.container {
    width: 100%;
    max-width: 480px;
    background: transparent;
    border-radius: 28px;
    padding: 28px 25px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Flip Profile Container */
.flip-profile-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
}

.flip-profile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 18px;
}

.flip-profile-container:hover .flip-profile-inner {
    transform: rotateY(180deg);
}

.flip-profile-front, .flip-profile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
}

/* Front Side - Profile Image */
.flip-profile-front {
    background: transparent;
}

.profile-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove red glow from profile image container */
.profile-img-container {
    width: 190px;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 0px solid var(--primary-red);
    /* box-shadow removed */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Prevent hover interference during auto-flip */
.auto-flip {
    pointer-events: none;
    animation: autoFlip 3s ease-in-out 1s 1 !important;
}

/* Arrow colors on hover – match brand */
.link-website:hover .card-arrow,
.link-website:hover .link-arrow,
.social-card.link-website:hover .card-arrow {
    color: var(--primary-red);
}
.link-instagram:hover .card-arrow,
.link-instagram:hover .link-arrow,
.social-card.link-instagram:hover .card-arrow {
    color: #E4405F;
}
.link-snapchat:hover .card-arrow,
.link-snapchat:hover .link-arrow,
.social-card.link-snapchat:hover .card-arrow {
    color: #FFFC00;
}
.link-gmail:hover .card-arrow,
.link-gmail:hover .link-arrow,
.social-card.link-gmail:hover .card-arrow {
    color: #EA4335;
}
.link-whatsapp:hover .card-arrow,
.link-whatsapp:hover .link-arrow,
.social-card.link-whatsapp:hover .card-arrow {
    color: #25D366;
}
.link-linkedin:hover .card-arrow,
.link-linkedin:hover .link-arrow,
.social-card.link-linkedin:hover .card-arrow {
    color: #0077B5;
}
.link-github:hover .card-arrow,
.link-github:hover .link-arrow,
.social-card.link-github:hover .card-arrow {
    color: #FFFFFF;
}
.link-phone:hover .card-arrow,
.link-phone:hover .link-arrow,
.social-card.link-phone:hover .card-arrow {
    color: #34B7F1;
}
.link-map:hover .card-arrow,
.link-map:hover .link-arrow,
.social-card.link-map:hover .card-arrow {
    color: #FF0000;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Back Side - Bitmoji Hey */
.flip-profile-back {
    background: linear-gradient(135deg, #FF2E2E, #FF6B6B);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 0 50px rgba(255, 46, 46, 0.7);
}

.bitmoji-container {
    text-align: center;
    animation: bitmojiBounce 2s infinite;
}

@keyframes bitmojiBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bitmoji-hey {
    font-size: 70px;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.bitmoji-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bitmoji-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Web Profile Section */
.web-profile-section {
    display: none;
    margin-bottom: 50px;
}

.web-title {
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin: 25px 0 15px;
    text-shadow: 0 2px 25px rgba(255, 46, 46, 0.7);
}

.web-name-line {
    width: 400px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0 auto;
    border-radius: 3px;
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
}

/* Mobile Profile Section */
.mobile-profile-section {
    margin-bottom: 30px;
}

.profile {
    position: relative;
    margin-bottom: 20px;
}

/* Mobile Header */
.mobile-header {
    margin-bottom: 20px;
}

.mobile-header h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    font-size: 2.4rem;
    letter-spacing: 1.5px;
    margin: 10px 0 5px;
    text-shadow: 0 2px 15px rgba(255, 46, 46, 0.4);
    position: relative;
    display: inline-block;
}

/* Styled line under name */
.name-line {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Rest of your existing styles remain the same */
/* Social Cards Container for Web View */
.cards-container {
    display: none;
    margin-bottom: 40px;
}

.card-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background: rgba(40, 40, 40, 0.9);
    border-radius: 18px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 380px;
    min-height: 120px;
    animation: fadeInUp 0.6s both;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Left Section */
.card-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.card-icon {
    font-size: 32px;
    width: 60px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-content {
    text-align: left;
}

.card-title {
    font-weight: 600;
    font-size: 20px;
    color: var(--white);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.card-subtitle {
    font-size: 14px;
    color: #AAAAAA;
    font-weight: 400;
    opacity: 0.8;
}

.card-arrow {
    color: var(--primary-red);
    font-size: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    width: 24px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 46, 46, 0.5);
    font-weight: bold;
}

/* Shine effect on social cards */
.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.social-card:hover::before {
    left: 100%;
}

.social-card:hover {
    transform: translateY(-8px) scale(1.05);
    /* box-shadow moved to individual brand rules */
}

.social-card:hover .card-icon {
    transform: scale(1.3) rotate(5deg);
}

.social-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile View Links */
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.link-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(40, 40, 40, 0.9);
    border-radius: 18px;
    padding: 20px 22px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.6s both;
    backdrop-filter: blur(10px);
    width: 100%;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
.link-item:nth-child(6) { animation-delay: 0.6s; }
.link-item:nth-child(7) { animation-delay: 0.7s; }
.link-item:nth-child(8) { animation-delay: 0.8s; }
.link-item:nth-child(9) { animation-delay: 0.9s; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-5px) scale(1.02);
    /* box-shadow moved to individual brand rules */
}

.link-icon {
    font-size: 24px;
    width: 60px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
    text-align: left;
    padding-left: 15px;
}

.link-title {
    font-weight: 600;
    font-size: 17px;
    color: var(--white);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.link-subtitle {
    font-size: 13px;
    color: #AAAAAA;
    font-weight: 400;
    opacity: 0.8;
}

.link-arrow {
    color: var(--primary-red);
    font-size: 22px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    width: 24px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 46, 46, 0.5);
    font-weight: bold;
}

.link-item:hover .link-icon {
    transform: scale(1.3) rotate(5deg);
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Social Media Brand Colors */
.link-website .link-icon,
.social-card.link-website .card-icon { 
    color: var(--primary-red);
}
.link-instagram .link-icon,
.social-card.link-instagram .card-icon { 
    color: #E4405F;
}
.link-snapchat .link-icon,
.social-card.link-snapchat .card-icon { 
    color: #FFFC00;
}
.link-gmail .link-icon,
.social-card.link-gmail .card-icon { 
    color: #EA4335;
}
.link-whatsapp .link-icon,
.social-card.link-whatsapp .card-icon { 
    color: #25D366;
}
.link-linkedin .link-icon,
.social-card.link-linkedin .card-icon { 
    color: #0077B5;
}
.link-github .link-icon,
.social-card.link-github .card-icon { 
    color: #FFFFFF;
}
.link-phone .link-icon,
.social-card.link-phone .card-icon { 
    color: #34B7F1;
}
.link-map .link-icon,
.social-card.link-map .card-icon { 
    color: #FF0000;
}

/* Enhanced hover effect */
.link-website:hover,
.social-card.link-website:hover { 
    border-left: 4px solid var(--primary-red);
}
.link-instagram:hover,
.social-card.link-instagram:hover { 
    border-left: 4px solid #E4405F;
}
.link-snapchat:hover,
.social-card.link-snapchat:hover { 
    border-left: 4px solid #FFFC00;
}
.link-gmail:hover,
.social-card.link-gmail:hover { 
    border-left: 4px solid #EA4335;
}
.link-whatsapp:hover,
.social-card.link-whatsapp:hover { 
    border-left: 4px solid #25D366;
}
.link-linkedin:hover,
.social-card.link-linkedin:hover { 
    border-left: 4px solid #0077B5;
}
.link-github:hover,
.social-card.link-github:hover { 
    border-left: 4px solid #FFFFFF;
}
.link-phone:hover,
.social-card.link-phone:hover { 
    border-left: 4px solid #34B7F1;
}
.link-map:hover,
.social-card.link-map:hover { 
    border-left: 4px solid #FF0000;
}

/* Individual brand hover glow (box-shadow) */
.link-website:hover,
.social-card.link-website:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(255,46,46,0.4);
}
.link-instagram:hover,
.social-card.link-instagram:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(228,64,95,0.4);
}
.link-snapchat:hover,
.social-card.link-snapchat:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(255,252,0,0.4);
}
.link-gmail:hover,
.social-card.link-gmail:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(234,67,53,0.4);
}
.link-whatsapp:hover,
.social-card.link-whatsapp:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(37,211,102,0.4);
}
.link-linkedin:hover,
.social-card.link-linkedin:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(0,119,181,0.4);
}
.link-github:hover,
.social-card.link-github:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(255,255,255,0.4);
}
.link-phone:hover,
.social-card.link-phone:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(52,183,241,0.4);
}
.link-map:hover,
.social-card.link-map:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 35px rgba(255,0,0,0.4);
}

/* Footer */
.footer {
    font-size: 13px;
    color: #777;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
}

.footer span {
    color: var(--primary-red);
    font-weight: 600;
}

/* Web View (Desktop) Styles - FULL SCREEN */
@media (min-width: 1024px) {
    body {
        padding: 40px;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
        padding: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    .web-profile-section {
        display: block;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .flip-profile-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-img-container {
        width: 240px;
        height: 240px;
        border-radius: 25px;
    }
    
    .bitmoji-hey {
        font-size: 80px;
    }
    
    .bitmoji-text {
        font-size: 32px;
    }
    
    .bitmoji-subtext {
        font-size: 16px;
    }
    
    .cards-container {
        display: block;
        width: 100%;
        max-width: 1400px;
    }
    
    .card-row {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .social-card {
        max-width: 400px;
        min-height: 130px;
        padding: 30px;
    }
    
    .card-icon {
        font-size: 36px;
        width: 70px;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .card-subtitle {
        font-size: 15px;
    }
    
    .card-arrow {
        font-size: 26px;
    }
    
    .mobile-links {
        display: none;
    }
    
    .mobile-profile-section {
        display: none;
    }
    
    .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .footer {
        margin-top: 50px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 700px;
    }
    
    .cards-container {
        display: block;
    }
    
    .mobile-links {
        display: none;
    }
    
    .web-profile-section {
        display: block;
    }
    
    .mobile-profile-section {
        display: none;
    }
    
    .web-title {
        font-size: 3rem;
    }
    
    .card-row {
        gap: 20px;
    }
    
    .social-card {
        max-width: 220px;
        min-height: 120px;
        padding: 20px;
    }
    
    .card-icon {
        font-size: 28px;
        width: 50px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-subtitle {
        font-size: 13px;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
    .container {
        padding: 24px 20px;
        max-width: 420px;
    }
    
    .flip-profile-container {
        width: 180px;
        height: 180px;
    }
    
    .profile-img-container {
        width: 170px;
        height: 170px;
        border-radius: 16px;
    }
    
    .bitmoji-hey {
        font-size: 60px;
    }
    
    .bitmoji-text {
        font-size: 24px;
    }
    
    .mobile-header h1 {
        font-size: 2.2rem;
    }
    
    .link-item {
        padding: 18px 18px;
    }
    
    .link-icon {
        width: 50px;
        font-size: 22px;
    }
    
    .link-title {
        font-size: 16px;
    }
    
    .cards-container {
        display: none;
    }
    
    .mobile-links {
        display: flex;
    }
    
    .web-profile-section {
        display: none;
    }
    
    .mobile-profile-section {
        display: block;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 22px 16px;
        max-width: 380px;
    }
    
    .flip-profile-container {
        width: 160px;
        height: 160px;
    }
    
    .profile-img-container {
        width: 150px;
        height: 150px;
        border-radius: 15px;
    }
    
    .bitmoji-hey {
        font-size: 50px;
    }
    
    .bitmoji-text {
        font-size: 20px;
    }
    
    .mobile-header h1 {
        font-size: 2rem;
    }
    
    .link-item {
        padding: 16px 14px;
    }
    
    .link-icon {
        width: 45px;
        font-size: 20px;
    }
}

/* Touch-friendly improvements */
.link-item, .social-card {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.link-item:active, .social-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Auto-flip animation */
@keyframes autoFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(0deg); }
}

.auto-flip {
    animation: autoFlip 3s ease-in-out 1s 1;
}

/* Back Side - Live Waving Hand */
.flip-profile-back {
    background: linear-gradient(135deg, #FF2E2E, #FF6B6B);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 0 50px rgba(255, 46, 46, 0.7);
}

.bitmoji-container {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

/* Live Waving Hand Animation */
.waving-hand {
    font-size: 70px;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    display: inline-block;
    animation: wave 1s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}