/* SHAHNWAZ.ME - Global Design System 
   Aesthetic: Apple-Inspired / Operations Refined
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --indigo-primary: #4f46e5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: none; /* Hidden to use the custom magnetic cursor */
    overflow-x: hidden;
    scroll-behavior: auto !important; /* Managed by Lenis JS */
}

/* --- Section Layouts --- */
section {
    min-height: 100vh;
    position: relative;
    z-index: 20; /* Ensures sections cover the sticky hero on scroll */
    background-color: #000;
    scroll-margin-top: 80px; /* Prevents nav from covering headings */
}

#home {
    z-index: 10; /* Hero stays behind content sections */
}

/* --- Navigation --- */
nav.glass {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

/* --- Custom Magnetic Cursor --- */
#cursor {
    height: 10px;
    width: 10px;
    background-color: #fff;
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

#cursor-blur {
    height: 300px;
    width: 300px;
    background-color: rgba(79, 70, 229, 0.12);
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Glassmorphism Elements --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass:hover {
    border: 1px solid rgba(79, 70, 229, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* --- 3D Project Gallery --- */
.project-card-wrapper {
    perspective: 1000px;
}

.project-card {
    position: relative;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    overflow: hidden;
}

.project-content {
    transform: translateZ(50px); /* 3D Text Float */
    z-index: 2;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover .card-glow {
    opacity: 1;
}

/* --- Skills Cloud --- */
.skill-bubble {
    position: absolute;
    padding: 0.8rem 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* --- Typography & Prose --- */
h1, h2, h3 {
    letter-spacing: -0.04em;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.prose strong {
    color: var(--indigo-primary);
    font-weight: 600;
}

/* --- Reveal Animations --- */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Image --- */
#hero-img {
    filter: brightness(0.5) grayscale(100%);
    transition: transform 0.1s ease-out;
}

/* --- Form Elements --- */
input, textarea {
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar (Hidden) */
::-webkit-scrollbar {
    display: none;
}