/* ===========================================
   TIMELINE PORTFOLIO STYLES
   =========================================== */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background-color: #000;
}

/* VIDEO BACKGROUND CONTAINER */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

/* VIDEO EFFECTS */
.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
}

.video-background video.active {
    opacity: 1;
}

.effect-enhanced-colors .video-background video {
    filter: brightness(0.7) contrast(1.3) saturate(1.4) hue-rotate(5deg);
}

.effect-vignette .video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

/* BIO SECTION */
.bio-section {
    background-color: #fafafa;
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bio-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: none;
    margin: 0;
}

.bio-text-container {
    flex: 1;
    max-width: 600px;
}

.bio-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
    text-align: left;
}

.bio-text strong {
    font-weight: 600;
    color: #000;
}

.bio-image-container {
    flex: 0 0 auto;
    max-width: 400px;
}

.bio-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
}

.ui-glassmorphism .hero-content {
    backdrop-filter: blur(15px) saturate(200%);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* TYPOGRAPHY */
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: white;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

/* SOCIAL LINKS */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* CONTENT SELECTOR */
.content-selector {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    animation: bounce 2s infinite;
}

.content-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.content-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
}

.content-btn.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.content-btn i {
    font-size: 1.1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===========================================
   TIMELINE SECTION
   =========================================== */

.timeline-section {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    padding-bottom: 3rem;
    color: #fff;
    letter-spacing: -1px;
}

/* TIMELINE FLOW */
.timeline-flow {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.4s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.25s; }
.timeline-item:nth-child(5) { animation-delay: 0.3s; }

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

/* TIMELINE DATE */
.timeline-date {
    width: 60px;
    margin-right: 2rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.timeline-date span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: horizontal-tb;
    letter-spacing: 0.5px;
}

/* TIMELINE NODE */
.timeline-node {
    position: relative;
    margin-right: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.node-ring {
    display: none;
}

.node-center {
    position: relative;
}

.company-logo {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* SVG logos - apply black/white filter */
.company-logo img[src$=".svg"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* JPG/PNG logos - show original colors with slight desaturation */
.company-logo img[src$=".png"],
.company-logo img[src$=".jpg"],
.company-logo img[src$=".jpeg"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(0.7) brightness(1.1) contrast(1.1);
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
}

/* Current and hover states for SVG logos */
.timeline-item.current .company-logo img[src$=".svg"] {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.timeline-item:hover .company-logo img[src$=".svg"] {
    opacity: 1;
}

/* Current and hover states for JPG/PNG logos */
.timeline-item.current .company-logo img[src$=".png"],
.timeline-item.current .company-logo img[src$=".jpg"],
.timeline-item.current .company-logo img[src$=".jpeg"] {
    opacity: 1;
    filter: saturate(1) brightness(1.2) contrast(1.2);
    background: rgba(255, 255, 255, 0.15);
}

.timeline-item:hover .company-logo img[src$=".png"],
.timeline-item:hover .company-logo img[src$=".jpg"],
.timeline-item:hover .company-logo img[src$=".jpeg"] {
    opacity: 1;
    filter: saturate(0.8) brightness(1.15) contrast(1.15);
    background: rgba(255, 255, 255, 0.12);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 60px;
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-50%);
}

.timeline-line.last {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%,
        transparent 100%);
}

/* TIMELINE CARD */
.timeline-card {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.timeline-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
}

.role-info {
    flex: 1;
}

.role-info h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 0.3rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.role-info h4 {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
}

.role-info .location {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-style: italic;
}

.expand-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.expand-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
}

.expand-toggle i {
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
}

.timeline-item[data-expanded="true"] .expand-toggle i {
    transform: rotate(180deg);
}

/* CARD CONTENT */
.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
}

.timeline-item[data-expanded="true"] .card-content {
    max-height: 800px;
    padding: 0 2rem 2rem 2rem;
}

.role-summary {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s;
}

.timeline-item[data-expanded="true"] .role-summary {
    opacity: 1;
    transform: translateY(0);
}

.role-summary p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.achievements {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
}

.timeline-item[data-expanded="true"] .achievements {
    opacity: 1;
    transform: translateY(0);
}

.achievements h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.achievements ul {
    list-style: none;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

.tech-stack {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s;
}

.timeline-item[data-expanded="true"] .tech-stack {
    opacity: 1;
    transform: translateY(0);
}

.tech-stack h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    display: inline-block;
    padding: 8px 16px;
    margin: 6px 8px 6px 0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.tech-tag.primary {
    /* Remove primary-specific styling - same as base */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.tech-tag.secondary {
    /* Remove secondary-specific styling - same as base */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.tech-tag:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.10) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* WEBSITE SHOWCASE */
.website-showcase {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s;
}

.timeline-item[data-expanded="true"] .website-showcase {
    opacity: 1;
    transform: translateY(0);
}

.website-showcase h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.website-preview {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.website-preview:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.website-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.preview-frame {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
}

.browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.browser-buttons {
    display: flex;
    gap: 8px;
}

.browser-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #28ca42;
}

.browser-address {
    flex: 1;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    margin: 0 20px;
}

.browser-address span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.website-content {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.website-loading {
    max-width: 400px;
}

.loading-text h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.loading-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
    width: 0%;
}

@keyframes loading {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
}

.website-preview:hover .preview-overlay {
    opacity: 1;
    pointer-events: all;
}

.visit-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    color: #333;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.visit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.visit-btn i {
    font-size: 1.1rem;
}

/* PRODUCT SECTION */
.product-section {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Portfolio Magazine Layout */
.portfolio-magazine {
    margin-bottom: 5rem;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    grid-auto-rows: 300px;
    margin-bottom: 3rem;
}

/* Single Feature Layout */
.magazine-grid.single-feature {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    grid-auto-rows: 350px;
}

/* Project Cards */
.project-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
}

.project-card:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

.project-card:nth-child(2) {
    grid-column: span 5;
    grid-row: span 2;
}

.project-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover .project-media {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.project-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    z-index: 2;
    transition: all 0.3s ease;
}

.project-label.startup {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(29, 78, 216, 0.9));
    color: white;
    border-color: rgba(59, 130, 246, 0.6);
}

.project-label.side-project {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(21, 128, 61, 0.9));
    color: white;
    border-color: rgba(34, 197, 94, 0.6);
}

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

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Additional Projects Section */
.additional-projects {
    margin-top: 5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.4s ease-out forwards;
    animation-delay: 0.6s;
}

.additional-projects h3 {
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.small-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.small-carousel-container {
    overflow: hidden;
    border-radius: 16px;
}

.small-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
    padding: 0 1rem;
}

.small-project-card {
    flex: 0 0 300px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    position: relative;
}

.small-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
}

.small-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.08);
}

.small-project-media-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.small-project-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.small-project-card:hover .small-project-media {
    transform: scale(1.05);
}

.small-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.small-project-label {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    z-index: 2;
    transition: all 0.3s ease;
}

.small-project-label.startup {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(29, 78, 216, 0.9));
    color: white;
    border-color: rgba(59, 130, 246, 0.6);
}

.small-project-label.side-project {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(21, 128, 61, 0.9));
    color: white;
    border-color: rgba(34, 197, 94, 0.6);
}

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

    /* Project Labels Tablet Styles */
    .project-label {
        top: 0.9rem;
        right: 0.9rem;
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }

    .small-project-label {
        top: 0.7rem;
        right: 0.7rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
    }

.small-project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.small-project-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.small-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.small-carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.small-carousel-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.small-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.small-carousel-btn:disabled:hover {
    transform: none;
}

.hidden {
    display: none;
}

/* ===========================================
   PRODUCT MODAL STYLES
   =========================================== */

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.show {
    opacity: 1;
    visibility: visible;
}

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

.modal-content {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 1000px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.15) 100%);
    color: #fff;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-media-section {
    position: relative;
}

.modal-media-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 300px;
    width: 100%;
}

.modal-media-container video,
.modal-media-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-media-container video.active,
.modal-media-container img.active {
    opacity: 1;
}

.media-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.media-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-nav-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.15) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.media-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.media-nav-btn:disabled:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.media-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

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

.media-indicator.active {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.media-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-description,
.modal-team,
.modal-tech-stack,
.modal-url {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.modal-description h3,
.modal-team h3,
.modal-tech-stack h3,
.modal-url h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.modal-description p,
.modal-team p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tech-tags .tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal-tech-tags .tech-tag:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-url-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.url-preview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.url-preview:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.url-preview i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.url-preview span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .content-selector {
        flex-direction: column;
        gap: 0.8rem;
        bottom: 1.5rem;
    }
    
    .content-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

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

    .timeline-item {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .timeline-date {
        width: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
        margin-top: 0;
        align-self: center;
    }

    .timeline-date span {
        font-size: 1rem;
        font-weight: 600;
    }

    .timeline-node {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }

    .company-logo {
        width: 64px;
        height: 48px;
    }

    .timeline-line {
        display: none;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .expand-toggle {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .timeline-item[data-expanded="true"] .card-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    /* Product Section Mobile Styles */
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        grid-auto-rows: 250px;
    }

    .magazine-grid.single-feature {
        max-width: 100%;
        grid-auto-rows: 250px;
    }

    .project-card:nth-child(1),
    .project-card:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

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

    .additional-projects h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .small-carousel-track {
        padding: 0 0.5rem;
    }

    .small-project-card {
        flex: 0 0 250px;
    }

    .small-project-info {
        padding: 1rem;
        transform: translateY(0);
    }

    .small-project-title {
        font-size: 1rem;
    }

    .small-project-subtitle {
        font-size: 0.8rem;
    }

    /* Project Labels Mobile Styles */
    .project-label {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .small-project-label {
        top: 0.6rem;
        right: 0.6rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
    }

    .small-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Modal Mobile Styles */
    .product-modal {
        padding: 1rem;
    }

    .modal-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        max-height: 70vh;
    }

    .modal-media-container video,
    .modal-media-container img {
        height: 250px;
    }

    .modal-description,
    .modal-team,
    .modal-tech-stack,
    .modal-url {
        padding: 1rem;
    }

    .modal-description h3,
    .modal-team h3,
    .modal-tech-stack h3,
    .modal-url h3 {
        font-size: 1rem;
    }

    .modal-description p {
        font-size: 0.9rem;
    }

    /* Media Navigation Mobile Styles */
    .media-navigation {
        margin-top: 0.8rem;
        padding: 0 0.25rem;
    }

    .media-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .media-indicator {
        width: 6px;
        height: 6px;
    }

    .media-indicators {
        gap: 0.4rem;
    }

    /* Bio section responsive */
    .bio-section {
        padding: 5rem 0;
    }
    
    .bio-container {
        padding: 0 1.5rem;
    }
    
    .bio-content {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    
    .bio-text-container {
        max-width: none;
    }
    
    .bio-text {
        font-size: 1.5rem;
        line-height: 1.5;
        text-align: left;
    }
    
    .bio-image-container {
        max-width: 300px;
        order: -1;
    }
    
    /* Timeline Milestone - Mobile */
    .milestone-content {
        padding: 0 1rem;
    }
    
    .milestone-text {
        font-size: 0.8rem;
    }
}

/* ===========================================
   TABLET RESPONSIVE DESIGN
   =========================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .magazine-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.5rem;
        grid-auto-rows: 250px;
    }

    .magazine-grid.single-feature {
        grid-template-columns: 1fr;
        max-width: 700px;
        grid-auto-rows: 300px;
    }

    .project-card:nth-child(1) {
        grid-column: span 5;
        grid-row: span 2;
    }

    .project-card:nth-child(2) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .small-project-card {
        flex: 0 0 280px;
    }

    .small-project-info {
        transform: translateY(0);
    }

    .product-container {
        max-width: 1000px;
    }

    /* Modal Tablet Styles */
    .product-modal {
        padding: 1.5rem;
    }

    .modal-content {
        max-width: 900px;
    }

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

    .modal-media-container video,
    .modal-media-container img {
        height: 280px;
    }
}

/* Timeline Milestone */
.timeline-milestone {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.milestone-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.milestone-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.milestone-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.milestone-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
} 