* {
    scroll-behavior: smooth;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-twinkle {
    animation: twinkle 3s ease-in-out infinite;
}

@media (max-width: 640px) {
    .w-18 {
        width: 4.5rem;
    }

    .h-18 {
        height: 4.5rem;
    }

    .w-22 {
        width: 5.5rem;
    }

    .h-22 {
        height: 5.5rem;
    }

    section {
        padding-top: 5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    section {
        padding-top: 6rem;
    }
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .flex-1 {
        min-width: 0;
        text-align: center;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    }
}

.backdrop-blur-frosted {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-ornament {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

#about {
    background: linear-gradient(135deg, #0f0f2e 0%, #1a1a4e 50%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
}

.glass-ornament {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-ornament {
    position: absolute;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-ornament:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-ornament:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.floating-ornament:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 8%;
    animation-delay: 4s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.floating-ornament:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 5%;
    animation-delay: 1s;
}

.floating-ornament:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 15%;
    animation-delay: 3s;
}

.floating-ornament:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 70%;
    right: 20%;
    animation-delay: 5s;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-10px) rotate(270deg);
        opacity: 0.8;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.image-container {
    position: relative;
    animation: slideUp 1s ease-out;
}

.image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.image-ornament {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(79, 70, 229, 0.2));
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    border: 1px solid rgba(147, 51, 234, 0.4);
    animation: pulse 3s infinite;
}

.profile-image {
    position: relative;
    z-index: 10;
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.content {
    animation: slideUp 1s ease-out 0.3s both;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #a855f7, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

.typing-text {
    color: #e2e8f0;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.description {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(147, 51, 234, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    width: 20px;
    height: 20px;
    z-index: 1;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .floating-ornament {
        display: none;
    }

    .grid {
        gap: 2rem;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.section-delayed {
    animation-delay: 0.2s;
}

.section-delayed-2 {
    animation-delay: 0.4s;
}

.section-delayed-3 {
    animation-delay: 0.6s;
}