/* Custom CSS for Onur Yerlikaya's Professional Website */

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust for fixed header */
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Theme Toggle Button Adjustments */
#theme-toggle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: fixed;
    z-index: 100;
}

#theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Adjust theme toggle position on mobile */
@media (max-width: 640px) {
    #theme-toggle {
        top: 1rem;
        right: 1rem;
        padding: 0.6rem;
    }
}

/* Adjust theme toggle position on desktop */
@media (min-width: 641px) {
    #theme-toggle {
        top: 1.5rem;
        right: 5rem; /* Increased from 1.5rem to avoid overlap with navigation */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Button Styles */
.btn-primary {
    @apply inline-flex items-center px-6 py-3 bg-primary-600 text-white font-medium rounded-lg shadow-md hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-opacity-50 transition-all duration-300;
}

.btn-secondary {
    @apply inline-flex items-center px-6 py-3 bg-white dark:bg-gray-800 text-primary-600 dark:text-primary-400 font-medium rounded-lg shadow-md border border-primary-200 dark:border-primary-800 hover:bg-primary-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-opacity-50 transition-all duration-300;
}

/* Social Icons */
.social-icon {
    @apply w-10 h-10 rounded-full bg-white dark:bg-gray-800 text-primary-600 dark:text-primary-400 flex items-center justify-center shadow-md hover:bg-primary-50 dark:hover:bg-gray-700 hover:text-primary-700 dark:hover:text-primary-300 transition-all duration-300;
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: theme('colors.primary.500');
    transition: width 0.3s ease;
}

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

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Skill Bar Animation */
@keyframes skillProgress {
    from { width: 0; }
    to { width: var(--progress-width); }
}

.skill-progress {
    animation: skillProgress 1.5s ease-out forwards;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 1px;
    background-color: theme('colors.primary.200');
    top: 0;
    bottom: 0;
    left: 20px;
}

/* Testimonial Quote Style */
.testimonial-quote {
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: theme('colors.primary.200');
    opacity: 0.5;
}

/* Dark Mode Adjustments */
.dark .testimonial-quote::before {
    color: theme('colors.primary.800');
}

/* Profile Image Adjustments */
#hero img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 5; /* Increased z-index to ensure visibility */
}

#hero .relative {
    position: relative;
    z-index: 5; /* Increased z-index to ensure visibility */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-item::before {
        left: 0;
    }
    
    .timeline-content {
        margin-left: 30px;
    }
    
    /* Adjust profile image on mobile */
    #hero .order-1 {
        margin-bottom: 2rem;
        margin-top: 3rem; /* Added margin-top to push image down below header */
    }
    
    /* Ensure hero section has enough padding on mobile */
    #hero {
        padding-top: 6rem !important; /* Increased padding to accommodate fixed header */
    }
}

@media (max-width: 640px) {
    /* Smaller profile image on very small screens */
    #hero img {
        border-width: 3px;
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Form Focus States */
input:focus, textarea:focus {
    @apply ring-2 ring-primary-500 ring-opacity-50 border-primary-300 dark:border-primary-700;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}
