/* Enhanced Portfolio Styles with Motion Graphics */

:root {
    --navy: #0B101B;
    --dark-navy: #0D0D1B;
    --space-cadet: #111622;
    --bright-blue: #007CF0;
    --aqua: #00A9E2;
    --cyan: #00FFFF;
    --warm-white: #F8F7F4;
    --ghost-white: #F8F7FF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy);
    color: var(--warm-white);
    overflow-x: hidden;
}

/* Navigation Enhancements */
#navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background-color: rgba(11, 16, 27, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 169, 226, 0.2);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--aqua), var(--bright-blue));
    transition: width 0.3s ease;
}

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

/* Hero Section Animations */
.hero-section {
    position: relative;
}

.floating-elements {
    animation: float 20s ease-in-out infinite;
}

.floating-bubble {
    animation: drift 25s ease-in-out infinite;
    transition: transform 0.5s ease-out;
}

.floating-bubble:nth-child(1) { animation-delay: 0s; animation-duration: 20s; }
.floating-bubble:nth-child(2) { animation-delay: -5s; animation-duration: 25s; }
.floating-bubble:nth-child(3) { animation-delay: -10s; animation-duration: 18s; }
.floating-bubble:nth-child(4) { animation-delay: -2s; animation-duration: 30s; }
.floating-bubble:nth-child(5) { animation-delay: -15s; animation-duration: 22s; }
.floating-bubble:nth-child(6) { animation-delay: -8s; animation-duration: 28s; }

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5vw, -5vh) rotate(15deg); }
    50% { transform: translate(-5vw, 5vh) rotate(-15deg); }
    75% { transform: translate(5vw, 10vh) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.cycling-text {
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
    transition: opacity 1s ease-in-out;
}


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

/* Enhanced Button Styles */
.primary-cta, .secondary-cta, .cta-button {
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.primary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.primary-cta:hover::before {
    left: 100%;
}

.primary-cta:active {
    transform: scale(0.98);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(0, 169, 226, 0.7);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Work Section Enhancements */
.work-section {
    position: relative;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
    cursor: pointer;
    height: 300px;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 169, 226, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 169, 226, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 16, 27, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    color: white;
}

.project-card:hover .project-title {
    transform: translateY(0);
}

.project-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--ghost-white);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.project-card:hover .project-description {
    transform: translateY(0);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.project-card:hover .project-tags {
    transform: translateY(0);
}

.project-tag {
    background: rgba(0, 169, 226, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 169, 226, 0.3);
}

/* Work Section Layout */
.work-section {
    background: #0D0D1B;
    min-height: 100vh;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-top: 64px;
    margin-bottom: 20px;
    position: relative;
}

.section-header:first-child {
    margin-top: 0;
}

.section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.section-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.section-dot.work { 
    background: #2563EB;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.section-dot.work::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent);
    animation: pulse 2s infinite;
}

.section-dot.startup { 
    background: #60A5FA;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.section-dot.startup::after {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent);
    animation: pulse 2s infinite 0.5s;
}

.section-dot.community { 
    background: #34D399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.section-dot.community::after {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.4), transparent);
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E5E7EB;
    margin: 0;
    font-family: 'Syne', sans-serif;
    position: relative;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, currentColor, transparent);
    transition: width 0.6s ease;
}

.section-header.visible h3::after {
    width: 100%;
}

.section-subhead {
    font-size: 0.875rem;
    color: #94A3B8;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 169, 226, 0.6), transparent);
    transition: left 0.8s ease;
}

.section-divider.animate::after {
    left: 100%;
}

/* Project Rows Layout */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-bottom: 80px;
    width: 100%;
}

/* Project Row - Free Form Layout */
.project-row {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 48px;
    align-items: center;
    min-height: 380px;
    margin-bottom: 32px;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.project-row.animate-in {
    opacity: 1;
}

.project-row .project-image-container {
    transform: translateX(-40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-row .project-content {
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.project-row.animate-in .project-image-container,
.project-row.animate-in .project-content {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .project-row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
        text-align: center;
    }
}

/* Project Image Column */
.project-image-container {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.25s ease;
}

.project-row:hover .project-image {
    filter: blur(2px);
}

/* Remove gradient overlays - not needed for free-form design */

/* Tag Overlay on Image - Bottom Edge with Staggered Animation */
.project-image-tags {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.2s ease;
}

.project-row:hover .project-image-tags {
    opacity: 1;
    transform: translateY(0);
}

.project-image-tag {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
    transform: translateY(12px);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category-specific tag colors */
.project-row[data-category="work"] .project-image-tag {
    background: rgba(37, 99, 235, 0.8);
    color: white;
}

.project-row[data-category="startup"] .project-image-tag {
    background: rgba(96, 165, 250, 0.8);
    color: #0D0D1B;
}

.project-row[data-category="community"] .project-image-tag {
    background: rgba(52, 211, 153, 0.8);
    color: #0D0D1B;
}

/* Staggered animation on hover */
.project-row:hover .project-image-tag {
    transform: translateY(0);
    opacity: 1;
}

.project-row:hover .project-image-tag:nth-child(1) {
    transition-delay: 0.1s;
}

.project-row:hover .project-image-tag:nth-child(2) {
    transition-delay: 0.2s;
}

.project-row:hover .project-image-tag:nth-child(3) {
    transition-delay: 0.3s;
}

/* Project Content Column */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #E5E7EB;
    margin: 0 0 20px 0;
    font-family: 'Syne', sans-serif;
    line-height: 1.2;
}

.project-oneliner {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    font-family: 'Inter', sans-serif;
}

/* Category-specific one-liner colors */
.project-row[data-category="work"] .project-oneliner {
    color: #2563EB;
}

.project-row[data-category="startup"] .project-oneliner {
    color: #60A5FA;
}

.project-row[data-category="community"] .project-oneliner {
    color: #34D399;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #64748B;
    font-family: 'Inter', sans-serif;
    margin: 0 0 18px 0;
}

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

.project-meta-separator {
    width: 4px;
    height: 4px;
    background: #64748B;
    border-radius: 50%;
}

.project-description {
    font-size: 1rem;
    color: #94A3B8;
    line-height: 1.65;
    margin: 0 0 32px 0;
    font-family: 'Inter', sans-serif;
    max-width: 65ch;
}

.project-cta {
    background: #2563EB;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin: 0;
}

.project-cta:hover {
    background: #5EEAD4;
    color: #0D0D1B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 234, 212, 0.6);
}

/* Remove category-specific CTA colors - using universal blue to aqua transition */

@media (max-width: 768px) {
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-oneliner {
        font-size: 1rem;
    }
    
    .project-meta {
        font-size: 0.8125rem;
    }
    
    .project-description {
        font-size: 0.9375rem;
    }
    
    .project-image-container {
        aspect-ratio: 16 / 9;
    }
}

/* Sticky Subnav */
.sticky-subnav {
    position: sticky;
    top: 80px;
    background: rgba(13, 13, 27, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    margin-bottom: 40px;
    z-index: 10;
}

.subnav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.subnav-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.subnav-link:hover {
    color: #E5E7EB;
    background: rgba(255, 255, 255, 0.05);
}

.subnav-link.active {
    color: #00A9E2;
    background: rgba(0, 169, 226, 0.15);
    box-shadow: 0 0 20px rgba(0, 169, 226, 0.2);
}

/* Active indicator animation */
.subnav-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #00A9E2, #5EEAD4);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.subnav-link.active + .subnav-indicator {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-header {
        margin-top: 48px;
    }
    
    .section-header h3 {
        font-size: 1.375rem;
    }
    
    .projects-grid {
        gap: 20px;
        margin-bottom: 56px;
    }
    
    .project-card {
        height: 260px;
    }
    
    .project-overlay {
        padding: 16px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.75rem;
    }
    
    .subnav-links {
        gap: 20px;
    }
    
    .subnav-link {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }
}

/* Section Spacing */
.work-section-content {
    margin-bottom: 80px;
}

.work-section-content:last-child {
    margin-bottom: 0;
}

/* About Section */
.about-section {
    position: relative;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--aqua), var(--bright-blue));
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-node {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--aqua);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px var(--navy);
}

.timeline-item:hover .timeline-node {
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--aqua);
}

.profile-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    background: linear-gradient(145deg, #1a202c, #2d3748);
    border: 1px solid rgba(0, 169, 226, 0.2);
}

.profile-image {
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 169, 226, 0.2);
}

.contact-card:nth-child(1) { animation-delay: 0.7s; }
.contact-card:nth-child(2) { animation-delay: 0.8s; }

/* Skills Section */
.skills-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.skill-bar {
    width: 0;
    animation: fillBar 1.5s ease-out 1.2s forwards;
}

@keyframes fillBar {
    to {
        width: var(--target-width, 0%);
    }
}

.skill-item:nth-child(1) .skill-bar { --target-width: 95%; animation-delay: 1.2s; }
.skill-item:nth-child(2) .skill-bar { --target-width: 90%; animation-delay: 1.4s; }
.skill-item:nth-child(3) .skill-bar { --target-width: 88%; animation-delay: 1.6s; }
.skill-item:nth-child(4) .skill-bar { --target-width: 85%; animation-delay: 1.8s; }

/* Footer Bubbles */
.footer-bubbles .bubble {
    background-color: var(--aqua);
    border-radius: 50%;
    opacity: 0.2;
    animation: drift 25s infinite linear;
}

@keyframes drift {
    from {
        transform: translateY(100px) scale(0);
    }
    50% {
        transform: translateY(-50px) translateX(var(--drift-x)) scale(1);
        opacity: 0.5;
    }
    to {
        transform: translateY(-200px) translateX(calc(var(--drift-x) * 2)) scale(0);
        opacity: 0;
    }
}

.input-bubble {
    background-color: var(--warm-white);
    color: var(--navy);
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.5s forwards;
    transition: all 0.3s ease;
}

.input-bubble:nth-child(1) { animation-delay: 0.1s; }
.input-bubble:nth-child(2) { animation-delay: 0.2s; }
.input-bubble:nth-child(3) { animation-delay: 0.3s; }

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-bubble:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 169, 226, 0.2);
}

.input-bubble:focus-within {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(0, 169, 226, 0.3);
}

.input-field {
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: var(--navy);
    font-size: 1rem;
}

.input-field::placeholder {
    color: #6b7280;
}

.submit-button {
    background: linear-gradient(45deg, var(--bright-blue), var(--aqua));
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.5s 0.4s forwards;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 169, 226, 0.4);
}

.submit-button:active {
    transform: scale(0.98);
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.social-link:hover {
    color: var(--aqua);
    transform: translateY(-2px);
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--aqua);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Particle Effects */
.particle {
    position: absolute;
    background: var(--aqua);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 3s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    animation: confetti-fall 1s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .project-card {
        height: 250px;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-node {
        left: -1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Case Study Modal */
.case-study-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: #0D0D1B;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-header {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 32px;
    padding: 32px;
    align-items: center;
}

.modal-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
}

.modal-header-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #E5E7EB;
    margin: 0;
    font-family: 'Syne', sans-serif;
    line-height: 1.2;
}

.modal-oneliner {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Category-specific modal colors */
.case-study-modal[data-category="work"] .modal-oneliner {
    color: #2563EB;
}

.case-study-modal[data-category="startup"] .modal-oneliner {
    color: #5EEAD4;
}

.case-study-modal[data-category="community"] .modal-oneliner {
    color: #065F46;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #94A3B8;
    font-family: 'Inter', sans-serif;
}

.modal-meta-separator {
    width: 4px;
    height: 4px;
    background: #94A3B8;
    border-radius: 50%;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #E5E7EB;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.modal-body {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #E5E7EB;
    margin: 0 0 12px 0;
    font-family: 'Syne', sans-serif;
}

.modal-section p {
    font-size: 1rem;
    color: #94A3B8;
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', sans-serif;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .modal-header {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
        text-align: center;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-oneliner {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 0 24px 24px;
        gap: 24px;
    }
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
