/* About Page Styles */

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: true;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Page entrance animation */
body.page-enter {
    animation: pageEnter 0.6s ease-out;
}

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

/* Page exit transition */
.page-transition-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* Subtle dot-grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ========== GLASS PILL (about page) ========== */
.glass-pill {
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(240, 240, 245, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.06),
        0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
}

.glass-pill:hover {
    background: rgba(235, 235, 242, 0.72);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.1),
        0 0 1px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Back button */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 100;
}

.back-btn:hover {
    color: #111;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    flex: 1;
}

/* Logo */
.logo {
    width: 100px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #222;
    letter-spacing: -0.5px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.3s forwards;
}

.intro {
    font-size: 18px;
    line-height: 2;
    color: #555;
    margin-bottom: 60px;
    max-width: 600px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
}

/* Sections with scroll-triggered entrance animations */
.section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.section h2 {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 18px;
}

.section p {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.skill {
    padding: 8px 18px;
    font-size: 13px;
    color: #444;
}

.skill:hover {
    background: #FF6200;
    color: #fff;
    border-color: transparent;
    box-shadow:
        0 2px 16px rgba(255, 98, 0, 0.25),
        0 0 1px rgba(255, 98, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Social links — glass pill style */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    color: #444;
    /* inherits glass-pill styles */
}

.social-links a:hover {
    transform: translateY(-2px);
    color: #111;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
}

.work-card:hover {
    background: #FF6200;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow:
        0 4px 24px rgba(255, 98, 0, 0.25),
        0 0 1px rgba(255, 98, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.work-card:hover .work-title {
    color: #fff;
}

.work-card:hover .work-desc {
    color: rgba(255, 255, 255, 0.7);
}

.work-card:hover .work-tag {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.work-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    transition: color 0.2s ease;
}

.work-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #888;
    transition: color 0.2s ease;
}

.work-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 10px;
    background: rgba(240, 240, 245, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #999;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
    margin-bottom: 36px;
}

.contact-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
    background: rgba(245, 245, 248, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    resize: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.contact-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(245, 245, 248, 0.6);
    box-shadow: none;
}

.contact-textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-submit {
    align-self: flex-start;
    padding: 16px 42px;
    color: #fff;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 28px;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    z-index: 0;
    background:
        linear-gradient(135deg, #FF6200, #ff8533, #FF6200) padding-box,
        conic-gradient(from var(--border-angle), #ff8533, #FF6200 25%, #ff9a4a 50%, #FF6200 75%, #ff8533 100%) border-box;
    box-shadow: 0 4px 20px rgba(255, 98, 0, 0.25);
    animation: borderSpin 3s linear infinite;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 98, 0, 0.4);
}

/* Glow layer behind the spinning border */
.contact-submit::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 32px;
    background: conic-gradient(from var(--border-angle), #ff8533, #FF6200 25%, #ff9a4a 50%, #FF6200 75%, #ff8533 100%);
    z-index: -1;
    filter: blur(12px);
    opacity: 0.45;
}

@keyframes borderSpin {
    to { --border-angle: 360deg; }
}

.contact-submit:hover::before {
    opacity: 0.7;
}

.contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(255, 98, 0, 0.25);
}

/* Honeypot — hidden from humans, catches bots */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Hidden elements */
.hidden { display: none !important; }

/* Success state */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6200, #ff8533);
    color: #fff;
    font-size: 22px;
    margin-bottom: 16px;
}

.form-success p {
    font-size: 16px;
    color: #444;
}

/* Disabled button */
.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact */
.contact-info {
    margin-top: 15px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.2s;
}

.contact-info a:hover {
    border-bottom-color: transparent;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    color: #bbb;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Entrance animation keyframe */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== EXPERIENCE TIMELINE ========== */
.timeline {
    position: relative;
    margin-top: 24px;
    padding-left: 24px;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

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

/* Dot on the line */
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d0d0d0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d0d0d0;
}

/* Orange dot for current roles */
.timeline-item.current .timeline-dot {
    background: #FF6200;
    box-shadow: 0 0 0 1px #FF6200, 0 0 8px rgba(255, 98, 0, 0.3);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-company {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.2px;
}

.timeline-item.current .timeline-company {
    color: #FF6200;
}

.timeline-role {
    font-size: 13px;
    color: #666;
}

.timeline-year {
    font-size: 11px;
    letter-spacing: 1px;
    color: #aaa;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 80px 24px 40px;
    }

    h1 {
        font-size: 28px;
    }

    .intro {
        font-size: 16px;
    }

    .back-btn {
        top: 20px;
        left: 20px;
    }

    .social-links {
        gap: 8px;
    }

    .social-links a {
        padding: 8px 18px;
        font-size: 11px;
    }

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

    .contact-submit {
        width: 100%;
        text-align: center;
    }
}
