/* ===========================================
   REDOYAN REPLICA - STYLES
   =========================================== */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-purple: #7c3aed;
    --accent-blue: #2563eb;
    --accent-glow: rgba(124, 58, 237, 0.5);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    cursor: none;
    /* Custom cursor */
}

/* -------------------------------------- */
/* CUSTOM CURSOR
/* -------------------------------------- */
#cursor-dot,
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
}

#cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s;
}

body:hover #cursor-ring.active {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* -------------------------------------- */
/* WEBGL CANVAS
/* --------------------------------------*/
/* Canvas Background */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Changed from -1 to 0 to be visible */
    pointer-events: none;
    /* Passes clicks through */
}

/* Ensure content sits above canvas */
#smooth-wrapper {
    position: relative;
    z-index: 1;
}

/* -------------------------------------- */
/* NAVIGATION
/* -------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: exclusion;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    font-family: var(--font-mono);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.menu .cta {
    border: 1px solid white;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.menu .cta:hover {
    background: white;
    color: black;
}

.menu .cta::after {
    display: none;
}

/* -------------------------------------- */
/* SECTIONS GENERAL
/* -------------------------------------- */
section {
    position: relative;
    padding: 100px 5vw;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}

.section-header::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: var(--text-muted);
    margin-left: 20px;
    vertical-align: middle;
}

/* -------------------------------------- */
/* HERO SECTION
/* -------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10vw;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 11rem);
    line-height: 0.85;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-top: 40px;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    right: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: white;
}

/* -------------------------------------- */
/* ABOUT SECTION
/* -------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #ddd;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--accent-purple);
}

.tech-card {
    background: #111;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.code-block {
    font-family: var(--font-mono);
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
}

.keyword {
    color: #c678dd;
}

.class-name {
    color: #e5c07b;
}

.function {
    color: #61afef;
}

.string {
    color: #98c379;
}

/* -------------------------------------- */
/* EXPERIENCE (TIMELINE)
/* -------------------------------------- */
.timeline {
    position: relative;
    border-left: 1px solid var(--card-border);
    padding-left: 50px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    margin-bottom: 80px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -55px;
    /* Adjust based on padding/border */
    top: 5px;
    width: 11px;
    height: 11px;
    background: var(--bg-color);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

.date {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.role-title {
    font-size: 2rem;
    margin-bottom: 5px;
}

.company {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-size: 1rem;
}

.role-desc {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* -------------------------------------- */
/* WORK SECTION (HORIZONTAL SCROLL)
/* -------------------------------------- */
.work-section {
    height: 100vh;
    /* Pinned */
    display: flex;
    align-items: center;
    background: #080808;
    /* Slightly lighter background */
    overflow: hidden;
}

.work-container {
    display: flex;
    align-items: center;
    padding-left: 5vw;
    height: 100%;
}

.work-header-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    margin-right: 100px;
    white-space: nowrap;
}

.work-header-vertical .accent {
    color: rgba(37, 99, 235, 0.2);
}

.work-gallery {
    display: flex;
    gap: 80px;
    padding-right: 20vw;
    /* End padding */
}

.project-card {
    min-width: 600px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.project-content {
    flex: 1;
}

.project-num {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

.project-title {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 10px;
}

.project-cat {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-family: var(--font-mono);
}

.project-tags span {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 5px;
}

.project-image-placeholder {
    width: 300px;
    height: 400px;
    background: #111;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project-image-placeholder .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.1));
}

/* -------------------------------------- */
/* CONTACT
/* -------------------------------------- */
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.giant-email {
    font-size: 6vw;
    font-weight: 800;
    text-decoration: none;
    color: white;
    line-height: 1;
    margin: 40px 0;
    transition: color 0.3s;
}

.giant-email:hover {
    color: var(--accent-purple);
}

.social-links {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

footer {
    margin-top: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #444;
}

/* -------------------------------------- */
/* RESPONSIVE
/* -------------------------------------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-left {
        margin-bottom: 5px;
    }
}