/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0b0d10;
    --bg-secondary: #111419;
    --bg-card: #161a21;
    --bg-card-hover: #1c2029;
    --text-primary: #e8eaed;
    --text-secondary: #8b93a1;
    --text-muted: #5a6270;
    --accent-1: #9b7fd4;
    --accent-2: #b49ae0;
    --accent-3: #d4c4f0;
    --gradient: linear-gradient(135deg, #7b5ea7, #9b7fd4, #d4c4f0);
    --gradient-text: linear-gradient(135deg, #b49ae0, #d4c4f0);
    --border: #1c2029;
    --border-light: #2a3140;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Make sure all content sits above texture */
body > * {
    position: relative;
    z-index: 1;
}

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

a:hover {
    color: var(--accent-3);
}

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 13, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 127, 212, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 127, 212, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero-name {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    animation: fadeInUp 0.6s ease-out 0.25s both;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-image {
    position: relative;
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.profile-photo-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    box-shadow: 0 0 60px rgba(155, 127, 212, 0.06);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
    filter: grayscale(100%) contrast(1.05) brightness(1.05);
    transition: filter 0.5s ease;
}

.profile-photo-placeholder:hover .profile-img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.initials-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(155, 127, 212, 0.07), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border-light);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -40px;
    width: 100%;
    height: 20px;
    background: var(--accent-2);
    animation: scrollDown 2.5s infinite;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(155, 127, 212, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(155, 127, 212, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent-1);
    background: rgba(155, 127, 212, 0.04);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Sections ===== */
.section {
    padding: 88px 0;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-2);
    margin-bottom: 40px;
}

/* ===== About ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-heading {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(155, 127, 212, 0.2);
    background: var(--bg-card-hover);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Testimonial ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(155, 127, 212, 0.15);
}

.testimonial-quote {
    position: relative;
}

.testimonial-quote svg {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-2);
}

.testimonial-quote blockquote {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    max-width: 650px;
    margin: 0 auto;
    padding-top: 20px;
}

.testimonial-author {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-2);
}

/* ===== Timeline / Experience ===== */
.timeline {
    position: relative;
    padding-left: 0;
    border-top: 1px solid var(--border);
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: 1px solid var(--border);
}

.timeline-marker {
    display: none;
}

.timeline-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 24px 0;
    transition: all var(--transition);
}

.timeline-content:hover {
    background: transparent;
    transform: none;
    padding-left: 12px;
    border-left: 2px solid var(--accent-1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--accent-2);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.timeline-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(155, 127, 212, 0.06);
    border: 1px solid rgba(155, 127, 212, 0.12);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-2);
}

.timeline-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-location {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin-top: 8px;
}

.timeline-skills-list li {
    padding: 3px 10px;
    background: rgba(155, 127, 212, 0.05);
    border: 1px solid rgba(155, 127, 212, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-3);
    font-weight: 500;
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: all var(--transition);
}

.skill-card:hover {
    border-color: rgba(155, 127, 212, 0.2);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(155, 127, 212, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent-2);
    transition: all var(--transition);
}

.skill-card:hover .skill-icon {
    background: rgba(155, 127, 212, 0.1);
    color: var(--accent-3);
}

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Contact ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-item svg {
    color: var(--accent-2);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px rgba(155, 127, 212, 0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-3);
    min-height: 20px;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

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

.footer-name {
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes scrollDown {
    0% { top: -40px; }
    100% { top: 60px; }
}

/* ===== Scroll Animations ===== */
.timeline-item,
.skill-card,
.stat-card,
.testimonial-card,
.section-label,
.about-content,
.contact-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible,
.skill-card.visible,
.stat-card.visible,
.testimonial-card.visible,
.section-label.visible,
.about-content.visible,
.contact-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 13, 16, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-photo-placeholder {
        width: 200px;
        height: 200px;
    }

    .initials-fallback {
        font-size: 4rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 10px;
    }

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

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.8rem;
    }

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

    .about-heading {
        font-size: 1.5rem;
    }

    .stat-card {
        min-width: 100%;
    }

    .about-stats {
        flex-direction: column;
    }
}
