/* ============================================
   ELAD BEN SHMUEL — PORTFOLIO
   Dark Luxe Tech
   ============================================ */

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

:root {
    --bg-deep: #08080e;
    --bg-surface: #13131f;
    --bg-card: #1a1a2a;
    --accent: #d4a853;
    --accent-glow: rgba(212, 168, 83, 0.3);
    --teal: #5ce0d2;
    --teal-glow: rgba(92, 224, 210, 0.2);
    --text-primary: #e8e4de;
    --text-secondary: #8a8697;
    --text-muted: #5a5768;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--teal);
}

img {
    max-width: 100%;
}

/* --- Noise Overlay --- */

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Gradient Orbs --- */

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--teal-glow), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orbFloat2 30s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(140, 100, 220, 0.12), transparent 70%);
    top: 50%;
    left: 50%;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-80px, 60px); }
    66% { transform: translate(40px, -40px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, -80px); }
    66% { transform: translate(-40px, 40px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%); }
    33% { transform: translate(calc(-50% + 100px), calc(-50% - 60px)); }
    66% { transform: translate(calc(-50% - 60px), calc(-50% + 80px)); }
}

/* --- Container --- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8, 8, 14, 0.7);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent) !important;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* --- Hero --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-links {
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--bg-deep) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: #e0b560;
    color: var(--bg-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    transform: translateY(-2px);
}

/* --- Hero Image --- */

.hero-image {
    position: relative;
    opacity: 0;
    animation: fadeIn 1s 0.6s forwards;
}

.image-glow {
    position: absolute;
    inset: -30px;
    border-radius: 30px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--teal), var(--bg-surface), var(--bg-surface));
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

/* --- Sections --- */

.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.section h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

/* --- Timeline --- */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 6px;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--text-muted);
    transition: all 0.3s;
}

.timeline-dot.current {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 8px 0 4px;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Expertise Grid --- */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.expertise-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.expertise-card h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

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

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 168, 83, 0.08);
}

.tag.accent {
    border-color: rgba(212, 168, 83, 0.25);
    color: var(--accent);
    background: rgba(212, 168, 83, 0.08);
}

.tag.accent:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.15);
}

/* --- Philosophy --- */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.philosophy-item {
    padding: 28px;
    border-left: 2px solid var(--border);
    transition: all 0.3s;
}

.philosophy-item:hover {
    border-left-color: var(--accent);
}

.philosophy-number {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: rgba(212, 168, 83, 0.15);
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.philosophy-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.philosophy-item em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* --- Footer --- */

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: block;
}

.footer-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Scroll Reveal --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.timeline-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.timeline-item.reveal:nth-child(4) { transition-delay: 0.3s; }
.timeline-item.reveal:nth-child(5) { transition-delay: 0.4s; }

/* --- Animations --- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive --- */

@media (max-width: 768px) {
    nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-links {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-frame {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

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

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

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

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
    }

    .timeline-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-links a:not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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