:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #8b5cf6;
    --accent-2: #3b82f6;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

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

ul {
    list-style: none;
}

/* Typography Utility */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary-outline {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-1);
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: var(--accent-1);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:hover:not(.btn-primary-outline) {
    color: var(--accent-1);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.subtitle {
    color: var(--accent-1);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.dynamic-text {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
}

.typing {
    color: var(--text-primary);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-1);
    animation: blink 1s infinite;
}

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

.hero-content .description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

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

.blob-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.blob {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.blob::after {
    content: '';
    position: absolute;
    inset: 10px;
    background: url('foto/foto.jpg') center/cover;
    border-radius: inherit;
    z-index: 1;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(10px);
}

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

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--accent-1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-1);
    background: rgba(139, 92, 246, 0.1);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

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

.project-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.placeholder-img1 {
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}
.placeholder-img2 {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}
.placeholder-img3 {
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.project-info {
    padding: 30px;
}

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

.project-tags span {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-1);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .section-padding { padding: 80px 5%; }
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-content { margin-bottom: 50px; }
    .hero-cta { justify-content: center; }
    .blob-wrapper { width: 300px; height: 300px; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        transition: 0.3s;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; }
    .title { font-size: 3rem; }
    .dynamic-text { font-size: 1.5rem; }
    .stats { flex-direction: column; gap: 20px; text-align: center; }
}
