:root {
--primary-bg: #0b1e35;
--primary-gradient: none;
--secondary-bg: #0f2d4d;
--secondary-border: #009ad6;
--accent-color: #F56804;
--accent-hover: #ff7a1f;
--base-color: rgb(255, 255, 255);
--border-color: rgb(0, 154, 214);
--title-color: rgba(178, 255, 247, 0.9);
--accent-white: #ffffff;
--font-base: 17px;
--font-small: 22px;
--font-medium: 38px;
--font-large: 60px;
--space-xs: 12px;
--space-sm: 16px;
--space-md: 20px;
--space-lg: 36px;
--space-xl: 48px;
--card-radius: 18px;
--btn-radius: 14px;
--tilt-deg: -1deg;
--alt-gap: 22px;
--default-width: 1100px;
--mobile-width: 95%;
--transition: 0.1s linear;
}
body {
background-color: #021022;
}
.logo {
border: 3px solid rgba(245, 104, 4, 0.28);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.card {
border-width: 4px !important;
border-style: solid !important;
border-color: rgba(0, 154, 214, 0.18) !important;
}
.card.handmade {
border-style: dashed !important;
padding-left: 28px;
}
.project-item:nth-child(odd) {
margin-top: 12px;
}
.project-item:nth-child(even) {
margin-top: 6px;
}
.theme-btn {
background: #001c825f !important;
border-color: #002ed679 !important;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--primary-bg);
color: var(--base-color);
line-height: 1.6;
min-height: 100vh;
}
h1 {
font-size: var(--font-medium);
font-weight: 700;
letter-spacing: 0.8px;
margin-bottom: var(--space-sm);
text-align: center;
color: var(--accent-color);
font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, sans-serif;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
h2 {
font-size: var(--font-medium);
font-weight: 700;
letter-spacing: 0.6px;
margin-bottom: var(--space-sm);
text-align: center;
color: var(--accent-color);
}
h3 {
font-size: var(--font-small);
font-weight: 600;
color: var(--title-color);
margin-top: var(--space-md);
margin-bottom: var(--space-sm);
letter-spacing: 0.4px;
}
h2 {
font-size: calc(var(--font-medium) - 4px);
}
h4 {
font-family: 'Comic Sans MS', 'Segoe UI', cursive;
letter-spacing: 0.4px;
}
h4 {
font-size: var(--font-small);
font-weight: 700;
letter-spacing: 0.5px;
background: var(--title-color);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
p {
font-size: var(--font-base);
line-height: 1.75;
letter-spacing: 0.2px;
color: var(--base-color);
text-align: left;
}
a {
text-decoration: none;
color: var(--accent-color);
transition: var(--transition);
font-weight: 500;
position: relative;
}
a:visited {
-webkit-text-fill-color: transparent;
}
a:hover {
filter: brightness(1.2);
font-weight: 600;
}
a:focus-visible {
outline: 2px dashed rgba(245, 104, 4, 0.9);
outline-offset: 3px;
border-radius: 6px;
}
:focus-visible {
outline: none;
box-shadow: 0 0 0 4px rgba(245, 104, 4, 0.4), 0 0 20px rgba(245, 104, 4, 0.6);
background: rgba(245, 104, 4, 0.15);
color: var(--accent-white);
border-radius: 8px;
transform: scale(1.03);
position: relative;
z-index: 10;
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
a:focus-visible:not(:focus-visible) {
outline: none;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
max-width: var(--default-width);
margin: 0 auto var(--space-lg);
padding: 15px 20px;
border: 2px solid var(--secondary-border);
background: var(--secondary-bg);
box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
border-radius: 8px;
transition: var(--transition);
}
header:focus-within {
background: rgba(10, 30, 60, 0.8);
border-color: var(--border-color);
}
header:hover {
background: rgba(10, 30, 60, 0.5);
box-shadow: 0 12px 40px rgba(245, 104, 4, 0.15);
}
.logo-link {
display: flex;
align-items: center;
transition: var(--transition);
}
.logo-link:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 4px;
border-radius: 6px;
}
.logo-link:hover {
transform: scale(1.05);
}
.logo {
height: 74px;
width: 70px;
background-image: url("/images/logo.png");
background-size: 74px;
background-repeat: no-repeat;
background-position: center;
margin-right: 18px;
}
.header {
list-style: none;
display: flex;
gap: var(--space-md);
flex: 1 1 auto;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
min-width: 0;
}
.header li {
list-style: none;
white-space: nowrap;
}
.heading {
margin: 0;
font-size: 15px;
font-weight: 700;
letter-spacing: 0.6px;
transition: all 0.2s ease;
padding: 8px 14px;
border-radius: var(--btn-radius);
position: relative;
background: transparent;
color: var(--base-color);
border: 2px solid transparent;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: none;
}
.heading:hover {
background: transparent;
border-color: transparent;
color: var(--accent-color);
transform: none;
}
.header li:nth-child(odd) .heading {
padding-left: 18px;
padding-right: 10px;
border-radius: 8px;
}
.header li:nth-child(even) .heading {
padding-left: 8px;
padding-right: 18px;
border-radius: 16px;
}
.heading:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 2px;
background: rgba(245, 104, 4, 0.15);
}
.theme-switcher {
display: flex;
align-items: center;
margin-left: auto;
}
.theme-buttons {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.03);
padding: 8px;
border-radius: 12px;
border: 2px solid rgba(255, 255, 255, 0.03);
}
.theme-buttons .theme-btn:first-child {
padding: 6px 12px;
border-radius: 10px;
}
.theme-buttons .theme-btn:last-child {
padding: 10px 18px;
border-radius: 18px;
}
.theme-btn {
color: var(--accent-white);
background: #009ad6;
border: 2px solid #009ad6;
cursor: pointer;
font-weight: 700;
padding: 8px 14px;
border-radius: var(--btn-radius);
transition: none;
font-size: 15px;
}
.theme-btn:hover {
transform: none;
box-shadow: none;
background: #4db8ff;
border-color: #4db8ff;
}
.theme-btn:focus-visible {
outline: 3px solid var(--accent-white);
outline-offset: 3px;
border-radius: 8px;
}
.theme-btn:active {
transform: translateY(0);
}
main {
margin: 0;
}
.card {
overflow: hidden;
width: 100%;
max-width: var(--default-width);
margin: var(--space-lg) auto;
padding: var(--space-md);
border: 3px solid var(--secondary-border);
background: var(--secondary-bg);
box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
border-radius: 12px;
}
.card:hover {
border-color: rgba(0, 154, 214, 0.25);
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
transform: none;
}
.card:focus-within {
border-color: var(--border-color);
background: rgba(10, 30, 60, 0.8);
}
.card::after {
content: "";
display: table;
clear: both;
}
.welcome img {
transform: rotate(calc(var(--tilt-deg) * 1));
}
.about img {
transform: rotate(calc(var(--tilt-deg) * -1));
}
.project-item:nth-child(odd) {
border-radius: 10px;
}
.project-item:nth-child(even) {
border-radius: 20px;
}
.card:nth-of-type(2n) {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.welcome img,
.about img {
width: 280px;
float: right;
margin-left: var(--space-lg);
margin-bottom: var(--space-md);
border: 2px solid var(--border-color);
border-radius: 12px;
transition: var(--transition);
filter: brightness(0.95);
}
.welcome img:hover,
.about img:hover {
filter: brightness(1.1);
box-shadow: 0 12px 30px rgba(245, 104, 4, 0.2);
transform: scale(1.02);
}
.welcome p,
.about p {
float: left;
max-width: 60%;
height: auto;
font-size: var(--font-base);
line-height: 1.9;
}
.project-list {
list-style: none;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: var(--space-md);
margin-top: var(--space-md);
}
.project-item {
color: var(--base-color);
border: 3px solid rgba(0, 154, 214, 0.35);
font-size: calc(var(--font-base) + 1px);
padding: 12px 20px;
text-align: center;
margin: 0;
width: auto;
min-width: 150px;
max-width: 260px;
transition: none;
border-radius: 14px;
background: rgba(255, 255, 255, 0.02);
font-weight: 600;
letter-spacing: 0.6px;
display: flex;
align-items: center;
justify-content: center;
}
.project-item:hover {
transform: translate(-4px, -4px);
background: #FFD700;
color: #000;
border-color: #fff;
box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.6);
}
.project-item:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 4px;
border-radius: 12px;
}
.project-item a {
color: inherit;
-webkit-text-fill-color: unset;
background: none;
}
footer {
text-align: center;
padding: var(--space-lg);
width: 100%;
max-width: var(--default-width);
margin: var(--space-xl) auto var(--space-md);
border: 1px solid var(--secondary-border);
background: var(--secondary-bg);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(8px);
border-radius: 12px;
transition: var(--transition);
}
footer {
clear: both;
}
footer:hover {
background: rgba(10, 30, 60, 0.5);
border-color: rgba(0, 154, 214, 0.3);
}
footer:focus-within {
border-color: var(--border-color);
background: rgba(10, 30, 60, 0.8);
}
.footer-title {
margin-bottom: var(--space-md);
}
.footer-title h1 {
font-size: var(--font-small);
}
.social-links {
display: flex;
justify-content: center;
gap: var(--space-lg);
width: auto;
margin: 0 auto;
}
.twitter,
.mail {
height: 35px;
width: 35px;
background-size: 35px;
background-repeat: no-repeat;
background-position: center;
transition: var(--transition);
cursor: pointer;
filter: brightness(0.9);
border-radius: 6px;
padding: var(--space-xs);
position: relative;
}
.twitter:focus-visible,
.mail:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 3px;
}
.twitter:hover,
.mail:hover {
transform: scale(1.3) rotate(5deg);
filter: brightness(1.3);
}
.twitter {
background-image: url("/images/twitter_main_dark.png");
}
.mail {
background-image: url("/images/mail_main_dark.png");
}
.mailing {
height: 100px;
width: 12%;
min-width: 90px;
background-image: url("/images/mail_main_dark.png");
background-size: 100px;
background-repeat: no-repeat;
background-position: center;
margin: var(--space-md) auto;
cursor: pointer;
transition: var(--transition);
filter: brightness(0.9);
border-radius: 8px;
padding: var(--space-xs);
}
.mailing:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 4px;
}
.mailing:hover {
transform: scale(1.15);
filter: brightness(1.2);
}
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: var(--accent-color);
color: var(--accent-white);
padding: var(--space-sm);
text-decoration: none;
z-index: 1000;
border-radius: 0 0 4px 0;
}
.skip-link:focus-visible {
top: 0;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 2px;
border-radius: 4px;
}
button:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 3px;
}
@media (max-width: 900px) {
:root {
--font-medium: 34px;
--font-small: 22px;
--space-lg: 26px;
--space-md: 16px;
}
header,
.card,
footer {
width: var(--mobile-width);
}
header {
flex-direction: column;
text-align: center;
gap: var(--space-md);
padding: var(--space-md);
margin-bottom: var(--space-md);
}
.header {
gap: var(--space-md);
}
.heading {
font-size: 18px;
}
.logo {
height: 70px;
width: 70px;
background-size: 70px;
}
.theme-buttons {
width: 100%;
justify-content: center;
}
.card {
padding: var(--space-md);
margin: var(--space-md) auto;
}
footer {
padding: var(--space-md);
margin: var(--space-lg) auto var(--space-md);
}
}
@media (max-width: 700px) {
:root {
--font-medium: 26px;
--font-small: 18px;
--space-lg: 16px;
--space-md: 12px;
}
.welcome img,
.about img {
float: none;
display: block;
margin: var(--space-md) auto;
width: 100%;
max-width: 260px;
}
.welcome p,
.about p {
float: none;
max-width: 100%;
text-align: left;
}
p {
font-size: 15px;
}
h2 {
font-size: 26px;
}
.project-list {
flex-direction: column;
gap: var(--space-md);
align-items: center;
}
.project-item {
width: 90%;
font-size: 15px;
padding: var(--space-sm);
}
.social-links {
gap: var(--space-md);
}
.twitter,
.mail {
height: 32px;
width: 32px;
background-size: 32px;
}
.card {
padding: var(--space-md);
}
.heading {
font-size: 14px;
}
}
@media (max-width: 450px) {
:root {
--default-width: 95%;
--font-medium: 22px;
--font-small: 16px;
--space-lg: 12px;
--space-md: 10px;
}
header {
padding: var(--space-sm);
margin-bottom: var(--space-md);
}
.heading {
font-size: 13px;
padding: var(--space-xs) var(--space-xs);
}
.logo {
height: 60px;
width: 60px;
background-size: 60px;
}
.theme-btn {
padding: 6px 10px;
font-size: 12px;
}
p {
font-size: 14px;
}
h1,
h2,
h4 {
font-size: 20px;
}
h3 {
font-size: 16px;
}
.welcome img,
.about img {
width: 100%;
margin-left: 0;
}
.project-item {
width: 100%;
}
.card {
padding: var(--space-sm);
margin: var(--space-md) auto;
}
footer {
padding: var(--space-sm);
width: 95%;
}
.social-links {
gap: var(--space-sm);
}
.twitter,
.mail {
height: 28px;
width: 28px;
background-size: 28px;
}
}