@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #A5B4FC 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(135deg, #000 0%, #1a1a2e 50%, #16213e 100%);
    --card-gradient: linear-gradient(145deg, rgba(165, 180, 252, .08) 0%, rgba(0, 0, 0, .6) 100%);
    --accent-color: #A5B4FC;
    --accent-hover: #8b9cfc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(165, 180, 252, .2);
    --shadow-primary: rgba(0, 0, 0, .3);
    --shadow-accent: rgba(165, 180, 252, .3);
    --blur-strong: blur(20px);
    --blur-medium: blur(15px);
    --blur-light: blur(10px);
}

html, body {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--dark-gradient);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(165, 180, 252, .1) 0, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(165, 180, 252, .1) 0, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(165, 180, 252, .1) 0, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
    will-change: transform;
    transform: translate3d(0, 0, 0); 
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(15px, -15px, 0) rotate(180deg); }
}

a {
    text-decoration: none;
    transition: transform .3s ease, color .3s ease;
}

ul { list-style-type: none; }

img {
    width: 100%;
    pointer-events: none;
    user-select: none;
}

h1 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(165, 180, 252, .4);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.hidden { display: none; }

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    object-fit: cover;
    filter: brightness(.3) contrast(1.2) saturate(1.1);
    mix-blend-mode: multiply;
}

section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

#icone-apple {
    width: 14px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.icone-redes {
  width: 28px;
  margin-right: 15px;
  filter: drop-shadow(0 4px 8px rgba(165, 180, 252, 0.4));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icone-redes:hover {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 8px 16px rgba(165, 180, 252, 0.6));
}

.icones-container {
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  width: 100%;                    
}

.icones a {
  display: flex;
  align-items: center;
  text-decoration: none;
  display: inline-block;
}


.icones-direita a {
  display: flex;
  align-items: right;
  text-decoration: none;
  display: inline-block;
}


.drive { width: 42px; }

.linkedin {
    width: 80px !important;
    height: auto;
    vertical-align: middle;
    margin: 0 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.icon-container {
    z-index: 1000;
    position: fixed; /* Linha alterada para corrigir a posição */
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
    animation: slideUp .8s ease-out; 
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translate3d(0, 20px, 0); 
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translate3d(0, 0, 0);
    }
}

.icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    aspect-ratio: 1/1;
    border-radius: 14px;
    color: #A5B4FC;
    font-size: 1.4rem;
    padding: 8px;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease; 
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, .1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
    transition: left .6s ease;
}

.icon-box:hover::before {
    left: 100%;
}

.icon-box:hover {
    transform: translate3d(0, -3px, 0) scale(1.05); 
    box-shadow: 0 12px 24px rgba(165, 180, 252, .3), 0 0 20px rgba(165, 180, 252, .2);
    border-color: var(--accent-color);
}

body.prevent-background-scroll {
    min-height: 100dvh;
    overflow-y: hidden;
}

.popup {
    display: none;
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    overflow-y: auto;
    padding: 20px;
    margin: 0 auto;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    animation: openPopup .3s ease-out; 
    transition: opacity .3s ease;
    backdrop-filter: var(--blur-light);
}

.popup.closing {
    animation: closePopup .3s ease-in forwards; 
}

@keyframes openPopup {
    from {
        opacity: 0;
        transform: scale(.9) translate3d(0, 20px, 0); 
    }
    to {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
    }
}

@keyframes closePopup {
    from {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: scale(.9) translate3d(0, 20px, 0);
    }
}

.popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, 95%);
    max-height: 90vh;
    background: #0e0e15;
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
    overflow: hidden;
}

.popup-header {
    position: relative;
    display: flex;
    gap: 10px;
    font-weight: 600;
    padding: 18px 24px 12px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-gradient);
}

.popup-body {
    color: var(--text-secondary);
    height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 60px;
}

.button-container {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.circle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 0;
    outline: 0;
    cursor: pointer;
    transition: transform .3s ease; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.circle-btn i {
    opacity: 0;
    transition: opacity .3s ease;
    font-size: .6rem;
    color: #111;
}

.button-container:hover i {
    opacity: 1;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27ca3f; }

.circle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.popup-body::-webkit-scrollbar {
    width: 8px;
}

.popup-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .2);
    border-radius: 8px;
}

.popup-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
    background-clip: content-box;
}

.about-container {
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 40px;
    place-items: center;
}

.about-container h1 {
    margin-bottom: 24px;
    line-height: 1.3;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-container p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: justify;
}

.about-container .img-frame {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 300px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6), 0 0 0 3px var(--accent-color);
    transition: transform .4s ease, box-shadow .4s ease; 
}

.about-container .img-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
    mix-blend-mode: overlay;
}

.about-container .img-frame:hover::before {
    opacity: .2;
}

.about-container .img-frame img {
    aspect-ratio: 6/7;
    object-fit: cover;
    transition: transform .6s ease; 
}

.about-container .img-frame:hover {
    transform: translate3d(0, -5px, 0); 
    box-shadow: 0 30px 60px rgba(0, 0, 0, .8), 0 0 0 3px var(--accent-hover);
}

.about-container .img-frame:hover img {
    transform: rotate(3deg) scale(1.1);
}

.skill-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.skill-list h1 {
    text-align: center;
    margin-bottom: 40px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-list ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: min(100%, 800px);
    margin: 0 auto;
}

.skill-list ul li {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 8px;
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--blur-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    padding: 12px 18px;
    transition: transform .4s ease, color .4s ease, border-color .4s ease; 
    position: relative;
    overflow: hidden;
}

.skill-list ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left .6s ease;
    z-index: -1;
}

.skill-list ul li:hover::before {
    left: 0;
}

.skill-list ul li:hover {
    transform: translate3d(0, -4px, 0) scale(1.05); 
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(165, 180, 252, .4), 0 0 20px rgba(165, 180, 252, .2);
}

.skill-list li > img {
    margin: -3px 8px -3px 0;
    width: 22px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.project-container h1 {
    text-align: center;
    margin: 30px 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.all-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    place-items: center;
    gap: 40px;
    padding: 40px;
}

.project-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    transition: transform .4s ease, box-shadow .4s ease; 
    border: 1px solid var(--border-color);
}

.project-box:hover {
    transform: translate3d(0, -8px, 0); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6), 0 0 20px rgba(165, 180, 252, .3);
}

.project-box img {
    height: 220px;
    object-fit: cover;
    transition: transform .6s ease; 
}

.project-box:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid transparent;
    border-radius: 16px;
    opacity: 0;
    transition: opacity .4s ease, background .4s ease; 
}

.overlay:hover {
    opacity: 1;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: var(--blur-medium);
    border: 1px solid var(--border-color);
}

.overlay h3, .overlay a {
    color: #fff;
    opacity: 0;
    transform: translate3d(0, 30px, 0); 
    transition: transform .4s ease, opacity .4s ease;
}

.overlay:hover h3, .overlay:hover a {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.overlay:hover h3 {
    transition-delay: .1s;
}

.overlay:hover a {
    transition-delay: .2s;
}

.more-btn {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    margin-top: 24px;
    cursor: pointer;
    overflow: hidden;
    transition: color .4s ease, border-color .4s ease, transform .4s ease;
    z-index: 1;
    border-radius: 8px;
    font-weight: 600;
}

.more-btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-gradient);
    z-index: -1;
    transition: height .4s ease;
}

.more-btn:hover {
    color: #fff;
    border-color: var(--accent-color);
    transform: translate3d(0, -2px, 0); 
    box-shadow: 0 8px 16px rgba(165, 180, 252, .4);
}

.more-btn:hover::before {
    height: 100%;
}

.testimonial-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: .05em;
}

.slider-container {
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.swiper {
    width: 100%;
    padding: 1rem 0 3.5rem;
    overflow: visible;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 400px;
    width: 300px;
    flex-shrink: 0;
    background: var(--card-gradient);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    cursor: grab;
    user-select: none;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; 
    backdrop-filter: var(--blur-medium);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15), 0 4px 10px rgba(0, 0, 0, .1);
    margin: 0 auto;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .05) 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.swiper-slide:hover::before {
    opacity: 1;
}

.swiper-slide:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2), 0 8px 16px rgba(0, 0, 0, .15), 0 0 30px rgba(165, 180, 252, .15);
    border-color: var(--accent-color);
    transform: translate3d(0, -5px, 0);
}

.swiper-slide:active {
    cursor: grabbing;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .1);
    transition: transform .3s ease, border-color .3s ease; 
    margin-bottom: 1rem;
}

.swiper-slide:hover .user-info img {
    transform: scale(1.05);
    border-color: var(--accent-hover);
}

.user-info-text {
    width: 100%;
}

.user-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 .25rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-role {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 400;
    opacity: .8;
    margin: 0;
}

.swiper-slide p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
    flex: 1;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
}

.control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.control li {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent-color);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform .4s ease, background .4s ease; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15), 0 2px 8px rgba(0, 0, 0, .1);
}

.control li::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    z-index: -1;
    opacity: 0;
    transition: opacity .3s ease;
}

.control li:hover {
    background: var(--accent-hover);
    transform: translate3d(0, -3px, 0) scale(1.1);
    box-shadow: 0 12px 30px rgba(165, 180, 252, .4), 0 4px 15px rgba(0, 0, 0, .2);
}

.control li:hover::after {
    opacity: 1;
}

.control li:active {
    transform: translate3d(0, -1px, 0) scale(1.05);
}

.arrow {
    font-size: 1.5rem;
    color: #fff;
    transition: transform .2s ease;
}

.control li:hover .arrow {
    transform: scale(1.2);
}

center p {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: .9rem;
}

center a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all .3s ease;
}

.linkedin {
    height: 20px;
    width: auto;
    transition: all .3s ease;
    filter: brightness(.8);
}

center a:hover .linkedin {
    filter: brightness(1.2);
    transform: scale(1.05);
}

@media screen and (min-width: 2048px) {
    .swiper-slide {
        max-width: 420px;
        min-height: 500px;
        padding: 3rem;
    }
    .user-info img {
        width: 90px;
        height: 90px;
    }
    .user-info h2 {
        font-size: 1.4rem;
    }
    .swiper-slide p {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 1440px) {
    .swiper-slide {
        max-width: 350px;
        min-height: 420px;
    }
}

@media screen and (max-width: 1024px) {
    .swiper-slide {
        max-width: 320px;
        min-height: 400px;
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .swiper-slide {
        max-width: 280px;
        min-height: 380px;
        padding: 1.5rem;
    }
    .user-info img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        padding: 1rem 0;
    }
    .swiper-slide {
        width: 280px;
        min-height: 280px;
        padding: 1.25rem;
    }
    .user-info img {
        width: 55px;
        height: 55px;
        margin-bottom: .5rem;
    }
    .user-info h2 {
        font-size: 1rem;
    }
    .user-role {
        font-size: .75rem;
    }
    .swiper-slide p {
        font-size: .9rem;
        line-height: 1.6;
    }
    .control {
        gap: .75rem;
        margin-top: 1.5rem;
    }
    .control li {
        width: 44px;
        height: 44px;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0); 
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.swiper-slide {
    animation: slideInUp .6s ease-out;
}

.control li:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.swiper-slide:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 0;
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-container p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    line-height: 1.6;
}

form {
    width: min(700px, 95%);
}

input[type=text], select, textarea {
    font-size: 1rem;
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, .8);
    color: var(--text-primary);
    outline: 0;
    border: 2px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
    resize: vertical;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
    backdrop-filter: var(--blur-light);
}

input[type=text]:focus, select:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(165, 180, 252, .1);
    background: rgba(0, 0, 0, .9);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

.submit-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    margin-top: 24px;
    color: #fff;
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .4s ease, box-shadow .4s ease; 
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translate3d(0, -2px, 0); 
    box-shadow: 0 12px 24px rgba(165, 180, 252, .4);
}

.submit-btn span {
    display: flex;
    gap: 12px;
    align-items: center;
}

.language-switcher {
    position: absolute;
    top: 12px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10000;
}

.flag {
    width: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform .4s ease; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
    border: 2px solid transparent;
}

.flag:hover {
    transform: translate3d(0, -2px, 0) scale(1.15); 
}

.fade-in {
    animation: fadeIn .6s ease-out; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0); 
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .about-container .img-frame {
        width: 250px;
    }
    .popup-body {
        padding: 30px 40px;
    }
    .all-projects {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body {
        background: var(--dark-gradient);
        background-attachment: fixed;
    }
    body::before {
        opacity: .5;
    }
    video {
        display: none; 
    }
    h1 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .linkedin {
        width: 60px !important;
    }
    .popup-container {
        width: 95%;
        max-height: 85vh;
        margin: 20px;
        border-radius: 12px;
    }
    .popup-body {
        padding: 25px 20px;
        height: 60vh;
    }
    .about-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 20px 0;
        justify-content: center;
    }
    .about-container .img-frame {
        width: 220px;
        height: auto;
        margin: 0 auto;
    }
    .about-container .img-frame img {
        aspect-ratio: 1/1;
    }
    .about-container p {
        font-size: 1rem;
        text-align: left;
        padding: 0 10px;
    }
    .skill-list ul {
        gap: 10px;
        padding: 0 10px;
    }
    .skill-list ul li {
        font-size: .9rem;
        padding: 10px 14px;
    }
    .all-projects {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }
    .project-box img {
        height: 200px;
    }
    form {
        width: 100%;
        padding: 0 10px;
    }
    input[type=text], select, textarea {
        padding: 14px;
        font-size: .95rem;
    }
    .submit-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    .icon-container {
        bottom: 20px;
        padding: 10px 14px;
        gap: 12px;
    }
    .icon-box {
        width: 48px;
        font-size: 1.3rem;
    }
    .language-switcher {
        top: 15px;
        right: 20px;
        gap: 10px;
    }
    .flag {
        width: 26px;
    }
    .popup-header {
        padding: 15px 20px 10px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
    .linkedin {
        width: 50px !important;
    }
    .icon-container {
        padding: 8px 12px;
        gap: 10px;
        bottom: 15px;
    }
    .icon-box {
        width: 44px;
        font-size: 1.2rem;
    }
    .popup-container {
        width: 98%;
        margin: 10px;
    }
    .popup-header {
        padding: 12px 16px 8px;
        font-size: 1rem;
    }
    .popup-body {
        padding: 20px 15px;
        height: 65vh;
    }
    .about-container .img-frame {
        width: 200px;
    }
    .about-container p {
        font-size: .95rem;
        padding: 0 5px;
    }
    .skill-list ul {
        gap: 8px;
        padding: 0 5px;
    }
    .skill-list ul li {
        font-size: .85rem;
        padding: 8px 12px;
    }
    .skill-list li > img {
        width: 18px;
        margin: -2px 6px -2px 0;
    }
    .all-projects {
        padding: 15px 10px;
        gap: 20px;
    }
    .project-box img {
        height: 180px;
    }
    form {
        padding: 0 5px;
    }
    input[type=text], select, textarea {
        padding: 12px;
        font-size: .9rem;
    }
    .submit-btn {
        padding: 12px 18px;
        font-size: .95rem;
    }
    .language-switcher {
        top: 10px;
        right: 15px;
    }
    .flag {
        width: 24px;
    }
    .circle-btn {
        width: 16px;
    }
    .circle-btn i {
        font-size: .5rem;
    }
}

@media (max-width: 320px) {
    .linkedin {
        width: 40px !important;
    }
    .popup-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    .popup-body {
        height: calc(100vh - 60px);
        padding: 15px 10px;
    }
    .about-container .img-frame {
        width: 180px;
    }
    .skill-list ul li {
        font-size: .8rem;
        padding: 6px 10px;
    }
    .swiper-slide {
        width: 95%;
        padding: 15px 12px;
    }
    .icon-container {
        gap: 8px;
        padding: 6px 10px;
    }
    .icon-box {
        width: 40px;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        animation: none;
    }
}