
:root {
    --bg-main: #f8fafc; 
    --bg-white: #ffffff; 
    
    --text-primary: #111827; 
    --text-secondary: #4b5563; 
    --text-muted: #9ca3af;

    --accent-color: #6366f1; 
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.15);
    --gradient-hero: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
    --gradient-btn: linear-gradient(135deg, #a78bfa, #818cf8, #60a5fa);
    
    --border-subtle: #e5e7eb;
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0; 
}

.bg-white {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.p-lg {
    padding: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-outline-sm {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-outline-sm:hover {
    border-color: var(--text-primary);
    background: var(--bg-main);
}

.btn-icon-minimal {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.btn-icon-minimal:hover {
    color: var(--text-primary);
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-main);
    color: var(--text-secondary);
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-primary-nav {
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-primary-nav:hover {
    background: #000; 
    transform: translateY(-1px);
    color: white;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    width: 100%;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.name {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.summary {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-num {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.stat-card p {
    font-weight: 500;
    color: var(--text-secondary);
}

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

.skill-card {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
}

.skill-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.html-color { background: #fee2e2; color: #ef4444; }
.js-color { background: #fef3c7; color: #f59e0b; }
.react-color { background: #e0f2fe; color: #0ea5e9; }
.node-color { background: #dcfce7; color: #22c55e; }
.design-color { background: #f3e8ff; color: #a855f7; }
.tools-color { background: #f1f5f9; color: #64748b; }

.skill-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.skill-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

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

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex: 1;
}

.project-footer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: auto;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.contact-info-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.contact-info-text a,
.contact-info-text p {
    font-weight: 500;
    color: var(--text-primary);
}

.social-links-large {
    display: flex;
    gap: 1rem;
}

.social-card {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
}

.contact-form-container {
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-light);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
}

footer {
    background: var(--bg-white);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--accent-color);
}

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

.footer-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    color: var(--text-primary);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes morph {
    0% { 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%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cursor {
    animation: blink 1s infinite step-end;
}
@keyframes blink {
    50% { opacity: 0; }
}

@media screen and (max-width: 992px) {
    .name { font-size: 3.5rem; }
    .hero-container { flex-direction: column-reverse; text-align: center; gap: 2rem; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .image-wrapper { width: 350px; height: 350px; margin: 0 auto; }
    .hero-blob { width: 320px; height: 320px; }
    
    .grid-2-col,
    .contact-grid { grid-template-columns: 1fr; }
    
    .footer-top { flex-direction: column; gap: 2rem; text-align: center; }
}

@media screen and (max-width: 768px) {
    .section { padding: 5rem 0; }
    .name { font-size: 2.5rem; }
    .image-wrapper { width: 280px; height: 280px; }
    .hero-blob { width: 250px; height: 250px; }
    .floating-avatar { max-width: 200px; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-card { padding: 1.5rem; }
    
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .contact-item { flex-direction: column; text-align: center; gap: 0.5rem; }
    .social-links-large { justify-content: center; }

    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-subtle);
    }
    
    .nav-links.active { right: 0; }
    .nav-links li { margin: 1.2rem 0; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media screen and (max-width: 480px) {
    .name { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .summary { font-size: 1rem; }
    .hero-buttons { gap: 0.8rem; }
    .btn { width: 100%; } 
    
    .image-wrapper { width: 240px; height: 240px; }
    .hero-blob { width: 220px; height: 220px; }
    .floating-avatar { max-width: 160px; }
    
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .card.p-lg { padding: 1.5rem; }
}
