/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #00ffe5;
    --accent-glow: rgba(0, 255, 229, 0.15);
    --surface: #111111;
    --surface-glass: rgba(17, 17, 17, 0.7);
    --border: #222222;
    --border-light: rgba(255, 255, 255, 0.08);
    --cursor-size: 20px;
    --chat-bubble-user: #1a1a1a;
    --chat-bubble-bot: rgba(0, 255, 229, 0.05);
}

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

html {
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    position: relative;
    cursor: none; 
}

body.chat-mode {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

html:has(body.chat-mode) {
    height: 100%;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.04;
    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='1'/%3E%3C/svg%3E");
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

#cursor {
    position: fixed; top: 0; left: 0;
    width: var(--cursor-size); height: var(--cursor-size);
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    pointer-events: none; z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}
#cursor.hovered {
    width: 50px; height: 50px;
    background-color: var(--text-primary);
    opacity: 1;
}

.chat-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); z-index: 100;
}

.back-link {
    display: flex; align-items: center; gap: 10px; color: var(--text-secondary);
    text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 500;
    transition: color 0.3s;
}
.back-link:hover { color: var(--accent); }

.ai-identity { display: flex; flex-direction: column; align-items: center; }
.status-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.2em; font-weight: 700; }
.status-dot { width: 6px; height: 6px; background-color: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }

.chat-viewport {
    position: absolute; top: 70px; bottom: 90px; left: 0; width: 100%;
    padding: 20px 0; overflow-y: auto; scroll-behavior: smooth;
    display: flex; flex-direction: column; align-items: center;
}
.chat-content { width: 100%; max-width: 800px; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 100px; }

.message-row { display: flex; gap: 15px; max-width: 85%; opacity: 0; animation: slideIn 0.3s ease forwards; }
.message-row.bot { align-self: flex-start; }
.message-row.user { align-self: flex-end; flex-direction: row-reverse; }

.avatar {
    width: 35px; height: 35px; border-radius: 50%;
    background: rgba(0, 255, 229, 0.1); border: 1px solid rgba(0, 255, 229, 0.2);
    display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
}
.avatar svg { width: 20px; height: 20px; }

.bubble { padding: 15px 20px; border-radius: 20px; font-size: 0.95rem; line-height: 1.5; position: relative; word-wrap: break-word; }
.message-row.bot .bubble { background: var(--chat-bubble-bot); border: 1px solid var(--border); border-top-left-radius: 4px; color: var(--text-primary); }
.message-row.user .bubble { background: var(--chat-bubble-user); border: 1px solid var(--border-light); border-top-right-radius: 4px; color: var(--text-primary); }

.input-area-float { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 700px; 
    z-index: 200; 
    padding-bottom: env(safe-area-inset-bottom); 
}
.input-glass { display: flex; align-items: center; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(12px); border: 1px solid var(--border); padding: 8px 15px; border-radius: 100px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: border-color 0.3s; }
.input-glass:focus-within { border-color: var(--accent); box-shadow: 0 10px 40px rgba(0, 255, 229, 0.1); }
.input-glass input { flex: 1; background: transparent; border: none; color: white; font-family: 'Inter', sans-serif; font-size: 1rem; padding: 10px; outline: none; }
.send-btn { background: var(--accent); color: black; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s; cursor: pointer !important; }
.send-btn svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.send-btn:hover { transform: scale(1.1); background: white; }

.container { width: 90%; max-width: 1400px; margin: 0 auto; position: relative; }
.section-padding { padding: 120px 0; }

.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 10px 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 100px; background: rgba(0, 0, 0, 0.8); transition: all 0.3s ease; color: white !important; backdrop-filter: blur(10px); }
.brand-logo:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 255, 229, 0.15); }
.brand-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.brand-dot { width: 8px; height: 8px; background-color: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }

.btn-magnetic { display: inline-block; border: 1px solid rgba(255,255,255,0.2); color: white; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); background: transparent; cursor: pointer; }
.btn-magnetic:hover { background: white; color: black; border-color: white; transform: scale(1.05); box-shadow: 0 0 30px rgba(255,255,255,0.2); }

.btn-cv { display: flex; align-items: center; gap: 8px; padding: 8px 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px; color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s ease; margin-left: 10px; }
.btn-cv:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 255, 229, 0.15); }

.filter-container { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; position: relative; z-index: 35; }
.filter-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #888; padding: 10px 25px; border-radius: 30px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Space Grotesk', sans-serif; }
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: white; background: rgba(0, 255, 229, 0.05); transform: translateY(-2px); }

.custom-dropdown { position: relative; width: 250px; font-family: 'Space Grotesk', sans-serif; z-index: 40; }
.dropdown-selected { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: #888; padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; display: flex; justify-content: space-between; align-items: center; }
.dropdown-selected:hover, .dropdown-selected.active-filter { border-color: var(--accent); color: white; background: rgba(0, 255, 229, 0.05); }
.dropdown-options { position: absolute; top: 110%; left: 0; width: 100%; background: #0a0a0a; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 999; }
.custom-dropdown.open .dropdown-options { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-option { padding: 12px 20px; cursor: pointer; color: #aaa; transition: all 0.2s; font-size: 0.9rem; }
.dropdown-option:hover { background: rgba(255, 255, 255, 0.05); color: var(--accent); }
.dropdown-option.selected { color: var(--accent); background: rgba(0, 255, 229, 0.1); }

.skill-box.core-skill { border-color: rgba(0, 255, 229, 0.3); background: rgba(0, 255, 229, 0.02); box-shadow: 0 0 30px rgba(0, 255, 229, 0.02); }
.skill-box.core-skill h3 { color: var(--accent); text-shadow: 0 0 15px rgba(0, 255, 229, 0.3); }
.skill-box.core-skill:hover { border-color: var(--accent); background: rgba(0, 255, 229, 0.08); transform: translateY(-10px) scale(1.02); box-shadow: 0 10px 40px rgba(0, 255, 229, 0.15); }

.passions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.passion-card { background: #0f0f0f; border: 1px solid #222; padding: 40px 30px; text-align: center; border-radius: 20px; position: relative; transition: all 0.4s ease; overflow: hidden; }
.passion-card::before { content: ''; position: absolute; top:0; left:0; width:100%; height: 4px; background: var(--accent); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; }
.passion-card:hover { transform: translateY(-10px); border-color: #333; }
.passion-card:hover::before { transform: scaleX(1); }
.passion-icon { font-size: 3rem; color: white; margin-bottom: 25px; transition: color 0.3s; }
.passion-card:hover .passion-icon { color: var(--accent); }
.passion-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: white; }
.passion-card p { color: #777; font-size: 0.95rem; line-height: 1.6; }

.about-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 80px; margin-bottom: 100px; }
.about-image { flex: 1; position: relative; height: 600px; border-radius: 20px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s ease, transform 0.7s ease; }
.about-image:hover img { filter: grayscale(0%); transform: scale(1.05); }
.about-text { flex: 1.2; }
.about-text h2 { font-size: 3.5rem; margin-bottom: 30px; color: white; }
.about-text p { font-size: 1.1rem; line-height: 1.8; color: #aaa; margin-bottom: 25px; }
.about-stats { display: flex; gap: 50px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.stat-item h4 { font-size: 2.5rem; color: var(--accent); margin-bottom: 5px; font-family: 'Space Grotesk', sans-serif; }
.stat-item span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: #666; }

.timeline-section { position: relative; padding: 100px 0; z-index: 20; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: rgba(255,255,255,0.05); transform: translateX(-50%); z-index: 1; border-radius: 4px; }
.timeline-progress { position: absolute; left: 50%; top: 0; width: 4px; height: 0%; background: var(--accent); transform: translateX(-50%); z-index: 2; box-shadow: 0 0 20px var(--accent); border-radius: 4px; }
.timeline-row { display: flex; justify-content: space-between; margin-bottom: 100px; width: 100%; position: relative; z-index: 10; }
.timeline-row.right { flex-direction: row-reverse; }
.timeline-content { display: block; text-decoration: none; width: 45%; padding: 40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; background: #0a0a0a; position: relative; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; z-index: 100; }
.timeline-content:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 255, 229, 0.15); }
.timeline-content h3 { margin: 10px 0; color: white; }
.timeline-content p { color: #888; margin: 0; }
.timeline-dot { position: absolute; top: 50%; width: 16px; height: 16px; background: #000; border: 2px solid #555; border-radius: 50%; transition: all 0.3s; z-index: 5; box-shadow: 0 0 0 5px #050505; }
.timeline-row .timeline-dot { left: calc(50% - 9px); transform: translateY(-50%); }
.timeline-row.active .timeline-dot { background: var(--accent); border-color: white; box-shadow: 0 0 20px var(--accent); transform: translateY(-50%) scale(1.5); }

.photo-section { display: flex; text-decoration: none; position: relative; width: 100%; height: 70vh; align-items: center; justify-content: center; overflow: hidden; margin: 100px 0; z-index: 20; }
.photo-bg { position: absolute; top: 0; left: 0; width: 100%; height: 120%; background-size: cover; background-position: center; filter: grayscale(100%) brightness(0.5); transition: filter 0.5s; }
.photo-section:hover .photo-bg { filter: grayscale(0%) brightness(0.7); }
.photo-content { z-index: 2; text-align: center; }

.btn-gallery-anim { display: inline-block; padding: 15px 40px; border-radius: 50px; border: 1px solid white; color: white; font-family: 'Space Grotesk', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; position: relative; overflow: hidden; transition: all 0.3s ease; background: transparent; }
.btn-gallery-anim::after { content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: white; border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); z-index: -1; }
.btn-gallery-anim:hover { color: black; border-color: transparent; transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 255, 255, 0.4); }
.btn-gallery-anim:hover::after { transform: translate(-50%, -50%) scale(1); }

.form-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid #333; padding: 15px 0; color: white; font-size: 1.1rem; outline: none; transition: border-color 0.3s; }
.form-input:focus { border-bottom-color: var(--accent); }

.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.skill-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid rgba(0, 255, 229, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(0, 255, 229, 0.05);
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (hover: none) and (pointer: coarse) {
    #cursor { display: none !important; }
    * { cursor: auto !important; }
    
    .btn-magnetic, .btn-cv, .filter-btn, .dropdown-selected {
        padding: 12px 25px;
    }
}

@media (max-width: 900px) { 
    .about-wrapper { flex-direction: column; } 
    .about-image { width: 100%; height: 400px; } 
    .chat-header { padding: 0 20px; }
}

@media (max-width: 768px) { 
    h1 { font-size: 2.5rem; }
    .about-text h2 { font-size: 2.2rem; }
    
    .section-padding { padding: 80px 0; }
    .filter-container { gap: 10px; } 
    
    .chat-header { height: 60px; }
    .chat-viewport { top: 60px; padding: 10px 0; }
    .message-row { max-width: 95%; }
    
    .timeline-row { flex-direction: column !important; margin-bottom: 50px; padding-left: 40px; } 
    .timeline-content { width: 100%; } 
    .timeline-line, .timeline-progress { left: 15px !important; transform: none; } 
    .timeline-row .timeline-dot { left: 6px !important; transform: translateY(-50%) !important; }
    .timeline-row.active .timeline-dot { transform: translateY(-50%) scale(1.3) !important; }
    
    .about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
}