/* ============================================
   PRIME PORTFOLIO - STUNNING CSS
   ============================================ */

/* CSS Custom Properties - Prime Color Palette */
:root {
    /* Prime Colors */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;

    --color-electric-blue: #00d4ff;
    --color-vivid-purple: #8b5cf6;
    --color-hot-pink: #ff0080;
    --color-neon-green: #00ff88;

    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-electric-blue), var(--color-vivid-purple), var(--color-hot-pink));
    --gradient-glow: linear-gradient(135deg, var(--color-electric-blue), var(--color-vivid-purple));
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--color-vivid-purple);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--color-electric-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-electric-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.2s ease;
    opacity: 0.5;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: var(--color-hot-pink);
    mix-blend-mode: normal;
    opacity: 0.3;
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    border-color: var(--color-hot-pink);
}

/* ============================================
   PARTICLE BACKGROUND
   ============================================ */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    contain: strict;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition-medium), padding var(--transition-medium);
    will-change: transform;
    contain: layout style;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-dot {
    color: var(--color-electric-blue);
    font-size: 36px;
}

/* Logo text styles removed to revert to default */

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-primary i {
    transition: transform var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px;
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.hero-content {
    text-align: center;
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Profile Image - CSS Aura Effect */
.hero-image {
    flex-shrink: 0;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.aura-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatAura 4s ease-in-out infinite;
}

/* Profile Photo */
.profile-aura-pic {
    width: 450px;
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: floatAura 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
}

.profile-aura-pic:hover {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 80px rgba(168, 85, 247, 0.4));
}

@keyframes floatAura {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.3));
    }
}

.aura-container:hover .profile-aura-pic {
    transform: scale(1.05);
}

/* Glowing Rings */
.glow-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(139, 92, 246, 0.8), rgba(0, 212, 255, 0.8)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 5;
    animation: ringGlow 3s ease-in-out infinite, ringRotate 8s linear infinite;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(139, 92, 246, 0.3), inset 0 0 30px rgba(0, 212, 255, 0.2);
}

.glow-ring.ring-2 {
    width: 360px;
    height: 360px;
    border-width: 2px;
    opacity: 0.6;
    animation: ringGlow 3s ease-in-out infinite reverse, ringRotate 12s linear infinite reverse;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ringGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
        opacity: 0.8;
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.8), 0 0 100px rgba(139, 92, 246, 0.5);
        opacity: 1;
    }
}

/* Smoke/Mist Effects */
.smoke {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
    animation: smokeFlow 6s ease-in-out infinite;
}

.smoke-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    top: -30px;
    left: -30px;
    animation-delay: 0s;
}

.smoke-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    bottom: -20px;
    right: -20px;
    animation-delay: -1.5s;
}

.smoke-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    bottom: 20px;
    left: -40px;
    animation-delay: -3s;
}

.smoke-4 {
    width: 170px;
    height: 170px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    top: 10px;
    right: -30px;
    animation-delay: -4.5s;
}

@keyframes smokeFlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    25% {
        transform: translate(15px, -10px) scale(1.1);
        opacity: 1;
    }

    50% {
        transform: translate(-10px, 15px) scale(0.9);
        opacity: 0.5;
    }

    75% {
        transform: translate(-15px, -5px) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes floatAura {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease backwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(48px, 9vw, 110px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: skia;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

/* Gradient text only for the name line */
/* Black Glassy Text Effect */
/* Black Glassy Text Effect */
.hero-title .gradient-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    /* Modern, tech/futuristic font */
    color: #ffffff;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #f0f0f0 25%,
            #ffffff 50%,
            #d4d4d4 75%,
            #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Removed drop-shadow and text-shadow to prevent blurriness */
    animation: shine 4s linear infinite;
    display: inline-block;
    padding-bottom: 15px;
    /* Added more padding to prevent cut-off descenders */
    letter-spacing: 2px;
}

/* Animation Delays for Name (Immediate Start) */
.wrapper-sahidafridi .char-reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.wrapper-sahidafridi .char-reveal:nth-child(2) {
    animation-delay: 0.15s;
}

.wrapper-sahidafridi .char-reveal:nth-child(3) {
    animation-delay: 0.2s;
}

.wrapper-sahidafridi .char-reveal:nth-child(4) {
    animation-delay: 0.25s;
}

.wrapper-sahidafridi .char-reveal:nth-child(5) {
    animation-delay: 0.3s;
}

.wrapper-sahidafridi .char-reveal:nth-child(6) {
    animation-delay: 0.35s;
}

.wrapper-sahidafridi .char-reveal:nth-child(7) {
    animation-delay: 0.4s;
}

.wrapper-sahidafridi .char-reveal:nth-child(8) {
    animation-delay: 0.45s;
}

.wrapper-sahidafridi .char-reveal:nth-child(9) {
    animation-delay: 0.5s;
}

.wrapper-sahidafridi .char-reveal:nth-child(10) {
    animation-delay: 0.55s;
}

.wrapper-sahidafridi .char-reveal:nth-child(11) {
    animation-delay: 0.6s;
}

.wrapper-sahidafridi .char-reveal:nth-child(12) {
    animation-delay: 0.65s;
}



@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.title-line {
    display: block;
    white-space: nowrap;
}

.char-reveal {
    display: inline-block;
    opacity: 1;
    animation: charReveal 0.6s ease-out forwards;
}

@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.char-reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.char-reveal:nth-child(2) {
    animation-delay: 0.15s;
}

.char-reveal:nth-child(3) {
    animation-delay: 0.2s;
}

.char-reveal:nth-child(4) {
    animation-delay: 0.25s;
}

.char-reveal:nth-child(5) {
    animation-delay: 0.3s;
}

.char-reveal:nth-child(6) {
    animation-delay: 0.35s;
}

.char-reveal:nth-child(7) {
    animation-delay: 0.4s;
}

.char-reveal:nth-child(8) {
    animation-delay: 0.45s;
}

.char-reveal:nth-child(9) {
    animation-delay: 0.5s;
}

.char-reveal:nth-child(10) {
    animation-delay: 0.55s;
}

.char-reveal:nth-child(11) {
    animation-delay: 0.6s;
}

.char-reveal:nth-child(12) {
    animation-delay: 0.65s;
}

.title-line:nth-child(2) .char-reveal:nth-child(1) {
    animation-delay: 0.5s;
}

.title-line:nth-child(2) .char-reveal:nth-child(2) {
    animation-delay: 0.55s;
}

.title-line:nth-child(2) .char-reveal:nth-child(3) {
    animation-delay: 0.6s;
}

.title-line:nth-child(2) .char-reveal:nth-child(4) {
    animation-delay: 0.65s;
}

.title-line:nth-child(2) .char-reveal:nth-child(5) {
    animation-delay: 0.7s;
}

.title-line:nth-child(2) .char-reveal:nth-child(6) {
    animation-delay: 0.75s;
}

.title-line:nth-child(2) .char-reveal:nth-child(7) {
    animation-delay: 0.8s;
}

.title-line:nth-child(2) .char-reveal:nth-child(8) {
    animation-delay: 0.85s;
}

.title-line:nth-child(2) .char-reveal:nth-child(9) {
    animation-delay: 0.9s;
}

.title-line:nth-child(2) .char-reveal:nth-child(10) {
    animation-delay: 0.95s;
}

.title-line:nth-child(2) .char-reveal:nth-child(11) {
    animation-delay: 1s;
}

.title-line:nth-child(2) .char-reveal:nth-child(12) {
    animation-delay: 1.05s;
}



@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    animation: fadeInUp 0.8s ease 1.2s backwards;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    color: var(--color-electric-blue);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 1.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 1.6s backwards;
}

.hero-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 1.8s backwards;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 20px;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.social-link:hover {
    color: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease 2s backwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-electric-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0;
        top: 20px;
    }
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--color-electric-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
}

.reveal-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: rgba(0, 0, 0, 0.563);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-electric-blue), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 20px;
    overflow: hidden;
    background: linear-gradient(50deg, rgba(255, 255, 255, 0.621), black, black, black, rgb(0, 0, 0), rgba(252, 252, 252, 0.484));
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--color-text-muted);
}

.about-profile-pic {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
}

.image-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--color-electric-blue);
    filter: blur(100px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 20px 30px;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.card-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-electric-blue);
}

.card-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.about-text {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
}

.about-text.revealed {
    opacity: 1;
    transform: translateX(0);
}

.about-intro {
    font-size: 22px;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-intro strong {
    color: var(--color-electric-blue);
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    padding: 24px;
    text-align: center;
    transition: all var(--transition-medium);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-electric-blue);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-electric-blue);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 24px;
    grid-auto-flow: dense;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.05);
}

.bento-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

/* Premium Icon Wrapper */
.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    margin-bottom: auto;
}

.bento-card:hover .card-icon-wrapper {
    background: color-mix(in srgb, var(--card-color) 15%, transparent);
    border-color: color-mix(in srgb, var(--card-color) 40%, transparent);
    transform: scale(1.08);
    box-shadow: 0 0 20px color-mix(in srgb, var(--card-color) 30%, transparent);
}

.card-icon-wrapper i, .card-icon-wrapper svg {
    font-size: 32px;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.bento-card:hover .card-icon-wrapper i,
.bento-card:hover .card-icon-wrapper svg {
    transform: scale(1.1);
}

/* Size Classes */
.bento-card.col-2 {
    grid-column: span 2;
}

.bento-card.row-2 {
    grid-row: span 2;
}

/* Horizontal Layout for Wide/Short Cards */
.bento-card.col-2:not(.row-2) .bento-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.bento-card.col-2:not(.row-2) .card-icon-wrapper {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 72px;
    height: 72px;
}

.bento-card.col-2:not(.row-2) .card-icon-wrapper i,
.bento-card.col-2:not(.row-2) .card-icon-wrapper svg {
    font-size: 36px;
}

/* Small Center Content Cards */
.bento-card.center-content .bento-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.bento-card.center-content .card-icon-wrapper {
    margin-bottom: 0;
    width: 56px;
    height: 56px;
}

.bento-card.center-content .card-icon-wrapper i,
.bento-card.center-content .card-icon-wrapper svg {
    font-size: 28px;
}

/* Typography */
.card-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.bento-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.skill-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Code Snippet Decoration */
.code-snippet-bg {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    bottom: 0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.2;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 5%, black 30%, black 70%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 30%, black 70%, transparent 95%);
    display: flex;
    align-items: flex-start;
}

.bento-card:hover .code-snippet-bg {
    opacity: 0.8;
}

.code-scroll-container {
    display: flex;
    flex-direction: column;
    animation: codeScroll 15s linear infinite;
}

@keyframes codeScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.code-snippet-bg pre {
    margin: 0;
    padding-bottom: 24px;
    color: #D4D4D4;
    white-space: pre;
}

.code-snippet-bg .keyword { color: #569CD6; }
.code-snippet-bg .function { color: #DCDCAA; }
.code-snippet-bg .variable { color: #9CDCFE; }
.code-snippet-bg .tag { color: #569CD6; }
.code-snippet-bg .string { color: #CE9178; }
.code-snippet-bg .boolean { color: #569CD6; }

/* Responsiveness */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.col-2 {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.col-2, .bento-card.row-2 {
        grid-column: span 1;
        grid-row: span 1;
        height: 160px;
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: var(--section-padding) 0;
    background: var(--color-bg-secondary);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-vivid-purple), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.project-card.revealed {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
                0 0 40px rgba(0, 212, 255, 0.12);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
}

.project-img {
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

.project-placeholder {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.project-link:nth-child(2) {
    transition-delay: 0.05s;
}

.project-link:hover {
    background: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    color: #0a0a0a;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

.project-info {
    padding: 28px 24px;
}

.project-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.project-info p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    font-size: 14.5px;
    line-height: 1.55;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.tag:hover {
    color: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
}

.projects-cta {
    text-align: center;
    margin-top: 60px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transition: all var(--transition-medium);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--color-electric-blue);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 20px;
    color: white;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--color-electric-blue);
}

.contact-socials {
    display: flex;
    gap: 16px;
}

.social-link-large {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--color-text-secondary);
    font-size: 22px;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.social-link-large:hover {
    color: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px) rotate(5deg);
}

/* Contact Form */
.contact-form {
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg-tertiary);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group textarea~label {
    top: 20px;
    transform: translateY(0);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    color: var(--color-electric-blue);
    background: var(--color-bg-primary);
    padding: 0 8px;
}

.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -8px;
    transform: translateY(0);
}


.btn-submit {
    width: 100%;
    justify-content: center;
    position: relative;
}

.btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-submit.loading span,
.btn-submit.loading i {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 30px;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 12px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-electric-blue);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.heart {
    color: var(--color-hot-pink);
    animation: heartbeat 1s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   3D TILT EFFECT
   ============================================ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ============================================
   MAGNETIC EFFECT
   ============================================ */
.magnetic {
    position: relative;
    transition: transform var(--transition-fast);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-main {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .profile-aura-pic {
        width: 300px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 60px 40px;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 60px);
        word-break: break-word;
        /* Ensure long words break if needed */
        line-height: 1.2;
    }

    /* Handle the long name specifically on constrained screens */
    .wrapper-sahidafridi {
        font-size: 0.8em;
        /* Slightly reduce size relative to "HI I AM" to fit better */
        white-space: normal;
        /* Allow wrap if absolutely necessary */
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-aura-pic {
        width: 240px;
    }

    .hero-socials {
        flex-wrap: wrap;
    }

    .contact-form {
        padding: 24px;
    }

    .floating-card {
        padding: 16px 24px;
        right: 10px;
        bottom: -10px;
    }

    .card-number {
        font-size: 28px;
    }
}