/* =============================== */
/* VARIABLES */
/* =============================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #ec4899);
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =============================== */
/* RESET & BASE STYLES */
/* =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: background 0.2s, transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out;
}

a, button {
    cursor: pointer;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--text);
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 9999;
    transition: transform .1s;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* =============================== */
/* NAVBAR */
/* =============================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
    transition: transform 0.4s ease, background 0.3s ease, padding 0.3s ease;
}

header.hide {
    transform: translateY(-100%);
}

header.scrolled {
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: var(--primary);
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 2.3rem;
    list-style: none;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.4s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

#hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

#hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =============================== */
/* HERO SECTION */
/* =============================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    left: 80%;
    animation: float 20s infinite ease-in-out reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    top: 80%;
    left: 20%;
    animation: float 18s infinite ease-in-out;
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 30%;
    left: 70%;
    animation: float 12s infinite ease-in-out reverse;
}

.shape-5 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    border-radius: 50%;
    top: 10%;
    left: 50%;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-text {
    animation: fadeLeft 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeLeft {
    from { 
        transform: translateX(-60px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.typing {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.tagline {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin: 1.5rem 0;
}

.desc {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
    background: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.7);
}

.btn-outline {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-outline::before {
    background: var(--primary-dark);
}

.btn-outline:hover {
   transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.hero-image {
    animation: fadeRight 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeRight {
    from { 
        transform: translateX(60px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

.profile-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.profile-image-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-card img {
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    border: 6px solid var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    border-radius: 22px;
    opacity: 0;
    transition: var(--transition);
}

.profile-card:hover .image-overlay {
    opacity: 1;
}

.profile-card:hover img {
    transform: scale(1.05);
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-info p {
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.scroll-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}



/* =============================== */
/* FEATURED PROJECTS SECTION */
/* =============================== */
.featured-projects {
    padding: 100px 0;
}

.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--card);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-14px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(99, 102, 241, 0.18);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-all-container {
    text-align: center;
}


/* =============================== */
/* FOOTER */
/* =============================== */
footer { 
    background: #0a0e17; 
    border-top: 1px solid #1e293b; 
    padding: 5rem 0 2rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 4rem; 
    margin-bottom: 3rem; 
}

.footer-brand .logo { 
    margin-bottom: 1.5rem; 
}

.footer-brand p { 
    color: #94a3b8; 
    line-height: 1.8; 
}

.social-links { 
    display: flex; 
    gap: 1rem; 
    margin-top: 1.5rem; 
}

.social-links a { 
    width: 50px; 
    height: 50px; 
    background: #1e293b; 
    border: 1px solid var(--border); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #e2e8f0; 
    font-size: 1.4rem; 
    transition: all .4s; 
}

.social-links a:hover { 
    background: var(--primary); 
    color: white; 
    transform: translateY(-6px); 
}

.footer-links h4, 
.footer-contact h4 { 
    font-size: 1.4rem; 
    margin-bottom: 1.5rem; 
    color: #e2e8f0; 
}

.footer-links ul { 
    list-style: none; 
}

.footer-links a { 
    color: #94a3b8; 
    text-decoration: none; 
    line-height: 2.2; 
    transition: color .3s; 
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover { 
    color: var(--primary); 
}

.footer-contact p { 
    color: #94a3b8; 
    margin-bottom: .8rem; 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 2rem; 
    border-top: 1px solid #1e293b; 
    color: #64748b; 
}

.footer-bottom .small { 
    font-size: .9rem; 
    margin-top: .5rem; 
    color: #475569; 
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .custom-cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    a, button {
        cursor: pointer;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        right: 20px;
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        flex-direction: column;
        gap: 1.5rem;
        border-radius: 10px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        width: 200px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    #hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .projects-preview {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .desc {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-card img {
        max-width: 300px;
    }
}


/* Dil Seçici Stilleri */
.language-selector {
    position: relative;
    margin-left: 2rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.lang-current {
    font-weight: 600;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    min-width: 150px;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.1);
}

.lang-option.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.flag {
    font-size: 1.2rem;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lang-dropdown {
        position: static;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .lang-dropdown.show {
        display: block;
    }
}

/* Dil değiştirme sırasında geçiş animasyonu */
body.transitioning {
    transition: opacity 0.3s ease;
}

body.transitioning-out {
    opacity: 0;
}

body.transitioning-in {
    opacity: 1;
}