|
| 1 | + |
| 2 | +:root{ |
| 3 | + --navy:#071235; |
| 4 | + --blue:#1e63d3; |
| 5 | + --silver:#f2f4f8; |
| 6 | + --accent:#f6b75e; |
| 7 | + --bg-dark:#061221; |
| 8 | + --bg-light:#f8fbff; |
| 9 | + --text-dark:#0b1c2e; |
| 10 | + --text-light:#e9f2ff; |
| 11 | + --radius:12px; |
| 12 | +} |
| 13 | +*{box-sizing:border-box;margin:0;padding:0} |
| 14 | +body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;background:var(--bg-dark);color:var(--text-light);-webkit-font-smoothing:antialiased} |
| 15 | +.container{max-width:1100px;margin:0 auto;padding:0 1rem} |
| 16 | + |
| 17 | +/* THEME TOGGLE */ |
| 18 | +.theme-toggle{position:fixed;right:18px;top:18px;background:rgba(255,255,255,0.06);color:var(--text-light);width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:999;box-shadow:0 6px 20px rgba(0,0,0,0.3)} |
| 19 | + |
| 20 | +/* HERO */ |
| 21 | +.hero-outer{position:relative;padding:60px 0 40px;overflow:hidden} |
| 22 | +.hero-inner{display:flex;align-items:center;gap:24px} |
| 23 | +.logo-wrap{flex:0 0 140px} |
| 24 | +.hero-logo{width:140px;height:140px;object-fit:contain;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,0.4);background:linear-gradient(135deg,var(--blue),var(--navy))} |
| 25 | +.hero-text .name{font-size:2rem;margin-bottom:6px} |
| 26 | +.hero-text .tagline{color:rgba(255,255,255,0.9);margin-bottom:12px} |
| 27 | +.hero-cta{display:flex;gap:12px} |
| 28 | +.btn{padding:10px 14px;border-radius:10px;border:0;cursor:pointer;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:8px} |
| 29 | +.primary{background:var(--accent);color:#041027} |
| 30 | +.ghost{background:transparent;color:var(--silver);border:1px solid rgba(255,255,255,0.06)} |
| 31 | + |
| 32 | +/* Watermark */ |
| 33 | +.hero-watermark{position:absolute;right:-60px;top:10%;opacity:0.06;transform:rotate(-12deg);width:480px} |
| 34 | +.hero-watermark img{width:100%;display:block} |
| 35 | + |
| 36 | +/* Sections */ |
| 37 | +.section{padding:48px 0} |
| 38 | +.section h2{color:var(--accent);margin-bottom:12px} |
| 39 | +.section p{color:rgba(255,255,255,0.9)} |
| 40 | + |
| 41 | +/* About */ |
| 42 | +.about p{max-width:820px} |
| 43 | + |
| 44 | +/* Projects grid */ |
| 45 | +.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px} |
| 46 | +.project-card{background:rgba(255,255,255,0.03);padding:0;border-radius:10px;overflow:hidden;display:block;border:1px solid rgba(255,255,255,0.03)} |
| 47 | +.project-card img{height:140px;width:100%;object-fit:cover} |
| 48 | +.project-body{padding:12px} |
| 49 | +.placeholder{display:flex;align-items:center;justify-content:center;min-height:140px} |
| 50 | + |
| 51 | +/* Contact */ |
| 52 | +.contact-grid{display:grid;grid-template-columns:1fr 420px;gap:18px} |
| 53 | +.contact-card{background:rgba(255,255,255,0.03);padding:18px;border-radius:10px;border:1px solid rgba(255,255,255,0.03)} |
| 54 | + |
| 55 | +/* Footer */ |
| 56 | +.footer{background:linear-gradient(90deg,var(--navy),var(--blue));padding:18px;margin-top:24px;color:var(--silver)} |
| 57 | +.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:12px} |
| 58 | +.footer .dev-link{color:var(--silver);font-weight:700;text-decoration:none;position:relative} |
| 59 | +.dev-link::after{content:'';position:absolute;left:0;bottom:-4px;width:0;height:2px;background:linear-gradient(90deg,var(--blue),var(--navy));transition:width .35s ease;border-radius:2px} |
| 60 | +.dev-link:hover::after{width:100%} |
| 61 | +.social-links a{color:var(--silver);margin-left:12px} |
| 62 | + |
| 63 | +/* Top button */ |
| 64 | +#topBtn{position:fixed;right:18px;bottom:18px;width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;border:none;display:none;align-items:center;justify-content:center;cursor:pointer;z-index:999} |
| 65 | + |
| 66 | +/* Reveal animation */ |
| 67 | +.reveal{opacity:0;transform:translateY(18px);transition:all .6s cubic-bezier(.2,.9,.3,1)} |
| 68 | +.reveal.visible{opacity:1;transform:none} |
| 69 | +.delay-1{transition-delay:.12s} |
| 70 | +.delay-2{transition-delay:.22s} |
| 71 | + |
| 72 | +/* Light theme (switch) */ |
| 73 | +body.light{background:var(--bg-light);color:var(--text-dark)} |
| 74 | +body.light .hero-logo{background:linear-gradient(135deg,var(--navy),var(--blue));box-shadow:0 6px 18px rgba(0,0,0,0.06)} |
| 75 | +body.light .footer{background:linear-gradient(90deg,#f0f4fb,#eaf2ff);color:var(--text-dark)} |
| 76 | +body.light .dev-link{color:var(--text-dark)} |
| 77 | + |
| 78 | +/* Responsive */ |
| 79 | +@media(max-width:900px){ |
| 80 | + .hero-inner{flex-direction:column;align-items:center;text-align:center;padding:0 1rem} |
| 81 | + .hero-watermark{display:none} |
| 82 | + .contact-grid{grid-template-columns:1fr} |
| 83 | + .nav{display:none} |
| 84 | +} |
0 commit comments