/* ================== RESET & GLOBAL STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f1e;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================== CONTAINER & BACKGROUND ================== */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.8) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(22, 33, 62, 0.8) 100%), url('assets/background.jpg') center/cover;
    background-attachment: fixed;
    z-index: -1;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

.background-gradient::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(70, 130, 180, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

/* ================== CONTENT SECTION ================== */
.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== PROFILE SECTION ================== */
.profile-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 0px;
    position: relative;
    display: inline-block;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3),
                0 0 60px rgba(70, 130, 180, 0.2);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.3),
                    0 0 60px rgba(70, 130, 180, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(138, 43, 226, 0.5),
                    0 0 80px rgba(70, 130, 180, 0.3);
    }
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8a2be2, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: #b0b0c0;
    margin-bottom: 0px;
    font-weight: 500;
}

.profile-bio {
    font-size: 0.95rem;
    color: #a0a0b0;
    max-width: 500px;
    margin: 0 auto 25px;
    line-height: 1.3;
}

/* ================== IMAGE SLIDER SECTION ================== */
.slider-section {
    margin-bottom: 10px;
    width: 100%;
}

/* Slider: container sizes to image (no forced aspect-ratio or dark background) */
.slider-container {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 15px 45px rgba(138, 43, 226, 0.2);
    background: transparent;
}

.slider-wrapper {
    position: relative;
    width: auto;
    background: transparent;
    display: block;
}

.slide {
    position: relative;
    display: none;
    width: auto;
    height: auto;
    opacity: 1;
}

.slide.active {
    display: block;
}

.slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
    border-radius: 6px;
}

/* Keep controls positioned relative to container */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(138, 43, 226, 0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(138, 43, 226, 1);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.dot.active { background: rgba(138,43,226,1); transform: scale(1.3); }
.dot:hover { background: rgba(255,255,255,0.8); }

/* ================== GALLERY SECTION ================== */
.gallery-section {
    margin-bottom: 25px;
    width: 100%;
}

.gallery-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #8a2be2, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Make gallery a single horizontal row with horizontal scroll */
.gallery-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.gallery-item {
    position: relative;
    width: auto;
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 220px;
    border-radius: 15px;
    overflow: hidden;
    /* fixed visual tile height so images crop consistently */
    height: 160px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(138, 43, 226, 0.7);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i { font-size: 2rem; color: white; }

/* Hide any search-plus icon if present */
.gallery-overlay i.fas.fa-search-plus { display: none; }

/* ================== SOCIAL ICONS ================== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8a2be2, #00bfff);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-8px);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

.social-icon.instagram:hover {
    box-shadow: 0 10px 30px rgba(228, 64, 95, 0.4);
}

.social-icon.twitter:hover {
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.4);
}

.social-icon.youtube:hover {
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.social-icon.tiktok:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.social-icon.linkedin:hover {
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.4);
}

/* ================== LINKS SECTION ================== */
.links-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(138, 43, 226, 0.3);
}

/* Gradient Backgrounds */
.link-card.gradient-1 {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(70, 130, 180, 0.1));
}

.link-card.gradient-1:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(70, 130, 180, 0.2));
}

.link-card.gradient-2 {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(255, 165, 0, 0.1));
}

.link-card.gradient-2:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.4), rgba(255, 165, 0, 0.2));
}

.link-card.gradient-3 {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 69, 0, 0.1));
}

.link-card.gradient-3:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(255, 69, 0, 0.2));
}

.link-card.gradient-4 {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(34, 139, 34, 0.1));
}

.link-card.gradient-4:hover {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.4), rgba(34, 139, 34, 0.2));
}

.link-card.gradient-5 {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.2), rgba(30, 144, 255, 0.1));
}

.link-card.gradient-5:hover {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.4), rgba(30, 144, 255, 0.2));
}

.link-card.gradient-6 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
}

.link-card.gradient-6:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.2));
}

/* Link Content */
.link-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.link-content i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.link-card:hover .link-content i {
    background: rgba(138, 43, 226, 0.3);
    transform: scale(1.1);
}

.link-content h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: white;
}

.link-content p {
    font-size: 0.85rem;
    color: #b0b0c0;
    font-weight: 400;
}

/* Arrow */
.arrow {
    font-size: 1.3rem;
    color: rgba(138, 43, 226, 0.6);
    transition: all 0.3s ease;
    margin-left: 20px;
}

.link-card:hover .arrow {
    transform: translateX(5px);
    color: rgba(138, 43, 226, 1);
}

/* ================== FOOTER ================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    color: #808090;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0a0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8a2be2;
}

.footer-links span {
    color: #808090;
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 768px) {
    .profile-name {
        font-size: 2rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-bio {
        font-size: 0.9rem;
    }

    .slider-section {
        margin-bottom: 10px;
    }

    .gallery-section {
        margin-top: 25;
    }

    .gallery-title {
        margin-top: 25;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .gallery-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .gallery-grid {
        gap: 12px;
    }

    .link-card {
        padding: 20px;
    }

    .link-content {
        gap: 15px;
    }

    .link-content i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .link-content h3 {
        font-size: 1rem;
    }

    .link-content p {
        font-size: 0.8rem;
    }

    .arrow {
        font-size: 1.1rem;
        margin-left: 10px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .profile-section {
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .profile-name {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .profile-image {
        width: 85px;
        height: 85px;
        margin-bottom: 0px;
    }

    .profile-subtitle {
        font-size: 1rem;
        margin-bottom: 0px;
    }

    .profile-bio {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .social-icons {
        gap: 12px;
        margin-bottom: 0px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .links-section {
        gap: 12px;
        margin-bottom: 30px;
    }

    .slider-section {
        margin-bottom: 10;
    }

    .gallery-section {
        margin-top: 0;
    }

    .gallery-title {
        margin-top: 0;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .slider-btn.prev {
        left: 8px;
    }

    .slider-btn.next {
        right: 8px;
    }

    .gallery-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .gallery-grid {
        gap: 10px;
    }

    .gallery-overlay i {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 18px 15px;
    }

    .link-content {
        gap: 12px;
    }

    .link-content i {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .link-content h3 {
        font-size: 0.95rem;
    }

    .link-content p {
        display: none;
    }

    .arrow {
        font-size: 1rem;
        margin-left: 5px;
    }

    .footer {
        padding: 20px 10px;
        font-size: 0.8rem;
    }

    .footer p {
        margin-bottom: 0px;
    }

    .footer-links {
        gap: 10px;
    }
}

/* ================== SCROLLBAR STYLING ================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.5);
}
