:root {
    --bg-color: #05050f;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1;
    --accent-secondary: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* Background Blobs */
.blob {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    animation: float 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(5, 5, 15, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.greeting {
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-weight: 100;
    opacity: 0.9;
}

.taglineNote {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 40px;
    font-weight: 100;
    opacity: 0.7;
    max-width: 450px;
}

.typewriter {
    border-right: 3px solid var(--accent-secondary);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-secondary);
    }
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 10px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container {
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morph 8s ease-in-out infinite;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Sections Common */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-card ul {
    list-style: none;
    color: var(--text-secondary);
}

.skill-card li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}

.skill-card li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* Projects Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-card {
    display: flex;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card:nth-child(even) {
    flex-direction: row-reverse;
}

.project-img {
    flex: 1;
    min-height: 300px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Contact Section */
.contact-container {
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    text-align: center;
    padding: 8px 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 0;
    font-size: 0.85rem;
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .name {
        font-size: 3.5rem;
    }

    .description {
        margin: 0 auto 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .project-card,
    .project-card:nth-child(even) {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    /* Could add a hamburger menu for full implementation */
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

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

.timeline-card {
    position: relative;
    padding: 30px;
    margin-bottom: 30px;
    margin-left: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 35px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-primary);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-card:hover::before {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    background: linear-gradient(to right, var(--accent-primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    background: rgba(236, 72, 153, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.timeline-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .timeline-container::before {
        left: 15px;
    }

    .timeline-card {
        margin-left: 40px;
        padding: 20px;
    }

    .timeline-card::before {
        left: -31px;
    }
}