/* Portfolio 11za - Custom Styles (Premium Green Theme) */

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1fae5;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Custom Shadows */
.shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Portfolio Filtering System */
.portfolio-item {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item.hidden-item {
    display: none !important;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.portfolio-item.show-item {
    animation: fadeInScale 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Header Scroll Effect */
.header-scrolled {
    @apply py-3 shadow-xl shadow-brand-500/[0.05] border-brand-100/50 bg-white/90;
}

/* Typography & Selection */
::selection {
    background: rgba(34, 197, 94, 0.2);
    color: #14532d;
}

/* Smooth Section Transitions */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WordPress Core Alignment Classes */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

/* Tech Icons Floating Animation */
@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floating-delayed {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(-5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.tech-icon-float {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    pointer-events: auto;
    opacity: 1;
    max-width: none !important;
}

.tech-icon-float:hover {
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.15)) !important;
    transform: scale(1.2) translateY(-15px) !important;
    z-index: 100;
}

.depth-1 {
    transform: scale(0.8);
}

.depth-2 {
    transform: scale(0.9);
}

.depth-3 {
    transform: scale(1);
}

.float-1 {
    animation: floating 6s ease-in-out infinite;
}

.float-2 {
    animation: floating-delayed 7s ease-in-out infinite;
}

.float-3 {
    animation: floating 8s ease-in-out infinite;
}

.float-4 {
    animation: floating-delayed 9s ease-in-out infinite;
}

/* Hero Typography Enhancement */
.hero-title {
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* WordPress Admin Bar Support */
.admin-bar #masthead {
    top: calc(32px + 1.5rem);
}

@media screen and (max-width: 782px) {
    .admin-bar #masthead {
        top: calc(46px + 1rem);
    }
}

/* Fix for mobile admin bar positioning */
@media screen and (max-width: 600px) {
    #wpadminbar {
        position: fixed !important;
    }
}

#masthead {
    background: none !important;
    box-shadow: none !important;
}

/* Portfolio Content Spacing */
.prose p {
    margin-bottom: 1rem;
    display: block;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Portfolio Image Fixes */
.object-top {
    object-position: top !important;
}

.portfolio-item img {
    max-height: none !important;
}

.aspect-\[3\/2\] {
    aspect-ratio: 3/2 !important;
}
.aspect-\[4\/2\] {
    aspect-ratio: 4/2 !important;
}

.portfolio-item img {
    object-position: top !important;
    width: 100% !important;
    height: 100% !important;
}

/* Full Image Display (No Cropping) */
.portfolio-item img {
    object-fit: cover !important;
    background: #ffffff;
}