/* Font SF Pro Display */
@font-face {
    font-family: 'SF Pro Display';
    src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-medium-webfont.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-semibold-webfont.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-bold-webfont.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #111827; /* gray-900 */
    color: #f9fafb; /* gray-50 */
}

.container {
    max-width: 1280px;
}

.text-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.nav-link {
    position: relative;
    padding-bottom: 8px; 
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Portfolio Item Hover Effect */
.portfolio-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #1f2937; /* gray-800 */
    border: 1px solid #374151; /* gray-700 */
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.25);
    border-color: #ef4444; /* red-500 */
}

.portfolio-item img {
    transition: transform 0.5s ease-in-out;
    aspect-ratio: 16/9; 
    object-fit: cover;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Service Card Styles */
.service-card {
    background: linear-gradient(145deg, #1f2937, #111827);
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #ef4444;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
}


.hero-bg-animation {
    background: linear-gradient(-45deg, #111827, #1f2937, #374151, #6b21a8);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Animation for Background Elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

/* Glow Effect */
.glow-red {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.glow-red:hover {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

/* Animasi */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceSubtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes tilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 0; 
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up.delay-200 {
    animation-delay: 0.2s;
}

.animate-fade-in-up.delay-400 {
    animation-delay: 0.4s;
}

.animate-fade-in-up.delay-600 {
    animation-delay: 0.6s;
}

.animate-bounce-subtle {
    animation: bounceSubtle 2s infinite ease-in-out;
}

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

.animate-tilt {
    animation: tilt 10s ease-in-out infinite;
}

/* Mobile Menu Transition */
@media (max-width: 767px) {
    .menu {
        transform: translateX(-100%);
        opacity: 0;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }
    
    .menu.open {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Perbaikan responsif untuk teks hero */
    #hero h1 {
        font-size: 3rem !important;
    }
    
    #hero p {
        font-size: 1.1rem !important;
    }

    /* Portfolio grid adjustment for mobile */
    #portfolioContent {
        gap: 1.5rem;
    }
}

/* Large screens optimization */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* Animasi Scroll */
.fade-in-element-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Improved focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
}

/* Selection color */
::selection {
    background-color: rgba(239, 68, 68, 0.3);
    color: white;
}

/* Loading animation */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Image placeholder styling */
.image-placeholder {
    background: linear-gradient(45deg, #374151, #4b5563, #374151);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Text shadow for better readability */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Back to top button styles */
.back-to-top {
    backdrop-filter: blur(10px);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.back-to-top:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}