:root {
    --bg-dark: #f0fdf4;
    --text-main: #14532d;
    --text-muted: #166534;
    --primary: #22c55e;
    --secondary: #34d399;
    --accent-fin: #059669;
    --accent-ai: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Outfit', -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;
    position: relative;
    word-break: keep-all;
}

/* Background Animated Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-ai), transparent);
    top: -15%;
    left: -15%;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary), transparent);
    bottom: -15%;
    right: -10%;
    animation-delay: -12s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vw, 10vh) scale(1.1); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

/* Typography & Layout */
a {
    text-decoration: none;
    color: inherit;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary); /* Fallback color */
    font-weight: 800;
}
/* Ensure elements are visible even if JS fails to add 'appear' class after some time or on small screens */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
.highlight-fin { color: var(--accent-fin); font-weight: 600; }
.highlight-ai { color: var(--accent-ai); font-weight: 600; }

section {
    min-height: 100vh;
    padding: 6rem 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 10vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links li a {
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    opacity: 0.8;
}

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

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cursor {
    display: inline-block;
    width: 4px;
    background-color: var(--text-main);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.5;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

/* Code Card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-card {
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(8deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.card-header {
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.2rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.card-body {
    padding: 2.5rem;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #14532d;
    background: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
}

/* About Section */
.about {
    align-items: center;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4.5rem;
    max-width: 850px;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.about-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 3rem;
}

.badge {
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Skills Section */
.skills {
    text-align: center;
}

.skills .section-title {
    margin-bottom: 4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid var(--glass-border);
}

.skill-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.8rem;
}

.skill-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

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

/* Footer */
.footer {
    min-height: auto;
    padding: 5rem 10vw;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.footer h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.social-btn {
    padding: 0.9rem 2.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.copyright {
    font-size: 0.95rem;
    opacity: 0.5;
}

/* Animations (Scroll) */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.scroll-delay-1 { transition-delay: 0.15s; }
.scroll-delay-2 { transition-delay: 0.3s; }
.scroll-delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-content {
        margin-bottom: 4rem;
    }
    .main-card {
        transform: none;
    }
    .main-card:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .glass-container {
        padding: 2.5rem 1.5rem;
    }
}
