@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap'); /* ========================================================================== MODERN CSS BOILERPLATE - Resets default browser styles for consistency. - Establishes a design system using CSS Custom Properties (Variables). - Provides sensible defaults for typography, spacing, and components. ========================================================================== */ /* ========================================================================== 1. CSS RESET & BOX MODEL ========================================================================== */ /* - Set box-sizing to border-box for all elements for a more intuitive box model calculation (width/height will include padding and border). - Reset default margins and paddings for a clean slate. */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } /* ========================================================================== 2. :ROOT VARIABLES (DESIGN TOKENS) ========================================================================== */ /* Define all reusable design values here. This is the "single source of truth" for colors, fonts, and spacing. */ :root { /* 🎨 COLORS (Color Palette) */ --clr-bg: #121212; /* Off-black background */ --clr-border: #333333; /* Dark gray for borders and dividers */ --clr-secondary: #27272a; /* Slightly lighter gray for secondary elements */ --clr-accent: #ffffff; /* Pure white for strong hover effects or links */ /* Text Colors */ --clr-text-primary: #e9e9e9; /* Light gray (almost white)for primary text and headings */ --clr-text-secondary: #a0a0a0; /* Softer gray for secondary text */ /* Global Assignments */ --clr-background: var(--clr-bg); --clr-text: var(--clr-text-primary); /* ✒️ TYPOGRAPHY (Fonts & Type Scale) */ --font-family-base: 'Segoe UI', ui-sans-serif, system-ui, -apple-system, sans-serif; --font-family-heading: var(--font-family-base); --font-pxlify: 'Pixelify Sans', sans-serif; /* Type Scale (1rem = 16px by default) */ --font-xs: 0.625rem; /* 10px */ --font-sm: 0.875rem; /* 14px */ --font-base: 1rem; /* 16px */ --font-md: 1.125rem; /* 18px */ --font-lg: 1.25rem; /* 20px */ --font-xl: 1.75rem; /* 28px */ --font-xxl: 2.25rem; /* 36px */ /* 📏 SPACING (Spacing Scale) */ --space-xs: 0.5rem; /* 8px */ --space-sm: 1rem; /* 16px */ --space-md: 1.5rem; /* 24px */ --space-lg: 2rem; /* 32px */ --space-xl: 4rem; /* 64px */ /* 🔲 OTHER STYLES (Radius, Shadow, Transition) */ --radius-sm: 0.25rem; /* 4px */ --radius-md: 0.5rem; /* 8px */ --radius-lg: 1rem; /* 16px */ --radius-full: 9999px; --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); --transition-fast: all 0.2s ease-in-out; } /* ========================================================================== 3. GLOBAL STYLES (BASE STYLES) ========================================================================== */ html { scroll-behavior: smooth; } body { font-family: var(--font-family-base); font-size: var(--font-base); /* 16px */ line-height: 1.6; color: var(--clr-text); background-color: var(--clr-background); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: grid; /* Definisikan 3 kolom: - 1fr: ruang fleksibel di sisi - minmax(auto, 1100px): konten utama, lebar maks 1100px - 1fr: ruang fleksibel di sisi */ grid-template-columns: 1fr minmax(auto, 70ch) 1fr; } /* Target semua anak langsung dari body (header, main, footer) untuk menempati kolom kedua (tengah) */ body > * { grid-column: 2; } main { display: flex; flex-direction: column; gap: var(--space-xl) } /* Common heading styles */ h1, h2, h3, h4, h5, h6 { font-family: var(--font-family-heading); font-weight: 600; /* Explicitly set to bold */ line-height: 1.3; margin-bottom: var(--space-sm); /* 16px */ color: var(--clr-text-primary); } /* Specific font sizes for each heading level to create a clear hierarchy */ h1 { font-size: var(--font-xxl); } /* 36px */ h2 { font-size: var(--font-xl); } /* 28px */ h3 { font-size: var(--font-lg); } /* 20px */ h4 { font-size: var(--font-md); } /* 18px */ h5 { font-size: var(--font-base); font-weight: 600; } /* 16px */ h6 { font-size: var(--font-sm); font-weight: 600; } /* 14px */ p { margin-bottom: var(--space-sm); /* 16px */ color: var(--clr-text-secondary); } a { color: var(--clr-text-primary); text-decoration: none; transition: var(--transition-fast); } a:hover { color: var(--clr-accent); } strong, b { font-weight: 600;; color: var(--clr-text-primary); opacity: .85; } img, picture, video, canvas, svg { display: block; max-width: 100%; } /* ========================================================================== 4. UTILITY & COMPONENT STYLES ========================================================================== */ .container { width: 90%; max-width: 70ch; margin-inline: auto; } .btn { display: inline-block; padding: 0.5rem 1.5rem; /* 8px 20px, reduced horizontal padding */ font-size: var(--font-sm); /* 14px, smaller font */ font-family: var(--font-family-base); font-weight: 500; text-align: center; text-decoration: none; cursor: pointer; border-radius: var(--radius-md); transition: var(--transition-fast); background-color: transparent; border: 1px solid var(--clr-border); color: var(--clr-text-primary); } .btn:hover { background-color: var(--clr-text-primary); border-color: var(--clr-text-primary); color: var(--clr-bg); } .rounded-sm { border-radius: var(--radius-sm); } /* 4px */ .rounded-md { border-radius: var(--radius-md); } /* 8px */ .rounded-lg { border-radius: var(--radius-lg); } /* 16px */ .rounded-full { border-radius: var(--radius-full); } .pixelify-font { font-family: var(--font-pxlify); font-weight: 400; /* Normal weight */ font-style: normal; } /* Profile Section Styles */ .profile-container { display: flex; flex-direction: row; gap: var(--space-sm); align-items: center; text-align: left; border-radius: var(--border-radius); margin-block: var(--space-md); } .profile-name { font-size: var(--font-md); color: var(--clr-text-primary); margin-bottom: var(--space-xs); } .profile-title { font-size: var(--font-base); color: var(--clr-text-secondary); margin-bottom: 0; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; } .profile-title a { display: inline-flex; align-items: center; gap: 0.35rem; } .profile-title img { vertical-align: middle; flex-shrink: 0; filter: invert(1); } .about-content { font-size: var(--font-sm); line-height: 1.6; color: var(--clr-text-secondary); margin-bottom: var(--space-lg); } .profile-pic { width: 77px; height: 77px; object-fit: cover; border-radius: var(--radius-full); } .domain-address { font-size: var(--font-xs); color: var(--clr-text-secondary); margin-left: var(--space-xs); background-color: #1e1e1e; padding: 0.25em 0.7em; border-radius: var(--radius-full); font-weight: lighter; vertical-align: middle; } .action-links { display: flex; align-items: center; gap: var(--space-sm); } .btn--primary { background-color: var(--clr-accent); color: var(--clr-bg); border-color: var(--clr-accent); display: inline-flex; align-items: center; gap: var(--space-xs); } .btn--primary:hover { opacity: 0.9; } .social-icons { display: flex; gap: var(--space-xs); } .social-icon { display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; background-color: var(--clr-secondary); border-radius: var(--radius-full); color: var(--clr-text-primary); transition: var(--transition-fast); } .social-icon:hover { opacity: 0.8; } /* Mengatur warna ikon SVG di dalam link */ .social-icon svg { stroke: currentColor; /* Mengambil warna dari 'color' di .social-icon */ } .experience-list { list-style: none; padding: 0; margin: 0; } .experience-item { display: flex; justify-content: space-between; align-items: center; background-color: var(--clr-background); border: 1px solid var(--clr-border); padding: var(--space-md); border-radius: var(--radius-md); margin-block-end: var(--space-sm); } .experience-item:last-child { margin-block-end: 0; } .experience-item p { margin: 0; } .project-list { display: flex; flex-direction: row; gap: var(--space-md); } .project-card { display: flex; flex-direction: column; gap: var(--space-xs); } .project-image-wrapper img { width: 100%; height: 200px; overflow: hidden; border-radius: var(--radius-md); object-fit: cover; } .project-content-wrapper{ display: flex; flex-direction: row; align-items: center; justify-content: space-between; } .project-title, .project-tech { color: var(--clr-text-primary); margin: 0 } .project-title { font-size: var(--font-md); } .project-tech { font-size: var(--font-sm); color: var(--clr-text-secondary); } .contact-section { display: flex; flex-direction: column; } .contact-form { display: flex; flex-direction: column; gap: var(--space-md); } .form-row { display: flex; gap: var(--space-md); } .form-group { /* Mengatur agar label berada di atas input/textarea */ display: flex; flex-direction: column; gap: var(--space-xs); /* Jarak antara label dan input/textarea */ width: 100%; /* Memastikan setiap grup mengisi ruang yang tersedia */ } .contact-form input, .contact-form textarea { width: 100%; padding: 0.75rem; /* 12px */ font-family: var(--font-family-base); font-size: var(--font-base); /* 16px */ color: var(--clr-text-primary); background-color: transparent; border: 1px solid var(--clr-border); border-radius: var(--radius-md); /* 8px */ transition: var(--transition-fast); } .contact-form input:focus, .contact-form textarea:focus { /* Beri highlight saat input di-klik/aktif */ outline: none; border-color: var(--clr-accent); } .contact-form label { font-size: var(--font-sm); /* 14px */ color: var(--clr-text-secondary); } .contact-form .btn { padding: 0.75rem 1.5rem; /* 12px 24px */ } .footer-section { display: flex; flex-direction: column; align-items: center; margin: var(--space-xl) 0 var(--space-md) 0; color: var(--clr-text-secondary); font-size: var(--font-xs); } .footer-section p { margin-bottom: var(--space-xs); }