@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
    --color-bg: #0a0a0a;
    --color-bg-dark: #05050a;
    --color-primary: #a855f7;
    --color-secondary: #ec4899;
    --color-tertiary: #06b6d4;
    --color-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    color: var(--color-white);
    background: var(--color-bg);
    min-height: 100vh;
}

@media (min-width: 769px) {
    body, 
    body *,
    a, 
    button, 
    .project-card, 
    .hero-link, 
    .nav-link, 
    .back-btn, 
    .contact-card,
    .modal-close,
    [role="button"], 
    input, 
    select, 
    textarea, 
    [onclick],
    .footer-link,
    .menu-btn {
        cursor: none !important;
    }
    
    .cursor {
        width: 8px;
        height: 8px;
        background: var(--color-primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s linear, background-color 0.15s ease;
        will-change: transform;
    }
    
    .cursor-follower {
        width: 40px;
        height: 40px;
        border: 2px solid rgba(168, 85, 247, 0.5);
        background-color: rgba(168, 85, 247, 0.05);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.1s linear, border-color 0.15s ease, background-color 0.15s ease;
        will-change: transform;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.8rem 3rem;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text {
    background: linear-gradient(135deg, #fff, var(--color-primary), var(--color-secondary), var(--color-tertiary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-size: 300% 200%;
    animation: gradientShift 5s ease infinite;
}

.logo-dot {
    color: var(--color-primary);
    font-size: 1.5rem;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    padding: 0 2rem;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.hero-badge:hover {
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #fff, var(--color-primary), var(--color-secondary), var(--color-tertiary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.4rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: white;
}

.hero-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* Projects Section */
.projects {
    padding: 80px 2rem 120px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-dark) 100%);
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 0 auto;
}

.projects-grid {
    max-width: 700px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    background: rgba(20, 20, 30, 0.6);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card:hover {
    background: rgba(30, 30, 40, 0.8);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.project-visual {
    flex-shrink: 0;
    width: 400px;
    background: linear-gradient(135deg, #1a1a2a, #0f0f1a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-details {
    flex: 1;
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

.project-category {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    color: var(--color-primary);
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.project-tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-tech-stack span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.project-card:hover .project-tech-stack span {
    background: rgba(168, 85, 247, 0.1);
    color: rgba(168, 85, 247, 0.8);
}

.project-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: gap 0.2s ease;
}

.project-card:hover .project-action {
    gap: 0.75rem;
}

.project-card:hover .action-arrow {
    transform: translateX(3px);
}

.action-arrow {
    transition: transform 0.2s ease;
}

.footer {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #000000 100%);
    padding: 50px 3rem 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    text-align: left;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--color-primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-align: right;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
}

.project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #0a0a0a;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 32px 28px;
    transform: scale(0.98);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: white;
}

.modal-content {
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
}

.contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.contact-card:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-username {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-family: monospace;
}

.contact-arrow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.contact-card:hover .contact-arrow {
    transform: translateX(5px);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .header.scrolled {
        padding: 0.7rem 1.5rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-dot {
        font-size: 1.1rem;
    }
    
    .nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-links {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-link {
        width: 200px;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .projects {
        padding: 60px 1rem 80px;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-visual {
        width: 100%;
        height: 160px;
    }
    
    .project-details {
        padding: 1.25rem;
    }
    
    .project-name {
        font-size: 1.25rem;
    }
    
    .footer {
        padding: 40px 1.5rem 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-left {
        text-align: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    .modal-container {
        padding: 24px 20px;
        width: 92%;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .contact-card {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .contact-icon {
        font-size: 24px;
        width: 44px;
        height: 44px;
    }
    
    .contact-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .project-name {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}