/* =================================================================
   CUSTOM STYLES - Muhammad Al-Aqsa Arif Portfolio
   Vibrant, Bold, Modern Design System
   ================================================================= */

/* Base Styles & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* =================================================================
   GRADIENT TEXT EFFECTS
   ================================================================= */

.gradient-text {
    background: linear-gradient(135deg, #FF006E 0%, #00D9FF 50%, #06FFA5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

.gradient-text-hero {
    background: linear-gradient(135deg, #FF006E 0%, #7209B7 50%, #00D9FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease infinite;
    background-size: 200% 200%;
}

.gradient-text-hero-alt {
    background: linear-gradient(135deg, #00D9FF 0%, #06FFA5 50%, #FFD60A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift-reverse 6s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gradient-shift-reverse {
    0%, 100% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
}

/* =================================================================
   NAVIGATION STYLES
   ================================================================= */

#navbar {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 30px rgba(255, 0, 110, 0.1);
}

.nav-link {
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF006E, #00D9FF, #06FFA5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(0);
}

.nav-link:hover {
    color: #00D9FF;
}

/* Mobile Menu */
.hamburger {
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FF006E, #00D9FF);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-nav-link {
    color: #fff;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(255, 0, 110, 0.1);
    border-left-color: #FF006E;
    padding-left: 1.5rem;
}

/* =================================================================
   HERO SECTION
   ================================================================= */

.hero-bg {
    background: linear-gradient(135deg,
        #FF006E 0%,
        #7209B7 25%,
        #00D9FF 50%,
        #06FFA5 75%,
        #FFD60A 100%);
    animation: hero-gradient 15s ease infinite;
    background-size: 400% 400%;
    opacity: 0.15;
}

@keyframes hero-gradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

.hero-shapes {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 110, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 217, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(114, 9, 183, 0.15) 0%, transparent 50%);
    animation: shapes-float 20s ease infinite;
}

@keyframes shapes-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.location-badge {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(0, 217, 255, 0.2));
    border: 2px solid rgba(255, 0, 110, 0.3);
    backdrop-filter: blur(10px);
    animation: badge-glow 3s ease infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 110, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.5); }
}

.role-text {
    background: linear-gradient(90deg, #FF006E, #00D9FF, #06FFA5, #FFD60A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: role-gradient 4s linear infinite;
    background-size: 300% 100%;
}

@keyframes role-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* CTA Buttons */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.cta-primary {
    background: linear-gradient(135deg, #FF006E, #7209B7);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.5);
}

.cta-secondary {
    background: transparent;
    border: 2px solid #00D9FF;
    color: #00D9FF;
}

.cta-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    animation: scroll-bounce 2s ease infinite;
}

.scroll-arrow {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #FF006E, #00D9FF);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-move 2s ease infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scroll-move {
    0% { top: 8px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* =================================================================
   SECTION BACKGROUNDS & PATTERNS
   ================================================================= */

.section-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255, 0, 110, 0.03) 50px, rgba(255, 0, 110, 0.03) 51px),
        repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(0, 217, 255, 0.03) 50px, rgba(0, 217, 255, 0.03) 51px);
    opacity: 0.5;
}

/* =================================================================
   ABOUT SECTION
   ================================================================= */

.about-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.about-image-bg {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, #FF006E, #7209B7, #00D9FF, #06FFA5);
    border-radius: 1.5rem;
    animation: about-glow 4s ease infinite;
    filter: blur(30px);
    opacity: 0.6;
    z-index: 0;
}

@keyframes about-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.about-image {
    position: relative;
    z-index: 10;
    transition: transform 0.4s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.info-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.info-badge:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: #FF006E;
    transform: translateY(-2px);
}

/* =================================================================
   SKILLS SECTION
   ================================================================= */

.skill-card {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(0, 217, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.15), rgba(0, 217, 255, 0.15));
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 0 20px 50px rgba(255, 0, 110, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    filter: grayscale(0);
    transform: scale(1.2) rotate(5deg);
}

.skill-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tool-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 110, 0.2), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    border-color: #00D9FF;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.tool-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
}

/* =================================================================
   PORTFOLIO SECTION
   ================================================================= */

/* Filter Buttons */
.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: #FF006E;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #FF006E, #7209B7);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.4);
}

/* Portfolio Cards */
.portfolio-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.3);
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.9), rgba(114, 9, 183, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.view-btn {
    padding: 0.75rem 2rem;
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.portfolio-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-visual-identity {
    background: linear-gradient(135deg, #FF006E, #E91E63);
    color: #fff;
}

.badge-packaging {
    background: linear-gradient(135deg, #00D9FF, #0096C7);
    color: #fff;
}

.badge-mixed-media {
    background: linear-gradient(135deg, #06FFA5, #00F5A0);
    color: #000;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.portfolio-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* Portfolio Item Filtering */
.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* =================================================================
   CONTACT SECTION
   ================================================================= */

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(0, 217, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.3);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(0, 217, 255, 0.2));
}

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF006E, #7209B7);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.contact-info {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-info {
    color: #00D9FF;
}

/* =================================================================
   FOOTER
   ================================================================= */

.footer-link {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #FF006E;
    transform: translateY(-3px);
}

/* =================================================================
   LIGHTBOX MODAL
   ================================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-close:hover {
    background: #FF006E;
    border-color: #FF006E;
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content::-webkit-scrollbar {
    width: 8px;
}

.lightbox-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.lightbox-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF006E, #00D9FF);
    border-radius: 10px;
}

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* =================================================================
   RESPONSIVE UTILITIES
   ================================================================= */

@media (max-width: 768px) {
    .skill-card {
        padding: 1.25rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .tool-card {
        padding: 1rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .lightbox-content {
        padding: 1.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* =================================================================
   SMOOTH SCROLLBAR
   ================================================================= */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF006E, #7209B7, #00D9FF);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00D9FF, #06FFA5, #FFD60A);
}

/* =================================================================
   LOADING STATES
   ================================================================= */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .no-print {
        display: none !important;
    }
}
