/* Gen-Z Aesthetics - Variables & Reset */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-primary: #bfff00;
    /* Acid green - Gen Z Staple */
    --accent-secondary: #bd00ff;
    /* Electric Purple */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --cursor-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* Background Noise Texture */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(189, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(191, 255, 0, 0.05) 0%, transparent 40%);
    z-index: -2;
}

/* Custom Cursor */
.cursor {
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease-out;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 8rem;
    letter-spacing: -5px;
    color: var(--accent-primary);
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
}

/* Typography Helpers */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.highlight {
    color: var(--accent-primary);
}

.white {
    color: #fff;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    color: transparent;
}

/* Navigation */
nav {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: var(--text-color);
    color: var(--bg-color) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.glitch-wrapper {
    position: relative;
}

.glitch-text {
    font-size: 6rem;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0;
}

.glitch-text.filled {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
    margin-bottom: 2rem;
}

.hero-tags {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-tags span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-bio {
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-5px);
}

.btn.primary {
    background: var(--accent-primary);
    color: #000;
    border: 2px solid var(--accent-primary);
}

.btn.secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 140px;
}

.floating-card i {
    font-size: 2rem;
    color: var(--accent-secondary);
}

.floating-card.c1 {
    top: 20%;
    left: 2%;
    transform: rotate(-12deg);
}

.floating-card.c2 {
    top: 35%;
    right: -2%;
    transform: rotate(10deg);
    border-color: var(--accent-primary);
}

.floating-card.c2 i {
    color: var(--accent-primary);
}

.floating-card.c3 {
    bottom: 5%;
    left: 10%;
    transform: rotate(-5deg);
}

.floating-card.c4 {
    top: 10%;
    left: 45%;
    transform: rotate(8deg);
}

.floating-card.c5 {
    bottom: 0%;
    right: 25%;
    transform: rotate(-8deg);
    border-color: var(--accent-secondary);
}

.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Marquee */
.marquee-container {
    position: absolute;
    bottom: 5%;
    width: 100%;
    transform: rotate(-2deg) scale(1.1);
    background: var(--accent-primary);
    color: #000;
    padding: 0.8rem 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 10;
}

.marquee {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.marquee span {
    font-weight: 900;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Sections General */
section {
    padding: 8rem 5%;
    position: relative;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-card {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(191, 255, 0, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Experience Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    margin-left: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.55rem;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    background: var(--bg-color);
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.8rem;
    line-height: 1.5;
}

.timeline-content li i {
    color: var(--accent-primary);
    margin-top: 4px;
}

.education-block {
    margin-top: 2rem;
    text-align: center;
}

/* Badges */
.badges-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #555;
    position: relative;
    border: 3px solid #333;
}

.badge-item span {
    font-weight: 600;
    color: #555;
}

.badge-check {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--accent-primary);
    background: #000;
    border-radius: 50%;
}

/* Latest Badge Logic */
.badge-item.major .badge-icon {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(191, 255, 0, 0.3);
}

.badge-item.major span {
    color: #fff;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-pill {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
}


.cert-pill:hover {
    background: #fff;
    color: #000;
}

.trailhead-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(191, 255, 0, 0.05) 0%, rgba(189, 0, 255, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 0 30px rgba(191, 255, 0, 0.2), 0 0 60px rgba(191, 255, 0, 0.1);
    max-width: 400px;
    margin: 0 auto 5rem;
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
}

.trailhead-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.points-count {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(191, 255, 0, 0.3);
}

.trailhead-stats h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.trailhead-stats p {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-details {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    transform: rotate(360deg);
}

footer {
    text-align: center;
    margin-top: 4rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {

    /* Typography - Scale down but keep style */
    .glitch-text {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .section-title {
        font-size: 2.8rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    nav {
        padding: 1.5rem 5%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .menu-btn {
        display: block;
        cursor: pointer;
    }

    .menu-btn span {
        display: block;
        width: 30px;
        height: 2px;
        background: #fff;
        margin: 6px 0;
    }

    /* Hero Section - Maintain design, adjust layout */
    .hero {
        min-height: 100vh;
        padding-bottom: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-bio {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-tags {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: flex-start;
    }

    .hero-tags span {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Marquee */
    .marquee-container {
        padding: 0.6rem 0;
    }

    .marquee span {
        font-size: 1rem;
    }

    /* Sections - Reduce padding but keep design */
    section {
        padding: 5rem 5%;
    }

    /* Skills Grid - Single column */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Timeline - Maintain glass effect and styling */
    .timeline {
        padding-left: 0.5rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        margin-left: 1.5rem;
        margin-bottom: 3rem;
    }

    .timeline-item::before {
        left: -2.05rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
    }

    .timeline-content li {
        font-size: 0.95rem;
    }

    /* Badges - Keep all styling, just resize */
    .badges-container {
        gap: 1.2rem;
    }

    .badge-item {
        gap: 0.8rem;
    }

    .badge-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        /* Keep all border, shadow, color styling intact */
    }

    .badge-item span {
        font-size: 0.9rem;
    }

    /* Trailhead Stats - Preserve gradient border and glow */
    .trailhead-stats {
        max-width: 95%;
        padding: 1.8rem;
        margin: 0 auto 4rem;
        /* Keep gradient, box-shadow, border-radius intact */
    }

    .points-count {
        font-size: 2.8rem;
        /* Keep text-shadow intact */
    }

    .trailhead-stats h3 {
        font-size: 1.3rem;
    }

    .trailhead-stats p {
        font-size: 0.95rem;
    }

    /* Cert Pills - Maintain hover effects */
    .cert-tags {
        gap: 0.7rem;
    }

    .cert-pill {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
        /* Keep border, transition, hover effects */
    }

    /* Contact - Preserve glass effect */
    .contact-card {
        max-width: 100%;
    }

    .contact-item {
        font-size: 1rem;
    }

    .social-links {
        gap: 1.2rem;
    }

    .social-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        /* Keep hover effects and transitions */
    }

    /* Form - Maintain styling */
    .contact-form {
        max-width: 100%;
        padding: 2rem 1rem;
    }

    /* Custom Cursor - Disable on touch devices */
    .cursor,
    .cursor-follower {
        display: none;
    }

    * {
        cursor: auto !important;
    }

    body {
        cursor: auto !important;
    }
}

/* Extra small devices - Further refinements */
@media (max-width: 480px) {
    .glitch-text {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-tags {
        justify-content: flex-start;
    }

    .badge-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .points-count {
        font-size: 2.3rem;
    }

    section {
        padding: 4rem 5%;
    }

    .timeline-content li {
        font-size: 0.9rem;
    }
}

/* SalesForce Web-to-Lead Form */
.contact-form {
    margin-top: 3rem;
    text-align: left;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.contact-form input[type="text"] {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.contact-form input[type="submit"] {
    padding: 1rem 2.5rem;
    background: var(--accent-primary);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.contact-form input[type="submit"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(191, 255, 0, 0.4);
    background: #fff;
}