/* ==========================================================================
   IMRAN MAHMUD - DEVICE-ADAPTIVE & MOBILE-OPTIMIZED PORTFOLIO STYLESHEET
   Smooth Touch Scrolling on Mobile, High-Performance Desktop Animations
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --bg-white: #ffffff;
    --bg-surface: #f8fafc;
    --card-glass: rgba(255, 255, 255, 0.94);
    --border-light: rgba(99, 102, 241, 0.15);
    --border-glow: rgba(2, 132, 199, 0.35);
    
    --color-indigo: #4f46e5;
    --color-cyan: #0284c7;
    --color-purple: #7c3aed;
    --color-emerald: #059669;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-outfit: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & Responsive Overflow Setup (MOBILE TOUCH FRIENDLY)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-sans);
    background-color: var(--bg-white);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto; /* Allows smooth native vertical scrolling on mobile */
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Lock overflow ONLY on widescreen desktop laptops */
@media (min-width: 1024px) {
    html, body {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Background Visual Wallpaper & Mesh Overlay */
.full-screen-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
    filter: brightness(1.05) contrast(1.1);
    pointer-events: none;
}

.bg-mesh-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(224, 242, 254, 0.85) 0%, rgba(243, 232, 255, 0.65) 45%, rgba(255, 255, 255, 0.98) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Ambient Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -10%;
    right: -10%;
}

/* Mobile-Friendly Glow Animation (Lighter CPU load) */
@media (min-width: 1024px) {
    .glow-orb {
        filter: blur(110px);
        opacity: 0.55;
        animation: orbFloat 16s infinite ease-in-out alternate;
    }
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(35px, -35px) scale(1.06); }
    100% { transform: translate(-25px, 25px) scale(0.96); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-indigo);
}

/* Utility Fonts */
.font-outfit { font-family: var(--font-outfit); }
.font-mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   3. Edge Container & Main Card (Mobile Native Touch Scrollable)
   -------------------------------------------------------------------------- */
.edge-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .edge-container {
        padding: 2.25rem 3.5rem;
    }
}

.edge-card {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.12), 0 8px 25px -5px rgba(0, 0, 0, 0.03);
    border-radius: 1.75rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 1024px) {
    .edge-card {
        border-radius: 2.25rem;
        padding: 2.5rem 3.5rem;
        min-height: calc(100vh - 4.5rem);
    }

    .edge-card:hover {
        box-shadow: 0 25px 60px -12px rgba(99, 102, 241, 0.2), 0 12px 30px -5px rgba(2, 132, 199, 0.12);
        border-color: rgba(99, 102, 241, 0.3);
    }
}

/* --------------------------------------------------------------------------
   4. Desktop Custom Cursor (Hidden on Touch/Mobile Devices)
   -------------------------------------------------------------------------- */
.custom-cursor {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(79, 70, 229, 0.6);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-indigo);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--color-indigo);
}

@media (max-width: 1023px) {
    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   5. Action Buttons (Optimized for Mobile Touch & Desktop Hover)
   -------------------------------------------------------------------------- */
.action-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.1rem 1.6rem;
    border-radius: 1.15rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
    .action-btn-link::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .action-btn-link:hover::after {
        transform: translateX(100%);
    }
}

.age-floating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.35rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Click Shockwave Ripple FX (Desktop Only) */
@media (min-width: 1024px) {
    .click-shockwave {
        position: fixed;
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 99999;
    }
}
