/* =========================================
   Shubhk404 - Portfolio CSS
   Theme: Dark, Neon, Glassmorphism, GenZ
========================================= */

/* --- Variables --- */
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.08);

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    --accent-primary: #8a2be2;
    /* Neon Violet */
    --accent-secondary: #00d2ff;
    /* Electric Blue */
    --accent-glow: rgba(138, 43, 226, 0.4);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Handled by GSAP/Lenis if needed, otherwise smooth */
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* For Custom Cursor */
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.accent-color {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 15px var(--accent-primary);
}

/* --- Custom Cursor --- */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor.active {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--accent-secondary);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    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;
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-primary);
}

/* --- Layout & Utilities --- */
#canvas-webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Keep canvas in the far back */
    pointer-events: none;
}

/* Optional overlay to soften the 3D background behind text */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.4);
    /* Solid subtle dark tint instead of aggressive radial gradient */
    z-index: -1;
    pointer-events: none;
}

section {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
    /* Ensure sections are above the canvas */
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    transition: width 0.4s ease;
}

.primary-btn:hover::before {
    width: 100%;
}

.primary-btn:hover {
    box-shadow: 0 0 25px var(--accent-glow);
    border-color: transparent;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    /* Extremely high z-index to stay above everything */
    background: rgba(5, 5, 5, 0.85);
    /* Darker background to fix contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-card);
}

.logo {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    cursor: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-secondary);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--accent-secondary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-secondary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    background: transparent;
    border: none;
    pointer-events: none;
    /* Let clicks pass to 3D canvas if needed */
    z-index: 50;
    /* Ensure hero section is well above the canvas (-2) */
}

.hero-content {
    max-width: 800px;
    pointer-events: auto;
    position: relative;
    z-index: 60;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: #ffffff;
    /* Force solid white title */
}

.description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    /* Much brighter description text */
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    color: var(--text-main);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    background: var(--bg-card);
}

.social-icon:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Will implement mobile menu later if needed */
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Shared Section Styling --- */
.section-header {
    margin-bottom: 60px;
    text-align: left;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    padding: 40px;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

.bold {
    font-weight: 700;
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-card);
    padding-top: 30px;
}

.stat-box {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.profile-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--accent-primary);
}

/* --- Expertise Section --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 30px;
    transition: var(--transition-smooth);
    border-top: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: inline-block;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Employment Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: var(--border-card);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
}

.timeline-content {
    padding: 30px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.timeline-header h3 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
}

.timeline-date {
    background: rgba(138, 43, 226, 0.2);
    color: var(--text-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--accent-primary);
}

.company-logo {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-name {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}

.timeline-list {
    list-style: none;
    color: var(--text-muted);
}

.timeline-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        min-height: 300px;
    }
}

/* --- Experience & Clients --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.client-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.02);
}

.client-card:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.client-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: var(--font-heading);
}

.client-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Testimonials --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    padding: 40px;
    position: relative;
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: -1;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.reviewer-info {
    border-top: 1px solid var(--border-card);
    padding-top: 20px;
}

.reviewer-name {
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.reviewer-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Video Portfolio --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.video-card {
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-card);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
    border-color: var(--accent-secondary);
}

.video-wrapper {
    position: relative;
    padding-bottom: 177.78%;
    /* 9:16 Aspect Ratio (Reel/Shorts format) */
    height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-card);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-info {
    padding: 25px;
}

.video-info h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form-container,
.direct-contact {
    padding: 40px;
    border-radius: 20px;
}

.contact-form .input-group {
    margin-bottom: 20px;
}

.contact-form .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.contact-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Mobile specific adjustments for vertical 9:16 videos */
    .video-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .video-card {
        width: 100%;
        max-width: 320px;
        /* Limits max size on mobile so it doesn't take 2-3 screen lengths */
        margin: 0 auto;
    }
}