/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap');

/* CSS Reset - Only for used elements */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Base Typography */
body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px; /* Desktop için daha büyük */
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.75);
    /* Animated dark gradient background */
    background: linear-gradient(120deg, #232526, #2d2a3a, #1a242f, #232526, #232526, #1a1a1a, #232526, #2e3d2f, #232526, #3a2d5c, #232526, #232526);
    background-size: 800% 800%; /* Daha geniş alan */
    background-position: 0% 50%;
    animation: bgShift 24s linear infinite;
    will-change: background-position;
    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Eklendi: yatay ortalama */
    padding: 5em 3.5em 3em;
    position: relative;
}

body > * {
    position: relative;
    z-index: 2;
}

/* Headers */
h1 {
    font-size: 2.8em; /* Desktop için daha büyük */
    font-weight: 700;
    color: #fff;
    margin: 0 0 1em;
    line-height: 1.2em;
    letter-spacing: -0.02em;
}


#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2em;
    width: 100%;
    /* Arka plan kaldırıldı, başka bir background veya box-shadow yoksa eklemeye gerek yok */
}

#header h1 {
    font-size: 4em;
    margin: 0 0 0.5em;
    line-height: 1.1em;
}

/* Paragraphs */
p {
    margin: 0 0 1.25em;
}

#header p {
    font-size: 1.2em;
    line-height: 1.55em;
    margin: 0 0 0.75em;
    color: rgba(255, 255, 255, 0.7);
}

#header p:first-of-type {
    font-size: 1.15em;
    font-weight: 700;
    color: #ffbe00;
    line-height: 1.3;
    margin: 0 0 1em;
    padding: 0;
}

#header p:last-of-type {
    margin: 0;
}

#header > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
}

/* Links */
a {
    color: #ffbe00;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
    transition: border-bottom-color 0.2s, color 0.2s;
}

a:hover {
    color: #ffbe00 !important;
    border-bottom-color: transparent;
}

#header a {
    color: #fff;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul.icons {
    cursor: default;
}

ul.icons li {
    display: inline-block;
    padding: 0;
}

ul.icons li:last-child {
    padding-right: 0;
}

ul.icons li a {
    color: inherit;
}

/* Avatar */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    padding: 4px;
    background: linear-gradient(270deg, #FFD700, #FFA500, #FF4500, #FFD700, #FFA500, #FF4500); /* Daha fazla geçiş ve yön değişti */
    background-size: 600% 600%; /* Daha geniş animasyon alanı */
    animation: borderGlow 4s linear infinite; /* Animasyon süresi yavaşlatıldı */
    box-shadow: 0 0 60px 0px rgba(255, 200, 0, 0.45); /* Daha yumuşak ve yaygın gölge */
    display: block;
    margin: 0 auto 0.75em auto;
    width: 160px;
    height: 160px;
}

.avatar:hover {
    box-shadow: 0 0 70px 10px rgba(255, 200, 0, 0.5);
    animation: borderGlow 2s linear infinite;
}


@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* Background animation */
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Footer */
#footer {
    position: absolute;
    bottom: 0.5em; /* Daha aşağıya kaydırıldı */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    transition: opacity 0.5s ease-in-out;
    color: rgba(255, 255, 255, 0.7);
}

#footer:hover {
    opacity: 1;
}

#footer .icons {
    margin: 0 0 0.5em;
}

/* Move inline list layout styles from HTML */
#footer ul.icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

#footer ul.icons:first-of-type {
    margin: 3em auto 1em;
}

#footer ul.icons:last-of-type {
    margin: 0 auto 1em;
}

/* Grid/desen overlay */
.bg-grid {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(transparent 95%, rgba(255,255,255,0.04) 100%), 
                      linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.04) 100%);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* Media Queries */
@media screen and (max-width: 1680px) {
    body {
        padding: 5em 3em 3em;
        font-size: 16px;
        line-height: 1.6;
        align-items: center;
    }
    
    #header h1 {
        font-size: 3em;
        line-height: 1.15em;
    }
    
    #header p, p {
        font-size: 1.1em;
        line-height: 1.5em;
    }
    
    h1 {
        font-size: 2.2em;
        line-height: 1.2em;
    }
    
    #footer {
        bottom: 0.5em;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 736px) {
    body {
        padding: 1.75em;
        font-size: 14px;
        line-height: 1.5;
        align-items: center;
        padding-bottom: calc(1.75em + env(safe-area-inset-bottom));
    }
    
    html, body {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    #header h1 {
        font-size: 2em;
        line-height: 1.2em;
    }
    
    #header p, p {
        font-size: 1em;
        line-height: 1.4em;
    }
    
    h1 {
        font-size: 1.5em;
        line-height: 1.2em;
    }
    
    #footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1.25em;
    }

    /* Touch target improvements for social icons */
    #footer ul.icons:first-of-type a {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }
    #footer ul.icons:first-of-type i {
        font-size: 1.1em;
    }

    /* Lighter grid overlay on mobile */
    .bg-grid {
        opacity: 0.25;
    }
    
    .hidden-xs {
        display: none;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 1.25em;
        font-size: 13px;
        line-height: 1.45;
        align-items: center;
    }
    
    #header {
        margin: 0 0 1em;
    }
    
    #header h1 {
        font-size: 1.3em;
        line-height: 1.15em;
    }
    
    #header p, p {
        font-size: 0.95em;
        line-height: 1.45em;
    }
    
    h1 {
        font-size: 1.1em;
        line-height: 1.15em;
    }
}

@media screen and (max-width: 360px) {
    body {
        padding: 1.25em;
        align-items: center;
    }
    
    #footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .avatar {
        animation: none !important;
    }
    #footer {
        transition: none;
    }
}

@media screen and (max-height: 640px) {
    body, html {
        height: auto;
        min-height: 100%;
    }
    
    #footer {
        position: relative;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        margin: 1em 0 0;
    }
}
