:root {
    --bg-primary: #000000;
    --bg-secondary: #0b121a;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.10);
    --text-primary: #e5e7eb;
    --text-secondary: #9aa4b2;
    --accent: #4f9cff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(800px 400px at 20% 30%, rgba(79,156,255,0.08), transparent),
        radial-gradient(700px 350px at 80% 70%, rgba(120,80,255,0.06), transparent),
        linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.box {
	position: fixed;
	top: 0;
	transform: rotate(360deg);
	left: 0;
}

.wave {
	position: fixed;
	bottom: 0;
	left: 0;
    opacity: .4;
    position: absolute;
    top: 3%;
    left: 10%;
    background: rgb(11, 23, 29);
    width: 1500px;
    height: 1300px;
    /* margin-left: -150px; */
    /* margin-top: -250px; */
    transform-origin: 50% 48%;
    border-radius: 43%;
    animation: drift 17000ms infinite linear;
}

.wave.-three {
    animation: drift 17500ms infinite linear;
    position: fixed;
    background-color: #101c20;
}

.wave.-two {
  animation: drift 10000ms infinite linear;
  opacity: .1;
  background: #000000;
	position: fixed;
}

.box:after {
  content: '';
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
  transform: translate3d(0, 0, 0);
}

@keyframes drift {
  from { transform: rotate(0deg); }
  from { transform: rotate(360deg); }
}

.contain {
	animation-delay: 4s;
	z-index: 1000;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #25a7d7;
    background: -webkit-linear-gradient(#25a7d7, #2962FF);
    background: linear-gradient(#25a7d7, #25a7d7);
}

.icon {
    width: 100px;
    height: 100px;
    margin: 0 5px;
}

.icon:nth-child(2) img {-webkit-animation-delay: 0.2s;animation-delay: 0.2s}
.icon:nth-child(3) img {-webkit-animation-delay: 0.3s;animation-delay: 0.3s}
.icon:nth-child(4) img {-webkit-animation-delay: 0.4s;animation-delay: 0.4s}

.icon img {
    -webkit-animation: anim 2s ease infinite;
    animation: anim 2s ease infinite;
    -webkit-transform: scale(0,0) rotateZ(180deg);
    transform: scale(0,0) rotateZ(180deg);
}

@-webkit-keyframes anim{
    0% {
        -webkit-transform: scale(0,0) rotateZ(-90deg);
        transform: scale(0,0) rotateZ(-90deg);opacity:0
    }
    30% {
        -webkit-transform: scale(1,1) rotateZ(0deg);
        transform: scale(1,1) rotateZ(0deg);opacity:1
    }
    50% {
        -webkit-transform: scale(1,1) rotateZ(0deg);
        transform: scale(1,1) rotateZ(0deg);opacity:1
    }
    80% {
        -webkit-transform: scale(0,0) rotateZ(90deg);
        transform: scale(0,0) rotateZ(90deg);opacity:0
    }
}

@keyframes anim{
    0% {
        -webkit-transform: scale(0,0) rotateZ(-90deg);
        transform: scale(0,0) rotateZ(-90deg);opacity:0
    }
    30% {
        -webkit-transform: scale(1,1) rotateZ(0deg);transform: scale(1,1) rotateZ(0deg);opacity:1
    }
    50% {
        -webkit-transform: scale(1,1) rotateZ(0deg);
        transform: scale(1,1) rotateZ(0deg);opacity:1
    }
    80% {
        -webkit-transform: scale(0,0) rotateZ(90deg);
        transform: scale(0,0) rotateZ(90deg);opacity:0
    }
}

.container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
}

h2 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 4px;
}

.location {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, border 0.2s ease, transform 0.15s ease;
}

.button:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.section {
    margin-top: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.section strong {
    color: var(--text-primary);
    font-weight: 500;
}

footer {
    margin-top: 28px;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

/* Resume Stuff */

.download-cv {
    /* position: fixed; */
    right: 24px;
    bottom: 24px;
    z-index: 10;

    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;

    color: var(--text-primary);
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid var(--border);
    border-radius: 999px;

    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);

    text-decoration: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    cursor: pointer;
}

.download-cv:hover {
    transform: translateY(-2px);
}

/* Collapsed state */
.download-cv.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 14px 20px;
}

@media (max-width: 600px) {
    .contact-info ul {
        flex-direction: column;
        gap: 12px;
    }

    .contact-text {
        font-size: 0.95rem;
    }
}

a {
    text-decoration: none;
    color: #aaa4a4;
}

svg {
    padding-top: 2px;
    width: 1rem;
    height: 1rem;
}

.contact-text {
    font-size: 1.1rem;
}

.contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;
    border-radius: 12px;

    color: var(--text-primary);
    text-decoration: none;

    transition: color 0.25s ease;
}

.contact-link::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 12px;
    border: 1px solid transparent;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.12)
        );

    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.contact-link:hover::before,
.contact-link:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

.contact-link:hover {
    color: #ffffff;
}

.contact-link svg {
    transition: transform 0.25s ease;
}

.contact-link:hover svg {
    transform: translateX(2px);
}

@media (hover: none) {
    .contact-link::before {
        display: none;
    }
}

@media (hover: hover) {
    .cv-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.14);
    }
}

.card.cv {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.card.cv::-webkit-scrollbar {
    width: 6px;
}

.card.cv::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.cv-location {
    color: #a1b7e6;
    font-weight: 500;
}

.cv-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cv-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.cv-section h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.item-icon {
    font-weight: 900;
    width: 2rem;
    height: 2rem;
}

.cv-item {
    padding: 18px 20px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;
    flex-direction: column;
    gap: 6px;
}


.cv-item strong {
    display: block;
    color: var(--text-primary);
    font-weight: 900;
}

.cv-item span {
    font-size: 0.8rem;
    opacity: 0.85;
}

.cv-skills {
    list-style: none;
    padding-left: 0;
    /* display: grid; */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.cv-skills li {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.skills-title {
    font-weight: 900;
    font-size: 1rem;
}

.back-home {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

.back-home:hover {
    color: var(--text-primary);
}

@media (max-width: 420px) {
    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 0.85rem;
    }

    .card.cv {
        padding: 20px;
    }

    .download-cv {
        right: 16px;
        bottom: 16px;
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .download-text {
        display: none;
    }

    .download-cv {
        padding: 12px;
        border-radius: 50%;
    }

    .back-home span {
        display: none;
    }

    .back-home {
        padding: 6px;
    }
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 10px;
    padding: 6px 10px;

    font-size: 0.8rem;
    font-weight: 500;

    color: var(--text-secondary);
    text-decoration: none;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);

    backdrop-filter: blur(6px);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.back-home svg {
    width: 14px;
    height: 14px;
}

.back-home:hover,
.back-home:focus-visible {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(-2px);
}

/* ===== PRINT STYLES ===== */
@media print {
    html, body {
        background: #ffffff;
        color: #000000;
        overflow: visible;
    }

    .background,
    .box,
    .wave,
    .button {
        display: none !important;
    }

    .container {
        padding: 0;
        align-items: flex-start;
    }

    .card {
        max-width: 100%;
        max-height: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
    }

    .card.cv {
        overflow: visible;
    }

    h1, h2, h3 {
        color: #000000;
    }

    .cv-section {
        page-break-inside: avoid;
    }

    a {
        color: #000000;
        text-decoration: none;
    }
}

