/**
 * Ekin Arca Tanrıverdi - Portfolio Website
 * Custom Styles & Animations
 */

/* =============================================
   Base Styles
   ============================================= */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Selection color */
::selection {
    background: rgba(168, 168, 168, 0.3);
    color: #F3F4F6;
}

/* =============================================
   Fade-in Animations
   ============================================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* =============================================
   Header Styles
   ============================================= */

#header {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#header.shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #A8A8A8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language button transition */
.lang-btn {
    transition: all 0.2s ease;
}

/* =============================================
   Hero Section
   ============================================= */

#hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
}

/* Scroll indicator animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

#hero .animate-bounce {
    animation: bounce 2s infinite;
}

/* =============================================
   Service Cards
   ============================================= */

#services .group {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#services .group:hover {
    transform: translateY(-4px);
}

/* =============================================
   Portfolio Cards
   ============================================= */

#portfolio .group {
    cursor: pointer;
}

#portfolio .group .aspect-\[4\/3\] > div {
    transition: transform 0.7s ease;
}

/* =============================================
   About Section
   ============================================= */

#about .aspect-\[4\/5\] img {
    transition: transform 0.5s ease;
}

#about .aspect-\[4\/5\]:hover img {
    transform: scale(1.02);
}

/* Skill tags */
#about .px-4.py-2 {
    transition: border-color 0.3s ease, color 0.3s ease;
}

#about .px-4.py-2:hover {
    border-color: rgba(168, 168, 168, 0.3);
    color: #F3F4F6;
}

/* =============================================
   Contact Cards
   ============================================= */

#contact a.group {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#contact a.group:hover {
    transform: translateY(-2px);
}

/* =============================================
   Mobile Menu Animation
   ============================================= */

#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Responsive Adjustments
   ============================================= */

@media (max-width: 768px) {
    /* Reduce animation distances on mobile */
    .fade-in {
        transform: translateY(20px);
    }
    
    /* Adjust hero text size */
    #hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    /* Stack contact cards */
    #contact .flex-col {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Further reduce hero text */
    #hero h1 {
        font-size: 1.75rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
}

/* =============================================
   Focus States for Accessibility
   ============================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #A8A8A8;
    outline-offset: 2px;
}

/* =============================================
   Print Styles
   ============================================= */

@media print {
    #header,
    #mobile-menu,
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

