:root {
    --bg: #050505;
    --card-bg: #0f0f12;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --border: #222226;
    --modal-overlay: rgba(0, 0, 0, 0.9);
    --badge-bg: rgba(16, 185, 129, 0.1);
    --badge-color: #10b981;
    --badge-border: rgba(16, 185, 129, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.background-glow {
    position: fixed; top: -10%; right: -10%; width: 70vw; height: 70vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1; pointer-events: none;
}

.container { width: 100%; max-width: 900px; padding: 60px 40px; z-index: 10; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--badge-bg); color: var(--badge-color); padding: 6px 12px;
    border-radius: 100px; font-size: 0.7rem; font-weight: 700;
    margin-bottom: 2rem; border: 1px solid var(--badge-border);
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* Header with Profile Image */
.header-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.profile-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-image-wrapper {
    flex-shrink: 0;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4), 0 0 80px rgba(59, 130, 246, 0.15);
}

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

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-text {
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

.mono { font-family: 'Space Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; }

.kicker { color: var(--accent); font-size: 0.75rem; margin-bottom: 1.25rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.name { font-size: clamp(2.5rem, 10vw, 4.5rem); font-weight: 700; line-height: 0.95; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.typing-text { font-size: clamp(0.9rem, 3vw, 1.1rem); color: var(--text-muted); min-height: 1.5em; display: flex; align-items: center; gap: 10px; }

.bio { margin: 3rem 0; }
.bio p { font-size: clamp(1.1rem, 4vw, 1.35rem); color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 300; max-width: 750px; }
.bio strong { color: var(--text-main); }
.bio a { color: var(--accent); text-decoration: none; transition: all 0.3s ease; border-bottom: 1px solid transparent; }
.bio a:hover { border-bottom-color: var(--accent); }

.section-title { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }

/* Expertise Bars */
.expertise { margin-bottom: 4rem; }
.skills-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem 2.5rem; 
}

.skill-item { margin-bottom: 0.5rem; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; font-weight: 500; }
.progress-bg { height: 4px; background: #1a1a1a; border-radius: 2px; overflow: hidden; }

/* Load Animation */
.progress-fill { 
    height: 100%; 
    background: var(--accent); 
    border-radius: 2px; 
    transform-origin: left;
    animation: growWidth 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes growWidth {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Marquee */
.customers { margin-bottom: 4rem; overflow: hidden; }
.marquee { position: relative; width: 100%; overflow: hidden; padding: 10px 0; }
.marquee-content { display: flex; gap: 40px; white-space: nowrap; animation: scroll 40s linear infinite; }
.marquee-content span { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; opacity: 0.6; transition: opacity 0.3s; }
.marquee-content span:hover { opacity: 1; color: var(--accent); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 4rem; }
.card { background: var(--card-bg); border: 1px solid var(--border); padding: 1.75rem; border-radius: 6px; display: flex; flex-direction: column; gap: 1rem; }
.card-icon { font-size: 1.5rem; color: var(--accent); }
.label { display: block; font-size: 0.65rem; color: var(--accent); font-weight: 700; }

.footer-meta { font-size: 0.7rem; color: #334155; border-top: 1px solid #1a1a1a; padding-top: 2.5rem; display: flex; justify-content: space-between; margin-top: 4rem; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--modal-overlay); display: none; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(12px); padding: 20px; }
.modal-content { background: #0d0d10; border: 1px solid var(--border); width: 100%; max-width: 480px; padding: 3rem; border-radius: 12px; position: relative; }
.modal-header { margin-bottom: 2rem; }
.modal-header h3 { margin-bottom: 0.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.7rem; color: var(--accent); margin-bottom: 0.6rem; }
.form-group input, .form-group textarea { width: 100%; background: #050505; border: 1px solid var(--border); color: #fff; padding: 1rem; border-radius: 6px; font-family: inherit; font-size: 0.95rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
#submitBtn { 
    width: 100%; 
    padding: 1rem 2rem; 
    background: var(--accent); 
    color: white; 
    border: none; 
    border-radius: 6px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    transition: all 0.3s ease;
}
#submitBtn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.close-modal { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--text-muted); font-size: 1.75rem; cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: var(--text-main); }

.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.fade-in-delay { opacity: 0; animation: fadeIn 0.8s ease-out 0.2s forwards; }
.fade-in-delay-2 { opacity: 0; animation: fadeIn 0.8s ease-out 0.4s forwards; }
.fade-in-delay-3 { opacity: 0; animation: fadeIn 0.8s ease-out 0.6s forwards; }

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

/* Tablet Breakpoint */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .kicker {
        justify-content: center;
    }

    .typing-text {
        justify-content: center;
    }

    .skills-grid { 
        grid-template-columns: 1fr; /* Stacks skills on mobile */
        gap: 1.5rem;
    }
}

/* Mobile Breakpoint */
@media (max-width: 640px) {
    .container { padding: 40px 24px; }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .header-content {
        gap: 1.5rem;
    }

    .footer-meta { flex-direction: column; gap: 0.5rem; }
}

/* Easter Eggs */
.profile-image {
    cursor: pointer;
}

.profile-image.spinning {
    animation: spin360 0.8s ease-in-out;
}

@keyframes spin360 {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

/* Spider Web Easter Egg */
.spider {
    position: fixed;
    font-size: 24px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.spider.active {
    opacity: 1;
}

.fly {
    position: fixed;
    font-size: 20px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.fly.active {
    opacity: 1;
}

.fly.caught {
    animation: struggle 0.5s ease-in-out 3;
}

@keyframes struggle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3px, 3px) rotate(-10deg); }
    75% { transform: translate(3px, -3px) rotate(10deg); }
}

.web-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.web-svg.active {
    opacity: 0.6;
}