/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #ff6b6b;
    --accent-hover: #ff5252;
    --border: #2a2a2a;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

* {
    cursor: none !important;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

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

.nav-resume-btn {
    padding: 10px 20px;
    background: #ff4444;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-resume-btn:hover {
    background: #ff2222;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    top: 50%;
    right: 30%;
    animation-delay: -7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient-3);
    top: 70%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Expertise Bar */
.expertise-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    padding: 24px 0;
    overflow: hidden;
}

.expertise-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.expertise-content::-webkit-scrollbar {
    display: none;
}

.expertise-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.expertise-separator {
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
}

.expertise-tags {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.expertise-tag {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.expertise-tag.active {
    color: var(--text-primary);
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 64px;
    color: var(--text-primary);
}

.section-title-spacing {
    margin-top: 120px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-card);
}

.project-image-video {
    background: #000;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-image-gallery {
    position: relative;
    background: #000;
}

.image-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.gallery-indicator.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.project-placeholder {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.project-content {
    padding: 32px;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.projects-grid-small {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card-small {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.project-card-small:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.project-title-small {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-description-small {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Patents Section */
.patents {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.patents-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.patent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.patent-card:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.patent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.patent-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.patent-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patent-status.published {
    color: var(--accent);
    background: rgba(255, 107, 107, 0.1);
}

.patent-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.patent-number {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.patent-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Experience Section */
.experience {
    padding: 120px 0;
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--border);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-period {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-company {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.timeline-highlights {
    list-style: none;
    padding: 0;
}

.timeline-highlights li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.timeline-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Certifications Section */
.certifications {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.cert-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.cert-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.cert-org {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Achievements Section */
.achievements {
    padding: 120px 0;
    background: var(--bg-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-top: 1px solid var(--border);
}

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

.contact-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.contact-title-accent {
    color: var(--accent);
}

.contact-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-item:hover .contact-value {
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 13px;
    }

    .nav-resume-btn {
        margin-left: 0;
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .expertise-content {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 16px;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .expertise-label {
        font-size: 11px;
    }

    .expertise-separator {
        font-size: 16px;
    }

    .expertise-tags {
        gap: 12px;
    }

    .expertise-tag {
        font-size: 13px;
    }

    .contact-item {
        padding: 20px;
    }

    .contact-value {
        font-size: 16px;
    }

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

    .timeline {
        padding-left: 24px;
    }

    .timeline-marker {
        left: -20px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .section-title {
        font-size: 40px;
    }

    .contact-title {
        font-size: 40px;
    }
}

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

    .nav-links {
        gap: 16px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
    }

    .project-content,
    .patent-card,
    .timeline-content {
        padding: 24px;
    }

    .expertise-bar {
        padding: 12px 0;
    }

    .expertise-content {
        padding: 0 12px;
        gap: 8px;
    }

    .expertise-label {
        font-size: 10px;
    }

    .expertise-separator {
        font-size: 14px;
    }

    .expertise-tags {
        gap: 10px;
    }

    .expertise-tag {
        font-size: 12px;
    }

    .contact-item {
        padding: 16px;
    }

    .contact-value {
        font-size: 14px;
        line-height: 1.5;
        word-break: break-all;
    }
}

