:root {
    /* --- Cyber Blue Palette --- */
    --primary: #3b82f6;
    /* Bright Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #60a5fa;
    /* Lighter Blue */

    /* Deep Space Backgrounds */
    --background: #020617;
    /* Slate 950 (Deepest) */
    --background-darker: #000000;
    /* Pure Black */
    --card-bg: rgba(15, 23, 42, 0.6);
    /* Slate 900 with opacity */
    --border: rgba(59, 130, 246, 0.15);
    /* Subtle Blue Border */

    /* Text */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    /* Spacing & Layout */
    --container-width: 1024px;
    --section-padding: 6rem 1rem;

    /* Effects */
    --radius: 16px;
    --pill-radius: 50px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(59, 130, 246, 0.15);
    /* Ambient blue glow */
    --backdrop: blur(16px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables - Softer/Dimmed */
body.light-mode {
    --background: #e2e8f0;
    /* Slate 200 - Softer gray background */
    --background-darker: #cbd5e1;
    /* Slate 300 */
    --card-bg: #f8fafc;
    /* Slate 50 - Off-white cards */
    --text-main: #1e293b;
    /* Slate 800 - Slightly softer black */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #cbd5e1;
    /* Slate 300 */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .logo {
    color: var(--text-main);
}

body.light-mode .back-to-top {
    color: white;
    /* Ensure arrow remains white on blue button */
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: var(--background);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    /* Hardcoded accent for now as var(--accent) might not be defined globally */
    z-index: 9999;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--primary);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1,
h2,
h3 {
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.accent {
    color: var(--primary);
}

.center {
    text-align: center;
}

.center p {
    margin-left: auto;
    margin-right: auto;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

/* --- Ambient Background Glow --- */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

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

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.bg-darker {
    background-color: transparent !important;
    /* Allow body glow to show through */
}

/* --- Card Glow Effects --- */
/* Base Project Card styles if not defined, add specific glowing hover */
.project-card,
.service-card,
.feature-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* The Glow Hover */
.project-card:hover,
.service-card:hover,
.feature-card:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
    /* Outer Blue GLow */
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
}

/* Inner Glow Highlight */
.project-card::after,
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    pointer-events: none;
}

.project-card:hover::after,
.service-card:hover::after {
    opacity: 1;
}

.btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

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

/* --- Navigation --- */
/* --- Floating Pill Navigation --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 340px;
    /* Wider */
    max-width: 90%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: var(--backdrop);
    -webkit-backdrop-filter: var(--backdrop);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--pill-radius);
    padding: 0.8rem 2.5rem;
    /* Larger padding */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), var(--glow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    /* More space between logo and menu */
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    /* Bigger logo */
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1rem;
    /* Bigger gap */
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Nav Items as Pills */
.nav-list li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-list li a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Active Pill Logic - To be handled by JS adding 'active' class to link */
.nav-list li a.active-link {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Nav Button Overrides */
.nav-list .btn {
    padding: 0.5rem 1.25rem;
    margin-left: 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

.hero-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Hero Visual (Code Block) */
.code-block-visual {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

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

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

code {
    font-family: 'Fira Code', monospace;
    color: #e2e8f0;
    display: block;
    line-height: 1.8;
}

.keyword {
    color: #c084fc;
}

/* Purple */
.var {
    color: #38bdf8;
}

/* Light Blue */
.string {
    color: #4ade80;
}

/* Green */

/* --- Services --- */
.section-header {
    margin-bottom: 4rem;
}

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

@media (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

@media (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    /* Blue glowing effect */
    border-color: var(--primary);
}

/* Grid Thumbnails */
.project-image {
    height: 240px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.project-preview-wrapper {
    width: 400%;
    /* Render at 4x size */
    height: 400%;
    transform: scale(0.25);
    /* Scale down to 1x to fit */
    transform-origin: 0 0;
    pointer-events: none;
    /* Disable interaction in thumbnail */
}

.project-thumbnail-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--background);
}

/* Gradients for placeholders (Backup / Loading) */
.img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.bg-project-1 {
    background: linear-gradient(135deg, #3b82f6, #0f172a);
}

.bg-project-2 {
    background: linear-gradient(135deg, #8b5cf6, #1e293b);
}

.bg-project-3 {
    background: linear-gradient(135deg, #10b981, #0f172a);
}

.bg-project-4 {
    background: linear-gradient(135deg, #ef4444, #1e293b);
}

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

.project-content {
    padding: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: var(--text-muted);
}

/* --- Contact --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact-info strong {
    color: var(--text-main);
    margin-right: 0.5rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* --- Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-100 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

/* --- Mobile --- */
@media (max-width: 768px) {

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
    }

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

    .mobile-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

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

    .footer-content {
        justify-content: center;
        text-align: center;
    }
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    width: 95%;
    max-width: 1200px;
    /* Larger modal for professional view */
    height: 90vh;
    /* Taller */
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 1024px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-image {
    flex: 3;
    /* Give more space to the website preview */
    background: #000;
    position: relative;
    overflow: hidden;
}

.modal-text {
    flex: 1;
    /* Sidebar for details */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    min-width: 320px;
}

.modal-text h3 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.modal-tags span {
    font-size: 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal Iframe */
.project-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    display: block;
}

/* --- Language Switcher --- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--text-main);
}

.sep {
    color: var(--border);
}

/* --- Particles Canvas --- */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Tech Marquee --- */
.marquee-container {
    background: var(--background-darker);
    padding: 1.5rem 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    position: relative;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
}

.marquee-content span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

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

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    /* Adjust based on padding/border */
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--background);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content .date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* --- Testimonials --- */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    /* Explicit card background */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
}

.testimonial-card {
    display: none;
    /* JS toggles this */
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

.testimonial-card p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.client-info strong {
    display: block;
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-controls button {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.testimonial-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.blog-image {
    height: 200px;
    background: #334;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.read-more {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* --- Form Validation --- */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #22c55e;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
}

/* --- Work Process Section --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--background);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step:hover .step-icon {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.process-step:hover h3 {
    color: var(--primary);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

/* Connecting line for desktop */
@media (min-width: 1024px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--border-color) 50%, transparent 50%);
        background-size: 10px 100%;
        z-index: 0;
        opacity: 0.5;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--background);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

/* --- Theme Toggle --- */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Calendly Button --- */
.btn-calendly {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 1rem;
}

.btn-calendly:hover {
    background-color: var(--primary);
    color: white;
    /* Always white on hover */
}

@media (max-width: 768px) {
    .btn-calendly {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}