/* Reset & Base */
:root {
    --bg-color: #0f0f11;
    --bg-card: #18181b;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --accent-color: #3b82f6;
    --border-color: #27272a;
    --font-main: 'Inter', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bg-darker {
    background-color: #0a0a0a;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

/* Hero */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    /* margin-left: 10px; */
}

.btn-secondary:hover {
    background: var(--bg-card);
}

.btn-small {
    background: var(--bg-card);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.1s ease-out, border-color 0.3s;
    transform-style: preserve-3d;
    will-change: transform;
}

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

.card .icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Case Study */
.case-study-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.step {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 250px;
}

.step-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Tech Stack — editorial list */
.stack-list {
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
}

.stack-row {
    display: grid;
    grid-template-columns: 200px 160px 1fr;
    align-items: center;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.2s;
}

.stack-row:hover {
    padding-left: 8px;
}

.stack-row-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stack-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}

.stack-row-level {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand);
    opacity: 0.9;
}

.stack-row-uses {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .stack-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        row-gap: 6px;
        column-gap: 16px;
    }

    .stack-row-uses {
        grid-column: 1 / -1;
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .stack-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 16px 0;
    }

    .stack-row:hover {
        padding-left: 4px;
    }

    .stack-row-level {
        padding-left: 20px;
    }

    .stack-row-uses {
        padding-left: 20px;
        grid-column: unset;
    }
}

/* Tech Stack Showcase (legacy — unused) */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.tool-card.expanded {
    grid-column: span 2;
    text-align: left;
    background: rgba(24, 24, 27, 0.95);
}

.tool-icon {
    font-size: 3rem;
    margin: 0 auto 15px auto;
    display: block;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tool-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 20px;
}

.tool-card.expanded .tool-details {
    max-height: 500px;
    opacity: 1;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.skill-level {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.tool-card.expanded .skill-level {
    animation: fillBar 1s ease-out;
}

@keyframes fillBar {
    from {
        width: 0 !important;
    }
}

.experience-years {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.use-cases {
    list-style: none;
    padding: 0;
}

.use-cases li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.use-cases li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Skill Constellation */
.constellation-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 40px auto;
}

.core-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    animation: corePulse 3s ease-in-out infinite;
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulse 2s ease-out infinite;
}

@keyframes corePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.core-system span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    margin-bottom: 10px;
    font-weight: 700;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: z-index 0s;
}

/* Elevate the entire orbit when its planet is hovered */
.orbit:has(.planet:hover) {
    z-index: 1000;
}

.orbit-1 {
    width: 240px;
    height: 240px;
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 320px;
    height: 320px;
    animation: rotate 25s linear infinite reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    animation: rotate 30s linear infinite;
}

.orbit-4 {
    width: 480px;
    height: 480px;
    animation: rotate 35s linear infinite reverse;
}

.orbit-5 {
    width: 560px;
    height: 560px;
    animation: rotate 40s linear infinite;
}

.orbit-6 {
    width: 640px;
    height: 640px;
    animation: rotate 45s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.planet-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 20;
}

.planet {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.planet-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

/* Counter-rotate containers based on their orbit */
.orbit-1 .planet-container {
    animation: counterRotate1 20s linear infinite;
}

.orbit-2 .planet-container {
    animation: counterRotate2 25s linear infinite;
}

.orbit-3 .planet-container {
    animation: counterRotate3 30s linear infinite;
}

.orbit-4 .planet-container {
    animation: counterRotate4 35s linear infinite;
}

.orbit-5 .planet-container {
    animation: counterRotate5 40s linear infinite;
}

.orbit-6 .planet-container {
    animation: counterRotate6 45s linear infinite;
}

@keyframes counterRotate1 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

@keyframes counterRotate2 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes counterRotate3 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

@keyframes counterRotate4 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes counterRotate5 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

@keyframes counterRotate6 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.planet-make {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.planet-n8n {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

.planet-ghl {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.planet-airtable {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.planet-openai {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.planet-zapier {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.planet:hover {
    transform: scale(1.3);
    z-index: 100;
}

.planet-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 102;
}

.planet:hover .planet-tooltip {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.planet-tooltip strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.planet-tooltip p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.88rem;
    padding: 10px 22px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 28px;
    }

    .footer {
        padding: 40px 0 0;
    }
}

/* CTA Section Spacing */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* About Me Layout */
.about-content {
    display: grid;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-text {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-text:hover {
    gap: 8px;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: default;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.cert-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f0;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.4s ease;
    display: block;
}

.cert-card:hover .cert-img {
    transform: scale(1.04);
}

.cert-info {
    padding: 16px 18px 18px;
}

.cert-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.cert-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cert-info {
        padding: 12px 14px 14px;
    }

    .cert-info h3 {
        font-size: 0.8rem;
    }
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .case-study-flow {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .tool-card.expanded {
        grid-column: span 1;
    }

    .constellation-container {
        max-width: 400px;
        height: 400px;
    }

    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.planet:hover {
    transform: scale(1.3);
    z-index: 100;
}

.planet-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 102;
}

.planet:hover .planet-tooltip {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.planet-tooltip strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.planet-tooltip p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* CTA Section Spacing */
.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* About Me Layout */
.about-content {
    display: grid;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-text {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-text:hover {
    gap: 8px;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .case-study-flow {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .tool-card.expanded {
        grid-column: span 1;
    }

    .constellation-container {
        max-width: 400px;
        height: 400px;
    }

    .orbit-5,
    .orbit-6 {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Portfolio and Profile Image Styles */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Video Section */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* =========================================
   PROCESS STEPPER
   ========================================= */
.version-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-top: 48px;
    position: relative;
}

/* connecting line between steps */
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step:last-child::before {
    display: none;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 40px;
    }

    .process-step:nth-child(3)::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 32px;
    }

    .process-step:nth-child(3)::before {
        display: block;
    }

    .process-step:nth-child(2n)::before {
        display: none;
    }

    .step-num {
        width: 46px;
        height: 46px;
        font-size: 0.85rem;
    }
}

/* =========================================
   FEATURED PROJECTS
   ========================================= */
.featured-projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.featured-project-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 40px;
    transition: border-color 0.3s;
}

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

.project-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.project-label-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.project-stack-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-title-main {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.project-story-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.story-block {
    flex: 1;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 20px;
}

.story-step {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.story-block p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.story-arrow {
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding-top: 28px;
    flex-shrink: 0;
    opacity: 0.5;
}

.project-visual {
    margin-top: 4px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.coming-soon-badge::before {
    content: "\23F3";
    font-size: 0.95rem;
}

.project-visual-img-wrap {
    margin-top: 20px;
}

.project-visual-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: block;
}

/* Video slot inside each project card */
.project-video-slot {
    margin-top: 24px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
}

.project-video-slot iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
}

.video-coming-soon {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* =========================================
   PROJECT WALKTHROUGHS (legacy — unused)
   ========================================= */
.walkthroughs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.walkthrough-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

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

.walkthrough-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #0a0a0a;
}

.walkthrough-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.walkthrough-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(139, 92, 246, 0.07));
}

.play-btn-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    padding-left: 4px;
}

.walkthrough-coming-soon {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.walkthrough-info {
    padding: 20px 22px;
}

.walkthrough-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.duration-tag {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

@media (max-width: 768px) {
    .project-story-row {
        flex-direction: column;
        gap: 10px;
    }

    .story-arrow {
        display: none;
    }

    .featured-project-card {
        padding: 24px 20px;
    }

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

/* =========================================
   STATS BAR
   ========================================= */
.stats-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    width: 100%;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 8px;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-color);
    flex-shrink: 0;
}

.stat-top-rated {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 8px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 32px 0;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-color);
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .stat-top-rated {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-top-rated {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Walkthrough card description */
.walkthrough-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 6px 0 12px;
}
