:root {
    --bg-dark: #09090b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    
    --accent-glow: rgba(120, 119, 198, 0.2);
    
    --gradient-faltapp: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-madots: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-concursai: linear-gradient(135deg, #10b981, #3b82f6);
    --gradient-zoomies: linear-gradient(135deg, #f43f5e, #f97316);
    --gradient-recapsule: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-beforetherain: linear-gradient(135deg, #0ea5e9, #6366f1);
    --gradient-zenith: linear-gradient(135deg, #8b5cf6, #ec4899);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Site Background Shader */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
    background-color: #000;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
}

.gradient-text {
    background: linear-gradient(to right, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(9, 9, 11, 0.7);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-subtitle strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Hero Stats */
.hero-stats {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    border-radius: 100px;
    width: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-number-wrapper {
    font-size: 3rem;
    font-weight: 800;
    color: #f59e0b; /* Golden Amber highlight */
    display: flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.stat-plus {
    font-size: 2.2rem;
}

.stat-label {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 180px;
    line-height: 1.3;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

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

.btn-secondary:hover {
    background: var(--card-hover);
}

/* Hero Background Effects */
.hero-glow {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Gradient Classes */
.gradient-faltapp { background: var(--gradient-faltapp); }
.gradient-madots { background: var(--gradient-madots); }
.gradient-concursai { background: var(--gradient-concursai); }
.gradient-zoomies { background: var(--gradient-zoomies); }
.gradient-recapsule { background: var(--gradient-recapsule); }
.gradient-beforetherain { background: var(--gradient-beforetherain); }
.gradient-zenith { background: var(--gradient-zenith); }

.project-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Highlighted Card (Faltapp) */
.project-card.highlight {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project-card.highlight {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        padding: 3rem;
    }
    
    .project-card.highlight .project-icon {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
        margin-bottom: 0;
        border-radius: 30px;
        flex-shrink: 0;
    }
}

.project-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.project-card.highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-card.highlight .project-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.skills-category:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.skills-category h3 {
    margin-bottom: 2rem;
    font-size: 1.4rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skills-category h3 i {
    color: #f59e0b; /* Amber highlight matching stats */
    font-size: 1.6rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
}

.author-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stars {
    color: #f59e0b;
    display: flex;
    gap: 0.15rem;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Experience Section */
.experience {
    padding: 6rem 0 10rem 0;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: var(--card-hover);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.exp-icon {
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-main);
    flex-shrink: 0;
}

.exp-content {
    display: flex;
    flex-direction: column;
}

.exp-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.exp-content h4 {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.exp-date {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.85rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .experience-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .exp-date {
        align-self: center;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.made-with i {
    color: #ef4444;
}

/* Animations via classes added by JS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    main {
        padding: 0 1.2rem;
    }

    .nav-content {
        padding: 1rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        border-radius: 20px;
        padding: 1.2rem;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 2rem;
    }

    .hero-stats .stat-number-wrapper {
        font-size: 2.5rem;
    }
    
    .hero-stats .stat-plus {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
    }

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

    .testimonial-card,
    .project-card,
    .experience-item,
    .skills-category {
        padding: 1.5rem;
    }
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    border: 1px solid var(--card-border);
}
