@font-face {
    font-family: 'Monaspace Neon';
    src: url('https://cdn.jsdelivr.net/npm/monaspace@1.0.0/fonts/webfonts/MonaspaceNeon-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Monaspace Neon';
    src: url('https://cdn.jsdelivr.net/npm/monaspace@1.0.0/fonts/webfonts/MonaspaceNeon-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0f172a;
    min-height: 100vh;
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoadFadeIn 1.2s ease-out 0.3s forwards;
}

@keyframes pageLoadFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #ec4899, #f43f5e);
    top: 50%;
    right: -100px;
    animation-delay: 5s;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    bottom: -150px;
    left: 50%;
    animation-delay: 10s;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    padding: 100px 20px 60px;
    position: relative;
    text-align: center;
}

.hero-intro {
    font-family: 'Monaspace Neon', 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Roboto Mono', 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 3.5em;
    color: #94a3b8;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
    font-weight: 600;
}

.typewriter {
    display: inline;
}

.cursor {
    animation: blink 1s infinite;
    color: #10b981;
    font-weight: bold;
    font-size: 1em;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-intro .prompt {
    color: #10b981;
    font-weight: bold;
}

.hero-title {
    font-size: 2.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5em;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.8;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-links a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Monaspace Neon', 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Roboto Mono', 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

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

.card-content {
    position: relative;
    z-index: 1;
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.6em;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-subtitle {
    color: #a78bfa;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.card-meta {
    color: #64748b;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 500;
}

.card-description {
    color: #cbd5e1;
    line-height: 1.8;
}

.card-description li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.card-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: bold;
}

.card-description p {
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: left;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.1);
}

.skill-icon {
    font-size: 3em;
    margin-bottom: 10px;
    display: block;
}

.skill-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95em;
}

.education-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin: 0 auto;
}

.education-card h3 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 10px;
}

.education-card .degree {
    font-size: 1.3em;
    color: #c4b5fd;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-card .year {
    color: #94a3b8;
    font-size: 1.1em;
}

footer {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

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

@media (max-width: 768px) {
    .hero-intro {
        font-size: 2.2em; /* Slightly smaller to fit on one line */
        white-space: nowrap; /* Prevent line breaks */
    }

    .hero-title {
        font-size: 1.8em; /* Make this smaller on mobile */
        white-space: normal; /* Allow line breaks */
        line-height: 1.2; /* Tighter line spacing */
    }

    .section-title {
        font-size: 2em;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-intro {
        font-size: 1.8em; /* Even smaller for very small screens */
        white-space: nowrap;
    }

    .hero-title {
        font-size: 1.5em; /* Slightly larger since we have 2 lines */
        white-space: normal;
        line-height: 1.2;
    }
}