@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --text: #fafafa;
    --text-muted: #a0a0a0;
    --accent: #646cff;
    --accent-hover: #535bf2;
    --bubble-color: #1a1a1a;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

* {
    cursor: none !important;
}

a, button, .btn, .contact-card, .skill-item, .nav-item {
    cursor: none !important;
}

/* Custom Cursor */
.cursor {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 2px solid var(--text);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(100, 108, 255, 0.6), 0 0 40px rgba(100, 108, 255, 0.3);
}

.cursor-follower {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s cubic-bezier(0.75, -0.5, 0.25, 1.5);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(100, 108, 255, 0.4);
}

/* Grain Effect */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 2.5rem 4rem;
    z-index: 100;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    animation: fadeInDown 1s ease forwards;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

/* Name Container */
.name-container {
    position: relative;
    margin: 0 auto 3rem;
    user-select: none;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1.5s ease forwards;
    margin: 0;
}

/* Tagline */
.tagline {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.tagline-line {
    font-size: 1.2rem;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.tagline-line:nth-child(1) {
    animation-delay: 0.3s;
}

.tagline-line:nth-child(2) {
    animation-delay: 0.5s;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.btn {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    border: 1.5px solid var(--text);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.btn:hover .btn-bg {
    transform: translateY(0);
}

.btn:hover .btn-text {
    color: var(--bg);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(100, 108, 255, 0.3);
}

.btn-primary {
    border-color: var(--accent);
}

.btn-primary .btn-bg {
    background: var(--accent);
}

.btn-secondary:hover .btn-text {
    color: var(--bg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.2rem;
        font-size: 0.65rem;
    }

    .hero {
        min-height: 100vh;
        padding: 0 1.2rem;
    }

    .hero-name {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .tagline {
        font-size: 0.85rem;
        padding: 0 0.5rem;
        margin-bottom: 3rem;
        line-height: 1.5;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 1rem;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.85rem 1.8rem;
        font-size: 0.85rem;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    * {
        cursor: auto !important;
    }

    .work-section,
    .about-section,
    .contact-section {
        padding: 2.5rem 1.2rem;
        overflow-x: hidden;
        width: 100%;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .work-content h2,
    .about-text h2,
    .contact-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .work-description,
    .contact-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.8rem;
        max-width: 100%;
    }

    .about-text p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .project-showcase {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-featured {
        padding: 1.5rem 1.2rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .project-info p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .project-tags {
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
        gap: 0.5rem;
    }

    .project-link {
        font-size: 0.85rem;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .skill-item {
        padding: 1.2rem 1rem;
    }

    .skill-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .skill-item p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .tech-stack {
        margin-top: 2.5rem;
    }

    .tech-stack h3 {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .tech-logos {
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    .tech-item {
        flex: 0 0 calc(25% - 1.2rem);
        min-width: 60px;
        gap: 0.5rem;
    }

    .tech-item svg {
        width: 30px;
        height: 30px;
    }

    .tech-item span {
        font-size: 0.65rem;
    }

    .process-section {
        margin-top: 2.5rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .process-section h3 {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .process-steps {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: calc(100% - 2.4rem);
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    .process-step {
        padding: 1rem;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }

    .step-number {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .process-step h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .process-step p {
        font-size: 0.8rem;
        line-height: 1.5;
        word-wrap: break-word;
    }

    .contact-methods {
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .contact-card {
        padding: 1.5rem 1.2rem;
        max-width: 320px;
    }

    .contact-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }

    .availability {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }

    .status-indicator {
        width: 8px;
        height: 8px;
    }

    .footer {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-content p,
    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-links {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }

    .scroll-indicator {
        font-size: 0.6rem;
        bottom: 2rem;
    }

    .scroll-line {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .name-text {
        font-size: 48px;
    }

    .nav {
        padding: 1.5rem 1.5rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Work Section */
.work-section {
    min-height: 100vh;
    padding: 8rem 4rem;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg);
}

.work-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.work-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.work-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 3rem;
}

.project-featured {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-featured:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(100, 108, 255, 0.3);
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(100, 108, 255, 0.1);
    border: 1px solid rgba(100, 108, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
    color: var(--accent-hover);
}

/* About Section */
.about-section {
    min-height: 100vh;
    padding: 8rem 4rem;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, #0f0f0f 100%);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-text {
    margin-bottom: 4rem;
}

.about-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(100, 108, 255, 0.2);
}

.skill-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.skill-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.skill-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tech Stack */
.tech-stack {
    margin-top: 5rem;
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tech-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex: 0 0 auto;
}

.tech-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.tech-item svg {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.tech-item:hover svg {
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Process Section */
.process-section {
    margin-top: 6rem;
}

.process-section h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    padding: 8rem 4rem;
    display: flex;
    align-items: center;
    background: var(--bg);
    position: relative;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.contact-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    justify-items: center;
}

.contact-card {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(100, 108, 255, 0.3);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(100, 108, 255, 0.1);
    border: 1px solid rgba(100, 108, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #00ff88;
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px #00ff88;
    }
}

/* Footer */
.footer {
    padding: 3rem 4rem;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}

::-moz-selection {
    background: var(--accent);
    color: var(--bg);
}