/* ==========================================================================
   GLOBAL VARIABLES & RESETS
   ========================================================================== */
:root {
    --bg-black: #000000;
    --apple-gray-dark: #1d1d1f;
    --apple-gray-light: #f5f5f7;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --accent-blue: #2997ff;
    --accent-silver: #e5e5ea;
    
    /* Apple style spring animations using cubic-bezier */
    --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --spring-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, html {
    width: 100%;
    min-height: 100vh;
    background: transparent;
    background-size: 100% 100%;
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   1. AÇILIŞ VE İNTRO GEÇİŞİ (THE APPLE ENTRANCE)
   ========================================================================== */
.intro-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s var(--spring-easing), visibility 1.5s var(--spring-easing);
}

/* Intro Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 12s infinite ease-in-out alternate;
}
.orb-1 {
    width: 50vw; height: 50vw;
    background: #ffffff;
    top: -10%; left: -10%;
}
.orb-2 {
    width: 40vw; height: 40vw;
    background: #444444;
    bottom: -5%; right: -5%;
    animation-delay: -4s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3vw, -3vw) scale(1.1); }
}

/* Intro Glass Card */
.intro-screen .glass-card {
    position: relative;
    z-index: 10;
    padding: 4rem 6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    animation: cardEntrance 1.8s var(--spring-easing) forwards;
    overflow: hidden;
}
.intro-screen .glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite 2s;
}
@keyframes cardEntrance {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shine {
    0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; }
}

/* Intro Text */
.intro-screen h1 {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 300;
    letter-spacing: 8px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #777777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: textReveal 2s ease 0.8s forwards;
}
.intro-screen .bold-text {
    font-weight: 900;
    -webkit-text-fill-color: #ffffff;
}
@keyframes textReveal {
    from { opacity: 0; letter-spacing: 25px; filter: blur(10px); }
    to { opacity: 1; letter-spacing: 8px; filter: blur(0px); }
}

/* Intro Loader */
.intro-screen .loader {
    position: absolute;
    bottom: 0; left: 0; height: 2px;
    background: rgba(255, 255, 255, 0.7);
    width: 0%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: loadProgress 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loadProgress {
    0% { width: 0%; } 100% { width: 100%; }
}

/* ==========================================================================
   MAIN CONTENT & CAMERA TRANSITION
   ========================================================================== */
.main-content {
    opacity: 0;
    transform: scale(1.05); /* Slight zoom for cinematic entrance */
    transition: opacity 1.5s var(--spring-easing), transform 1.5s var(--spring-easing);
    visibility: hidden;
}
.main-content.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}
.hidden {
    display: none;
}

/* ==========================================================================
   2. HERO BÖLÜMÜ
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background gradient for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(41, 151, 255, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
    
    /* Apple Keynote Text Gradient */
    background: linear-gradient(135deg, #ffffff 30%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   3. BENTO GRID (ÖZELLİKLERİMİZ)
   ========================================================================== */
.features {
    padding: 8rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-card {
    background: rgba(29, 29, 31, 0.5); /* Apple dark gray */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Transition for hover */
    transition: transform 0.5s var(--spring-easing), box-shadow 0.5s var(--spring-easing), border-color 0.5s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-silver);
    transition: color 0.5s ease, transform 0.5s var(--spring-bouncy);
}

.bento-card:hover .bento-icon {
    color: var(--text-primary);
    transform: scale(1.1);
}

.bento-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bento-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Grid Spanning */
.card-large { grid-column: span 2; grid-row: span 2; }
.card-medium { grid-column: span 2; grid-row: span 1; }
.card-small { grid-column: span 1; grid-row: span 1; }

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .card-large, .card-medium, .card-small {
        grid-column: span 1;
        grid-row: auto;
        min-height: 300px;
    }
}

/* ==========================================================================
   4. YAPTIĞIMIZ PROJELER (THE GALLERY)
   ========================================================================== */
.projects {
    padding: 8rem 0;
    background: transparent;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5rem;
    letter-spacing: -0.02em;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-item {
    background: rgba(28, 28, 30, 0.4);
    border-radius: 28px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: transform 0.6s var(--spring-easing), border-color 0.6s ease, background 0.6s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    background: rgba(28, 28, 30, 0.6);
}

.project-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
    transition: transform 0.6s var(--spring-bouncy), filter 0.6s ease;
}

.project-item:hover .project-image {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 25px 45px rgba(255, 255, 255, 0.05));
}

.project-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

.project-links {
    display: flex;
    gap: 2rem;
}

.apple-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.apple-link:hover {
    opacity: 0.8;
}

.apple-link span {
    font-size: 0.9rem;
    transition: transform 0.3s var(--spring-bouncy);
}

.apple-link:hover span {
    transform: translateX(4px);
}

/* ==========================================================================
   5. İLETİŞİM VE FOOTER
   ========================================================================== */
.footer {
    padding: 6rem 0 10rem 0; /* Artırılmış alt padding (social-dock ile çakışmayı önlemek için) */
    text-align: center;
}

.contact-area {
    margin-bottom: 8rem;
}

.contact-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--bg-black);
    background: var(--text-primary);
    border-radius: 50px;
    transition: all 0.5s var(--spring-easing);
    box-shadow: 0 0 0 rgba(255,255,255,0);
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
    background: #e0e0e0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* ==========================================================================
   ANIMASYON SINIFLARI (Scroll Triggered)
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--spring-easing), transform 1s var(--spring-easing);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade-zoom {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    /* "sisten çıkıyormuş gibi" efekt için */
    filter: blur(10px); 
    transition: opacity 1.2s var(--spring-easing), transform 1.2s var(--spring-easing), filter 1.2s ease;
}

.reveal-fade-zoom.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
/* Theme Toggle & Light Mode Additions */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    transform: scale(0.7);
    transform-origin: top right;
}

body.light-mode {
    background: transparent !important;
    color: #1d1d1f !important;
}

body.light-mode .project-item {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .project-item:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .section-title {
    color: #1d1d1f !important;
}

body.light-mode .project-info h3, body.light-mode .hero-title {
    color: #1d1d1f !important;
    background: none !important;
    -webkit-text-fill-color: #1d1d1f !important;
}

body.light-mode .hero-subtitle, body.light-mode .project-info p {
    color: #86868b !important;
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0,0,0,0.1) !important;
}

body.light-mode .glass-card h1 {
    color: #1d1d1f !important;
}

body.light-mode .intro-screen {
    background: #f5f5f7 !important;
}

body.light-mode .github-btn {
    background: #1d1d1f !important;
    color: #ffffff !important;
}

/* User Provided CSS from Uiverse */
.theme-switch {
  --toggle-size: 30px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

/* actions */

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* SOCIAL DOCK CSS */
.social-dock {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.social-dock-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.social-dock-icons {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.5rem;
}

.social-icon {
    clip-path: url(#squircleClip);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
    color: white;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1) translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.social-icon svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.github-icon {
    background: linear-gradient(to bottom right, #374151, #111827);
    border-color: rgba(75, 85, 99, 0.5);
}

.instagram-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: rgba(220, 39, 67, 0.5);
}

.discord-icon {
    background: linear-gradient(to bottom right, #4f46e5, #3730a3);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Light Mode Overrides for Dock */
body.light-mode .social-dock-bg {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* YAPIM AŞAMASINDA BADGE */
.badge-construction {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05); /* Subtle white glass */
    color: var(--text-secondary); /* Matches subtitle text */
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.light-mode .badge-construction {
    background: rgba(0, 0, 0, 0.05); /* Subtle black glass */
    color: #86868b;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   AMBIENT MESH BACKGROUND
   ========================================================================== */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-black);
    pointer-events: none;
}

/* Subtle dot grid overlay */
.mesh-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
    z-index: 1;
}

.mesh-blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.5;
    border-radius: 50%;
    animation: ambientFloat 25s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: rgba(41, 151, 255, 0.15); /* Accent blue */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%; right: -10%;
    width: 70vw; height: 70vw;
    background: rgba(147, 51, 234, 0.12); /* Purple */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 50%;
    width: 50vw; height: 50vw;
    background: rgba(59, 130, 246, 0.1); /* Lighter blue */
    animation-delay: -10s;
}

@keyframes ambientFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.9); }
    100% { transform: translate(0, -5%) scale(1); }
}

/* Light Mode Overrides */
body.light-mode .mesh-bg {
    background: #f5f5f7;
}

body.light-mode .mesh-bg::after {
    background-image: radial-gradient(rgba(0,0,0,0.08) 1px, transparent 1px);
}

body.light-mode .blob-1 { background: rgba(41, 151, 255, 0.3); }
body.light-mode .blob-2 { background: rgba(147, 51, 234, 0.25); }
body.light-mode .blob-3 { background: rgba(59, 130, 246, 0.25); }


/* ==========================================================================
   AUTH MODAL
   ========================================================================== */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    width: 90%;
    max-width: 400px;
    padding: 3rem 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth-modal-overlay.active .auth-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.auth-input:focus {
    border-color: var(--accent-blue);
}

body.light-mode .auth-input {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
    color: #1d1d1f;
}

body.light-mode .close-modal {
    color: #1d1d1f;
}


/* ==========================================================================
   MOBILE FIXES & RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    .intro-screen h1 {
        font-size: 1.5rem;
        letter-spacing: 4px;
        animation: textRevealMobile 2s ease 0.8s forwards;
    }
    .bento-card {
        padding: 1.5rem;
        min-height: auto !important;
    }
    .project-item {
        padding: 2rem 1rem;
    }
    .project-image {
        width: 150px;
        height: 150px;
    }
    .project-info h3 {
        font-size: 1.8rem;
    }
    .social-dock {
        width: 90%;
        max-width: 300px;
    }
    .social-icon {
        width: 3rem;
        height: 3rem;
    }
    .social-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    .footer {
        padding: 4rem 0 8rem 0;
    }
    .contact-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@keyframes textRevealMobile {
    from { opacity: 0; letter-spacing: 10px; filter: blur(5px); }
    to { opacity: 1; letter-spacing: 4px; filter: blur(0px); }
}
