/* Gotham Rounded font - Local font files */
@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Light'),
         url('fonts/GothamRnd-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Light Italic'),
         url('fonts/GothamRnd-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Book'),
         url('fonts/GothamRnd-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Book Italic'),
         url('fonts/GothamRnd-BookItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Medium'),
         url('fonts/GothamRnd-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Medium Italic'),
         url('fonts/GothamRnd-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Bold'),
         url('fonts/GothamRnd-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: local('Gotham Rounded Bold Italic'),
         url('fonts/GothamRnd-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gotham Rounded', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #ffffff;
    cursor: url('images/cursor.svg') 12 12, auto;
}

* {
    cursor: url('images/cursor.svg') 12 12, auto;
}

/* Background pattern for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navbar Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
    gap: 0.4rem;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

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

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links li a.active {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

.nav-links li a:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.project-showcase {
    position: relative;
    min-height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-showcase.active {
    display: flex;
}

/* Project Background Image */
.project-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image, url('images/moodvault-bg.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    filter: blur(8px);
}

.project-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.2) 0%, rgba(26, 13, 46, 0.3) 50%, rgba(45, 27, 78, 0.2) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Content Overlay - Centered over phones */
.content-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    padding: 8rem 2rem 6rem 2rem;
}

.project-category {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.project-category h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.nav-arrow {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}

.project-title {
    text-align: center;
    margin-bottom: 1rem;
}

.project-title h1 {
    font-size: 8rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.project-keywords {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.project-keywords .separator {
    margin: 0 1rem;
    opacity: 0.6;
}

/* Project Description */
.project-description {
    max-width: 700px;
    margin: 0 auto 1rem;
    text-align: center;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Project Navigation Container with Glassmorphism */
.project-nav-container {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: inline-block;
    background: rgb(0 0 0 / 6%) !important;
}

.app-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.app-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.project-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s ease;
}

.app-icon:hover .project-logo {
    filter: none;
}

.app-icon.active {
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.app-icon.active .project-logo {
    filter: none;
}

/* Individual project background colors */
.app-icon[data-project="moodvault"].active {
    background: #773278;
}

.app-icon[data-project="torontocupcake"].active {
    background: #FFFFFF;
}

.app-icon[data-project="votesource"].active {
    background: #006C77;
}

.app-icon[data-project="futurefrontiers"].active {
    background: #50A3AB;
}

.app-icon[data-project="valenciagraphics"].active {
    background: #D00000;
}

.app-icon.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.glassmorphism {
    background: rgba(0, 0, 0, 0.096);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-project-btn {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-decoration: none;
    background: rgb(0 0 0 / 6%) !important;
}

.view-project-btn:hover {
    background: rgb(0 0 0 / 12%) !important;
}

/* Final Product CTA Button */
.final-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    margin: 2rem auto;
    max-width: 280px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.final-product-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.final-product-btn svg {
    flex-shrink: 0;
}

.view-project-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-logo a {
    display: inline-block;
    text-decoration: none;
}

.footer-logo .logo-img {
    height: 40px;
    width: auto;
    display: block;
}

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

.copyright {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
}

.footer-nav li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.footer-nav li a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.social-icon {
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: rgba(255, 255, 255, 0.8);
}

/* About Me Page */
main {
        background-image: url('images/main-bg.jpg');
        background-repeat: no-repeat;
        background-size:cover;
        }

.about-section {
    display: none;
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    position: relative;
    z-index: 1;
}

.about-section.active {
    display: block;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    margin-bottom: 4rem;
    border-radius: 20px;
    overflow: hidden;
}

.about-image {
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.about-role {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.about-text {
    color: #ffffff;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    font-weight: 700;
    opacity: 1;
}

/* Beyond Design Section */
.beyond-design {
    margin-top: 4rem;
}

.beyond-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.beyond-subtitle {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.hobby-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hobby-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 10;
}

.hobby-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.3s ease;
}

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

.hobby-info {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.hobby-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.hobby-info p {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.5;
}

/* Services Section - What Can I Do */
.services-section {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    position: relative;
    z-index: 1;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: left;
    color: #ffffff;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
}

.service-icon {
    display: flex;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ffffff;
    text-align: left;
    border-bottom: 1px solid white;
    padding: 0 0 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-list li {
    font-size: 0.9rem;
    color: #ffffff;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

/* Tabbed Navigation */
.tabbed-section {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* PDF Carousel */
.pdf-carousel {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    margin-top: 1.5rem;
}

.carousel-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.carousel-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicators {
    text-align: center;
    margin-top: 1rem;
}

.carousel-page-info {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Contact Me Section */
.contact-section {
    display: none;
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    position: relative;
    z-index: 1;
    background-image: url('images/main-bg.jpg');
    background-repeat: repeat;
    background-size: auto;
}

.contact-section.active {
    display: block;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.contact-info {
    padding: 2rem;
    border-radius: 20px;
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: #ffffff;
}

.contact-form {
    padding: 2rem;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Project Detail Section */
.project-detail-section {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.project-detail-section.active {
    display: block;
}

/* Project Hero */
.project-hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1400px;
    padding: 5rem 6rem;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 30px;
}

.project-hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.project-hero-title {
    font-size: 6rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-hero-keywords {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.project-hero-keywords .separator {
    margin: 0 1rem;
    opacity: 0.6;
}

.project-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.project-hero-team {
    margin-top: 2rem;
}

.project-hero-team h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-hero-team p {
    font-size: 0.95rem;
    color: #ffffff;
}

/* Project Detail Wrapper */
.project-detail-wrapper {
    display: flex;
    position: relative;
    background: var(--project-bg-color, #773278);
    min-height: 100vh;
}

.project-detail-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Sticky Sidebar */
.project-sidebar {
    position: sticky;
    top: 100px;
    left: 0;
    width: 120px;
    height: fit-content;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-sidebar.visible {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-project-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -10px;
}

.sidebar-project-btn {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -10px;
    position: relative;
}

.sidebar-project-btn:last-child {
    margin-bottom: 0;
}

.sidebar-project-btn img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s ease;
}

.sidebar-project-btn:hover img,
.sidebar-project-btn.active img {
    filter: none;
}

.sidebar-project-btn:hover {
    z-index: 10;
    transform: scale(1.2);
}

.sidebar-project-btn.active {
    border-color: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

/* Project-specific active background colors */
.sidebar-project-btn.active[href="moodvault.html"] {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.sidebar-project-btn.active[href="torontocupcake.html"] {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
}

.sidebar-project-btn.active[href="votesource.html"] {
    background: linear-gradient(135deg, #006C77 0%, #005560 100%);
}

.sidebar-project-btn.active[href="futurefrontiers.html"] {
    background: linear-gradient(135deg, #50A3AB 0%, #3E8A91 100%);
}

.sidebar-project-btn.active[href="valenciagraphics.html"] {
    background: linear-gradient(135deg, #FF3838 0%, #E63030 100%);
}

.sidebar-section-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    padding: 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.section-nav-link:hover {
    opacity: 1;
}

.section-nav-link.active {
    font-size: 1.5rem;
    opacity: 1;
    font-weight: 500;
    border-left-color: #ffffff;
}

/* Project Detail Content */
.project-detail-content {
    flex: 1;
    padding: 4rem 4rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Summary */
.project-summary {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.project-summary-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.project-summary p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    margin: 0;
}

.project-section {
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-subsection h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* PDF Viewer */
.pdf-viewer {
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
}

.pdf-viewer iframe {
    border-radius: 10px;
    border: none;
    display: block;
    max-height: 70vh;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-bottom: 1rem;
}

.pdf-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pdf-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.pdf-nav-btn:disabled {
    cursor: not-allowed;
}

.pdf-page-info {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.pdf-canvas-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1rem;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pdf-canvas {
    display: block;
}



/* PDF Accordion Toggle */
.pdf-accordion-toggle {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.pdf-accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.pdf-accordion-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.pdf-accordion-toggle .accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pdf-accordion-content {
    transition: all 0.3s ease;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    padding: 2rem;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #ffffff;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    border-radius: 6px;
}

/* Pain Points Styles */
.pain-points-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pain-point-item {
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.pain-point-image {
    flex: 0 0 300px;
    border-radius: 15px;
    overflow: hidden;
}

.pain-point-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.pain-point-text {
    flex: 1;
}

.pain-point-item h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pain-point-problem {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.pain-point-solution {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pain-point-solution strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pain-point-item {
        flex-direction: column;
    }

    .pain-point-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Figma Embed */
.figma-embed-container {
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.figma-embed-container iframe {
    border-radius: 22px;
    border: none;
    display: block;
}

/* Wireframes Grid */
.wireframes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: left;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.wireframe-item {
    border-radius: 15px;
    overflow: hidden;
    padding: 1rem;
    flex: 0 0 auto;
    max-width: 80%;
    align-self: flex-start;
}

.wireframe-item img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    display: block;
}

.wireframe-item p {
    max-width: 100%;
    word-wrap: break-word;
}



/* Design Comps Grid */
.design-comps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.comp-item {
    border-radius: 15px;
    overflow: hidden;
    padding: 1rem;
}

.comp-item img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    display: block;
}

/* Deliver Section */
.deliver-content {
    margin-top: 2rem;
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
}

.video-container iframe {
    border-radius: 22px;
    display: block;
}

/* Testing Results */
.testing-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    border-radius: 20px;
}

.testing-stat {
    text-align: center;
}

.testing-stat h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-title h1 {
        font-size: 6rem;
    }
}

@media (max-width: 968px) {
    .project-title h1 {
        font-size: 4.5rem;
    }

    .app-icon {
        width: 80px;
        height: 80px;
    }

    .project-logo {
        width: 50px;
        height: 50px;
    }

    .app-icons {
        gap: 1rem;
    }

    .project-nav-container {
        padding: 1rem 1.5rem;
    }

    /* Services Section for Tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: rgba(30, 15, 53, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .project-category h2 {
        font-size: 1.8rem;
    }

    .project-title h1 {
        font-size: 3.5rem;
    }

    .project-keywords {
        font-size: 0.95rem;
    }

    .project-description {
        max-width: 90%;
        padding: 0 1rem;
    }

    .project-description p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .view-project-btn {
        width: 100px;
        height: 100px;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .project-logo {
        width: 45px;
        height: 45px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-social {
        flex-direction: row;
        justify-content: center;
    }

    .footer-nav {
        gap: 2rem;
    }

    /* About Me Responsive */
    .about-content {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        height: 300px;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .beyond-title {
        font-size: 2rem;
    }

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

    /* Contact Me Responsive */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    /* Project Detail Responsive */
    .project-hero-title {
        font-size: 4rem;
    }

    .project-hero-content {
        padding: 3rem 2rem;
    }

    .project-hero-meta p {
        font-size: 0.9rem;
    }

    .wireframes-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .wireframes-grid::-webkit-scrollbar {
        display: none;
    }

    .wireframe-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 0.5rem;
        max-width: 250px;
    }

    .wireframe-item:last-child {
        margin-right: 1rem;
    }

    .design-comps-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .design-comps-grid::-webkit-scrollbar {
        display: none;
    }

    .comp-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 0.5rem;
        max-width: 250px;
    }

    .comp-item:last-child {
        margin-right: 1rem;
    }

    /* Toronto Cupcake specific - increase sizes and reduce border radius */
    body[style*="FFFFF"] .wireframe-item,
    body[style*="FFFFF"] .comp-item {
        max-width: 450px;
    }

    body[style*="FFFFF"] .wireframe-item,
    body[style*="FFFFF"] .comp-item {
        border-radius: 8px;
    }

    body[style*="FFFFF"] .wireframe-item img,
    body[style*="FFFFF"] .comp-item img {
        border-radius: 12px;
    }

    /* VoteSource specific - increase collage and wireframe sizes */
    body[style*="006C77"] .wireframes-grid > div {
        max-width: 100%;
    }

    body[style*="006C77"] .wireframe-item {
        max-width: 450px;
    }

    .testing-results {
        grid-template-columns: 1fr;
    }

    .project-detail-wrapper {
        flex-direction: column;
    }

    .project-sidebar {
        position: sticky;
        top: 80px;
        width: 100%;
        height: auto;
        padding: 1rem;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
    }

    .sidebar-project-switcher {
        flex-direction: row;
        gap: 0.5rem;
    }

    .sidebar-project-btn {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }

    .sidebar-project-btn img {
        width: 32px;
        height: 32px;
    }

    .sidebar-section-nav {
        display: none;
    }

    .project-detail-content {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .project-summary {
        padding: 1.5rem;
    }

    .project-summary-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subsection h3 {
        font-size: 1.3rem;
    }

    /* Services Section Responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-list {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links li a {
        font-size: 0.8rem;
    }

    .project-category h2 {
        font-size: 1.5rem;
    }

    .project-title h1 {
        font-size: 2.5rem;
    }

    .project-keywords {
        font-size: 0.85rem;
    }

    .project-keywords .separator {
        margin: 0 0.5rem;
    }

    .project-description {
        max-width: 95%;
        padding: 0 0.5rem;
    }

    .project-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .project-category {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .view-project-btn {
        width: 90px;
        height: 90px;
        margin-top: 1.5rem;
    }

    .view-project-btn span {
        font-size: 0.65rem;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .project-logo {
        width: 38px;
        height: 38px;
    }

    .project-nav-container {
        padding: 0.8rem 1rem;
        margin-top: 2rem;
    }

    .app-icons {
        gap: 0.8rem;
    }

    .content-overlay {
        padding: 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-logo .logo-img {
        height: 32px;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .footer-nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-nav li a {
        font-size: 0.85rem;
    }

    /* Project Detail Pages */
    .project-hero-title {
        font-size: 2.5rem;
    }

    .project-hero-content {
        padding: 2rem 1rem;
    }

    .project-detail-content {
        padding: 1.5rem 0.75rem;
    }

    .project-summary {
        padding: 1rem;
    }

    .project-summary-title {
        font-size: 1.3rem;
    }

    .project-summary p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .sidebar-project-btn {
        width: 45px;
        height: 45px;
    }

    .sidebar-project-btn img {
        width: 28px;
        height: 28px;
    }

    .wireframe-item {
        flex: 0 0 auto;
    }

    .comp-item {
        flex: 0 0 auto;
    }
}

@media (max-width: 360px) {
    .project-title h1 {
        font-size: 2rem;
    }

    .project-category h2 {
        font-size: 1.3rem;
    }

    .project-keywords {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .project-description p {
        font-size: 0.85rem;
    }

    .app-icon {
        width: 50px;
        height: 50px;
    }

    .project-logo {
        width: 32px;
        height: 32px;
    }

    .view-project-btn {
        width: 80px;
        height: 80px;
    }

    .view-project-btn span {
        font-size: 0.6rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links li a {
        font-size: 0.75rem;
    }

    .content-overlay {
        padding: 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-title {
        font-size: 2rem;
    }

    .service-title {
        font-size: 1.3rem;
    }
}
