:root {
    --bg-color: #030303;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #b0f;
    /* Purple/Pink neon accent */
    --accent-glow: rgba(187, 0, 255, 0.4);
    --border-color: #333;
    --nav-bg: rgba(20, 20, 20, 0.8);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    /* Reset cursor for custom cursor implementation */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Selection Color */
::selection {
    background: var(--accent);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section {
    padding: 120px 0;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
    border: 1px solid transparent;
}

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

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

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

/* Typography styles */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-heading .number {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
}

.section-heading::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background: linear-gradient(90deg, var(--border-color), transparent);
    margin-left: 20px;
}

/* Navigation (Pill Style) */
.pill-nav {
    position: fixed;
    bottom: 30px;
    /* Bottom mobile-first */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 10px;
    position: relative;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.nav-item .tooltip {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    /* Hide by default */
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
}

.nav-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
}

.dropdown-item span {
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
}

.dropdown-item.current-version {
    background: rgba(187, 0, 255, 0.15);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.dropdown-item.current-version:hover {
    background: rgba(187, 0, 255, 0.25);
}

/* Desktop Nav Adjustment */
@media(min-width: 768px) {
    .pill-nav {
        bottom: auto;
        top: 30px;
    }

    .nav-item .tooltip {
        bottom: auto;
        top: 60px;
        transform: translateX(-50%) translateY(-10px);
    }

    .nav-item:hover .tooltip {
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-menu {
        bottom: auto;
        top: 70px;
        transform: translateX(-50%) translateY(-10px);
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    margin-top: 150px;
    /* Center vertically */
}

.hero-section .greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.hero-section .name-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-section .role-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-section .text-type {
    color: var(--text-primary);
}

.hero-section .cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--accent);
    font-weight: 100;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-section .description {
    max-width: 540px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: scroll-dot 1.5s infinite;
}

@keyframes scroll-dot {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: flex-start;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.skills-wrapper h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
}

.skills-list li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-list li span {
    color: var(--accent);
}

.about-image-wrapper {
    position: relative;
    max-width: 350px;
    margin-left: auto;
    animation: gentleFloat 8s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(187, 0, 255, 0.2), rgba(100, 50, 200, 0.1));
    background-size: 200% 200%;
    animation: subtleGlowPulse 6s ease-in-out infinite;
    padding: 3px;
    z-index: 2;
    transition: all 0.8s ease-out;
    box-shadow: 0 0 30px rgba(187, 0, 255, 0.3),
                0 0 60px rgba(187, 0, 255, 0.15),
                inset 0 0 20px rgba(187, 0, 255, 0.1);
}

.image-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, transparent, rgba(187, 0, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.8s ease-out;
    z-index: -1;
    animation: gentleRotate 8s linear infinite;
}

.image-container:hover::before {
    opacity: 0.5;
}

.image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(187, 0, 255, 0.4),
                0 0 80px rgba(187, 0, 255, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes subtleGlowPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(187, 0, 255, 0.3),
                    0 0 60px rgba(187, 0, 255, 0.15),
                    inset 0 0 20px rgba(187, 0, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 35px rgba(187, 0, 255, 0.4),
                    0 0 70px rgba(187, 0, 255, 0.2),
                    inset 0 0 25px rgba(187, 0, 255, 0.15);
    }
}

@keyframes gentleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-img {
    width: 100%;
    display: block;
    mix-blend-mode: multiply;
    filter: grayscale(30%) contrast(1.05);
    transition: all 0.8s ease-out;
    border-radius: 7px;
    position: relative;
    z-index: 1;
    animation: subtleFadeIn 1s ease-out forwards;
}

.image-container:hover .profile-img {
    filter: grayscale(0%) contrast(1.1);
    mix-blend-mode: normal;
}

@keyframes subtleFadeIn {
    from {
        opacity: 0.8;
        filter: grayscale(50%) contrast(0.9);
    }
    to {
        opacity: 1;
        filter: grayscale(30%) contrast(1.05);
    }
}

/* Experience Section - Stepper */
.stepper-layout {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #333;
}

.step-item {
    position: relative;
    margin-bottom: 50px;
}

.step-marker {
    position: absolute;
    left: -39px;
    /* adjust based on padding-left + border width */
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    transition: var(--transition);
}

.step-item:hover .step-marker {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.step-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-content.spotlight-card:hover {
    /* Handled by JS for spotlight effect, but base hover here */
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.step-header .company {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.step-header .date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.job-details {
    list-style: none;
    margin-bottom: 20px;
}

.job-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.job-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

.tech-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    /* Corrected from accent to text-secondary for better contrast or use lighter accent */
    font-family: var(--font-mono);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    transition: var(--transition);
}

.step-content:hover .tech-tags span {
    color: var(--accent);
    border-color: var(--accent);
}

/* Services Section - Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* border is handled by spotlight logic primarily, but adding base fallback */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-gif {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.service-card:hover .service-gif {
    filter: none;
}

.service-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-list li {
    margin-bottom: 5px;
}

/* Subdomains - Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
}

.bento-item {
    background: #0f0f0f;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    border-color: var(--accent);
    background: #161616;
    transform: scale(0.98);
}

/* Grid Spanning */
.bento-item.wide {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-item.medium {
    grid-column: span 1;
}

.bento-icon {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.bento-item h3 {
    font-size: 1.5rem;
    color: white;
}

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

.bento-decor {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(20px);
    transition: 0.5s;
}

.bento-item:hover .bento-decor {
    opacity: 0.4;
    transform: scale(1.5);
}

/* Specific Card Themes */
.n8n-card:hover {
    --accent: #ff6b6b;
}

/* n8n reddish/orange color */
.odoo-card:hover {
    --accent: #a29bfe;
}

/* Odoo purple-ish */
.postiz-card:hover {
    --accent: #74b9ff;
}

/* Blueish */

/* Contact Section */
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 60px;
}

@media(min-width: 500px) {
    .contact-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.schedule-btn {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 12px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

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

.social-links-footer {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.social-links-footer a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-footer a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.logo-box {
    margin-bottom: 10px;
    font-weight: bold;
    color: #666;
}

/* Responsive Fixes */
@media(max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        margin: 0 auto;
        max-width: 250px;
        order: -1;
        /* Image first on mobile */
        margin-bottom: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.wide,
    .bento-item.tall,
    .bento-item.medium {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 200px;
    }
}
/* Additional Space Effects */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8),
                0 0 20px 4px rgba(255, 255, 255, 0.4);
}

.planet {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Make main content appear above stars */
main {
    position: relative;
    z-index: 10;
}

/* Adjust noise overlay for space theme */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Nebula effect on cards */
.spotlight-card::before {
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(130, 80, 200, 0.15), 
                transparent 50%);
}

/* Space-themed scrollbar */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #a855f7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #c084fc);
}
