:root {
    --bg-dark: #1f1c2c;
    --bg-primary: #2a253a;
    --bg-secondary: #3e3852;
    --bg-tertiary: #494264;
    --bg-card: #2f2a40;

    --accent: #f78f92;
    --accent-dim: rgba(247, 143, 146, 0.1);
    --accent-glow: rgba(247, 143, 146, 0.3);

    --text-primary: #f2f2f2;
    --text-secondary: #b3b0c0;
    --text-muted: #827e99;

    --border: #4a435c;
    --border-light: #635c7a;

    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Outfit', sans-serif;

    /* Spacing */
    --section-gap: 120px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.4s;
}

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

html {
    scroll-behavior: auto;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #f9a7a9;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(247, 143, 146, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 143, 146, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    pointer-events: none;
}

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


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(31, 28, 44, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-bracket {
    color: var(--accent);
}

.logo-name {
    color: var(--text-primary);
    margin: 0 2px;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.nav-link span {
    color: var(--accent);
    font-size: 0.75rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle span:first-child {
    top: 0;
}

.nav-toggle span:last-child {
    bottom: 0;
}


.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 40px 80px;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(247, 143, 146, 0.2);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s var(--ease-out);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s backwards;
}

.hero-name {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.name-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s backwards;
}

.name-line.accent {
    color: var(--accent);
    animation-delay: 0.3s;
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-role-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s backwards;
}

.role-prefix {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.2rem;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.typed-cursor {
    font-family: var(--font-mono);
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s backwards;
}

.text-accent {
    color: var(--accent);
    font-weight: 500;
}
.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: fadeInUp 0.8s var(--ease-out) 0.7s backwards;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-value::after {
    content: '+';
    color: var(--accent);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s var(--ease-out) 0.5s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-frame {
    position: relative;
    width: 350px;
    height: 350px;
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    z-index: 2;
}

.frame-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.frame-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.frame-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.frame-line {
    position: absolute;
    background: var(--border);
}

.frame-line.top {
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
}

.frame-line.bottom {
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
}

.frame-line.left {
    left: 0;
    top: 30px;
    bottom: 30px;
    width: 1px;
}

.frame-line.right {
    right: 0;
    top: 30px;
    bottom: 30px;
    width: 1px;
}

.profile-image {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.profile-frame:hover .profile-image {
    filter: grayscale(0%);
}

.profile-glitch {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--accent);
    mix-blend-mode: overlay;
    opacity: 0;
    animation: glitch 5s infinite;
}

@keyframes glitch {

    0%,
    95%,
    100% {
        opacity: 0;
    }

    96% {
        opacity: 0.1;
        transform: translateX(-5px);
    }

    97% {
        opacity: 0;
    }

    98% {
        opacity: 0.1;
        transform: translateX(5px);
    }

    99% {
        opacity: 0;
    }
}

.tech-orbit {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring {
    position: absolute;
    border: 1px dashed var(--border);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 400px;
    height: 400px;
}

.ring-2 {
    width: 480px;
    height: 480px;
    opacity: 0.5;
}

.ring-3 {
    width: 560px;
    height: 560px;
    opacity: 0.3;
}

.orbit-item {
    position: absolute;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 1.2rem;
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle)) translateX(200px) rotate(calc(-1 * var(--angle)));
    animation: orbit 20s linear infinite;
    animation-delay: var(--delay);
}

@keyframes orbit {
    from {
        transform: rotate(var(--angle)) translateX(200px) rotate(calc(-1 * var(--angle)));
    }

    to {
        transform: rotate(calc(var(--angle) + 360deg)) translateX(200px) rotate(calc(-1 * (var(--angle) + 360deg)));
    }
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

@keyframes scrollDown {
    0% {
        top: -50%;
    }

    100% {
        top: 100%;
    }
}

.hero-decoration {
    position: absolute;
    bottom: 100px;
    right: 40px;
    writing-mode: vertical-rl;
}

.deco-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    opacity: 0.5;
}

section {
    padding: var(--section-gap) 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-header.centered {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
}

.section-title {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 300px;
}

.about {
    background: var(--bg-primary);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.about-image-wrapper {
    position: sticky;
    top: 120px;
}

.about-image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    transform: translate(10px, 10px);
    z-index: -1;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s ease;
}

.about-image-frame:hover .about-image {
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    mix-blend-mode: multiply;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.about-image-frame:hover .image-overlay {
    opacity: 0;
}

.about-image-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.label-icon {
    color: var(--accent);
}

/* About Content */
.about-content {
    padding-top: 20px;
}

.about-intro {
    margin-bottom: 30px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.code-comment {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.intro-text strong {
    color: var(--accent);
}

.about-details p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-details .highlight {
    color: var(--accent);
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* Info Card */
.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Compact variant for Formação card */
.info-card--compact {
    padding: 8px 10px;
    gap: 10px;
    max-width: 320px;
}

.info-card--compact .info-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
}

.info-card--compact .info-content {
    line-height: 1.2;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
}

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


/* Tech Stack */
.about-tech {
    margin: 40px 0;
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

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

.tech-tag {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tech-tag i {
    color: var(--accent);
    font-size: 1rem;
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Social Links */
.about-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-3px);
}

.experience {
    background: var(--bg-dark);
}

.exp-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
}

.exp-tabs {
    display: flex;
    flex-direction: column;
    position: relative;
}

.exp-tabs::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.exp-tab {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.tab-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.exp-tab.active .tab-indicator,
.exp-tab:hover .tab-indicator {
    height: 100%;
}

.tab-company {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.exp-tab.active .tab-company,
.exp-tab:hover .tab-company {
    color: var(--accent);
}

.exp-content {
    min-height: 400px;
}

.exp-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.exp-panel.active {
    display: block;
}

.exp-header {
    margin-bottom: 15px;
}

.exp-title {
    font-size: 1.4rem;
    font-weight: 600;
    display: inline;
}

.exp-company {
    font-size: 1.4rem;
    color: var(--accent);
}

.exp-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-badge {
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-badge.current {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(247, 143, 146, 0.2);
}

.exp-list {
    list-style: none;
    margin-bottom: 30px;
}

.exp-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.list-marker {
    color: var(--accent);
    font-size: 0.9rem;
}

.exp-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-stack span {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.projects {
    background: var(--bg-primary);
    position: relative;
}

.projects-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.projects-subtitle .code-comment {
    color: var(--text-muted);
}

/* Filter Buttons */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.filter-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.filter-btn:hover .filter-indicator,
.filter-btn.active .filter-indicator {
    height: 100%;
}

.filter-btn span,
.filter-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.filter-icon {
    color: var(--accent);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(247, 143, 146, 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.project-card.hidden {
    display: none;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.project-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image-container img {
    transform: scale(1.05);
}


.project-card[data-image-type="mobile"] {
    flex-direction: row;
    min-height: 320px;
}

.project-card[data-image-type="mobile"] .project-image-container {
    width: 45%;
    height: 100%;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.project-card[data-image-type="mobile"] .project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    background: transparent;
}

.project-card[data-image-type="mobile"] .project-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.project-card[data-image-type="mobile"] .project-image-glow {
    background: linear-gradient(to left,
            var(--bg-card) 0%,
            transparent 40%);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-type i {
    font-size: 0.75rem;
}

.project-links {
    display: flex;
    gap: 8px;
}

.link-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.link-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--accent);
}

.project-hover-content {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.project-card:hover .project-hover-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* Tech Stack */
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-stack span:hover {
    border-color: rgba(247, 143, 146, 0.3);
    color: var(--accent);
}

/* CTA Button */
.projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-view-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(247, 143, 146, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-view-more:hover::before {
    transform: translateX(100%);
}

.btn-view-more:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 30px rgba(247, 143, 146, 0.15);
}

.btn-view-more .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-view-more:hover .btn-icon {
    transform: translateX(4px);
}

.contact {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.contact-header-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-header-text p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.method-item:hover .method-icon {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.method-info a,
.method-info span:last-child {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form-new {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-light);
}

.form-header {
    background: var(--bg-secondary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.form-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.form-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

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

.btn-submit {
    margin-top: 10px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #f9a7a9;
    transform: translateY(-2px);
}


.footer {
    background: var(--bg-primary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

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

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-tag {
    color: var(--accent);
}

.footer-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}


@media (max-width: 992px) {
    .project-card[data-image-type="mobile"] {
        grid-column: 1 / -1;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        padding: 100px 40px;
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

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

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

    .profile-frame {
        width: 280px;
        height: 280px;
    }

    .orbit-ring,
    .orbit-item {
        display: none;
    }

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

    .about-image-wrapper {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .exp-layout {
        grid-template-columns: 1fr;
    }

    .exp-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .exp-tabs::before {
        display: none;
    }

    .tab-indicator {
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
    }

    .exp-tab.active .tab-indicator,
    .exp-tab:hover .tab-indicator {
        width: 100%;
        height: 2px;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card[data-image-type="mobile"] {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

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

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

    .section-title {
        font-size: 1.5rem;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-decoration {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        min-height: auto;
    }

    .project-card[data-image-type="mobile"] {
        grid-column: span 1;
        flex-direction: row;
    }

    .project-card[data-image-type="mobile"] .project-image-container {
        width: 40%;
        height: auto;
        padding: 0;
    }

    .project-card[data-image-type="mobile"] .project-content {
        width: 60%;
        padding: 15px;
    }

    .project-card[data-image-type="mobile"] .project-image-glow {
        background: linear-gradient(to top,
                var(--bg-card) 0%,
                transparent 30%);
    }

    .project-image-container {
        aspect-ratio: 16 / 9;
    }

    .project-content {
        padding: 16px;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .projects-filter {
        gap: 8px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .project-card {
        border-radius: 10px;
    }

    .link-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .project-stack span {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .metric-divider {
        display: none;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .profile-frame {
        width: 220px;
        height: 220px;
    }

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