@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --bg-color: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.1);
    --primary: #e94560;
    --text: #ffffff;
    --accent: #53d9d1;
    --whatsapp: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll from 3D effects */
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* --- 2. ANIMATED BACKGROUND --- */
.background-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: -10%; left: -10%; 
    width: 500px; height: 500px; 
    background: #4e0250;
}

.shape-2 {
    bottom: 10%; right: -5%; 
    width: 400px; height: 400px; 
    background: #0f3460; 
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 50px 0;
}

/* --- 3. 3D CARD BASE STYLE --- */
.card-3d {
    background: var(--card-bg);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-left: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    margin-bottom: 30px;
}

/* --- 4. HERO SECTION (PROFILE) --- */
.hero {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.profile-card {
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.card-content {
    transform: translateZ(50px); /* Pushes content forward */
}

.image-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.skills-container {
    text-align: left;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.skill-row { margin-bottom: 5px; }
.skill-row strong { color: var(--accent); }

/* WhatsApp Button */
.btn-contact {
    padding: 12px 35px;
    background: var(--whatsapp);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-contact i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.btn-contact:hover {
    transform: translateY(-3px) scale(1.05);
    background: #20bd5a;
}

/* --- 5. WORKS SECTION (PROJECTS) --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.work-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 450px; /* Tall enough for mobile screenshots */
    display: flex;
    flex-direction: column;
}

/* SLIDER CONTAINER */
.work-image-slider {
    height: 75%; /* Allocates 75% of card to image */
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000; /* Black bg makes screenshots look better */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* SLIDER IMAGES */
.work-image-slider img.slide {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image is seen, no cropping */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: zoom-in; /* Indicates clickable */
}

.work-image-slider img.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Click Hint Text */
.click-hint {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    z-index: 5;
    pointer-events: none;
}

/* Card Slider Buttons (Small Arrows) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(20px);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slider-btn:hover { background: var(--primary); }
.prev { left: 10px; }
.next { right: 10px; }

/* Card Text Info */
.work-info {
    padding: 15px 20px;
    transform: translateZ(30px);
    background: rgba(22, 22, 36, 0.7);
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-info h3 { margin-bottom: 5px; font-size: 1.1rem; }
.work-info p { color: #aaa; font-size: 0.85rem; }

/* --- 6. FULL SCREEN MODAL --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95); /* Very dark overlay */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 1px solid #333;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoom 0.3s;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: 0.3s;
}

.close:hover { color: var(--primary); }

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

/* --- 7. MODAL NAVIGATION ARROWS (Large Arrows) --- */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10001; /* Above the image */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
        padding: 10px;
    }
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
    
    .section-title { font-size: 2rem; }
}
    <style>
        .work-image-slider {
            position: relative; /* Anchor point for watermark */
        }

        .watermark {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 40px;        /* Size on the small card */
            height: auto;
            opacity: 0.6;       /* Make it see-through */
            z-index: 10;        /* Sit on top of image */
            pointer-events: none; /* CRITICAL: Allows clicks to pass through to open modal */
            user-select: none;
        }

        /* Style for the Modal (Full Screen) Watermark */
        .modal-watermark {
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 80px;        /* Bigger on full screen */
            opacity: 0.8;
            z-index: 1001;      /* Sit on top of modal image */
        }
