/* ---------- About page ---------- */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200;300;400;700;800&display=swap');

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.about {
    position: relative;
    height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(18, 20, 30, 0.58) 0%, rgba(18, 20, 30, 0.8) 40%, rgba(18, 20, 30, 0.92) 100%),
        url('../images/1.png') center bottom / cover no-repeat,
        linear-gradient(135deg, #191c2c 0%, #262a3d 45%, #1b1f35 75%, #212640 100%);
    background-size: cover, cover, 240% 240%;
    background-position: center, center bottom, center;
    background-blend-mode: multiply, screen, normal;
    animation: aboutFlow 26s ease-in-out infinite;
    padding: 172px 24px 12px;
}

@keyframes aboutFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Floating glow orbs drifting behind the content */
.about::before,
.about::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.about::before {
    top: -140px;
    left: -140px;
    background: #ffd166;
    animation: orbDriftA 18s ease-in-out infinite;
}

.about::after {
    bottom: -160px;
    right: -120px;
    background: #4fd6c1;
    animation: orbDriftB 22s ease-in-out infinite;
}

@keyframes orbDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 90px) scale(1.25); }
}

@keyframes orbDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, -80px) scale(0.85); }
}

/* Keep the page content above the orbs */
.animate,
.responsiveme,
.skills {
    position: relative;
    z-index: 1;
}

/* ---------- Animated title ---------- */
.animate {
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 4px;
    letter-spacing: 0.12em;
}

.animate span {
    display: inline-block;
    color: #ffffff;
    opacity: 0;
    transform: translate(0, -60px) rotate(0deg) scale(0.5);
    animation: dropVanish 0.5s forwards;
}

.animate span:nth-of-type(1) { animation-delay: 0.2s; }
.animate span:nth-of-type(2) { animation-delay: 0.3s; }
.animate span:nth-of-type(3) { animation-delay: 0.4s; }
.animate span:nth-of-type(4) { animation-delay: 0.5s; }
.animate span:nth-of-type(5) { animation-delay: 0.6s; }
.animate span:nth-of-type(6) { animation-delay: 0.7s; }
.animate span:nth-of-type(7) { animation-delay: 0.8s; }

.animate span:hover {
    color: #ffd166;
}

@keyframes dropVanish {
    30% {
        transform: translate(0, -30px) rotate(12deg) scale(1.05);
    }
    100% {
        transform: translate(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ---------- Layout ---------- */
.responsiveme {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    max-width: 1160px;
    margin: 0 auto;
    align-items: center;
}

.textme {
    opacity: 0;
    animation: fadeInLeft 2s forwards;
}

.textmebig {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #ffd166;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    margin-bottom: 8px;
}

.textmesmall {
    color: #cfd3e6;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.45;
    font-weight: 300;
    margin-bottom: 26px;
}

.keywords {
    color: #ffffff;
    font-weight: 600;
    font-style: italic;
    cursor: default;
    transition: color 0.2s ease;
}

.keywords:hover {
    color: #ffd166;
}

/* ---------- Info grid ---------- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    opacity: 0;
    animation: fadeInLeft 2s 0.6s forwards;
    margin-top: 6px;
}

.list ul {
    list-style: none;
    padding: 0;
}

.list ul li {
    font-size: clamp(0.88rem, 1.2vw, 1rem);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cfd3e6;
}

.list ul strong {
    color: #ffffff;
    min-width: 74px;
}

.list ul i {
    color: #ffd166;
    font-size: 0.85em;
}

.mailto {
    color: #ffd166;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 209, 102, 0.5);
}

.mailto:hover {
    color: #ffffff;
}

/* ---------- Photo card ---------- */
.picme {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: fadeInRight 2.5s 0.8s forwards;
}

figure.snip0016 {
    font-family: 'Raleway', Arial, sans-serif;
    color: #fff;
    position: relative;
    margin: 0;
    background: #000000;
    text-align: left;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

figure.snip0016 * {
    box-sizing: border-box;
}

figure.snip0016 img {
    max-width: 100%;
    opacity: 1;
    width: 100%;
    display: block;
    -webkit-transition: opacity 0.35s, transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.snip0016 figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px 3em;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

figure.snip0016 figcaption::before {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 100%;
    border-left: 4px solid rgba(255, 209, 102, 0.8);
    content: '';
    opacity: 0;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

figure.snip0016 h2,
figure.snip0016 p {
    margin: 0 0 5px;
    opacity: 0;
    -webkit-transition: opacity 0.35s, transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.snip0016 h2 {
    word-spacing: -0.15em;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.6rem;
    -webkit-transform: translate3d(30%, 0%, 0);
    transform: translate3d(30%, 0%, 0);
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

figure.snip0016 h2 span {
    font-weight: 800;
    color: #ffd166;
}

figure.snip0016 p {
    font-weight: 200;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    -webkit-transform: translate3d(0%, 30%, 0);
    transform: translate3d(0%, 30%, 0);
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

figure.snip0016 a {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
}

figure.snip0016:hover img {
    opacity: 0.25;
    transform: scale(1.05);
}

figure.snip0016:hover figcaption h2 {
    opacity: 1;
    -webkit-transform: translate3d(0%, 0%, 0);
    transform: translate3d(0%, 0%, 0);
    -webkit-transition-delay: 0.4s;
    transition-delay: 0.4s;
}

figure.snip0016:hover figcaption p {
    opacity: 0.9;
    -webkit-transform: translate3d(0%, 0%, 0);
    transform: translate3d(0%, 0%, 0);
    -webkit-transition-delay: 0.6s;
    transition-delay: 0.6s;
}

figure.snip0016:hover figcaption::before {
    opacity: 1;
    left: 30px;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

/* ---------- Skills ---------- */
.skills {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    animation: fadeInLeft 1.6s 0.8s forwards;
}

.section-title h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffd166;
    letter-spacing: 4px;
    margin-bottom: 6px;
    text-align: center;
}

.skin-color-primary {
    color: #ffd166;
}

/* ---------- Skill groups ---------- */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
}

.skill-group {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px 12px;
    margin-bottom: 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-group.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-group h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd166;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 6px;
}

.skill-group h3 i {
    font-size: 1.1em;
    opacity: 0.85;
}

.skill-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-group ul li {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #e8eaf6;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: 999px;
    padding: 4px 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.skill-group ul li:hover {
    background: rgba(255, 209, 102, 0.2);
    transform: translateY(-2px);
}

/* ---------- Animations ---------- */
@keyframes fadeInLeft {
    0% {
        transform: translateX(-60px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    0% {
        transform: translateX(60px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .about {
        height: auto;
        overflow: visible;
        padding: 104px 24px 40px;
    }

    .responsiveme {
        grid-template-columns: 1fr;
    }

    .picme {
        max-width: 340px;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .list ul li {
        min-height: auto;
    }
}

/* Compact layout for short desktop screens (landscape monitors / laptops) */
@media (min-width: 901px) and (max-height: 700px) {
    .about {
        padding-top: 94px;
        padding-bottom: 8px;
    }

    .animate {
        font-size: 2rem;
    }

    .responsiveme {
        gap: 12px;
    }

    .textmesmall {
        font-size: 0.9rem;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .list ul li {
        font-size: 0.82rem;
        margin-bottom: 2px;
    }

    .picme {
        max-width: 240px;
    }

    .skill-group {
        padding: 8px 10px 9px;
    }

    .skill-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .skill-group h3 {
        font-size: 0.78rem;
        letter-spacing: 1px;
    }

    .skill-group ul {
        gap: 5px;
    }

    .skill-group ul li {
        font-size: 0.68rem;
        padding: 3px 8px;
    }
}