@tailwind base; @tailwind components; @tailwind utilities; :root { --bg-primary: #050a18; --bg-secondary: #0d1529; --text-primary: #e2e8f0; --text-secondary: #94a3b8; --accent-primary: #06b6d4; --accent-secondary: #3b82f6; --accent-tertiary: #8b5cf6; --glow-primary: rgba(6, 182, 212, 0.3); --glow-secondary: rgba(59, 130, 246, 0.3); --card-bg: rgba(15, 23, 42, 0.8); --card-border: rgba(56, 189, 248, 0.2); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Space Grotesk', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; background-image: radial-gradient(circle at 20% 35%, rgba(6, 182, 212, 0.05) 0%, transparent 50%), radial-gradient(circle at 75% 15%, rgba(59, 130, 246, 0.05) 0%, transparent 45%), radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 40%); position: relative; } /* Grid overlay effect */ body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(226, 232, 240, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 232, 240, 0.03) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; z-index: -1; } /* Neural network nodes */ .neural-node { position: fixed; width: 2px; height: 2px; background: rgba(226, 232, 240, 0.2); border-radius: 50%; animation: pulse 4s infinite alternate ease-in-out; z-index: -1; } @keyframes pulse { 0% { transform: scale(1); opacity: 0.3; } 100% { transform: scale(1.5); opacity: 0.6; } } /* Terminal cursor animation */ @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* Header styles */ header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem clamp(1rem, 5%, 3rem); position: relative; background: linear-gradient(180deg, var(--bg-secondary), transparent); border-bottom: 1px solid rgba(56, 189, 248, 0.1); } .logo { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.5rem; text-decoration: none; color: var(--text-primary); } .logo span { background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; } .logo-symbol { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: bold; font-size: 1.25rem; color: var(--bg-primary); box-shadow: 0 0 15px var(--glow-primary); } nav { display: flex; gap: 2rem; } nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: all 0.3s ease; position: relative; } nav a:hover { color: var(--text-primary); } nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); transition: width 0.3s ease; } nav a:hover::after { width: 100%; } .mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; } /* Floating shapes */ .floating-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; } .floating-shape { position: absolute; border-radius: 50%; opacity: 0.05; filter: blur(30px); } .shape-1 { width: 300px; height: 300px; background: var(--accent-primary); top: 20%; right: 0; } .shape-2 { width: 200px; height: 200px; background: var(--accent-secondary); bottom: 10%; left: 10%; } .shape-3 { width: 150px; height: 150px; background: var(--accent-tertiary); top: 70%; right: 20%; } /* Blog post cards */ .post-card { background: var(--card-bg); border-radius: 10px; border: 1px solid var(--card-border); overflow: hidden; transition: all 0.3s ease; position: relative; z-index: 1; } .post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1); border-color: rgba(56, 189, 248, 0.4); } .post-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05)); z-index: -1; opacity: 0; transition: opacity 0.3s ease; } .post-card:hover::before { opacity: 1; } .post-image { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--card-border); } .post-content { padding: 1.5rem; } .post-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-secondary); } .post-category { background: rgba(6, 182, 212, 0.1); color: var(--accent-primary); padding: 0.25rem 0.5rem; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; } .post-title { font-size: 1.25rem; margin-bottom: 0.75rem; line-height: 1.3; } .post-title a { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; } .post-title a:hover { color: var(--accent-primary); } .post-excerpt { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .post-footer { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 0.85rem; } .read-more { color: var(--accent-primary); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 0.25rem; transition: color 0.3s ease; } .read-more:hover { color: var(--accent-secondary); } .read-more::after { content: '→'; } /* Section styles */ .section-title { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1rem; position: relative; display: inline-block; color: var(--text-primary); } .section-title::after { content: ''; position: absolute; height: 4px; width: 60px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); bottom: -10px; left: 0; border-radius: 2px; } /* Footer styles */ footer { background: var(--bg-secondary); padding: 3rem clamp(1rem, 5%, 3rem); position: relative; border-top: 1px solid rgba(56, 189, 248, 0.1); margin-top: 5rem; } .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; } .footer-col h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-primary); } .footer-links { list-style: none; } .footer-links li { margin-bottom: 0.75rem; } .footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; } .footer-links a:hover { color: var(--accent-primary); } .social-links { display: flex; gap: 1rem; margin-top: 1rem; } .social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(226, 232, 240, 0.05); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; transition: all 0.3s ease; } .social-link:hover { background: var(--accent-primary); color: var(--bg-primary); transform: translateY(-3px); } .footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(226, 232, 240, 0.05); color: var(--text-secondary); font-size: 0.9rem; } .footer-bottom a { color: var(--accent-primary); text-decoration: none; } /* Hero section for homepage */ .hero { min-height: 80vh; display: flex; align-items: center; padding: 3rem clamp(1rem, 5%, 3rem); position: relative; overflow: hidden; } .hero-content { max-width: 650px; z-index: 1; } .hero-subtitle { font-family: 'JetBrains Mono', monospace; color: var(--accent-primary); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } .hero-subtitle::before { content: '>'; font-weight: bold; } .hero-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; } .hero-title span { background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary)); -webkit-background-clip: text; background-clip: text; color: transparent; } .hero-description { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; max-width: 85%; } .cta-button { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: var(--bg-primary); font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 0 20px var(--glow-primary); } .cta-button:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--glow-primary); } /* Terminal box */ .terminal-box { width: 100%; background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--card-border); box-shadow: 0 0 30px rgba(6, 182, 212, 0.1); padding: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; display: flex; flex-direction: column; z-index: 1; overflow: hidden; margin: 2rem 0; } .terminal-header { display: flex; align-items: center; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(226, 232, 240, 0.1); } .terminal-dots { display: flex; gap: 0.5rem; } .terminal-dot { width: 12px; height: 12px; border-radius: 50%; } .terminal-dot-red { background: #ef4444; } .terminal-dot-yellow { background: #eab308; } .terminal-dot-green { background: #22c55e; } .terminal-title { margin-left: auto; margin-right: auto; color: var(--text-secondary); font-size: 0.8rem; } .terminal-content { flex: 1; color: var(--text-secondary); } .terminal-line { margin-bottom: 0.75rem; display: flex; } .terminal-prompt { color: var(--accent-primary); margin-right: 0.5rem; } .terminal-command { color: var(--text-primary); } .terminal-output { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 0.75rem; } .terminal-typing { position: relative; } .terminal-typing::after { content: '|'; position: absolute; right: -10px; animation: blink 1s infinite; } /* Container and content layout */ .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; } main { padding: 2rem 0; } /* Blog content styling */ .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; margin-top: 2rem; } /* Digital Garden */ .digital-garden-intro { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; max-width: 800px; } /* Responsive adjustments */ @media (max-width: 1024px) { .hero { flex-direction: column; align-items: flex-start; } .hero-content { max-width: 100%; } } @media (max-width: 768px) { header { flex-direction: column; align-items: flex-start; gap: 1rem; } nav { width: 100%; justify-content: space-between; } .hero-description { max-width: 100%; } .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; } .hero { padding: 2rem 1rem; flex-direction: column; gap: 2rem; } .hero-content { max-width: 100%; } .hero-title { font-size: clamp(1.5rem, 6vw, 2.5rem); } .terminal-box { width: 100%; min-height: 300px; max-width: 100%; } .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .post-card { min-height: auto; } .featured-grid { grid-template-columns: 1fr; } .post-metadata { flex-direction: column; align-items: flex-start; gap: 0.75rem; } .post-info { flex-wrap: wrap; } .post-tags { margin-top: 1rem; } /* Add mobile menu functionality */ .mobile-menu-btn { display: block; } nav.desktop-nav { display: none; } nav.mobile-nav-active { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-primary); z-index: 1000; padding: 2rem; align-items: flex-start; } nav.mobile-nav-active a { font-size: 1.5rem; margin-bottom: 1.5rem; } .mobile-menu-close { align-self: flex-end; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; margin-bottom: 2rem; } } @media (max-width: 640px) { .mobile-menu-btn { display: block; position: absolute; right: 1.5rem; top: 1.5rem; } nav { display: none; } .blog-grid { grid-template-columns: 1fr; } } /* Additional mobile optimizations for very small screens */ @media (max-width: 480px) { :root { --container-padding: 0.75rem; } .post-title { font-size: 1.5rem; } .post-card { border-radius: 0.5rem; } .post-image { height: 160px; } .section-title { font-size: 1.5rem; margin-bottom: 1rem; } .hero-subtitle { font-size: 0.8rem; } .cta-button { width: 100%; text-align: center; } .post-content { font-size: 1rem; line-height: 1.6; } /* Adjust footer layout */ .footer-col { margin-bottom: 1.5rem; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } } /* Touch device optimizations */ @media (hover: none) { .post-card:hover { transform: none; } .cta-button:hover { transform: none; } nav a:hover::after { width: 100%; } .social-link:hover { transform: none; } .post-tag:hover { transform: none; } /* Increase tap target sizes */ nav a { padding: 0.5rem 0; } .footer-links li { margin-bottom: 0.75rem; } .footer-links a { padding: 0.5rem 0; display: inline-block; } .post-footer { padding: 1rem; } }