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

:root {
    --primary-color: #fff;
    --secondary-color: #000;
    --accent-color: #fff;
    --text-color: #fff;
    --bg-color: #000;
    --section-padding: 80px;
    --gray-bg: #111;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

/* Editable content styles */
.editable {
    position: relative;
    transition: all 0.3s ease;
    outline: none;
}

.edit-mode .editable {
    padding: 4px 8px;
    border-radius: 4px;
    min-height: 1.5em;
}

.edit-mode .editable:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(100, 200, 255, 0.3);
    cursor: text;
}

.edit-mode .editable:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(100, 200, 255, 0.6);
}

.editable.empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Edit toggle button */
.edit-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.edit-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.edit-toggle.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* Save notification */
.save-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.save-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Fusion 360 Viewer Section */
.fusion-viewer-section {
    padding: var(--section-padding) 20px;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

.syringe-renders-section,
.arduino-code-section {
    padding: 10px 20px !important;
    margin: 38px 0 !important;
    min-height: auto !important;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

.fusion-container {
    margin-top: 30px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.fusion-placeholder {
    width: 100%;
    height: 600px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    padding: 40px;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.5);
    margin: 20px 0;
    font-size: 16px;
}

.embed-input-container {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 30px auto 0;
}

.fusion-embed-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
}

.fusion-embed-input:focus {
    outline: none;
    border-color: rgba(100, 200, 255, 0.6);
    background: rgba(0, 0, 0, 0.7);
}

.load-fusion-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-fusion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.fusion-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-top: 10px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 1rem;
}

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

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-link:hover {
    background: var(--gray-bg);
    color: var(--accent-color);
    padding-left: 2rem;
    opacity: 1;
}

/* Arrow indicator for dropdown */
.nav-dropdown > .nav-link::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Slide Section Base */
.slide-section {
    min-height: 100vh;
    padding: var(--section-padding) 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    animation: slideInRight 1s ease;
    letter-spacing: 0.1em;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Table of Contents Section */
.toc-section {
    background: var(--gray-bg);
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.toc-item {
    background: var(--bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

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

.toc-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-color);
    opacity: 0.15;
}

.toc-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc-item p {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.6;
    font-weight: 300;
}

/* Slideshow Section */
.slideshow-section {
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.slideshow-section:nth-of-type(even) {
    background: var(--gray-bg);
}

.slideshow-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.slideshow-header {
    text-align: center;
    margin-bottom: 2rem;
}

.slideshow-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slideshow-subtitle {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.6;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin: 0;
}

.slide-counter {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* Slideshow Wrapper */
.slideshow-wrapper {
    position: relative;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Slides Container */
.slides-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    padding: 4rem;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Slide Text Content */
.slide-text-content {
    margin-bottom: 2rem;
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.slide-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Slide Images */
.slide-images {
    width: 100%;
}

.images-single .slide-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.slide-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.slide-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Full Slide Images */
.slide-image-full {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000;
}

.slide-image-full img {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    opacity: 0;
    z-index: 10;
}

.slideshow-wrapper:hover .slide-nav {
    opacity: 1;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-50%);
}

.slide-nav-prev {
    left: 30px;
}

.slide-nav-next {
    right: 30px;
}

.slide-nav svg {
    color: var(--primary-color);
    opacity: 0.8;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

.indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 24px;
    border-radius: 0;
}

/* About Section */
.about-section {
    background: var(--gray-bg);
    color: var(--text-color);
    padding: var(--section-padding) 2rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.9;
}

.about-text p:first-child {
    font-size: 1.1rem;
    font-weight: 400;
}

/* CV Section */
.cv-section {
    background: var(--bg-color);
    color: var(--text-color);
    padding: var(--section-padding) 2rem;
}

.cv-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.cv-section h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cv-item {
    margin-bottom: 2.5rem;
}

.cv-item h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cv-date {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.cv-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

.cv-skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.skill-category p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.cv-download {
    margin-top: 3rem;
    text-align: center;
}

.cv-download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.cv-download-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.contact-section .section-title {
    color: white;
}

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

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-details {
    background: transparent;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-details p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Contact info in hero */
.contact-info {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* Active nav link */
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Nav toggle animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer */
.footer {
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-color);
        margin: 0;
        padding: 0;
    }
    
    .dropdown-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-dropdown > .nav-link::after {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .slide-section {
        padding: 40px 1rem;
    }
    
    .slides-container {
        min-height: 400px;
        height: 60vh;
    }
    
    .slide {
        padding: 2rem;
    }
    
    .slide-nav {
        width: 45px;
        height: 45px;
    }
    
    .slide-nav-prev {
        left: 10px;
    }
    
    .slide-nav-next {
        right: 10px;
    }
    
    .slide-indicators {
        bottom: 20px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-content {
    position: relative;
    width: 95%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-slide {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.fullscreen-close::before,
.fullscreen-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
}

.fullscreen-close::before {
    transform: rotate(45deg);
}

.fullscreen-close::after {
    transform: rotate(-45deg);
}

/* Fullscreen navigation */
.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.fullscreen-prev {
    left: 30px;
}

.fullscreen-next {
    right: 30px;
}

.fullscreen-nav svg {
    color: white;
}

/* Slide click cursor */
.slide-image-full {
    cursor: zoom-in;
}

/* Slide text overlay from JSON */
.slide-text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    display: none; /* Hidden by default - you can change this */
}

.slide-json-text {
    color: white;
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.6;
}

/* Show text overlay on hover */
.slide:hover .slide-text-overlay {
    display: block;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Multi-page styles */
.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.back-button {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.back-button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-5px);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: #ffffff;
}

.project-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.project-thumbnail {
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.project-tech {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 24px;
    transition: transform 0.3s;
}

.project-card:hover .project-arrow {
    transform: translateX(5px);
}

/* Project page styles */
.project-header {
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.project-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
}

.project-navigation {
    padding: 40px 0;
}

.project-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.prev-project, .next-project {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    max-width: 45%;
}

.prev-project:hover, .next-project:hover {
    background: rgba(255,255,255,0.2);
    border-color: #ffffff;
}

/* Home page specific */
.quick-about {
    text-align: center;
    padding: 60px 0;
}

.learn-more-btn {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #0d1117;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
    transition: all 0.3s;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.contact-cta {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(200,200,200,0.05) 100%);
}

.cta-button {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #0d1117;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.4);
}

/* About page */
.about-page .about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

.about-page .about-image img {
    width: 100%;
    border-radius: 12px;
}

.about-page .about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* Contact page */
.contact-page .contact-content {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.contact-page .contact-details {
    margin-top: 40px;
}

.contact-page .contact-link {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-page .contact-link:hover {
    color: #e0e0e0;
}

/* Thumbnail drag and drop styles */
.project-thumbnail {
    position: relative;
}

.thumbnail-drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
}

.edit-mode .project-thumbnail:hover .thumbnail-drop-zone {
    display: flex;
    cursor: pointer;
}

.thumbnail-drop-zone.drag-over {
    display: flex !important;
    background: rgba(255,255,255,0.1);
    border: 2px dashed white;
}

.thumbnail-drop-zone.upload-success {
    display: flex !important;
    background: rgba(46,160,67,0.9);
}

.thumbnail-drop-zone.upload-success .drop-message p {
    content: "✓ Updated!";
}

.drop-message {
    text-align: center;
    color: white;
    pointer-events: none;
}

.drop-message svg {
    margin-bottom: 10px;
    opacity: 0.8;
}

.drop-message p {
    font-size: 14px;
    margin: 0;
}

.edit-mode .project-card {
    transition: all 0.3s;
}

.edit-mode .project-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.edit-mode .project-info,
.edit-mode .project-arrow {
    pointer-events: auto;
    cursor: pointer;
}

.edit-mode .project-thumbnail {
    cursor: pointer;
}

/* Success feedback */
.thumbnail-drop-zone.upload-success .drop-message::after {
    content: "✓ Thumbnail Updated!";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.thumbnail-drop-zone.upload-success .drop-message svg,
.thumbnail-drop-zone.upload-success .drop-message p {
    display: none;
}

/* Safari-specific fixes for drag and drop */
@supports (-webkit-appearance: none) {
    .thumbnail-drop-zone {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .edit-mode .project-thumbnail {
        -webkit-user-select: none;
        user-select: none;
    }
    
    .edit-mode .project-card {
        -webkit-touch-callout: none;
    }
    
    /* Fix for Safari hover issues */
    @media (hover: hover) {
        .edit-mode .project-thumbnail:hover .thumbnail-drop-zone {
            display: flex;
        }
    }
    
    /* Touch device support for Safari iOS */
    @media (hover: none) {
        .edit-mode .project-thumbnail .thumbnail-drop-zone {
            display: none !important;
        }
        
        .edit-mode .project-thumbnail::after {
            content: "Tap to update";
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            pointer-events: none;
        }
    }
}

/* Additional Safari fixes */
.project-thumbnail img {
    -webkit-user-drag: none;
    user-drag: none;
}

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

.vertical-slide {
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.vertical-slide:nth-child(1) { animation-delay: 0.1s; }
.vertical-slide:nth-child(2) { animation-delay: 0.2s; }
.vertical-slide:nth-child(3) { animation-delay: 0.3s; }
.vertical-slide:nth-child(4) { animation-delay: 0.4s; }
.vertical-slide:nth-child(5) { animation-delay: 0.5s; }
.vertical-slide:nth-child(6) { animation-delay: 0.6s; }
.vertical-slide:nth-child(7) { animation-delay: 0.7s; }
.vertical-slide:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-number-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.slide-image-vertical {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-image-vertical:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.slide-image-vertical img {
    width: 100%;
    height: auto;
    display: block;
}

.slideshow-section.vertical-slides {
    padding: 4rem 0;
    min-height: auto;
}

/* Responsive adjustments for vertical slides */
@media (max-width: 768px) {
    .vertical-slides .vertical-slides-container {
        padding: 1rem;
    }
    
    .vertical-slide {
        margin-bottom: 2rem;
    }
    
    .slide-image-vertical {
        border-radius: 4px;
    }
}
