:root {
    --bg: #03070b;
    --bg-alt: #050d16;
    --panel: rgba(7, 20, 30, 0.9);
    --border: rgba(0, 217, 255, 0.2);
    --accent: #00d9ff;
    --accent-soft: rgba(0, 217, 255, 0.08);
    --text: #f0f6ff;
    --muted: #8ea6c1;
    --shadow: 0 20px 45px rgba(0, 217, 255, 0.15);
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

body {
    background: radial-gradient(circle at top, rgba(0, 217, 255, 0.08), transparent 40%), var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: #03070b;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.logo {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.button-logo {
    --border-right: 6px;
    --text-stroke-color: rgba(255, 255, 255, 0.6);
    --animation-color: var(--accent);
    --fs-size: 2.6rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    text-transform: uppercase;
    font-size: var(--fs-size);
    letter-spacing: 0.4rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-stroke-color);
    font-weight: 600;
    overflow: hidden;
}

.button-logo .actual-text,
.button-logo .hover-text {
    display: inline-block;
}

.button-logo .hover-text {
    position: absolute;
    inset: 0;
    width: 0%;
    color: var(--animation-color);
    -webkit-text-stroke: 1px var(--animation-color);
    border-right: var(--border-right) solid var(--animation-color);
    overflow: hidden;
    transition: width 1.8s ease;
}

.button-logo:hover .hover-text {
    width: 100%;
    filter: drop-shadow(0 0 18px var(--animation-color));
}

@supports not (-webkit-text-stroke: 1px red) {
    .button-logo {
        color: var(--text);
        text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
    }
    .button-logo .hover-text {
        border: none;
    }
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 1.5rem;
    color: var(--muted);
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
}

#menu-toggle span {
    width: 2.6rem;
    height: 0.2rem;
    background: var(--text);
}

main {
    padding-top: 10rem;
}

section {
    padding: 6rem 8%;
}

.section-heading p {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.section-heading h2 {
    font-size: 3.2rem;
}

.home {
    min-height: 90vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    align-items: center;
}

.home .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.home h1 {
    font-size: 4.6rem;
    line-height: 1.2;
    margin: 1.5rem 0;
}

.home h1 span {
    color: var(--accent);
}

.typing {
    font-size: 2.4rem;
    color: var(--muted);
}

.lead {
    margin: 2rem 0;
    font-size: 1.6rem;
    color: var(--muted);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.btn {
    padding: 1.2rem 2.8rem;
    border-radius: 999px;
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--accent);
    color: #011118;
    box-shadow: var(--shadow);
}

.btn.ghost {
    color: var(--accent);
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.home-visual {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-photo {
    position: relative;
        
    aspect-ratio: 1 / 1;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 217, 255, 0.15);
    z-index: 2;
}

.photo-orb {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;

    background: radial-gradient(
        circle at top,
        rgba(0, 217, 255, 0.35),
        rgba(0, 217, 255, 0.15) 40%,
        transparent 70%
    );

    box-shadow:
        0 0 0 1px rgba(0, 217, 255, 0.25),
        0 25px 50px rgba(0, 217, 255, 0.25);
}

.photo-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(25%) contrast(0.95);
}


.photo-orb::after {
    content: "";
    /* position: absolute; */
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(0, 217, 255, 0.25),
        transparent 60%
    );
    pointer-events: none;
}
.ring {
    /* position: absolute; */
    width: 260px;
    height: 260px;
    /* border-radius: 50%; */
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(0, 217, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 217, 255, 0.25),
        0 30px 60px rgba(0, 217, 255, 0.25);

}
.ring{

  /* animation: none !important; */
  transform: none !important;
}
.ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(25%) contrast(0.95);
}

.ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        rgba(0, 217, 255, 0.25),
        transparent 60%
    );
    pointer-events: none;
}



@media (max-width: 600px) {
    .photo-orb {
        width: 190px;
        height: 190px;
    }
}


.home-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 217, 255, 0.2), transparent 60%);
    mix-blend-mode: screen;
}

.home-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.orb,
.ring {
    position: absolute;
    border-radius: 50%;
}

.orb {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4), transparent 70%);
    top: 10%;
    left: 10%;
    filter: blur(1px);
}

.ring {
    width: 320px;
    height: 320px;
    border: 1px solid var(--accent);
    top: 0;
    right: 0;
    opacity: 0.4;
    animation: spin 8s linear infinite;
}

.glow-card {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: min(320px, 90%);
    padding: 2rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.6rem;
    box-shadow: var(--shadow);
}

.glow-card p {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.4rem;
    color: var(--muted);
}

.glow-card h3 {
    margin-top: 1rem;
    font-size: 2rem;
}

.about-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.about-grid p {
    font-size: 1.5rem;
    color: var(--muted);
}

.about-facts {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-facts li {
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 1.3rem;
}

.info-card {
    background: var(--panel);
    padding: 2.5rem;
    border-radius: 1.6rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.info-card a {
    color: var(--accent);
}

.skills-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--panel);
    padding: 2rem;
    border-radius: 1.4rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(0, 217, 255, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.skill-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.skill-card h3 {
    font-size: 1.8rem;
}

.skill-card span {
    color: var(--accent);
}

.skill-card p {
    margin-top: 1.2rem;
    font-size: 1.3rem;
    color: var(--muted);
}

.progress {
    margin-top: 1.5rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.6), var(--accent));
    border-radius: inherit;
    animation: load 1.2s ease forwards;
}

.experience {
    position: relative;
}

.timeline {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.timeline article {
    padding: 2.4rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.timeline h3 {
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
}

.timeline span {
    font-size: 1.3rem;
    color: var(--muted);
}

.timeline p {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--accent);
}

.projects {
    position: relative;
}

.portfolio-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    padding: 2.4rem;
    background: var(--panel);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
}

.card-head {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
}

.portfolio-card h3 {
    font-size: 2rem;
}

.portfolio-card p {
    color: var(--muted);
    font-size: 1.4rem;
}

.portfolio-card a {
    width: fit-content;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 1.2rem;
}

.contact-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(3, 7, 11, 0.8));
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text);
    width: 100%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.contact-link p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.contact-link strong {
    font-size: 1.4rem;
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.contact-icon svg {
    width: 36px;
    height: 36px;
}

.contact-icon--telegram {
    background: none;
    border: none;
}

.contact-icon--email {
    background: none;
    border: none;
}

.site-footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 1.3rem;
    background: rgba(2, 6, 10, 0.8);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes load {
    from {
        width: 0;
    }
}

@media (max-width: 900px) {
    nav {
        position: absolute;
        top: 100%;
        right: 8%;
        flex-direction: column;
        background: rgba(3, 7, 11, 0.95);
        padding: 2rem;
        border: 1px solid var(--border);
        border-radius: 1.2rem;
        display: none;
    }

    nav.open {
        display: flex;
    }

    #menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .home h1 {
        font-size: 3.4rem;
    }
}
