/* Modern Portfolio - Abshar Ilham Zamakhsyari */
:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --gray-dark: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-dark); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; position: relative; }

/* Animated Background */
.animated-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%); }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: float 20s ease-in-out infinite; }
.orb-1 { width: 500px; height: 500px; background: var(--gradient-secondary); top: -10%; right: -10%; }
.orb-2 { width: 400px; height: 400px; background: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%); bottom: -10%; left: -10%; animation-delay: 5s; }
.orb-3 { width: 300px; height: 300px; background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 10s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(30px, -30px); } 66% { transform: translate(-20px, 20px); } }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(203, 213, 225, 0.3); transition: var(--transition); }
.navbar.scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-md); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.navbar-brand { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--gray-dark); font-family: 'Space Grotesk', sans-serif; }
.brand-text { background: var(--gradient-secondary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-dot { color: var(--accent); font-size: 2rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 25px; height: 2px; background: var(--gray-dark); transition: var(--transition); }
.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--gray); font-weight: 500; position: relative; transition: var(--transition); padding: 0.5rem 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gradient-secondary); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-greeting { font-size: 1.2rem; color: var(--gray); margin-bottom: 0.5rem; font-weight: 500; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; font-family: 'Space Grotesk', sans-serif; color: var(--dark); }
.gradient-text { background: var(--gradient-secondary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradient-shift 3s ease infinite; background-size: 200% 200%; }
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-subtitle { font-size: 1.5rem; color: var(--primary); font-weight: 600; margin-bottom: 1rem; min-height: 2.5rem; font-family: 'Space Grotesk', sans-serif; }
.typing-text { border-right: 2px solid var(--primary); animation: blink 0.7s step-end infinite; }
.cursor { color: var(--primary); animation: blink 0.7s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }
.hero-description { font-size: 1.1rem; color: var(--gray); margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.btn { padding: 0.875rem 2rem; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); border: none; cursor: pointer; }
.btn-primary { background: var(--gradient-secondary); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.social-links { display: flex; gap: 1rem; }
.social-link { width: 45px; height: 45px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; color: var(--gray-dark); font-size: 1.2rem; transition: var(--transition); text-decoration: none; }
.social-link:hover { background: var(--gradient-secondary); color: var(--white); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.image-wrapper { position: relative; display: inline-block; }
.profile-img { width: 100%; max-width: 450px; border-radius: 30px; box-shadow: var(--shadow-xl); transition: var(--transition); position: relative; z-index: 2; }
.profile-img:hover { transform: scale(1.02); }
.image-decoration { position: absolute; width: 100%; height: 100%; border-radius: 30px; background: var(--gradient-secondary); top: 20px; left: 20px; z-index: 1; transition: var(--transition); }
.image-wrapper:hover .image-decoration { top: 30px; left: 30px; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
.mouse { width: 25px; height: 40px; border: 2px solid var(--gray); border-radius: 15px; position: relative; }
.wheel { width: 3px; height: 8px; background: var(--gray); border-radius: 2px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: scroll 2s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 20px; } }
.scroll-indicator p { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* Section Header */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { display: inline-block; padding: 0.5rem 1.5rem; background: var(--light); color: var(--primary); border-radius: 50px; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; font-family: 'Space Grotesk', sans-serif; }
.section-divider { width: 60px; height: 4px; background: var(--gradient-secondary); margin: 0 auto 1.5rem; border-radius: 2px; }
.section-description { font-size: 1.1rem; color: var(--gray); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* About */
.about-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
.about-text { font-size: 1.05rem; color: var(--gray); line-height: 1.8; }
.about-intro { font-size: 1.15rem; margin-bottom: 1.5rem; color: var(--gray-dark); }
.highlight { color: var(--primary); font-weight: 600; }
.about-highlights { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.highlight-item { display: flex; gap: 1rem; }
.highlight-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.3rem; }
.highlight-content h4 { font-size: 1.1rem; color: var(--gray-dark); margin-bottom: 0.25rem; }
.highlight-content p { font-size: 0.95rem; color: var(--gray); margin: 0; }
.education-card, .goals-card { background: var(--light); padding: 2rem; border-radius: 20px; transition: var(--transition); margin-bottom: 1.5rem; }
.education-card:hover, .goals-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.education-icon, .goals-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; margin-bottom: 1rem; }
.education-card h3, .goals-card h3 { font-size: 1.3rem; color: var(--gray-dark); margin-bottom: 1.5rem; font-weight: 700; }
.education-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(203, 213, 225, 0.5); }
.education-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.education-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; }
.education-header h4 { font-size: 1.1rem; color: var(--gray-dark); font-weight: 600; }
.education-year { font-size: 0.875rem; color: var(--primary); font-weight: 600; padding: 0.25rem 0.75rem; background: rgba(99, 102, 241, 0.1); border-radius: 50px; }
.education-school { font-size: 0.95rem; color: var(--gray); line-height: 1.6; }
.goals-card p { color: var(--gray); line-height: 1.8; margin-bottom: 1rem; }
.goals-quote { font-style: italic; padding: 1rem; background: rgba(99, 102, 241, 0.05); border-left: 3px solid var(--primary); border-radius: 8px; margin-top: 1rem; }

/* Skills */
.skills-section { background: var(--light); }
.skills-content { display: flex; flex-direction: column; gap: 2.5rem; }
.skills-category { background: var(--white); padding: 2.5rem; border-radius: 20px; box-shadow: var(--shadow-md); transition: var(--transition); }
.skills-category:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.category-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; }
.category-header h3 { font-size: 1.5rem; color: var(--gray-dark); font-weight: 700; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.skill-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem; background: var(--light); border-radius: 15px; transition: var(--transition); position: relative; }
.skill-item:hover { transform: translateY(-5px); background: var(--gradient-secondary); color: var(--white); }
.skill-item.featured { background: var(--gradient-secondary); color: var(--white); }
.skill-icon { font-size: 2.5rem; }
.skill-item span { font-weight: 600; text-align: center; }
.skill-badge { position: absolute; top: 10px; right: 10px; font-size: 0.7rem; padding: 0.25rem 0.5rem; background: rgba(255, 255, 255, 0.3); border-radius: 50px; }
.workflow-items { display: flex; flex-direction: column; gap: 1.5rem; }
.workflow-item { display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--light); border-radius: 15px; transition: var(--transition); }
.workflow-item:hover { transform: translateX(10px); box-shadow: var(--shadow-md); }
.workflow-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; }
.workflow-content h4 { font-size: 1.1rem; color: var(--gray-dark); margin-bottom: 0.5rem; font-weight: 600; }
.workflow-content p { color: var(--gray); line-height: 1.6; margin: 0; }
.category-note { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(203, 213, 225, 0.5); color: var(--gray); font-size: 0.95rem; font-style: italic; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 3rem; }
.project-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); }
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.project-image { position: relative; height: 300px; overflow: hidden; background: var(--light); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); display: block; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent); display: flex; align-items: flex-end; justify-content: center; padding: 2rem; opacity: 0; transition: var(--transition); }
.project-card:hover .project-overlay { opacity: 1; }
.project-link { width: 50px; height: 50px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--gray-dark); font-size: 1.2rem; transition: var(--transition); text-decoration: none; }
.project-link:hover { background: var(--gradient-secondary); color: var(--white); transform: scale(1.1); }
.project-content { padding: 2rem; }
.project-tags { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.project-tag { padding: 0.375rem 0.875rem; background: var(--light); color: var(--gray-dark); border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.project-tag.professional { background: var(--gradient-secondary); color: var(--white); }
.project-tag.client { background: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%); color: var(--white); }
.project-title { font-size: 1.5rem; color: var(--gray-dark); margin-bottom: 1rem; font-weight: 700; }
.project-description { color: var(--gray); line-height: 1.8; margin-bottom: 1.5rem; }
.project-meta { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(203, 213, 225, 0.5); }
.project-role, .project-tech { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--gray); }
.project-role i, .project-tech i { color: var(--primary); }

/* Contact */
.contact-section { background: var(--light); }
.contact-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { background: var(--white); padding: 1.5rem; border-radius: 15px; text-align: center; transition: var(--transition); box-shadow: var(--shadow-md); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.3rem; margin: 0 auto 1rem; }
.contact-card h3 { font-size: 1.1rem; color: var(--gray-dark); margin-bottom: 0.5rem; font-weight: 600; }
.contact-card a { color: var(--primary); text-decoration: none; font-weight: 500; transition: var(--transition); }
.contact-card a:hover { color: var(--secondary); }
.contact-card p { color: var(--gray); margin: 0; }
.contact-cta { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-md); }
.cta-card { padding: 3rem; }
.cta-card h3 { font-size: 2rem; color: var(--gray-dark); margin-bottom: 1rem; font-weight: 700; }
.cta-card p { color: var(--gray); line-height: 1.8; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.availability-badge { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; background: var(--light); border-radius: 50px; font-weight: 600; color: var(--gray-dark); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 1rem; font-family: 'Space Grotesk', sans-serif; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--white); transform: translateX(5px); }
.footer-social h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); text-decoration: none; }
.social-icons a:hover { background: var(--gradient-secondary); transform: translateY(-5px); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { color: rgba(255, 255, 255, 0.7); margin: 0; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 2rem; box-shadow: var(--shadow-lg); }
  .nav-menu.active { display: flex; }
  .hero-content, .about-content, .contact-content { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gradient-secondary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
