:root {
    --primary: #2D3436;
    --accent: #10B981; /* Emerald */
    --accent-dark: #059669;
    --text-main: #1A1A1A;
    --text-muted: #636E72;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --glass: rgba(255, 255, 255, 0.8);
    --border: #E2E8F0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 8rem 0;
}

.bg-light { background-color: var(--bg-light); }

.grid { display: grid; gap: 4rem; align-items: center; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main) !important;
}

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

/* Hero Section */
.hero { padding-top: 10rem; padding-bottom: 2rem; }
.hero-header-flex {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.avatar-container {
    flex-shrink: 0;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 40px;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    border: 4px solid white;
    background: white;
    transition: var(--transition);
}

.hero-avatar:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.2);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.highlight { color: var(--accent); }

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; }
.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Image & Cards */
.hero-image { position: relative; }
.image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.card-1 { top: 10%; right: -5%; animation-delay: 0s; }
.card-2 { bottom: 15%; left: -10%; animation-delay: 2s; }

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

/* Expertise */
#expertise { padding-top: 2rem; }
.section-header { margin-bottom: 3rem; }
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.expertise-card {
    padding: 3rem;
    background: white;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.card-icon {
    margin-bottom: 2rem;
    color: var(--accent);
}

.card-icon i { width: 40px; height: 40px; }

/* Featured Project */
.featured-project { align-items: center; }

.browser-frame {
    background: #F1F5F9;
    padding: 10px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.browser-header {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    padding-left: 10px;
}

.browser-header span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
}

.browser-content img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.tag-list li {
    background: #F1F5F9;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Other Projects */
.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.experience-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
    font-weight: 500;
}

.project-tag {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.time {
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-section { background: var(--bg-light); border-radius: 64px 64px 0 0; }

.contact-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.contact-icon-wrapper {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.contact-icon-wrapper img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-item:hover .contact-icon-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.contact-item:hover { color: var(--accent); }

/* --- DEMO SECTION --- */
.demo-section {
    padding: 8rem 0;
}

.demo-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    perspective: 1000px;
}

/* --- BROWSER FRAME (TITANIUM) --- */
.demo-web {
    background: #E2E8F0; /* Match header for seamless gap */
    border: 1.5px solid #94A3B8; /* Darker silver border */
    border-radius: 12px;
    flex: 1;
    max-width: 900px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.demo-web img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -1px; /* Overlap header sub-pixel gaps */
    padding: 0;
    border: none;
    image-rendering: -webkit-optimize-contrast;
}

.browser-header {
    background: #E2E8F0; /* Titanium Silver */
    padding: 7px 16px; /* Optimized thin header */
    display: flex; align-items: center;
    gap: 20px;
    border-bottom: none; 
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; opacity: 1; }

.browser-address {
    background: white;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 2px 12px; /* Thinner address bar */
    flex: 1;
    font-family: monospace;
    font-size: 10px; /* Slightly smaller text */
    color: var(--text-muted);
    display: flex; align-items: center;
    gap: 8px;
}

/* --- IPHONE FRAME (TITANIUM SILVER) --- */
.iphone-frame {
    width: 280px;
    height: 580px;
    background: #CBD5E1; /* Stronger silver */
    border-radius: 46px; 
    padding: 8px; 
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);
    border: 1.5px solid #94A3B8;
    flex-shrink: 0;
}

.iphone-btn {
    position: absolute;
    background: #64748B; /* Dark metallic buttons */
    border-radius: 3px;
}
.btn-power { width: 3px; height: 80px; right: -3px; top: 160px; }
.btn-silent { width: 3px; height: 24px; left: -3px; top: 110px; }
.btn-vup { width: 3px; height: 50px; left: -3px; top: 160px; }
.btn-vdn { width: 3px; height: 50px; left: -3px; top: 220px; }

.iphone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    border-radius: 39px;
    overflow: hidden;
    position: relative;
    border: 1px solid #94A3B8;
}

.iphone-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
}

.iphone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 20px;
    background: #000;
    border-radius: 10px;
    z-index: 10;
}
/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .demo-container { flex-direction: column; align-items: center; }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-header-flex { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .hero-avatar { width: 120px; height: 120px; border-radius: 28px; }
    .hero-content h1 { font-size: 3rem; }
    .hero-stats { flex-wrap: wrap; gap: 2rem; }
    .nav-links { display: none; }
    .section { padding: 4rem 0; }
    .hero { padding-top: 8rem; }
}
