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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, #0a0a0a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

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


/* Navigation */
nav {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    cursor: pointer;
    outline: none;
}

.logo:focus {
    outline: 2px solid #667eea;
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
    outline: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:focus {
    outline: 2px solid #667eea;
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    font-size: 1.1rem;
    color: #9b9b9b;
    margin-bottom: 1rem;
    font-weight: 400;
}

.name {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 2rem;
    padding-bottom: 0.1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.tagline-container {
    margin-bottom: 2rem;
}

.tagline-prefix {
    font-size: 2.5rem;
    font-weight: 300;
    color: #e0e0e0;
    display: inline;
}

.tagline-animated {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    position: relative;
}

.tagline-animated::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #667eea;
    animation: blink 1s infinite;
}

.description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-button:focus {
    outline: 3px solid #667eea;
    outline-offset: 4px;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    min-height: 100vh;
    background: linear-gradient(to bottom, #0a0a0a 0%, #1a1a2e 100%);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #9b9b9b;
    max-width: 600px;
}

/* Projects List - Vertical Layout */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 3rem;
}

.project-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.project-item:hover::before {
    opacity: 1;
}

.project-content {
    max-width: 900px;
}

.project-item-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-intro {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.project-details {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-features-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 1rem 0;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.project-features li {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
    padding-left: 0.5rem;
}

.project-features li strong {
    color: #e0e0e0;
    font-weight: 600;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #9b9bff;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.project-action-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
}

.project-action-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive for Projects */
@media (max-width: 768px) {
    .project-item {
        padding: 2rem;
    }

    .project-item-title {
        font-size: 1.5rem;
    }

    .project-intro {
        font-size: 1rem;
    }

    .project-details {
        font-size: 0.95rem;
    }

    .project-features-title {
        font-size: 1.1rem;
    }

    .project-features li {
        font-size: 0.95rem;
    }
}

/* Loading and error messages */
.loading-message,
.no-projects-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.loading-message p,
.no-projects-message p {
    margin: 0;
}

/* Floating particles */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 80%; top: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 60%; top: 60%; animation-delay: 4s; }
.particle:nth-child(4) { left: 30%; top: 80%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; top: 70%; animation-delay: 8s; }

.hidden {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
    }
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .name {
        font-size: 3rem;
    }

    .tagline-prefix,
    .tagline-animated {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1rem;
    }

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

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

/* Footer Styles - Compact Version with Matching Background */
.portfolio-footer {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6) 0%, rgba(26, 26, 46, 0.8) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.15);
    padding: 1rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-text {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin: 0 0 0.25rem 0;
    font-weight: 400;
}

.footer-subtitle {
    font-size: 0.75rem;
    color: #808080;
    margin: 0;
    font-weight: 300;
}

.footer-text,
.footer-subtitle {
    font-family: 'Nunito Sans', sans-serif;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .portfolio-footer {
        padding: 0.75rem 0;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .footer-subtitle {
        font-size: 0.7rem;
    }
}