:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a26;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --accent-primary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    --section-padding: 120px 0;
    --container-width: 1200px;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

.bg-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 20s ease-in-out infinite; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%); top: 40%; right: -150px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%); bottom: 10%; left: 20%; animation-delay: -10s; }
.orb-4 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%); top: 60%; left: -50px; animation-delay: -15s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20px, 20px) scale(0.95); } }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: var(--transition-medium); }
.navbar.scrolled { padding: 15px 0; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.nav-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; }
.logo-icon { font-size: 1.8rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-text .accent { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 40px; }
.nav-link { position: relative; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: var(--transition-fast); padding: 8px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent-gradient); transition: var(--transition-medium); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { display: block; width: 25px; height: 2px; background: var(--text-primary); }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); padding: 20px; flex-direction: column; gap: 15px; z-index: 999; }
.mobile-menu.active { display: flex; }
.mobile-link { color: var(--text-secondary); font-weight: 500; padding: 15px; border-radius: var(--border-radius-sm); }
.mobile-link:hover { color: var(--text-primary); background: var(--bg-glass); }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 80px; position: relative; z-index: 1; }
.hero-content { max-width: var(--container-width); text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 30px; animation: fadeInUp 0.6s ease forwards; }
.badge-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 30px; animation: fadeInUp 0.6s ease 0.1s forwards; opacity: 0; }
.title-line { display: block; }
.gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-description { max-width: 600px; margin: 0 auto 40px; font-size: 1.125rem; color: var(--text-secondary); animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; animation: fadeInUp 0.6s ease 0.3s forwards; opacity: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: var(--transition-medium); }
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4); }
.btn-secondary { background: var(--bg-glass); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-glass-hover); border-color: var(--accent-primary); }
.btn-full { width: 100%; justify-content: center; }
.hero-stats { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.4s forwards; opacity: 0; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.875rem; color: var(--text-tertiary); }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.875rem; animation: floatCard 6s ease-in-out infinite; opacity: 0.6; }
.card-icon { font-size: 1.2rem; }
.card-1 { top: 20%; left: 5%; } .card-2 { top: 15%; right: 5%; animation-delay: -1.5s; } .card-3 { bottom: 30%; left: 3%; animation-delay: -3s; } .card-4 { bottom: 25%; right: 3%; animation-delay: -4.5s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.section-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; padding: 8px 16px; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.875rem; color: var(--accent-primary); font-weight: 500; margin-bottom: 20px; }
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.section-subtitle { color: var(--text-secondary); font-size: 1.125rem; }

.projects { padding: var(--section-padding); position: relative; z-index: 1; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card { position: relative; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 35px; transition: var(--transition-medium); overflow: hidden; }
.project-card:hover { transform: translateY(-5px); border-color: var(--border-glow); }
.project-glow { position: absolute; top: 0; left: 0; right: 0; height: 200px; background: radial-gradient(ellipse at top center, rgba(99, 102, 241, 0.1), transparent); opacity: 0; transition: var(--transition-medium); }
.project-card:hover .project-glow { opacity: 1; }
.project-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.project-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: white; }
.project-badge { padding: 6px 14px; background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.project-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.project-description { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; }
.project-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.feature-tag { padding: 6px 12px; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.75rem; color: var(--text-secondary); }
.project-stats { display: flex; gap: 30px; margin-bottom: 25px; }
.pstat { display: flex; flex-direction: column; }
.pstat-value { font-size: 1.5rem; font-weight: 700; }
.pstat-label { font-size: 0.8rem; color: var(--text-tertiary); }
.project-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-primary); font-weight: 600; font-size: 0.95rem; transition: var(--transition-fast); }
.project-link:hover { gap: 12px; }

.about { padding: var(--section-padding); position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.8; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 30px; }
.skill-item { display: flex; align-items: center; gap: 10px; padding: 15px; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); transition: var(--transition-fast); }
.skill-item:hover { border-color: var(--border-glow); background: var(--bg-glass-hover); }
.skill-icon { font-size: 1.5rem; }
.skill-item span { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.visual-card { position: relative; width: 100%; max-width: 450px; }
.visual-decoration { position: absolute; top: -20px; right: -20px; width: 100%; height: 100%; background: var(--accent-gradient); border-radius: var(--border-radius); opacity: 0.1; }
.visual-content { position: relative; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; }
.code-header { display: flex; gap: 8px; padding: 15px 20px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.code-content { padding: 25px; font-size: 0.9rem; line-height: 1.8; color: var(--text-secondary); font-family: monospace; }
.code-keyword { color: #c792ea; } .code-key { color: #82aaff; } .code-string { color: #c3e88d; } .code-comment { color: #546e7a; }

.contact { padding: var(--section-padding); position: relative; z-index: 1; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-text { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 30px; line-height: 1.8; }
.contact-method { display: flex; align-items: center; gap: 15px; padding: 20px; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); transition: var(--transition-fast); }
.contact-method:hover { border-color: var(--border-glow); background: var(--bg-glass-hover); }
.method-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--accent-gradient); border-radius: 12px; color: white; }
.method-label { font-size: 0.8rem; color: var(--text-tertiary); }
.method-value { font-weight: 600; }
.contact-form-wrapper { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group textarea { padding: 15px 20px; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); color: var(--text-primary); font-family: inherit; font-size: 1rem; transition: var(--transition-fast); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-tertiary); }
.form-group textarea { resize: vertical; min-height: 120px; }

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 60px 0 30px; position: relative; z-index: 1; }
.footer-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-tagline { color: var(--text-tertiary); margin-top: 15px; }
.footer-links h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.footer-links a { display: block; color: var(--text-tertiary); font-size: 0.9rem; padding: 8px 0; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { color: var(--text-tertiary); font-size: 0.875rem; }

.policy-page { position: relative; z-index: 1; padding-top: 110px; }
.policy-hero { padding: 80px 0 40px; text-align: center; }
.policy-hero .section-subtitle { max-width: 780px; margin: 0 auto; }
.policy-content { padding: 40px 0 120px; }
.policy-card { max-width: 900px; margin: 0 auto; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 44px; }
.policy-card h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.policy-card h2:first-child { margin-top: 0; }
.policy-card p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; }
.policy-card a { color: var(--accent-primary); font-weight: 600; }

@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: 1fr; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --section-padding: 80px 0; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 100px 20px 60px; }
    .hero-stats { gap: 20px; }
    .stat-divider { display: none; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .float-card { display: none; }
    .policy-card { padding: 30px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .project-card { padding: 25px; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 25px; }
    .policy-card { padding: 24px; }
}
