/* ============================================
   COMPONENT STYLES
   Fatih Aksoy Portfolio
   ============================================ */

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

.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-12) 0;
    background: var(--gradient-hero);
}

/* Background Elements Removed for cleaner look */
.hero-section::before {
    display: none;
}


/* Overlay gradient for depth */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 80% 80%, rgba(230, 81, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(18, 18, 18, 0.95) 100%);
    pointer-events: none;
}

@keyframes subtleMove {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(-2%, -2%);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Profile Image */
.hero-profile-container {
    margin-bottom: var(--space-6);
    display: flex;
    justify-content: center;
}

.hero-profile-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-accent);
    box-shadow: 0 0 30px rgba(255, 109, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    background-color: var(--bg-secondary);
}

.hero-greeting {
    font-size: var(--fs-lg);
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
    font-weight: var(--fw-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease-out;
}

.hero-name {
    font-size: clamp(3rem, 9vw, 5rem);
    margin-bottom: var(--space-4);
    animation: fadeInDown 0.8s ease-out 0.2s both;
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Remove gradient text for name to ensure contrast */
.hero-name .text-gradient {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
}

.hero-name .text-gradient::after {
    display: none;
}

/* ... existing styles ... */

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-20);
    /* Increased from space-12 */
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ... */

/* Hero Stats - High Contrast */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-secondary);
    /* Solid background for readability */
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-extrabold);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: var(--border-width-thick) solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: var(--fs-lg);
    transition: all var(--transition-base);
}

.scroll-indicator a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--glow-primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==================== SOCIAL LINKS ==================== */

.social-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: var(--border-width) solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-size: var(--fs-xl);
    transition: all var(--transition-base);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

/* Specific social media colors on hover */
.social-links a:hover .fa-linkedin {
    color: #0077b5;
}

.social-links a:hover .fa-github {
    color: #ffffff;
}

.social-links a:hover .fa-twitter {
    color: #1da1f2;
}

.social-links a:hover .fa-envelope {
    color: var(--accent-secondary);
}

/* ==================== BADGE / TAG ==================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--glass-bg);
    border: var(--border-width) solid var(--glass-border);
    border-radius: var(--border-radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.badge:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.badge-primary {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.badge-secondary {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

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

@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 fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* ==================== LOADING SKELETON ==================== */

.skeleton {
    background: linear-gradient(90deg,
            var(--bg-secondary) 0%,
            var(--bg-tertiary) 50%,
            var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: var(--space-4);
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

/* ==================== MODAL (for project details) ==================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal-backdrop);
}

.modal-content {
    position: relative;
    z-index: var(--z-modal);
    background: var(--bg-secondary);
    border: var(--border-width) solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-8);
    margin: var(--space-8);
    animation: slideInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--glass-bg);
    border: var(--border-width) solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: var(--fs-xl);
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
    transform: rotate(90deg);
}

/* ==================== PROGRESS BAR (for skills) ==================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-full);
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ==================== TOOLTIP ==================== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: var(--border-width) solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    white-space: nowrap;
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
    z-index: var(--z-tooltip);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 6px solid transparent;
    border-top-color: var(--bg-secondary);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}