Download frontend/src/index.css from parthib07/Portfolio: direct link, hf CLI and curl.
- Browser
- Download file 37.2 kB
-
https://huggingface.co/spaces/parthib07/Portfolio/resolve/main/frontend/src/index.css
- Command line
-
hf download hf://spaces/parthib07/Portfolio/frontend/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/parthib07/Portfolio/resolve/main/frontend/src/index.css
37.2 kB
| /* ===================================================== | |
| PARTHIB KARAK PORTFOLIO - GLOBAL DESIGN SYSTEM | |
| Premium Dark-Mode First, Cinematic Aesthetic | |
| ===================================================== */ | |
| *, *::before, *::after { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| /* CSS Custom Properties */ | |
| :root { | |
| /* Color Palette */ | |
| --bg-primary: #050810; | |
| --bg-secondary: #0a0f1e; | |
| --bg-card: rgba(255, 255, 255, 0.03); | |
| --bg-card-hover: rgba(255, 255, 255, 0.06); | |
| --accent-primary: #6366f1; | |
| --accent-secondary: #8b5cf6; | |
| --accent-tertiary: #06b6d4; | |
| --accent-glow: rgba(99, 102, 241, 0.4); | |
| --accent-glow-cyan: rgba(6, 182, 212, 0.3); | |
| --text-primary: #f0f4ff; | |
| --text-secondary: #94a3b8; | |
| --text-muted: #475569; | |
| --text-accent: #818cf8; | |
| --border-subtle: rgba(255, 255, 255, 0.06); | |
| --border-glow: rgba(99, 102, 241, 0.3); | |
| /* Typography */ | |
| --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| --font-display: 'Space Grotesk', sans-serif; | |
| --font-mono: 'JetBrains Mono', monospace; | |
| /* Spacing Scale */ | |
| --space-xs: 0.5rem; | |
| --space-sm: 1rem; | |
| --space-md: 1.5rem; | |
| --space-lg: 2rem; | |
| --space-xl: 3rem; | |
| --space-2xl: 5rem; | |
| --space-3xl: 8rem; | |
| /* Border Radius */ | |
| --radius-sm: 8px; | |
| --radius-md: 16px; | |
| --radius-lg: 24px; | |
| --radius-full: 9999px; | |
| /* Transitions */ | |
| --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1); | |
| --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1); | |
| --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1); | |
| /* Shadows */ | |
| --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15); | |
| --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4); | |
| --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5); | |
| } | |
| /* Light Mode */ | |
| [data-theme="light"] { | |
| --bg-primary: #f8faff; | |
| --bg-secondary: #eef2ff; | |
| --bg-card: rgba(255, 255, 255, 0.8); | |
| --bg-card-hover: rgba(255, 255, 255, 0.95); | |
| --text-primary: #0f172a; | |
| --text-secondary: #334155; | |
| --text-muted: #94a3b8; | |
| --text-accent: #6366f1; | |
| --border-subtle: rgba(0, 0, 0, 0.06); | |
| --border-glow: rgba(99, 102, 241, 0.2); | |
| --shadow-card: 0 8px 32px rgba(99, 102, 241, 0.08); | |
| --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1); | |
| } | |
| /* Base Styles */ | |
| html { | |
| scroll-behavior: smooth; | |
| font-size: 16px; | |
| scrollbar-gutter: stable; | |
| overflow-y: scroll; | |
| } | |
| body { | |
| font-family: var(--font-primary); | |
| background-color: var(--bg-primary); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| overflow-x: hidden; | |
| transition: background-color var(--transition-normal), color var(--transition-normal); | |
| } | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: var(--bg-primary); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--accent-primary); | |
| border-radius: var(--radius-full); | |
| } | |
| /* Typography */ | |
| h1, h2, h3, h4, h5, h6 { | |
| font-family: var(--font-display); | |
| font-weight: 700; | |
| letter-spacing: -0.02em; | |
| line-height: 1.2; | |
| color: var(--text-primary); | |
| } | |
| a { | |
| color: inherit; | |
| text-decoration: none; | |
| } | |
| /* Layout Utilities */ | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 var(--space-lg); | |
| } | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 0 var(--space-sm); | |
| } | |
| } | |
| /* Section Base */ | |
| .section { | |
| padding: 5rem 0; | |
| position: relative; | |
| } | |
| .section-header { | |
| text-align: center; | |
| margin-bottom: 3rem; | |
| } | |
| .section-tag { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: var(--space-xs); | |
| padding: 6px 16px; | |
| background: rgba(99, 102, 241, 0.1); | |
| border: 1px solid rgba(99, 102, 241, 0.2); | |
| border-radius: var(--radius-full); | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| letter-spacing: 0.1em; | |
| text-transform: uppercase; | |
| color: var(--text-accent); | |
| margin-bottom: var(--space-sm); | |
| } | |
| .section-title { | |
| font-size: clamp(2rem, 5vw, 3.5rem); | |
| background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| margin-bottom: var(--space-sm); | |
| } | |
| .section-subtitle { | |
| font-size: 1.125rem; | |
| color: var(--text-secondary); | |
| max-width: 600px; | |
| margin: 0 auto; | |
| } | |
| /* Glass Card */ | |
| .glass-card { | |
| background: var(--bg-card); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: 20px; | |
| box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), var(--shadow-card); | |
| transition: all var(--transition-normal); | |
| } | |
| .glass-card:hover { | |
| background: var(--bg-card-hover); | |
| border-color: var(--border-glow); | |
| box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), var(--shadow-glow), var(--shadow-card); | |
| transform: translateY(-4px); | |
| } | |
| /* Buttons */ | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| padding: 12px 28px; | |
| border-radius: var(--radius-full); | |
| font-family: var(--font-primary); | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| letter-spacing: 0.02em; | |
| cursor: pointer; | |
| border: none; | |
| outline: none; | |
| transition: all var(--transition-normal); | |
| white-space: nowrap; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .btn::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| background: rgba(255, 255, 255, 0.1); | |
| opacity: 0; | |
| transition: opacity var(--transition-fast); | |
| } | |
| .btn:hover::before { | |
| opacity: 1; | |
| } | |
| .btn-primary { | |
| background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); | |
| color: white; | |
| box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); | |
| } | |
| .btn-primary:hover { | |
| box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6); | |
| transform: translateY(-2px); | |
| } | |
| .btn-secondary { | |
| background: transparent; | |
| color: var(--text-primary); | |
| border: 1px solid var(--border-subtle); | |
| backdrop-filter: blur(10px); | |
| } | |
| .btn-secondary:hover { | |
| border-color: var(--accent-primary); | |
| color: var(--accent-primary); | |
| box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); | |
| transform: translateY(-2px); | |
| } | |
| .btn-sm { | |
| padding: 8px 18px; | |
| font-size: 0.8rem; | |
| } | |
| /* Gradient Text Utility */ | |
| .gradient-text { | |
| background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| /* Glow Effects */ | |
| .glow-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: var(--accent-primary); | |
| box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow); | |
| animation: pulse-glow 2s ease-in-out infinite; | |
| } | |
| @keyframes pulse-glow { | |
| 0%, 100% { box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow); } | |
| 50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow); } | |
| } | |
| /* Gradient Orbs */ | |
| .orb { | |
| position: absolute; | |
| border-radius: 50%; | |
| filter: blur(80px); | |
| pointer-events: none; | |
| z-index: 0; | |
| } | |
| .orb-purple { | |
| background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%); | |
| } | |
| .orb-cyan { | |
| background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%); | |
| } | |
| /* Tag / Badge */ | |
| .tech-tag { | |
| display: inline-flex; | |
| align-items: center; | |
| padding: 4px 12px; | |
| border-radius: var(--radius-full); | |
| font-size: 0.7rem; | |
| font-weight: 600; | |
| letter-spacing: 0.05em; | |
| background: rgba(99, 102, 241, 0.12); | |
| border: 1px solid rgba(99, 102, 241, 0.2); | |
| color: var(--text-accent); | |
| transition: all var(--transition-fast); | |
| } | |
| .tech-tag:hover { | |
| background: rgba(99, 102, 241, 0.2); | |
| border-color: rgba(99, 102, 241, 0.4); | |
| } | |
| /* Page Transitions */ | |
| .page-enter { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| .page-enter-active { | |
| opacity: 1; | |
| transform: translateY(0); | |
| transition: opacity 500ms, transform 500ms; | |
| } | |
| /* Noise Texture Overlay */ | |
| .noise-overlay { | |
| position: fixed; | |
| inset: 0; | |
| pointer-events: none; | |
| z-index: 1000; | |
| opacity: 0.025; | |
| background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); | |
| background-size: 200px 200px; | |
| } | |
| /* Responsive Helpers */ | |
| @media (max-width: 768px) { | |
| .section { | |
| padding: 3.5rem 0; | |
| } | |
| .section-title { | |
| font-size: 1.8rem; | |
| } | |
| .about-clean-grid { | |
| grid-template-columns: 1fr ; | |
| gap: 2rem ; | |
| } | |
| .footer-top-grid { | |
| grid-template-columns: 1fr ; | |
| gap: 2rem ; | |
| } | |
| } | |
| /* Selection */ | |
| ::selection { | |
| background: rgba(99, 102, 241, 0.3); | |
| color: var(--text-primary); | |
| } | |
| /* Focus Styles */ | |
| :focus-visible { | |
| outline: 2px solid var(--accent-primary); | |
| outline-offset: 3px; | |
| border-radius: 4px; | |
| } | |
| /* Navbar */ | |
| .navbar { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| z-index: 100; | |
| transition: all var(--transition-normal); | |
| padding: 20px 0; | |
| } | |
| .navbar.scrolled { | |
| background: rgba(5, 8, 16, 0.85); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border-bottom: 1px solid var(--border-subtle); | |
| padding: 12px 0; | |
| } | |
| [data-theme="light"] .navbar.scrolled { | |
| background: rgba(248, 250, 255, 0.85); | |
| } | |
| .navbar-inner { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .navbar-logo { | |
| font-family: var(--font-display); | |
| font-size: 1.05rem; | |
| font-weight: 800; | |
| background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| letter-spacing: -0.03em; | |
| white-space: nowrap; | |
| } | |
| .navbar-links { | |
| display: flex; | |
| align-items: center; | |
| gap: var(--space-md); | |
| list-style: none; | |
| } | |
| .navbar-links a { | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| transition: color var(--transition-fast); | |
| position: relative; | |
| padding: 4px 0; | |
| } | |
| .navbar-links a::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -2px; | |
| left: 0; | |
| width: 0; | |
| height: 2px; | |
| background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary)); | |
| border-radius: var(--radius-full); | |
| transition: width var(--transition-normal); | |
| } | |
| .navbar-links a:hover, | |
| .navbar-links a.active { | |
| color: var(--text-primary); | |
| } | |
| .navbar-links a:hover::after, | |
| .navbar-links a.active::after { | |
| width: 100%; | |
| } | |
| .navbar-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: var(--space-sm); | |
| } | |
| .theme-toggle { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-full); | |
| padding: 8px; | |
| cursor: pointer; | |
| color: var(--text-secondary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all var(--transition-fast); | |
| font-size: 1rem; | |
| } | |
| .theme-toggle:hover { | |
| border-color: var(--accent-primary); | |
| color: var(--accent-primary); | |
| } | |
| .hamburger { | |
| display: none; | |
| flex-direction: column; | |
| gap: 5px; | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| padding: 4px; | |
| } | |
| .hamburger span { | |
| display: block; | |
| width: 22px; | |
| height: 2px; | |
| background: var(--text-primary); | |
| border-radius: var(--radius-full); | |
| transition: all var(--transition-fast); | |
| } | |
| .mobile-menu { | |
| display: none; | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(5, 8, 16, 0.97); | |
| backdrop-filter: blur(20px); | |
| z-index: 99; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: var(--space-lg); | |
| } | |
| .mobile-menu.open { | |
| display: flex; | |
| } | |
| .mobile-menu a { | |
| font-family: var(--font-display); | |
| font-size: 2rem; | |
| font-weight: 700; | |
| color: var(--text-secondary); | |
| transition: color var(--transition-fast); | |
| } | |
| .mobile-menu a:hover { | |
| color: var(--text-primary); | |
| } | |
| @media (max-width: 768px) { | |
| .navbar-links, | |
| .navbar-actions .btn { | |
| display: none; | |
| } | |
| .hamburger { | |
| display: flex; | |
| } | |
| .navbar-actions { | |
| gap: 8px; | |
| } | |
| } | |
| /* Hero */ | |
| .hero { | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .hero-two-col { | |
| display: grid; | |
| grid-template-columns: 1fr 400px; | |
| gap: 5rem; | |
| align-items: center; | |
| max-width: 1100px; | |
| margin: 0 auto; | |
| } | |
| @media (max-width: 960px) { | |
| .hero-two-col { | |
| grid-template-columns: 1fr; | |
| text-align: center; | |
| gap: 3rem; | |
| } | |
| .hero-two-col > div:last-child { | |
| order: -1; | |
| margin: 0 auto; | |
| } | |
| } | |
| @media (max-width: 600px) { | |
| .hero-two-col > div:last-child > div[style] { | |
| width: 240px ; | |
| height: 240px ; | |
| } | |
| } | |
| .hero-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 20px; | |
| background: rgba(99, 102, 241, 0.08); | |
| border: 1px solid rgba(99, 102, 241, 0.2); | |
| border-radius: var(--radius-full); | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| color: var(--text-accent); | |
| margin-bottom: var(--space-md); | |
| } | |
| .hero-name { | |
| font-size: clamp(3.5rem, 10vw, 7.5rem); | |
| font-weight: 900; | |
| letter-spacing: -0.04em; | |
| line-height: 1; | |
| margin-bottom: var(--space-sm); | |
| } | |
| .hero-title { | |
| font-size: clamp(1.2rem, 3vw, 1.75rem); | |
| font-weight: 400; | |
| color: var(--text-secondary); | |
| margin-bottom: 0.5rem; | |
| font-family: var(--font-primary); | |
| white-space: nowrap; | |
| } | |
| .hero-title span { | |
| font-weight: 600; | |
| background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| /* Fixed-height row so typed text never causes layout shift */ | |
| .hero-typed-line { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| height: clamp(2rem, 4vw, 2.8rem); | |
| margin-bottom: var(--space-md); | |
| overflow: hidden; | |
| } | |
| .hero-typed-label { | |
| font-size: clamp(1rem, 2.5vw, 1.5rem); | |
| font-weight: 400; | |
| color: var(--text-secondary); | |
| white-space: nowrap; | |
| flex-shrink: 0; | |
| } | |
| .hero-typed-text { | |
| font-size: clamp(1rem, 2.5vw, 1.5rem); | |
| font-weight: 700; | |
| background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| white-space: nowrap; | |
| min-width: 0; | |
| } | |
| .hero-typed-cursor { | |
| font-size: clamp(1rem, 2.5vw, 1.5rem); | |
| font-weight: 700; | |
| color: var(--accent-primary); | |
| animation: blink-cursor 0.8s step-end infinite; | |
| flex-shrink: 0; | |
| } | |
| @keyframes blink-cursor { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0; } | |
| } | |
| .hero-tagline { | |
| font-size: clamp(1rem, 2.5vw, 1.25rem); | |
| color: var(--text-secondary); | |
| max-width: 600px; | |
| line-height: 1.8; | |
| margin-bottom: var(--space-xl); | |
| } | |
| .hero-cta { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: var(--space-sm); | |
| margin-bottom: var(--space-xl); | |
| } | |
| .hero-socials { | |
| display: flex; | |
| align-items: center; | |
| gap: var(--space-sm); | |
| } | |
| .hero-socials a { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 44px; | |
| height: 44px; | |
| border-radius: var(--radius-full); | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-subtle); | |
| color: var(--text-secondary); | |
| font-size: 1.2rem; | |
| transition: all var(--transition-normal); | |
| } | |
| .hero-socials a:hover { | |
| background: var(--accent-primary); | |
| border-color: var(--accent-primary); | |
| color: white; | |
| transform: translateY(-3px); | |
| box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); | |
| } | |
| .hero-scroll-hint { | |
| position: absolute; | |
| bottom: 40px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 8px; | |
| color: var(--text-muted); | |
| font-size: 0.75rem; | |
| letter-spacing: 0.1em; | |
| text-transform: uppercase; | |
| z-index: 2; | |
| animation: bounce 2s ease-in-out infinite; | |
| } | |
| @keyframes bounce { | |
| 0%, 100% { transform: translateX(-50%) translateY(0); } | |
| 50% { transform: translateX(-50%) translateY(-8px); } | |
| } | |
| .scroll-line { | |
| width: 1px; | |
| height: 50px; | |
| background: linear-gradient(to bottom, var(--accent-primary), transparent); | |
| } | |
| /* About */ | |
| .about-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1.5fr; | |
| gap: var(--space-2xl); | |
| align-items: center; | |
| } | |
| @media (max-width: 900px) { | |
| .about-grid { | |
| grid-template-columns: 1fr; | |
| text-align: center; | |
| } | |
| } | |
| .about-image-container { | |
| position: relative; | |
| display: flex; | |
| justify-content: center; | |
| } | |
| .about-image-glow { | |
| position: absolute; | |
| inset: -20px; | |
| background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%); | |
| border-radius: 50%; | |
| animation: rotate-glow 8s linear infinite; | |
| } | |
| @keyframes rotate-glow { | |
| from { transform: rotate(0deg); } | |
| to { transform: rotate(360deg); } | |
| } | |
| .about-avatar { | |
| width: 280px; | |
| height: 280px; | |
| border-radius: 50%; | |
| object-fit: cover; | |
| object-position: center top; | |
| border: 3px solid rgba(99, 102, 241, 0.4); | |
| position: relative; | |
| z-index: 1; | |
| box-shadow: 0 0 60px rgba(99, 102, 241, 0.3); | |
| } | |
| .about-ring { | |
| position: absolute; | |
| border-radius: 50%; | |
| border: 1px solid; | |
| animation: ring-pulse 3s ease-in-out infinite; | |
| } | |
| .about-ring-1 { | |
| inset: -20px; | |
| border-color: rgba(99, 102, 241, 0.2); | |
| animation-delay: 0s; | |
| } | |
| .about-ring-2 { | |
| inset: -40px; | |
| border-color: rgba(99, 102, 241, 0.1); | |
| animation-delay: 0.5s; | |
| } | |
| @keyframes ring-pulse { | |
| 0%, 100% { opacity: 1; transform: scale(1); } | |
| 50% { opacity: 0.5; transform: scale(1.02); } | |
| } | |
| .about-text h3 { | |
| font-size: 1.75rem; | |
| margin-bottom: var(--space-sm); | |
| } | |
| .about-text p { | |
| color: var(--text-secondary); | |
| line-height: 1.9; | |
| margin-bottom: var(--space-sm); | |
| } | |
| .about-stats { | |
| display: flex; | |
| gap: var(--space-lg); | |
| margin-top: var(--space-md); | |
| flex-wrap: wrap; | |
| } | |
| @media (max-width: 900px) { | |
| .about-stats { | |
| justify-content: center; | |
| } | |
| } | |
| .stat-item { | |
| text-align: center; | |
| } | |
| .stat-value { | |
| font-family: var(--font-display); | |
| font-size: 2rem; | |
| font-weight: 800; | |
| background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .stat-label { | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| letter-spacing: 0.05em; | |
| text-transform: uppercase; | |
| } | |
| /* Skills */ | |
| .skills-categories { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | |
| gap: var(--space-md); | |
| } | |
| .skill-category-card { | |
| padding: var(--space-lg); | |
| } | |
| .skill-category-icon { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 48px; | |
| height: 48px; | |
| border-radius: var(--radius-md); | |
| background: rgba(99, 102, 241, 0.1); | |
| color: var(--accent-primary); | |
| font-size: 1.4rem; | |
| margin-bottom: var(--space-sm); | |
| } | |
| .skill-category-title { | |
| font-size: 1.1rem; | |
| font-weight: 700; | |
| margin-bottom: var(--space-sm); | |
| color: var(--text-primary); | |
| } | |
| .skill-tags { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| } | |
| /* Projects */ | |
| .projects-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); | |
| gap: var(--space-md); | |
| } | |
| @media (max-width: 768px) { | |
| .projects-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .project-card { | |
| padding: var(--space-lg); | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--space-sm); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .project-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 3px; | |
| background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary)); | |
| opacity: 0; | |
| transition: opacity var(--transition-normal); | |
| } | |
| .project-card:hover::before { | |
| opacity: 1; | |
| } | |
| .project-number { | |
| font-family: var(--font-mono); | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| letter-spacing: 0.1em; | |
| } | |
| .project-title { | |
| font-size: 1.4rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| } | |
| .project-description { | |
| color: var(--text-secondary); | |
| font-size: 0.9rem; | |
| line-height: 1.7; | |
| } | |
| .project-highlights { | |
| list-style: none; | |
| padding: 0; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| .project-highlights li { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 8px; | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| } | |
| .project-highlights li::before { | |
| content: '→'; | |
| color: var(--accent-primary); | |
| flex-shrink: 0; | |
| margin-top: 1px; | |
| } | |
| .project-tags { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 6px; | |
| margin-top: auto; | |
| } | |
| .project-actions { | |
| display: flex; | |
| gap: 10px; | |
| margin-top: var(--space-sm); | |
| } | |
| /* Education */ | |
| .education-timeline { | |
| position: relative; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .education-timeline::before { | |
| content: ''; | |
| position: absolute; | |
| left: 24px; | |
| top: 0; | |
| bottom: 0; | |
| width: 1px; | |
| background: linear-gradient(to bottom, var(--accent-primary), transparent); | |
| } | |
| .education-item { | |
| display: flex; | |
| gap: var(--space-md); | |
| margin-bottom: var(--space-xl); | |
| position: relative; | |
| } | |
| .education-dot { | |
| flex-shrink: 0; | |
| width: 48px; | |
| height: 48px; | |
| border-radius: 50%; | |
| background: rgba(99, 102, 241, 0.1); | |
| border: 2px solid var(--accent-primary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--accent-primary); | |
| font-size: 1.1rem; | |
| position: relative; | |
| z-index: 1; | |
| box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); | |
| } | |
| .education-content { | |
| padding-top: 4px; | |
| flex: 1; | |
| } | |
| .education-level { | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| letter-spacing: 0.1em; | |
| text-transform: uppercase; | |
| color: var(--text-accent); | |
| margin-bottom: 6px; | |
| } | |
| .education-degree { | |
| font-size: 1.2rem; | |
| font-weight: 700; | |
| margin-bottom: 4px; | |
| } | |
| .education-school { | |
| color: var(--text-secondary); | |
| font-size: 0.95rem; | |
| margin-bottom: 6px; | |
| } | |
| .education-grade { | |
| display: inline-flex; | |
| padding: 3px 12px; | |
| background: rgba(99, 102, 241, 0.1); | |
| border: 1px solid rgba(99, 102, 241, 0.2); | |
| border-radius: var(--radius-full); | |
| font-size: 0.8rem; | |
| font-weight: 700; | |
| color: var(--accent-primary); | |
| } | |
| /* Achievements */ | |
| .achievements-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); | |
| gap: var(--space-md); | |
| } | |
| .achievement-card { | |
| padding: var(--space-md); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: var(--space-sm); | |
| } | |
| .achievement-icon { | |
| width: 52px; | |
| height: 52px; | |
| border-radius: var(--radius-md); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.4rem; | |
| background: rgba(99, 102, 241, 0.1); | |
| border: 1px solid rgba(99, 102, 241, 0.15); | |
| } | |
| .achievement-title { | |
| font-size: 1rem; | |
| font-weight: 700; | |
| } | |
| .achievement-desc { | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| line-height: 1.7; | |
| } | |
| /* Contact */ | |
| .contact-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1.4fr; | |
| gap: var(--space-2xl); | |
| align-items: start; | |
| } | |
| @media (max-width: 900px) { | |
| .contact-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .contact-info h3 { | |
| font-size: 1.5rem; | |
| margin-bottom: var(--space-sm); | |
| } | |
| .contact-info p { | |
| color: var(--text-secondary); | |
| line-height: 1.8; | |
| margin-bottom: var(--space-lg); | |
| } | |
| .contact-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--space-sm); | |
| } | |
| .contact-link { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: var(--space-sm) var(--space-md); | |
| border-radius: var(--radius-md); | |
| border: 1px solid var(--border-subtle); | |
| background: var(--bg-card); | |
| color: var(--text-secondary); | |
| font-size: 0.9rem; | |
| transition: all var(--transition-normal); | |
| } | |
| .contact-link:hover { | |
| border-color: var(--accent-primary); | |
| color: var(--text-primary); | |
| transform: translateX(4px); | |
| } | |
| .contact-link-icon { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: var(--radius-sm); | |
| background: rgba(99, 102, 241, 0.1); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.1rem; | |
| color: var(--accent-primary); | |
| flex-shrink: 0; | |
| } | |
| /* Contact Form */ | |
| .contact-form { | |
| padding: var(--space-xl); | |
| backdrop-filter: blur(20px); | |
| } | |
| .form-group { | |
| margin-bottom: var(--space-md); | |
| } | |
| .form-label { | |
| display: block; | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| letter-spacing: 0.05em; | |
| text-transform: uppercase; | |
| color: var(--text-secondary); | |
| margin-bottom: 8px; | |
| } | |
| .form-input, | |
| .form-textarea { | |
| width: 100%; | |
| padding: 14px 18px; | |
| background: rgba(255, 255, 255, 0.04); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-md); | |
| color: var(--text-primary); | |
| font-family: var(--font-primary); | |
| font-size: 0.95rem; | |
| transition: all var(--transition-fast); | |
| outline: none; | |
| } | |
| [data-theme="light"] .form-input, | |
| [data-theme="light"] .form-textarea { | |
| background: rgba(248, 250, 255, 0.8); | |
| } | |
| .form-input:focus, | |
| .form-textarea:focus { | |
| border-color: var(--accent-primary); | |
| box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); | |
| } | |
| .form-input::placeholder, | |
| .form-textarea::placeholder { | |
| color: var(--text-muted); | |
| } | |
| .form-textarea { | |
| min-height: 120px; | |
| resize: vertical; | |
| } | |
| .form-row { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: var(--space-sm); | |
| } | |
| @media (max-width: 600px) { | |
| .form-row { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .form-error { | |
| font-size: 0.8rem; | |
| color: #f87171; | |
| margin-top: 4px; | |
| } | |
| .form-status { | |
| padding: var(--space-sm) var(--space-md); | |
| border-radius: var(--radius-md); | |
| font-size: 0.9rem; | |
| font-weight: 500; | |
| margin-top: var(--space-sm); | |
| text-align: center; | |
| } | |
| .form-status.success { | |
| background: rgba(34, 197, 94, 0.1); | |
| border: 1px solid rgba(34, 197, 94, 0.3); | |
| color: #4ade80; | |
| } | |
| .form-status.error { | |
| background: rgba(239, 68, 68, 0.1); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| color: #f87171; | |
| } | |
| /* Footer */ | |
| .footer { | |
| padding: var(--space-xl) 0; | |
| border-top: 1px solid var(--border-subtle); | |
| text-align: center; | |
| color: var(--text-muted); | |
| } | |
| .footer-inner { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: var(--space-sm); | |
| } | |
| .footer-socials { | |
| display: flex; | |
| gap: var(--space-sm); | |
| } | |
| .footer-socials a { | |
| font-size: 1.2rem; | |
| color: var(--text-muted); | |
| transition: color var(--transition-fast); | |
| } | |
| .footer-socials a:hover { | |
| color: var(--accent-primary); | |
| } | |
| .footer-text { | |
| font-size: 0.85rem; | |
| } | |
| .footer-text span { | |
| color: var(--accent-primary); | |
| } | |
| /* ===================================================== | |
| BLOG GRIDS - RESPONSIVE | |
| ===================================================== */ | |
| .blog-featured-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); | |
| gap: 1.25rem; | |
| } | |
| .blog-rest-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); | |
| gap: 1rem; | |
| } | |
| @media (max-width: 600px) { | |
| .blog-featured-grid, | |
| .blog-rest-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| /* ===================================================== | |
| BLOG READ MODAL | |
| ===================================================== */ | |
| .blog-modal-overlay { | |
| position: fixed; | |
| inset: 0; | |
| z-index: 200; | |
| background: rgba(5, 8, 16, 0.88); | |
| backdrop-filter: blur(12px); | |
| -webkit-backdrop-filter: blur(12px); | |
| display: flex; | |
| align-items: flex-start; | |
| justify-content: center; | |
| padding: 1rem; | |
| overflow-y: auto; | |
| } | |
| .blog-modal-container { | |
| background: var(--bg-primary); | |
| border: 1px solid rgba(255, 255, 255, 0.08); | |
| border-radius: 24px; | |
| width: 100%; | |
| max-width: 820px; | |
| min-height: 60vh; | |
| display: flex; | |
| flex-direction: column; | |
| box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(99, 102, 241, 0.15); | |
| margin: auto; | |
| position: relative; | |
| } | |
| .blog-modal-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 1.5rem 2rem; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |
| position: sticky; | |
| top: 0; | |
| background: var(--bg-primary); | |
| border-radius: 24px 24px 0 0; | |
| z-index: 10; | |
| } | |
| .blog-modal-back { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| color: var(--text-secondary); | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| padding: 6px 12px; | |
| border-radius: var(--radius-full); | |
| border: 1px solid var(--border-subtle); | |
| transition: all var(--transition-fast); | |
| } | |
| .blog-modal-back:hover { | |
| color: var(--text-primary); | |
| border-color: var(--accent-primary); | |
| } | |
| .blog-modal-close { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 34px; | |
| height: 34px; | |
| border-radius: 50%; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-subtle); | |
| cursor: pointer; | |
| color: var(--text-muted); | |
| transition: all var(--transition-fast); | |
| } | |
| .blog-modal-close:hover { | |
| background: rgba(239, 68, 68, 0.1); | |
| border-color: rgba(239, 68, 68, 0.3); | |
| color: #f87171; | |
| } | |
| .blog-modal-article-header { | |
| padding: 2rem 2rem 1rem; | |
| } | |
| .blog-modal-title { | |
| font-size: clamp(1.4rem, 4vw, 2rem); | |
| font-weight: 800; | |
| line-height: 1.3; | |
| margin-bottom: 0.75rem; | |
| color: var(--text-primary); | |
| letter-spacing: -0.02em; | |
| } | |
| .blog-modal-meta { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| color: var(--text-muted); | |
| font-size: 0.82rem; | |
| } | |
| .blog-modal-meta-dot { | |
| opacity: 0.5; | |
| } | |
| .blog-modal-content { | |
| flex: 1; | |
| padding: 0 2rem 2rem; | |
| overflow-y: auto; | |
| } | |
| .blog-modal-body { | |
| max-width: 100%; | |
| } | |
| /* Blog Modal Typography */ | |
| .blog-modal-h2 { | |
| font-size: clamp(1.1rem, 3vw, 1.4rem); | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin-top: 2rem; | |
| margin-bottom: 0.75rem; | |
| letter-spacing: -0.02em; | |
| padding-bottom: 0.4rem; | |
| border-bottom: 1px solid var(--border-subtle); | |
| } | |
| .blog-modal-h3 { | |
| font-size: clamp(1rem, 2.5vw, 1.15rem); | |
| font-weight: 700; | |
| color: var(--text-accent); | |
| margin-top: 1.5rem; | |
| margin-bottom: 0.5rem; | |
| } | |
| .blog-modal-p { | |
| font-size: 0.95rem; | |
| color: var(--text-secondary); | |
| line-height: 1.85; | |
| margin-bottom: 0.6rem; | |
| } | |
| .blog-modal-bold { | |
| font-size: 0.95rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| line-height: 1.7; | |
| margin-bottom: 0.5rem; | |
| } | |
| .blog-modal-li { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 10px; | |
| font-size: 0.92rem; | |
| color: var(--text-secondary); | |
| line-height: 1.75; | |
| margin-bottom: 0.4rem; | |
| } | |
| .blog-modal-bullet { | |
| color: var(--accent-primary); | |
| font-weight: 700; | |
| font-size: 1.1rem; | |
| flex-shrink: 0; | |
| margin-top: -1px; | |
| } | |
| .blog-modal-num { | |
| min-width: 24px; | |
| height: 24px; | |
| border-radius: 50%; | |
| background: rgba(99, 102, 241, 0.25); | |
| border: 1px solid rgba(99, 102, 241, 0.4); | |
| color: #c7d2fe; | |
| font-size: 0.75rem; | |
| font-weight: 700; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| flex-shrink: 0; | |
| margin-top: 2px; | |
| } | |
| .blog-modal-li strong { | |
| color: var(--text-primary); | |
| font-weight: 600; | |
| } | |
| .blog-modal-p strong { | |
| color: var(--text-primary); | |
| font-weight: 600; | |
| } | |
| /* Code blocks in modal */ | |
| .blog-code-block { | |
| background: rgba(0, 0, 0, 0.4); | |
| border: 1px solid rgba(99, 102, 241, 0.15); | |
| border-radius: var(--radius-md); | |
| margin: 1.25rem 0; | |
| overflow: hidden; | |
| } | |
| .blog-code-lang { | |
| padding: 6px 16px; | |
| background: rgba(99, 102, 241, 0.08); | |
| border-bottom: 1px solid rgba(99, 102, 241, 0.1); | |
| font-size: 0.7rem; | |
| font-weight: 700; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| color: var(--text-accent); | |
| font-family: var(--font-mono); | |
| } | |
| .blog-code-block pre { | |
| padding: 1.2rem 1.5rem; | |
| overflow-x: auto; | |
| margin: 0; | |
| } | |
| .blog-code-block code { | |
| font-family: var(--font-mono); | |
| font-size: 0.82rem; | |
| line-height: 1.7; | |
| color: #e2e8f0; | |
| white-space: pre; | |
| } | |
| /* Table in modal */ | |
| .blog-table-wrap { | |
| overflow-x: auto; | |
| margin: 1.25rem 0; | |
| border-radius: var(--radius-md); | |
| border: 1px solid var(--border-subtle); | |
| } | |
| .blog-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: 0.85rem; | |
| } | |
| .blog-table th { | |
| padding: 10px 16px; | |
| background: rgba(99, 102, 241, 0.08); | |
| color: var(--text-accent); | |
| font-weight: 700; | |
| text-align: left; | |
| border-bottom: 1px solid var(--border-subtle); | |
| white-space: nowrap; | |
| } | |
| .blog-table td { | |
| padding: 10px 16px; | |
| color: var(--text-secondary); | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.03); | |
| } | |
| .blog-table tr:last-child td { | |
| border-bottom: none; | |
| } | |
| .blog-table tr:hover td { | |
| background: var(--bg-card); | |
| } | |
| .blog-modal-footer { | |
| padding: 1.25rem 2rem; | |
| border-top: 1px solid var(--border-subtle); | |
| display: flex; | |
| align-items: center; | |
| border-radius: 0 0 var(--radius-lg) var(--radius-lg); | |
| } | |
| .blog-modal-close-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-full); | |
| padding: 8px 20px; | |
| cursor: pointer; | |
| color: var(--text-secondary); | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| transition: all var(--transition-fast); | |
| } | |
| .blog-modal-close-btn:hover { | |
| border-color: var(--accent-primary); | |
| color: var(--accent-primary); | |
| } | |
| /* ===================================================== | |
| COMPREHENSIVE MOBILE RESPONSIVENESS | |
| ===================================================== */ | |
| /* --- Hero mobile --- */ | |
| @media (max-width: 768px) { | |
| .hero-two-col { | |
| grid-template-columns: 1fr ; | |
| text-align: center; | |
| gap: 2rem ; | |
| padding-top: 0 ; | |
| } | |
| .hero-two-col > div:last-child { | |
| order: -1; | |
| margin: 0 auto; | |
| } | |
| /* Shrink hero profile photo on mobile */ | |
| .hero-two-col > div:last-child > div[style*="370"] { | |
| width: 220px ; | |
| height: 220px ; | |
| } | |
| /* Center hero CTA buttons */ | |
| .hero-cta { | |
| justify-content: center; | |
| } | |
| /* Center hero socials */ | |
| .hero-socials, | |
| [style*="display: flex"][style*="alignItems: center"][style*="gap: 1rem"] { | |
| justify-content: center; | |
| } | |
| /* Reduce floating badges on small screens */ | |
| .hero-two-col [style*="position: absolute"][style*="bottom: 16"] { | |
| left: 0 ; | |
| bottom: 0 ; | |
| } | |
| .hero-two-col [style*="position: absolute"][style*="top: 20"] { | |
| right: 0 ; | |
| top: 0 ; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| /* Name font tighter on very small screens */ | |
| h1[style*="clamp(2.2rem"] { | |
| font-size: clamp(2rem, 10vw, 3rem) ; | |
| white-space: normal ; | |
| } | |
| /* Remove whitespace nowrap on hero title */ | |
| .hero-title { | |
| white-space: normal ; | |
| } | |
| } | |
| /* --- Skills mobile --- */ | |
| @media (max-width: 600px) { | |
| .skills-categories { | |
| grid-template-columns: 1fr ; | |
| } | |
| } | |
| /* --- Experience mobile --- */ | |
| @media (max-width: 768px) { | |
| .experience-timeline::before { | |
| left: 16px ; | |
| } | |
| } | |
| /* --- Achievements mobile --- */ | |
| @media (max-width: 600px) { | |
| .achievements-grid { | |
| grid-template-columns: 1fr ; | |
| } | |
| } | |
| /* --- Publications mobile --- */ | |
| @media (max-width: 600px) { | |
| .publications-grid { | |
| grid-template-columns: 1fr ; | |
| } | |
| } | |
| /* --- Contact form mobile --- */ | |
| @media (max-width: 600px) { | |
| .contact-form { | |
| padding: var(--space-md) ; | |
| } | |
| } | |
| /* --- General section padding on mobile --- */ | |
| @media (max-width: 480px) { | |
| .section { | |
| padding: 3rem 0; | |
| } | |
| .section-header { | |
| margin-bottom: 2rem; | |
| } | |
| .section-subtitle { | |
| font-size: 0.95rem; | |
| } | |
| .glass-card { | |
| border-radius: var(--radius-md); | |
| } | |
| } | |
| /* --- Blog modal mobile --- */ | |
| @media (max-width: 600px) { | |
| .blog-modal-overlay { | |
| padding: 0; | |
| align-items: flex-end; | |
| } | |
| .blog-modal-container { | |
| border-radius: var(--radius-lg) var(--radius-lg) 0 0; | |
| min-height: 90vh; | |
| max-height: 95vh; | |
| overflow-y: auto; | |
| margin: 0; | |
| } | |
| .blog-modal-article-header, | |
| .blog-modal-content { | |
| padding-left: 1.25rem; | |
| padding-right: 1.25rem; | |
| } | |
| .blog-modal-header { | |
| padding: 1rem 1.25rem; | |
| border-radius: var(--radius-lg) var(--radius-lg) 0 0; | |
| } | |
| .blog-modal-footer { | |
| padding: 1rem 1.25rem; | |
| } | |
| .blog-code-block pre { | |
| padding: 1rem; | |
| } | |
| .blog-code-block code { | |
| font-size: 0.75rem; | |
| } | |
| .blog-modal-title { | |
| font-size: 1.3rem; | |
| } | |
| } | |
| /* --- Navbar mobile improvements --- */ | |
| @media (max-width: 768px) { | |
| .navbar { | |
| padding: 14px 0; | |
| } | |
| .navbar.scrolled { | |
| padding: 10px 0; | |
| } | |
| .mobile-menu a { | |
| font-size: 1.6rem; | |
| } | |
| } | |
| /* --- Footer mobile --- */ | |
| @media (max-width: 600px) { | |
| .footer-top-grid { | |
| grid-template-columns: 1fr ; | |
| gap: 1.5rem ; | |
| text-align: center ; | |
| } | |
| .footer-links-grid { | |
| grid-template-columns: 1fr 1fr ; | |
| } | |
| } | |
| /* --- Education mobile --- */ | |
| @media (max-width: 600px) { | |
| .education-timeline::before { | |
| left: 18px; | |
| } | |
| .education-dot { | |
| width: 38px ; | |
| height: 38px ; | |
| font-size: 0.9rem ; | |
| } | |
| .education-degree { | |
| font-size: 1rem ; | |
| } | |
| } | |
| /* --- Prevent horizontal overflow globally --- */ | |
| *, *::before, *::after { | |
| max-width: 100%; | |
| } | |
| img, video, canvas, svg { | |
| max-width: 100%; | |
| height: auto; | |
| } | |
| /* Touch-friendly tap targets */ | |
| @media (max-width: 768px) { | |
| .btn { | |
| min-height: 44px; | |
| padding: 12px 22px; | |
| } | |
| .tech-tag { | |
| padding: 5px 12px; | |
| } | |
| .blog-modal-back, | |
| .blog-modal-close { | |
| min-height: 40px; | |
| min-width: 40px; | |
| } | |
| } | |
| /* --- Hero profile image responsive sizing --- */ | |
| @media (max-width: 960px) { | |
| .hero-profile-img { | |
| width: 280px ; | |
| height: 280px ; | |
| } | |
| } | |
| @media (max-width: 600px) { | |
| .hero-profile-img { | |
| width: 200px ; | |
| height: 200px ; | |
| } | |
| /* Hide floating badges on very small screens to prevent overflow */ | |
| .hero-badge-float { | |
| display: none ; | |
| } | |
| } | |
| @media (max-width: 400px) { | |
| .hero-profile-img { | |
| width: 170px ; | |
| height: 170px ; | |
| } | |
| } | |