:root {
    --bg: #0b1020;
    --surface: rgba(255, 255, 255, 0.06);
    --text: #040403;
    --muted: #b9c0cf;
    --brand: #7c5cff;
    --accent: #46ffb1;
    --card: rgba(41, 210, 44, 0.06);
    --border: 1px solid rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        Inter, "Helvetica Neue", Arial;
    --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;

    /* Gradient background */
    background: linear-gradient(135deg, #dda15e, #ffffff, #7c5cff);
    background-attachment: fixed;
    /* gradient stays still while scrolling */
    min-height: 100vh;
    /* full screen height */
}

a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    position: relative;
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, #6e51be, transparent);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: min(1100px, 100%);

    padding: 14px 0;
}

.brand {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    gap: 10px;
    align-items: center;
    color: #4500bc;
    font-weight: 800;
    font-size: 30px;
}



nav.primary {
    display: flex;
    gap: 18px;
}

nav.primary a {
    padding: 8px 10px;
    border-radius: 10px;
    opacity: 0.9;
}

nav.primary a:hover,
nav.primary a:focus {
    background: var(--surface);
    outline: none;
    background-color: #f5ff6d;
}

main section:target,
section:target {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.subtitle {
    color: black !important;
}

.btn {
    background: var(--card);
    border: var(--border);
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--brand), #637ac5);
    color: white;
    box-shadow: var(--shadow);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #5418bc;
    box-shadow: 0 12px 40px rgba(124, 92, 255, 0.2);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    z-index: 5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 140px;
    align-items: center;
}

.title {
    font-size: clamp(28px, 6vw, 52px);
    line-height: 1.05;
    margin: 6px 0;
    font-weight: 900;
}

.subtitle {
    color: var(--muted);
    font-size: clamp(14px, 2.2vw, 16px);
}

.chip {
    display: inline-flex;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: var(--border);
    background: var(--card);
    font-size: 13px;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #8d6ee3);
    color: white;
    border: none;
}

.section-desc {
    color: black !important;
}

.footer-text {
    color: black !important;

}

.project-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.hero-art {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.hero-art .photo {
    width: 86%;
    max-width: 360px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0px 10px 40px;

    border-radius: 16px;

}

header {
    min-width: 1100px;
}

section#home {
    margin-top: 140px;
    margin-bottom: 80px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(20px, 3.6vw, 28px);
    font-weight: 800;
}

.section-desc {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.card {
    grid-column: span 4;
    background: var(--card);
    border: var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.18s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
}

.timeline {
    position: relative;
    padding-left: 18px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--brand), transparent);
}

/* contact */
form {
    display: grid;
    gap: 12px;
}


/* .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
} */

/* @media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
} */

footer {
    padding: 28px 0 48px;
    color: var(--muted);
    text-align: center;
}

/* hover ring pulses (pure CSS shadow + transform) */
.hover-ring {
    position: relative;
    transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.hover-ring:hover {
    box-shadow: 0 8px 28px rgba(124, 92, 255, 0.06);
    transform: translateY(-4px);
}

.flip-card {
    width: 300px;
    height: 300px;
    position: relative;


}

.flip-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    position: relative;
    transition: transform 1s;
    animation: flipTwice 5s ease-in-out;
}

@keyframes flipTwice {

    0% {
        transform: rotateY(0deg);
    }


    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(0deg);
    }



}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
    /* Flips on hover */
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* Hide back when not visible */
    border-radius: 50%;
    /* Make it round */
    overflow: hidden;
}

.flip-front img,
.flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-back {
    transform: rotateY(180deg);
    /* Back side is rotated */
}

.reveal-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid rgb(244, 234, 216);
    animation: reveal 2s ease forwards;
    opacity: 0;
}

@keyframes reveal {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

.hover-zoom {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.hover-zoom:hover {
    transform: scale(1.05);
    color: #ff5722;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;

}

.social-links a img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Back-to-top button */
.back-to-top {
    position: fixed;
    right: 30px;
    /* adjust horizontal position */
    bottom: 28px;
    /* adjust vertical position */
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #b7dc51, #8d6ee3);
    color: #fff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform .18s cubic-bezier(.2, .9, .2, 1), opacity .18s ease;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    /* disabled while hidden */
}

/* visible state */
.back-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* hover/focus */
.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-3px) scale(1.03);
    outline: none;
}

/* focus ring for keyboard users */
.back-to-top:focus {
    box-shadow: 0 0 0 4px rgba(145, 181, 67, 0.14);
}

/* Reduced motion: remove transitions and instant scroll */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* replace your hero-grid gap with a responsive clamp */