/* Ultra-Premium Tech Portfolio - Professional Tier */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #a855f7;
    --bg-deep: #020617;
    --bg-darker: #000000;
    --text-pure: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-blue: #00f2fe;
    --neon-purple: #a855f7;
    --font-main: 'Space Grotesk', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
}

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

body {
    background-color: var(--bg-darker);
    color: var(--text-pure);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* 1 Lakh Worth Background - Grid + Particles */
.bg-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #0f172a 0%, #000000 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.glow-point {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.6; transform: scale(1.2); }
}

/* High-End Tech Card */
.tech-container {
    padding: 1rem;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-glass-frame {
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 4rem 2rem;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 80px rgba(255, 255, 255, 0.02);
    animation: frameEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes frameEntry {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Border Animation */
.corner-accent {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 1.5px solid var(--primary);
    opacity: 0.5;
}

.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; }

/* Photo Architecture */
.photo-hub {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: 160px;
    height: 160px;
    border-radius: 40px;
    padding: 5px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(168, 85, 247, 0.2));
    position: relative;
    transition: all 0.5s ease;
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0.3;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Typography Protocol */
.status-badge {
    position: relative;
    margin: 0 auto 2rem auto;
    z-index: 100;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-family: var(--font-main);
    backdrop-filter: blur(10px);
    width: fit-content;
    text-align: center;
}

h1 {
    font-family: var(--font-main);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #17daff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    text-align: center;
    word-break: break-word;
}

.role-title {
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
    opacity: 0.8;
    line-height: 1.4;
}

.timeline {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.timeline::before, .timeline::after {
    content: '';
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Developer Footer */
.footer-bar {
    position: relative;
    margin-top: 3rem;
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.footer-bar a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.footer-bar a:hover {
    border-color: var(--primary);
}

/* Interactions */
.stagger-in {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.8s forwards ease-out;
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

.stagger-in:nth-child(1) { animation-delay: 0.2s; }
.stagger-in:nth-child(2) { animation-delay: 0.4s; }
.stagger-in:nth-child(3) { animation-delay: 0.6s; }
.stagger-in:nth-child(4) { animation-delay: 0.8s; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .main-glass-frame {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .tech-container {
        padding: 0.5rem;
    }
    .main-glass-frame {
        padding: 3rem 1.5rem;
        border-radius: 32px;
    }
    .photo-frame {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
    }
    .main-glass-frame {
        padding: 2.5rem 1rem;
        border-radius: 24px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .role-title {
        letter-spacing: 0.15em;
    }
    .photo-frame {
        width: 120px;
        height: 120px;
        border-radius: 30px;
    }
    .profile-img {
        border-radius: 22px;
    }
    .status-badge {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        padding: 0.5rem 1rem;
    }
    .timeline {
        gap: 0.5rem;
    }
    .timeline::before, .timeline::after {
        width: 10px;
    }
    .footer-bar {
        font-size: 0.6rem;
        margin-top: 2rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
    }
    .main-glass-frame {
        margin: 2rem 0;
    }
}
