:root {
    --bg-color: #0A0E17;
    --text-primary: #E0E6ED;
    --text-secondary: #94A3B8;
    --accent-primary: #40C4FF;
    /* Flutter Blue */
    --accent-secondary: #0D47A1;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
    --font-main: 'Outfit', sans-serif;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(64, 196, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 196, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(64, 196, 255, 0.1);
    transform: translateY(-2px);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(10, 14, 23, 0.8);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 2rem;
}

.hero-subtitle {
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-visual {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: auto;
    opacity: 0.4;
    filter: blur(60px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

/* Trusted Partners */
.partners {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), rgba(64, 196, 255, 0.05));
    border-bottom: 1px solid var(--card-border);
}

.partners h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.partner-logo-box {
    margin-top: 2rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    transition: var(--transition-speed);
}

.partner-logo-box:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter on hover */
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.partner-logo {
    max-height: 60px;
    /* Constrain height */
    width: auto;
    filter: grayscale(100%) brightness(150%);
    /* Muted look initially */
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* Specific Fix for N2M Logo (Black -> White, Yellow Preserved) */
.partner-logo-box img[alt="Nest2Move Logo"] {
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.9;
}

.partner-logo-box:hover img[alt="Nest2Move Logo"] {
    /* Keep inverted colors on hover, just brighten */
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
    opacity: 1;
}

.partner-logo-box:hover .partner-logo {
    filter: grayscale(0%) brightness(100%);
    /* Full color on hover */
    opacity: 1;
}

/* Services */

.services {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* Portfolio */
.portfolio {
    padding: 8rem 0;
    position: relative;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.project-item.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
}

.project-img-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    transition: all 0.5s ease;
    opacity: 0;
    /* JS handles reveal */
    transform: translateY(50px);
}

.project-img-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

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

.tech-stack {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(64, 196, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact */
.contact {
    padding: 8rem 0;
    text-align: center;
}

.contact-box {
    background: linear-gradient(135deg, rgba(64, 196, 255, 0.1), rgba(13, 71, 161, 0.1));
    border: 1px solid var(--card-border);
    padding: 4rem;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
}

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

/* Animations */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--card-border);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
        height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .project-item,
    .project-item.reverse {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for MVP */
    .cursor,
    .cursor-follower {
        display: none;
    }

    /* Disable custom cursor on mobile */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(64, 196, 255, 0.5);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(2);
    background: transparent;
}

.cursor-follower.cursor-hover {
    width: 50px;
    height: 50px;
    background: rgba(64, 196, 255, 0.1);
    border-color: var(--accent-primary);
}

/* 3D Tilt Effect */
.service-card {
    /* Existing styles preserved */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.service-icon,
.service-card h3,
.service-card p {
    transform: translateZ(20px);
    /* Pop out elements */
}

/* Form Feedback */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid #2ed573;
}

.form-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid #ff4757;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- IoT Lab Styles --- */
.iot-lab {
    padding: 2rem 0;
}

.browser-warning {
    background: rgba(255, 179, 0, 0.15);
    color: #ffd54f;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 179, 0, 0.3);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-container {
    background: #0f1219;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 75vh;
    /* Fixed height container */
}

.iot-toolbar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Responsive wrap */
    gap: 1rem;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toolbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.terminal-title {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    opacity: 0.6;
    font-weight: 700;
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.toolbar-btn.connect {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-btn.connect.active {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border-color: rgba(46, 213, 115, 0.4);
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.1);
}

.toolbar-btn.action:hover i {
    transform: scale(1.1);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--card-border);
    margin: 0 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    /* Disonnected Red */
    box-shadow: 0 0 8px #ef4444;
    transition: all 0.3s;
}

.status-dot.connected {
    background-color: #2ed573;
    /* Connected Green */
    box-shadow: 0 0 8px #2ed573;
}

/* TERMINAL BODY - Critical for scrolling */
.terminal-body {
    flex: 1;
    /* Takes remaining height */
    padding: 1.5rem;
    overflow-y: auto;
    /* Enables vertical scrolling */
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: #0d1117;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.terminal-line {
    margin-bottom: 0.2rem;
    word-break: break-all;
    line-height: 1.5;
}

.terminal-line.system {
    color: var(--accent-primary);
    font-weight: bold;
}

.terminal-line.success {
    color: #2ed573;
}

.terminal-line.error {
    color: #ff4757;
}

.terminal-line.default {
    color: #e2e8f0;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0d1117;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Upload Overlay */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.upload-modal {
    background: #1e293b;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(64, 196, 255, 0.3);
    box-shadow: 0 0 50px rgba(64, 196, 255, 0.15);
    width: 90%;
    max-width: 450px;
}

.upload-modal h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px var(--accent-primary);
}

.upload-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animation for upload */
@keyframes glow {
    0% {
        box-shadow: 0 0 10px var(--accent-primary);
    }

    100% {
        box-shadow: 0 0 20px var(--accent-primary);
    }
}

/* --- Smart Quote Generator (Clean & Reliable) --- */
.quote-section {
    padding: 6rem 0;
    background: var(--bg-color);
    /* Match site bg */
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    background: #0f1219;
    /* Solid dark background */
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Header */
.quote-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 3rem;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

/* Steps */
.quote-step h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Selection Cards */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.selection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.selection-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.selection-card.selected {
    background: rgba(64, 196, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(64, 196, 255, 0.1);
}

.card-content i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.selection-card.selected .card-content i {
    color: var(--accent-primary);
}

.card-content span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-checkbox {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.2s;
    color: var(--text-primary);
}

.feature-checkbox:hover {
    border-color: var(--text-secondary);
}

.feature-checkbox:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(64, 196, 255, 0.05);
}

.feature-checkbox input {
    accent-color: var(--accent-primary);
    width: 18px;
    height: 18px;
}

/* Navigation */
.quote-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

/* Quote Result Styles (Clean) */
.result-content {
    background: transparent;
    padding: 0;
}

.estimate-box {
    background: rgba(64, 196, 255, 0.05);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-top: 0.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 0.2rem;
    display: inline-block;
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .quote-container {
        padding: 1.5rem;
    }
}

/* --- PROCESS PAGE STYLES --- */

.process-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.process-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    right: 10px;
    pointer-events: none;
    z-index: -1;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-details ul {
    list-style: none;
    padding: 0;
}

.step-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.step-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

.timeline-connector {
    width: 2px;
    height: 80px;
    /* Increased from 40px for better spacing */
    background: var(--card-border);
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .process-hero h1 {
        font-size: 2.2rem;
    }

    /* Slightly larger than 2rem for better presence */
}

/* --- ABOUT PAGE STYLES --- */

/* Profile Hero */
.profile-hero {
    padding: 120px 0 60px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-visual {
    text-align: center;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ed573;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 rgba(46, 213, 115, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
}

.profile-info h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.role-title {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-align: left;
}

.role-location {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-pill {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-pill:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Skills Grid */
.skills-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid var(--card-border);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: absolute;
    left: -2.6rem;
    /* Adjust to center on line */
    top: 5px;
    border: 4px solid var(--bg-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.timeline-content li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* CV Project Card */
.cv-project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.cv-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.project-role-badge {
    font-size: 0.8rem;
    background: rgba(64, 196, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.tech-stack-mini {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-stack-mini span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Education & Lang Grid */
.edu-lang-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.col-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}

.edu-item {
    margin-bottom: 2rem;
}

.edu-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.edu-item p {
    color: var(--text-secondary);
}

.lang-list {
    list-style: none;
}

.lang-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-level {
    color: var(--accent-secondary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .role-title {
        text-align: center;
    }

    .contact-links {
        justify-content: center;
    }

    .timeline {
        padding-left: 0;
        border-left: none;
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-dot {
        display: none;
    }

    .edu-lang-grid {
        grid-template-columns: 1fr;
    }
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        /* Match header height roughly */
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.98);
        display: flex;
        /* Force flex container */
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
        border-bottom: 1px solid var(--card-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease;
        z-index: 998;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.3rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .nav-links .btn {
        margin-left: 0 !important;
        /* Override inline style */
        display: inline-block;
        width: auto;
    }
}

/* Ensure Mobile Button is Top-Level */
.mobile-menu-btn {
    z-index: 1001;
    position: relative;
}

/* Optional: header solid when menu open */
header.menu-open {
    background: var(--bg-color);
}