/* assets/css/style.css */
:root {
    --text-color: #1a1a2e;
    --text-color-light: #525266;
    --bg-color: #f7f9fa; /* Slightly darker to make glass stand out */
    --accent-color: #0d6efd;
    --font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Ensures fixed header doesn't overlap section titles */
    overflow-x: clip;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    width: 100%;
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

/* Apple Intelligence Quick Burst */
.magic-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    /* Inspired by Siri/Apple Intelligence gradient */
    background: conic-gradient(from 0deg, #4285f4, #d96570, #9c27b0, #00d2ff, #4285f4);
    filter: blur(60px);
    z-index: -1;
    opacity: 0;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.6;
    animation: float 12s infinite ease-in-out alternate;
}

.blob-1 {
    width: 50vw; height: 50vw;
    max-width: 600px; max-height: 600px;
    background: #ffb3ba;
    top: -5%; left: -10%;
}

.blob-2 {
    width: 60vw; height: 60vw;
    max-width: 700px; max-height: 700px;
    background: #bae1ff;
    top: 40%; right: -15%;
    animation-delay: -3s;
}

.blob-3 {
    width: 40vw; height: 40vw;
    max-width: 500px; max-height: 500px;
    background: #baffc9;
    bottom: -5%; left: 20%;
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(60px) scale(1.1); }
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: rgba(247, 249, 250, 0.7);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    z-index: 9999;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.island {
    top: 20px;
    width: 90%;
    max-width: 900px;
    border-radius: 40px;
    background-color: rgba(15, 15, 15, 0.7); /* dark transparent like iOS Dynamic Island */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

header .logo, header .nav-links a, header .bar {
    transition: color 0.4s ease, background-color 0.4s ease;
}

header.island .logo {
    color: #ffffff;
}

/* Removed previous media desktop block since it's merged above */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
}

/* Selected State (Desktop default light header) */
.nav-links a.active {
    opacity: 1;
    color: var(--accent-color);
    font-weight: 700;
}

/* Desktop styles for island */
@media (min-width: 769px) {
    header.island .nav-links a {
        color: rgba(255, 255, 255, 0.7);
    }
    header.island .nav-links a:hover {
        color: #ffffff;
    }
    header.island .nav-links a.active {
        color: #ffffff;
        font-weight: 700;
        text-shadow: 0 0 12px rgba(255,255,255,0.3);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 50px;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    background: linear-gradient(135deg, var(--text-color), #40405c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-color-light);
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-top: 3.5rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatingScroll 2.5s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.hero-scroll-btn:hover {
    transform: scale(1.15) translateY(5px);
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25);
    animation-play-state: paused;
}

@keyframes floatingScroll {
    0% { transform: translateY(0); }
    50% { transform: translateY(12px); }
    100% { transform: translateY(0); }
}

/* Sections General */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    opacity: 0;
}

/* Portfolio & Projects Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
    opacity: 0;
    transform: translateY(40px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border-color: rgba(255, 255, 255, 0.9);
}

.card-img-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f5;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-color-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--text-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-link:hover {
    background: #000;
    color: #fff;
}

/* Skills Section (Modern Grid) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.skill-category-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-align: center;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-pill:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.skill-icon {
    font-size: 1.2rem;
}

.skill-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.skill-percent {
    font-size: 0.8rem;
    color: var(--text-color-light);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    margin-top: 4rem;
    opacity: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--text-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #f5f5f7;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-weight: 500;
}

/* Status Message */
#form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}
.status-success { background: #e3fcef; color: #0f5132; }
.status-error { background: #f8d7da; color: #842029; }

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10000;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 3px;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }

    /* Premium Full-Screen Mobile Overlay Menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        gap: 2rem;
        z-index: 9998; /* Base header is 9999 */
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
    }

    /* Huge Premium Typography for links */
    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-links a {
        font-size: 2.5rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.5); /* Dim text */
        text-transform: capitalize;
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;
    }
    
    /* Selected State (Mobile Overlay) */
    .nav-links a.active {
        color: #ffffff;
        transform: scale(1.1); /* Slight pop out effect */
    }

    /* Make sandwich icon X always white when menu open because overlay is dark */
    header.island .menu-toggle.active .bar,
    .menu-toggle.active .bar {
        background-color: #ffffff; 
    }

    /* Hamburger Animation Into X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    /* Section adjustments for mobile */
    section {
        padding: 4rem 1.5rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .hero {
        padding: 0 1.5rem;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    
    .contact-section { 
        padding: 2rem 1.5rem; 
    }
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

/* Contact Card Styles */
.contact-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-avatar img {
    transform: scale(1.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-email {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-email a {
    color: var(--text-color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: var(--accent-color);
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-linkedin {
    background: rgba(0, 119, 181, 0.8);
}
.btn-linkedin:hover {
    background: rgba(0, 119, 181, 1);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.btn-kariyer {
    background: rgba(230, 126, 34, 0.8);
}
.btn-kariyer:hover {
    background: rgba(230, 126, 34, 1);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem;
    }
}

/* Mobile Overflow Fix Wrapper */
.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
}
