/* ============ RESET & BASE STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ============ BACKGROUND VIDEO ============ */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    backdrop-filter: blur(2px);
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.brand-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============ MUTE BUTTON ============ */
.mute-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mute-btn i {
    font-size: 1.2rem;
    color: #fff;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.mute-btn:active {
    transform: scale(0.95);
}

/* ============ HERO SECTION (Two Column) ============ */
.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    
    width: 50%;
    max-width: 500px;
    display: flex;
    
    align-items: center;
    
}

/* Left Side - Text */
.hero-left {
    flex: 1;
    animation: fadeInLeft 1s ease-out;
}

.greeting {
    font-size: 1rem;
    font-weight: 50;
    letter-spacing: 0px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.typing-text {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cursor {
    font-size: 1.8rem;
    color: #fff;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Right Side - Flip Card */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* ============ RESPONSIVE ============ */
@media screen and (max-width: 1200px) {
    .name {
        font-size: 3.5rem;
    }
    
    .typing-text {
        font-size: 1.5rem;
    }
    
    .flip-card {
        width: 340px;
        height: 480px;
    }
}

@media screen and (max-width: 968px) {
    .hero {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .flip-card {
        width: 320px;
        height: 450px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .brand-img {
        width: 60px;
        height: 60px;
    }
    
    .brand-text h3 {
        font-size: 1.2rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .flip-card {
        width: 300px;
        height: 420px;
    }
    
    .social-bar {
        bottom: 30px;
        padding: 15px 30px;
        gap: 20px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ===== IMAGE MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #ff4757;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Make the navbar image look clickable */
.brand-img {
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ===== IMAGE MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #ff4757;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Make the navbar image look clickable */
.brand-img {
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ===== NAVBAR RIGHT SIDE ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== DESKTOP CAPSULE NAV ===== */
.capsule-nav {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover, 
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ===== CAMERA TOGGLE BUTTON (Hidden on Desktop) ===== */
.menu-toggle {
    display: none; /* Hidden by default */
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.menu-toggle i {
    font-size: 1.2rem;
    color: #fff;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9998;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
    right: 0; /* Slide in */
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-link:hover, 
.mobile-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

/* ===== RESPONSIVE BREAKPOINT (Laptop & Phone) ===== */
@media screen and (max-width: 1200px) {
    .capsule-nav {
        display: none; /* Hide capsule */
    }
    
    .menu-toggle {
        display: flex; /* Show camera icon */
    }
}

@media screen and (max-width: 480px) {
    .mobile-menu {
        width: 100%; /* Full width on small phones */
    }
}

/* ============================================
   MOBILE STYLES - SAFE (No Overflow)
   ============================================ */

@media screen and (max-width: 768px) {
    
    /* ===== PREVENT OVERFLOW ===== */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* ===== NAVBAR ===== */
    .navbar {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .brand {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .brand-img {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .brand-text h3 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .brand-text span {
        font-size: 0.65rem;
    }
    
    .nav-right {
        gap: 8px;
        margin-left: auto;
    }
    
    .mute-btn,
    .menu-toggle {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    /* ===== HERO SECTION ===== */
    .hero {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        gap: 25px;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-left,
    .hero-right {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    
    .hero-left {
        text-align: center;
        padding: 0;
    }
    
    .hero-right {
        display: flex;
        justify-content: center;
    }
    
    /* ===== TEXT - SMALLER & SAFE ===== */
    .greeting {
        font-size: 0.8rem;
        margin-bottom: 8px;
        padding: 0 10px;
    }
    
    .name {
        font-size: 1.6rem;
        margin-bottom: 12px;
        line-height: 1.2;
        padding: 0 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .typing-wrapper {
        min-height: 35px;
        padding: 0 10px;
    }
    
    .typing-text {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cursor {
        font-size: 0.9rem;
    }
    
    /* ===== FLIP CARD - CONTROLLED SIZE ===== */
    .flip-card {
        width: 250px;
        height: 350px;
        flex-shrink: 0;
        max-width: 90vw;
    }
    
    .card-overlay {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
        word-wrap: break-word;
    }
    
    .card-company {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .card-details {
        gap: 8px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-item {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .card-social {
        gap: 8px;
        margin-bottom: 8px;
        justify-content: center;
    }
    
    .card-social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .flip-hint {
        font-size: 0.6rem;
    }
    
    .back-logo {
        width: 60px;
        height: 60px;
    }
    
    .back-title {
        font-size: 1.1rem;
    }
    
    .info-row {
        font-size: 0.75rem;
        padding: 6px 0;
    }
    
    /* ===== BOTTOM SOCIAL BAR ===== */
    .social-bar {
        bottom: 15px;
        padding: 10px 20px;
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* ===== MODAL ===== */
    .modal-content {
        max-width: 95%;
        max-height: 55vh;
    }
    
    .modal-slider {
        height: 55vh;
    }
    
    .prev-btn, .next-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
    
    .close-modal {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
    
    .thumb {
        width: 40px;
        height: 40px;
    }
    
    .image-counter {
        bottom: 80px;
        font-size: 0.8rem;
    }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media screen and (max-width: 480px) {
    
    .name {
        font-size: 1.4rem;
    }
    
    .typing-text {
        font-size: 0.8rem;
    }
    
    .flip-card {
        width: 230px;
        height: 330px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .brand-text h3 {
        font-size: 0.85rem;
    }
}

/* ===== VERY SMALL MOBILE ===== */
@media screen and (max-width: 375px) {
    
    .name {
        font-size: 1.2rem;
    }
    
    .greeting {
        font-size: 0.7rem;
    }
    
    .typing-text {
        font-size: 0.75rem;
    }
    
    .flip-card {
        width: 210px;
        height: 310px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-company {
        font-size: 0.7rem;
    }
    
    .detail-item {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

/* Mobile - Move text to bottom right */
@media screen and (max-width: 768px) {
    .hero {
        position: relative;
        align-items: flex-end; /* Align to bottom */
    }
    
    .hero-left {
        text-align: left; /* Right align text */
        order: 2; /* Move to second position (after card) */
        padding: 0 15px;
        margin-bottom: 10px;
    }
    
    .hero-right {
        order: 1; /* Card comes first */
        margin-bottom: 15px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .greeting {
        font-size: 0.75rem;
    }
    
    .typing-text {
        font-size: 0.85rem;
    }
    
    /* Make card smaller to fit above text */
    .flip-card {
        width: 200px;
        height: 280px;
    }
    
    .card-overlay {
        padding: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-company {
        font-size: 0.65rem;
    }
    
    .card-details {
        display: none; /* Hide age/gender on mobile to save space */
    }
    
    .card-social {
        margin-bottom: 5px;
    }
    
    .card-social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .flip-hint {
        display: none; /* Hide hint on mobile */
    }
}

/* Extra small mobile */
@media screen and (max-width: 480px) {
    .flip-card {
        width: 180px;
        height: 260px;
    }
    
    .name {
        font-size: 1.3rem;
    }
    
    .greeting {
        font-size: 0.7rem;
    }
    
    .typing-text {
        font-size: 0.75rem;
    }
}