/* Core page settings and smooth scrolling */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: #03001c;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Custom text selection color */
::selection {
    background: rgba(145, 0, 255, 0.3);
    color: #ffffff;
}

/* Background blobs */
.lava-bg {
    position: fixed;
    top: -20vh;
    left: 0;
    width: 100vw;
    height: 140vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(50px);
    transition: filter 0.3s ease-out;
}

.blob {
    position: absolute;
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 50%;
    opacity: 0.6;
    mix-blend-mode: screen;
    will-change: transform, border-radius;
    animation: moveOrganic 40s infinite ease-in-out alternate;
}

.blob-purple-dark {
    width: 60vw;
    height: 60vw;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, #5b00b3 0%, #03001c 100%);
    opacity: 0.8;
    animation-duration: 65s;
    animation-delay: -10s;
}

.blob-blue-electric {
    width: 50vw;
    height: 50vw;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, #001aff 0%, #03001c 100%);
    opacity: 0.7;
    animation-duration: 43s;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.blob-indigo-deep {
    width: 45vw;
    height: 45vw;
    top: 40%;
    left: 35%;
    background: radial-gradient(circle, #300096 0%, #03001c 100%);
    opacity: 0.8;
    animation-duration: 52s;
    animation-delay: -25s;
}

.blob-purple-light {
    width: 40vw;
    height: 40vw;
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, #9100ff 0%, #03001c 100%);
    opacity: 0.7;
    animation-duration: 55s;
    animation-delay: -15s;
    animation-direction: alternate-reverse;
}

.blob-cyan-soft {
    width: 35vw;
    height: 35vw;
    top: 10%;
    right: 20%;
    background: radial-gradient(circle, #009c95 0%, #03001c 100%);
    opacity: 0.15;
    animation-duration: 48s;
    animation-delay: -20s;
}

.blob-extra-1 {
    width: 30vw;
    height: 30vw;
    top: 60%;
    left: -5%;
    animation-duration: 35s;
    animation-delay: -30s;
    animation-direction: alternate-reverse;
}

.blob-extra-2 {
    width: 25vw;
    height: 25vw;
    bottom: 20%;
    right: 40%;
    animation-duration: 60s;
    animation-delay: -40s;
    opacity: 0.1;
}

/* movement for background shapes */
@keyframes moveOrganic {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    15% { transform: translate(20vw, -15vh) rotate(45deg) scale(1.1); }
    30% { transform: translate(-15vw, 25vh) rotate(-20deg) scale(0.9); }
    45% { transform: translate(35vw, 15vh) rotate(80deg) scale(1.15); }
    60% { transform: translate(-10vw, -25vh) rotate(-50deg) scale(0.85); }
    75% { transform: translate(25vw, -30vh) rotate(35deg) scale(1.2); }
    90% { transform: translate(-30vw, 10vh) rotate(-40deg) scale(0.95); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Main content layout and sections */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 10%;
    box-sizing: border-box;
}

.text-center {
    text-align: center;
    width: 100%;
}

/* Hero section */
#hero {
    padding-left: 15%;
    display: flex;
    align-items: center;
}

.hero-content { max-width: 700px; }

.hero-content .name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    display: inline-block;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.hero-content .name:hover {
    transform: translateY(-10px) scale(1.02);
    text-shadow: 0 15px 35px rgba(145, 0, 255, 0.6);
}

.hero-content .bio {
    font-size: 1.35rem;
    line-height: 1.7;
    max-width: 800px;
    color: #a0aec0;
    margin-bottom: 2rem;
}

/* Button styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(145, 0, 255, 0.3);
}

/* About me section */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-content-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(145, 0, 255, 0.05);
    border: 1px solid rgba(145, 0, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(145, 0, 255, 0.1) 0%, transparent 70%);
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: all 0.5s ease;
}

.about-image-placeholder:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-text {
    flex: 1.2;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e0;
}

.about-text-content {
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Glass frame for photo */
.glass-frame {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-frame:hover {
    transform: scale(1.02) rotate(2deg);
}

.glass-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: contrast(1.1) brightness(0.9);
}

.image-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(145, 0, 255, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(30px);
}

/* Skills list styling */
.skills h3 {
    margin-top: 0;
    color: #9100ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

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

.skills li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
}

/* Project section */
.projects {
    flex-direction: column;
    justify-content: center;
}

.projects-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.25s ease, 
                border-color 0.25s ease;
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(145, 0, 255, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: rgba(15, 10, 40, 0.5);
    border-bottom: 1px solid rgba(145, 0, 255, 0.2);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8) contrast(1.1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.project-image-placeholder {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #fff;
}

.project-card p {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-links a {
    color: #b92ab9;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Contact section form */
.contact {
    flex-direction: column;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-glass-panel {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-top: 2rem;
}

.contact-form-side form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form-side input, 
.contact-form-side select, 
.contact-form-side textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form-side select {
    appearance: none;
    color: #a0aec0;
    cursor: pointer;
}

.contact-form-side select option {
    background-color: #03001c;
    color: #fff;
    padding: 10px;
}

.contact-form-side input:focus, 
.contact-form-side select:focus, 
.contact-form-side textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(145, 0, 255, 0.2);
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.8);
    color: #03001c;
    border: none;
    font-weight: 600;
}

.form-submit:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* Contact info */
.contact-info-side h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.info-block { margin-bottom: 2rem; }

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0aec0;
    display: block;
    margin-bottom: 0.5rem;
}

.info-text {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(145, 0, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(145, 0, 255, 0.2);
}

.social-icon:hover {
    background: #9100ff;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(145, 0, 255, 0.3);
}

.social-icon svg { scroll-behavior: smooth; }

.social-icon:hover svg { transform: scale(1.1); }

/* footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    background: rgba(3, 0, 28, 0.5);
    position: relative;
    z-index: 10;
}

/* grain effect overlay */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat;
    animation: noise-animation 0.2s infinite;
    opacity: .4;
    pointer-events: none;
    visibility: visible;
    z-index: 9999;
}

@keyframes noise-animation {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,10%) }
    80% { transform: translate(-15%,0) }
    90% { transform: translate(10%,5%) }
    100% { transform: translate(5%,0) }
}

/* navigation bar */
.smart-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 60px;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.smart-nav.nav-scrolled {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.smart-nav.nav-hidden { transform: translate(-50%, -10px); }

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-item {
    text-decoration: none;
    color: #a0aec0;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.lang-switch {
    position: absolute;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Reveal animations */
.reveal .about-text, 
.reveal .about-text-content, 
.reveal .about-image-placeholder, 
.reveal .skills, 
.reveal.contact-glass-panel > div {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal .project-card { opacity: 0; }

.reveal.active .about-text-content, 
.reveal.active .about-image-placeholder, 
.reveal.active .about-text, 
.reveal.active .skills, 
.reveal.active.contact-glass-panel > div {
    opacity: 1;
    transform: translateY(0);
}

.reveal.active .project-card {
    opacity: 1;
    animation: cardPopIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}

@keyframes cardPopIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reveal.active .project-card:nth-child(1) { animation-delay: 0.1s; }
.reveal.active .project-card:nth-child(2) { animation-delay: 0.25s; }
.reveal.active .project-card:nth-child(3) { animation-delay: 0.4s; }

.reveal.active .about-text { transition-delay: 0.1s; }
.reveal.active .skills { transition-delay: 0.3s; }
.reveal.active .about-text-content { transition-delay: 0.1s; }
.reveal.active .about-image-placeholder { transition-delay: 0.25s; }

/* dots effect*/
.spotlight-dots-container {
    position: fixed;
    top: 0;
    width: 200px;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 30px;
    padding: 40px 15px;
    align-content: start;
    transition: opacity 0.8s ease-in-out, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.spotlight-dots-container.dots-visible {
    opacity: 1;
    pointer-events: auto;
}

.left-dots { left: 0; }
.right-dots { right: 0; }

.spotlight-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(226, 232, 240, 0.8);
    pointer-events: auto;
    transition: transform 0.15s ease-out;
    margin: 30px auto;
}

.left-dots .spotlight-dot[data-col="1"] {
    opacity: 0.85;
    filter: blur(0px);
}

.left-dots .spotlight-dot[data-col="2"] {
    opacity: 0.7;
    filter: blur(0.5px);
}

.left-dots .spotlight-dot[data-col="3"] {
    opacity: 0.55;
    filter: blur(1px);
}

.left-dots .spotlight-dot[data-col="4"] {
    opacity: 0.4;
    filter: blur(1.5px);
}

.left-dots .spotlight-dot[data-col="5"] {
    opacity: 0.25;
    filter: blur(2px);
}

.right-dots .spotlight-dot[data-col="5"] {
    opacity: 0.85;
    filter: blur(0px);
}

.right-dots .spotlight-dot[data-col="4"] {
    opacity: 0.7;
    filter: blur(0.5px);
}

.right-dots .spotlight-dot[data-col="3"] {
    opacity: 0.55;
    filter: blur(1px);
}

.right-dots .spotlight-dot[data-col="2"] {
    opacity: 0.4;
    filter: blur(1.5px);
}

.right-dots .spotlight-dot[data-col="1"] {
    opacity: 0.25;
    filter: blur(2px);
}

/* copy toasts */
.copy-toast {
    position: fixed;
    padding: 8px 18px;
    background: rgba(3, 0, 28, 0.3);
    color: white;
    border: 1px solid white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 20000;
    text-shadow: 0 0 10px rgba(145, 0, 255, 0.3);
    box-shadow: 0 5px 15px rgba(145, 0, 255, 0.1);
    backdrop-filter: blur(4px);
    animation: toast-animation 1.2s ease-out forwards;
    white-space: nowrap;
}

@keyframes toast-animation {
    0% { opacity: 0; transform: translate(-50%, 10px) scale(0.9); }
    20% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -20px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -30px) scale(0.9); }
}


.copy-toast.error-toast {
    border-color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.1);
}

.copy-toast.bottom-left {
    position: fixed;
    right: 25px;
    bottom: 45px;
    top: auto;
    transform: none;
    animation: toast-fade-in 3s ease-in-out forwards;
}

@keyframes toast-fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* skills and orbit */
.skills-3d {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-height: 80vh;
}

.skills-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.orbit-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

#orbit-system {
    position: relative;
    width: 0;
    height: 0;
}

.orbit-ring {
    position: absolute;
    width: 900px;
    height: 240px;
    top: -120px;
    left: -450px;
    border: 1px solid rgba(145, 0, 255, 0.25);
    border-radius: 50%;
    transform: rotate(-15deg);
    pointer-events: none;
    box-shadow: 0 0 40px rgba(145, 0, 255, 0.05);
}

.orbit-core {
    position: absolute;
    width: 50px;
    height: 50px;
    top: -25px;
    left: -25px;
    background: radial-gradient(circle, #e2a8ff 0%, #9100ff 40%, #300096 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px 10px rgba(145, 0, 255, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.8);
    animation: corePulse 3s infinite alternate ease-in-out;
    z-index: 50;
}

@keyframes corePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 30px 5px rgba(145, 0, 255, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 60px 15px rgba(145, 0, 255, 0.7); }
}

.orbit-satellite {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    background: rgba(3, 0, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    will-change: transform, opacity, z-index;
    padding: 0;
}

.orbit-satellite svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: transform 0.3s;
    display: block;
    overflow: visible;
    margin: auto;
}

.orbit-satellite:hover { box-shadow: 0 0 25px rgba(145, 0, 255, 0.8); }

.orbit-satellite:hover svg { transform: scale(1.2); }

.orbit-label {
    position: absolute;
    bottom: -25px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    white-space: nowrap;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-5px);
}

.orbit-satellite:hover .orbit-label {
    opacity: 1;
    transform: translateY(0);
}

#skills { scroll-margin-top: 200px; }

/* scroll indicators and arrows */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    z-index: 100;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.glass-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    padding-top: 6px;
    box-sizing: border-box;
}

.arrow-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 35px;
    height: 35px;
    fill: #e2a8ff;
    filter: drop-shadow(0 0 8px rgba(145, 0, 255, 0.6));
}

.scroll-text {
    color: #a0aec0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsiveness and mobile specific layout */
@media (max-width: 768px) {
    /* Center and fix the contact panel */
    .contact-glass-panel {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 25px 15px !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }

    .contact-form-side {
        width: 100% !important;
        padding: 0 !important;
    }

    /* FIX: This makes the Subject input full-width */
    .form-group {
        width: 100% !important;
        margin: 0 !important;
    }

    .input-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* FIX: box-sizing prevents the 'glitch' where text hits the side */
    #contact-form input,
    #contact-form textarea,
    #subject {
        width: 100% !important;
        margin-bottom: 12px !important;
        padding: 12px 15px !important; /* Internal space for text */
        box-sizing: border-box !important; 
        display: block !important;
        font-size: 16px !important; /* Prevents iPhone zoom glitch */
    }

    /* Center the widget and button */
    .cf-turnstile {
        transform: scale(0.9);
        margin: 10px 0 !important;
        display: flex;
        justify-content: center;
    }

    .form-submit {
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* Info side adjustments */
    .contact-info-side {
        width: 100% !important;
        text-align: center;
    }

    .social-icons {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content .name {
        font-size: 4.5rem; 
    }
    
    .hero-content .bio { 
        font-size: 1.1rem;
    }
    
    section { padding: 5rem 5%; }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-lang-switch {
        display: block !important;
        position: absolute;
        top: 85px;
        right: 20px;
        z-index: 1100;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 0.85rem;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .smart-nav .lang-switch { display: none !important; }

    .about-container {
        padding: 60px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-content-flex {
        flex-direction: column !important;
        gap: 40px;
        width: 100%;
    }

    .about-text {
        order: 1;
        text-align: center;
        max-width: 100%;
    }

    .about-image-wrapper {
        order: 2;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .glass-frame {
        width: 280px;
        height: 350px;
    }

    .mobile-skills-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }

    .mobile-skill-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(145, 0, 255, 0.2);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .mobile-skill-card svg {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }

    .skill-fill svg path {
        fill: #e2a8ff !important;
        stroke: none !important;
    }

    .skill-stroke svg {
        stroke: #e2a8ff !important;
        fill: none !important;
        stroke-width: 2px;
    }
    
    .skill-stroke svg path {
        stroke: #e2a8ff !important;
        fill: none !important;
    }

    .smart-nav {
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box;
        justify-content: space-between !important;
        background: transparent !important;
        border: 1px solid transparent; 
    }

    .nav-links {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 0.5rem !important;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 0 !important;
        position: relative; 
    }

    .nav-item {
        padding: 6px 10px !important;
        font-size: 0.75rem;
        white-space: nowrap;
        text-align: center;
    }
    
    .nav-links.active { left: 0; }

    .orbit-wrapper, .spotlight-dots-container { display: none !important; }

    .mobile-contact-fab {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 56px;
        height: 56px;
        background-color: #ffffff;
        color: #03001c;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(145, 0, 255, 0.4);
        z-index: 9999;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-decoration: none;
    }

    .mobile-contact-fab:active { transform: scale(0.9); }

    .mobile-contact-fab svg {
        width: 26px;
        height: 26px;
    }

    #mobile-skills { display: grid !important; }
}

@media (min-width: 769px) {
    .mobile-contact-fab { display: none; }
}

@media (max-width: 600px) {
    .lang-switch { display: none; }
}

.hero-lang-switch, #mobile-skills { display: none; }