:root {
    --seasalt: #1a1d23;
    --antiflash-white: #242830;
    --platinum: #2d3139;
    --french-gray: #3d424d;
    --french-gray-2: #6c757dff;
    --slate-gray: #9ca3af;
    --outer-space: #d1d5db;
    --onyx: #e5e7eb;
    --eerie-black: #f3f4f6;
    --ark-primary: #60a5fa;
    --bs-primary-color: #a78bfa;
    --highlight: #ffe600;
    --bs-primary-color-rgb: 167, 139, 250;
}

[data-theme="light"] {
    --seasalt: #f8f9faff;
    --antiflash-white: #e9ecefff;
    --platinum: #dee2e6ff;
    --french-gray: #ced4daff;
    --french-gray-2: #adb5bdff;
    --slate-gray: #6c757dff;
    --outer-space: #495057ff;
    --onyx: #343a40ff;
    --eerie-black: #212529ff;
    --bs-primary-color: #5a4fcf;
    --ark-primary: #3b546b;
    --bs-primary-color-rgb: 90, 79, 207;
}

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

html {
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--antiflash-white);
    color: var(--eerie-black);
    line-height: 1.6;
}

a {
    color: var(--bs-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ark-primary);
    text-decoration: underline;
}

.navbar {
    position: sticky;
    top: 0;
    background: var(--platinum);
    padding: 1rem 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ark-primary);
}

.nav-logo {
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--outer-space);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover {
    color: var(--bs-primary-color);
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

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

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

.btn-secondary {
    background: #f8f9fa;
    color: #212529;
}

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

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--french-gray);
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: var(--bs-primary-color);
    transform: translateY(-2px);
}

[data-theme="light"] .theme-toggle .moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun {
    display: none;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--outer-space);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    background: var(--platinum);
    padding: 0;
    min-height: calc(100vh - 112px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    margin-bottom: 4rem;

}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--seasalt);
    border: 2px solid var(--bs-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(5px);
    border-color: var(--ark-primary);
}

.scroll-indicator .arrow {
    font-size: 1.8rem;
    color: var(--bs-primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bs-primary-color);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ark-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--outer-space);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--slate-gray);
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.location {
    font-size: 1.05rem;
    color: var(--slate-gray);
    margin-bottom: 1.5rem;
}

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

.hero-links a {
    color: var(--bs-primary-color);
    text-decoration: underline;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Intro Section */
.intro-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--platinum);

}

.intro-content-fullscreen {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 3rem;
    margin: 0 20px;
}

.intro-content-fullscreen .quote-mark {
    font-size: 5rem;
    float: left;
    color: #000;
    opacity: 0.15;
    line-height: 0;
    margin-bottom: 2rem;
    font-weight: bold;
}

.intro-content-fullscreen h2 {
    font-size: 2.5rem;
    color: var(--ark-primary);
    margin-bottom: 1.5rem;
}

.intro-content-fullscreen p {
    font-size: 1.1rem;
    color: var(--outer-space);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-content-fullscreen .cta {
    font-size: 1rem;
    color: var(--slate-gray);
    margin-bottom: 2rem;
}

.intro-content-fullscreen .cta a {
    color: var(--bs-primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.main-content {
    background: var(--antiflash-white);
}

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

.section {
    padding: 4rem 0;
}

h2 {
    font-size: 2.2rem;
    color: var(--ark-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.search-box {
    margin-bottom: 2rem;
    position: relative;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--slate-gray);
    font-size: 1.1rem;
    background: var(--seasalt);
    border-radius: 12px;
    border: 1px solid var(--platinum);
    display: none;
}

.no-results.show {
    display: block;
}

#search {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1.2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    border: 2px solid var(--platinum);
    border-radius: 8px;
    background-color: var(--seasalt);
    color: var(--eerie-black);
    transition: border-color 0.3s ease;
}

#search:focus {
    outline: none;
    border-color: var(--bs-primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--seasalt);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--platinum);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

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

.project-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(var(--bs-primary-color-rgb), 0.05);
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
    z-index: -1;
    transition: all 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(var(--bs-primary-color-rgb), 0.05);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    z-index: -1;
    transition: all 0.4s ease;
}

.project-card:hover::before {
    transform: scale(1.2);
    background: rgba(var(--bs-primary-color-rgb), 0.1);
}

.project-card:hover::after {
    transform: scale(1.2);
    background: rgba(var(--bs-primary-color-rgb), 0.1);
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--bs-primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-category {
    font-size: 0.8rem;
    color: var(--slate-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.project-card>p:not(.project-category) {
    font-size: 0.9rem;
    color: var(--outer-space);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 2rem !important;
    gap: 0.8rem;
}

.project-link {
    display: inline-block;
    color: var(--slate-gray);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--platinum);
    border-radius: 6px;
    transition: all 0.3;
}

.project-link:hover {
    color: var(--bs-primary-color);
    border-color: var(--bs-primary-color);
    background: var(--antiflash-white);
}

.client-box,
.contact-box {
    background: var(--seasalt);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--platinum);
}

.client-box p,
.contact-box p {
    font-size: 1.05rem;
    color: var(--outer-space);
    line-height: 1.8;
}

.timeline {
    background: var(--seasalt);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--platinum);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--platinum);
}

.timeline-item:last-child {
    border-bottom: none;
}

.year {
    color: var(--bs-primary-color);
    font-weight: 700;
    min-width: 80px;
    font-size: 1.1rem;
}

.desc {
    color: var(--outer-space);
    font-size: 1rem;
}

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

footer {
    background: var(--antiflash-white);
    color: var(--outer-space);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--platinum);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

.reviews-carousel {
    position: relative;
    height: 250px; /* Adjust as needed */
    overflow: hidden;
}

.review-slides {
    display: flex;
    height: 100%;
}

.review-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
    padding: 2rem;
    background: var(--seasalt);
    border-radius: 12px;
    border: 1px solid var(--platinum);
    text-align: center;
    display: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-msg {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--outer-space);
    line-height: 1.8;
}

.review-by {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bs-primary-color);
    margin-top: 1rem;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-top: -20px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}


.scroll-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 999; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--bs-primary-color); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    opacity: 0.7; /* Initial transparency */
    transition: opacity 0.3s ease-in-out; /* Smooth transition for opacity */
}

.scroll-to-top-btn:hover {
    opacity: 1; /* Full opacity on hover */
}
/* Responsive styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links a:not(.btn) {
        display: block;
    }

    .nav-links .btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--platinum);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--french-gray);
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0 5rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .scroll-indicator {
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-indicator .arrow {
        font-size: 1.5rem;
    }

    .intro-content-fullscreen {
        padding: 2rem;
        max-width: 90%;
    }

    .intro-content-fullscreen h2 {
        font-size: 1.8rem;
    }

    .intro-content-fullscreen p {
        font-size: 0.95rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .location {
        font-size: 0.95rem;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .hero-links {
        justify-content: center;
        gap: 1rem;
    }

    .hero-links a {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

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

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .year {
        min-width: auto;
    }

    .contact-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        font-size: 1rem;
    }

    .nav-logo {
        height: 60px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .scroll-indicator {
        width: 45px;
        height: 45px;
    }

    .scroll-indicator .arrow {
        font-size: 1.3rem;
    }
}